﻿/* ═══════════════════════════════════════════════════════════════════════
   OFFER DETAIL PAGE — Bento Layout
   ═══════════════════════════════════════════════════════════════════════ */

/* ── DARK ZONE (hero + tabs background) ─────────────────────────────── */
.od-dark-zone {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
    padding-top: 88px;
    padding-bottom: 40px;
}

/* ── HERO BENTO ─────────────────────────────────────────────────────── */
.od-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 48px 0;
}

.od-hero__grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
}

/* Main photo */
.od-hero__photo {
    position: relative;
    height: 440px;
    border-radius: 22px;
    background: linear-gradient(145deg, #1a2744, #0d1a2e);
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.od-hero__photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.od-hero__photo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #475569;
    gap: 12px;
}

.od-hero__counter {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
}

.od-hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.od-hero__nav:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.od-hero__nav svg {
    width: 20px;
    height: 20px;
    color: var(--tp-dark);
}

.od-hero__nav--prev {
    left: 16px;
}

.od-hero__nav--next {
    right: 16px;
}

/* Chips on photo */
.od-hero__chips {
    position: absolute;
    top: 22px;
    left: 22px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.od-hero__chip {
    background: rgba(20, 27, 45, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #e2e8f0;
    text-transform: uppercase;
}

.od-hero__chip--type {
    background: rgba(192, 57, 43, 0.9);
    border-color: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.od-hero__chip--rent {
    background: rgba(5, 150, 105, 0.9);
}

.od-hero__chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fca5a5;
}

.od-hero__chip--rent .od-hero__chip-dot {
    background: #86efac;
}

/* Bottom overlay on photo */
.od-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 22px 22px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    z-index: 1;
}

.od-hero__location {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.od-hero__title {
    margin: 0;
    font-family: var(--tp-font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Price card */
.od-hero__price-card {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.od-hero__price-label {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.od-hero__price-value {
    font-family: var(--tp-font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: #e2e8f0;
    letter-spacing: -1px;
}

.od-hero__price-value--neg {
    font-size: 1.3rem;
    color: #94a3b8;
}

.od-hero__price-per-m2 {
    font-size: 0.81rem;
    color: #94a3b8;
    margin-top: 2px;
}

.od-hero__price-params {
    margin-top: 22px;
}

.od-hero__price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.od-hero__price-row span:first-child {
    color: #94a3b8;
}

.od-hero__price-row span:last-child {
    font-weight: 600;
    color: #e2e8f0;
}

/* PSI hint in price card */
.od-hero__psi-hint {
    margin-top: 20px;
    background: rgba(76, 29, 149, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
}

.od-hero__psi-hint-title {
    font-size: 0.72rem;
    color: #c4b5fd;
    font-weight: 700;
    margin-bottom: 3px;
}

.od-hero__psi-hint-text {
    font-size: 0.72rem;
    color: #ddd6fe;
}

/* Thumbnails */
.od-hero__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.od-hero__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.55;
    transition: all 0.2s ease;
    padding: 0;
    background: none;
}

.od-hero__thumb:hover {
    opacity: 0.85;
}

.od-hero__thumb--active {
    border-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.od-hero__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── TAB NAVIGATION ─────────────────────────────────────────────────── */
.od-tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    margin-top: 32px;
    position: sticky;
    top: 60px;
    z-index: 50;
}

.od-tabs__inner {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 5px;
}

.od-tabs__tab {
    flex: 1;
    padding: 9px 0;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.81rem;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    text-align: center;
    font-family: var(--tp-font-body);
}

.od-tabs__tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.od-tabs__tab--active {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-weight: 700;
}

/* ── CONTENT SECTIONS ───────────────────────────────────────────────── */
.od-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 48px 80px;
}

.od-section {
    margin-bottom: 64px;
}

.od-section__title {
    font-family: var(--tp-font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tp-dark);
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

/* ── CARD BASE ──────────────────────────────────────────────────────── */
.od-card {
    background: #fff;
    border: 1px solid var(--tp-border);
    border-radius: 18px;
}

.od-card--desc {
    padding: 32px 36px;
}

.od-description {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--tp-slate);
}

.od-description p {
    margin-bottom: 12px;
}

.od-description p:last-child {
    margin-bottom: 0;
}

/* ── PARAMETERS GRID ────────────────────────────────────────────────── */
.od-params-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.od-param-card {
    background: #fff;
    border: 1px solid var(--tp-border);
    border-radius: 16px;
    padding: 20px 22px;
    transition: box-shadow 0.2s;
}

.od-param-card:hover {
    box-shadow: var(--tp-shadow);
}

.od-param-card__label {
    font-size: 0.68rem;
    color: var(--tp-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.od-param-card__value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tp-dark);
}

/* ── INFRASTRUCTURE TAGS ───────────────────────────────────────────── */
.od-infra-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.od-infra-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.od-infra-tag--yes {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.od-infra-tag--yes svg {
    color: #059669;
}

/* ── LOCATION ───────────────────────────────────────────────────────── */
.od-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.od-card--map {
    border-radius: 20px;
    overflow: hidden;
    min-height: 280px;
}

.od-map {
    width: 100%;
    height: 280px;
}

.od-card--location-info {
    border-radius: 20px;
    padding: 28px 30px;
}

.od-location-info__label {
    font-size: 0.81rem;
    color: var(--tp-muted);
    margin-bottom: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.od-location-info__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--tp-border);
    font-size: 0.88rem;
}

.od-location-info__row span:first-child {
    color: var(--tp-slate);
}

.od-location-info__val {
    font-weight: 700;
    font-size: 0.81rem;
    background: var(--tp-bg);
    border: 1px solid var(--tp-border);
    border-radius: 8px;
    padding: 3px 10px;
    color: var(--tp-dark);
}

/* ── PSI BANNER ─────────────────────────────────────────────────────── */
.od-psi-banner {
    border-radius: 26px;
    padding: 56px 64px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    box-shadow: 0 40px 100px rgba(76, 29, 149, 0.25);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.od-psi-banner__circle {
    position: absolute;
    right: -60px;
    top: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.12);
    pointer-events: none;
}

.od-psi-banner__label {
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #c4b5fd;
    margin-bottom: 12px;
}

.od-psi-banner__title {
    font-family: var(--tp-font-heading);
    font-size: 1.85rem;
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.od-psi-banner__desc {
    max-width: 560px;
    line-height: 1.8;
    color: #ddd6fe;
    font-size: 0.88rem;
    margin: 0 0 36px;
}

.od-psi-banner__stats {
    display: flex;
    gap: 48px;
    margin-bottom: 36px;
}

.od-psi-banner__stat-label {
    font-size: 0.68rem;
    color: #c4b5fd;
    margin-bottom: 4px;
}

.od-psi-banner__stat-value {
    font-family: var(--tp-font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.od-psi-banner__stat-sub {
    font-size: 0.68rem;
    color: #ddd6fe;
}

.od-psi-banner__actions {
    display: flex;
    gap: 12px;
}

.od-psi-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 11px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.81rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.od-psi-banner__btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ── CONTACT ────────────────────────────────────────────────────────── */
.od-contact {
    background: #fff;
    border: 1px solid var(--tp-border);
    border-radius: 26px;
    padding: 52px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    box-shadow: var(--tp-shadow-sm);
}

.od-contact__label {
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tp-muted);
    margin-bottom: 12px;
}

.od-contact__title {
    font-family: var(--tp-font-heading);
    font-size: 1.55rem;
    margin: 0 0 14px;
    font-weight: 800;
    color: var(--tp-dark);
    letter-spacing: -0.5px;
}

.od-contact__desc {
    font-size: 0.88rem;
    color: var(--tp-gray);
    line-height: 1.7;
    margin: 0 0 28px;
}

.od-contact__phone {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--tp-bg);
    border: 1px solid var(--tp-border);
    border-radius: 14px;
    padding: 16px 20px;
}

.od-contact__phone-label {
    font-size: 0.68rem;
    color: var(--tp-muted);
}

.od-contact__phone-number {
    font-family: var(--tp-font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--tp-dark);
}

.od-contact__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.od-contact__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #C0392B;
    border: none;
    padding: 15px 36px;
    border-radius: 12px;
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(192, 57, 43, 0.3);
    transition: all 0.2s;
}

.od-contact__btn:hover {
    background: #a93226;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(192, 57, 43, 0.4);
    color: #fff;
}

.od-contact__hint {
    font-size: 0.75rem;
    color: var(--tp-muted);
}

/* ── SIMILAR PROPERTIES ─────────────────────────────────────────────── */
.od-similar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px 64px;
}

.od-similar__title {
    font-family: var(--tp-font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tp-dark);
    margin-bottom: 20px;
    padding-top: 28px;
    border-top: 1px solid var(--tp-border);
}

.od-similar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.od-similar__card {
    background: #fff;
    border: 1px solid var(--tp-border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.od-similar__card:hover {
    box-shadow: var(--tp-shadow);
    border-color: var(--tp-primary-light);
    transform: translateY(-2px);
}

.od-similar__img {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.od-similar__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.od-similar__card:hover .od-similar__img img {
    transform: scale(1.05);
}

.od-similar__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tp-light);
}

.od-similar__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    background: #fff;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--tp-slate);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.od-similar__body {
    padding: 14px;
}

.od-similar__location {
    display: block;
    font-size: 0.75rem;
    color: var(--tp-muted);
    margin-bottom: 4px;
}

.od-similar__body h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--tp-dark);
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.od-similar__area {
    display: block;
    font-size: 0.78rem;
    color: var(--tp-gray);
    margin-bottom: 6px;
}

.od-similar__price {
    display: block;
    font-family: var(--tp-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--tp-primary);
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .od-dark-zone {
        padding-top: 84px;
        padding-bottom: 32px;
    }

    .od-hero {
        padding: 24px 24px 0;
    }

    .od-tabs {
        padding: 0 24px;
    }

    .od-content {
        padding: 32px 24px 64px;
    }

    .od-similar {
        padding: 0 24px 48px;
    }

    .od-hero__grid {
        grid-template-columns: 1fr 300px;
    }

    .od-hero__photo {
        height: 380px;
    }

    .od-similar__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .od-psi-banner {
        padding: 40px 36px;
    }

    .od-psi-banner__stats {
        gap: 28px;
    }

    .od-contact {
        padding: 36px 32px;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .od-dark-zone {
        padding-top: 80px;
        padding-bottom: 24px;
    }

    .od-hero {
        padding: 16px 16px 0;
    }

    .od-tabs {
        padding: 0 16px;
        margin-top: 20px;
    }

    .od-content {
        padding: 24px 16px 48px;
    }

    .od-similar {
        padding: 0 16px 40px;
    }

    .od-hero__grid {
        grid-template-columns: 1fr;
    }

    .od-hero__photo {
        height: 280px;
        border-radius: 16px;
    }

    .od-hero__title {
        font-size: 1.2rem;
    }

    .od-hero__price-card {
        border-radius: 16px;
    }

    .od-hero__price-value {
        font-size: 1.5rem;
    }

    .od-hero__thumb {
        width: 60px;
        height: 45px;
    }

    .od-tabs__inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .od-tabs__tab {
        white-space: nowrap;
        min-width: fit-content;
        padding: 9px 14px;
    }

    .od-params-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .od-location-grid {
        grid-template-columns: 1fr;
    }

    .od-map {
        height: 220px;
    }

    .od-psi-banner {
        padding: 32px 24px;
        border-radius: 18px;
    }

    .od-psi-banner__title {
        font-size: 1.35rem;
    }

    .od-psi-banner__stats {
        flex-direction: column;
        gap: 20px;
    }

    .od-psi-banner__stat-value {
        font-size: 1.3rem;
    }

    .od-psi-banner__actions {
        flex-direction: column;
    }

    .od-psi-banner__btn {
        text-align: center;
        justify-content: center;
    }

    .od-contact {
        grid-template-columns: 1fr;
        padding: 28px 24px;
        gap: 28px;
        border-radius: 18px;
    }

    .od-contact__title {
        font-size: 1.2rem;
    }

    .od-similar__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .od-similar__img {
        height: 120px;
    }

    .od-section {
        margin-bottom: 44px;
    }
}

@media (max-width: 480px) {
    .od-params-grid {
        grid-template-columns: 1fr;
    }

    .od-similar__grid {
        grid-template-columns: 1fr;
    }

    .od-hero__photo {
        height: 220px;
    }
}