/* ═══════════════════════════════════════
   DETAIL PAGE STYLES – detail.css
   ═══════════════════════════════════════ */

/* ── Detail Hero ── */
.detail-hero {
    min-height: 520px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(4, 20, 8, 0.5) 0%, rgba(4, 20, 8, 0.88) 100%);
}

.detail-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 120px;
    padding-bottom: 60px;
}

.detail-breadcrumb {
    margin-bottom: 20px;
}

.detail-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
}

.detail-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-light);
}

.detail-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.detail-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

.detail-badge {
    display: inline-block;
    background: rgba(13, 138, 62, 0.25);
    border: 1px solid rgba(13, 138, 62, 0.5);
    color: var(--primary-light);
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.detail-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 14px;
}

.detail-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
    margin-bottom: 22px;
    max-width: 580px;
}

.detail-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-hero-tags span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(6px);
}

/* ── Body Container ── */
.detail-body-container {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* ── Section ── */
.detail-section {
    margin-bottom: 48px;
}

.detail-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.detail-section p strong {
    color: var(--white);
}

.detail-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section-title i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

/* ── Feature Boxes ── */
.feature-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--dark-3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    transition: var(--transition);
}

.feature-box:hover {
    border-color: rgba(13, 138, 62, 0.4);
    transform: translateY(-2px);
}

.feature-box>i {
    font-size: 1.3rem;
    color: var(--primary-light);
    min-width: 24px;
}

.feature-box strong {
    display: block;
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
}

.feature-box span {
    color: var(--text-muted);
    font-size: 0.82rem;
    display: block;
}

/* ── Detail List ── */
.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

.detail-list li i {
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Modern Bento Gallery ── */
.bento-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 220px 220px;
    gap: 12px;
}

.bento-item {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-item .gallery-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.bento-item:hover .gallery-img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* First item takes 2x2 */
.bento-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 767.98px) {
    .bento-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 180px 140px 140px;
        gap: 8px;
    }

    .bento-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* ── Sidebar ── */
.sticky-sidebar {
    position: static;
}

.detail-sidebar {
    background: var(--dark-3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.sidebar-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-badge {
    display: inline-block;
    background: rgba(13, 138, 62, 0.2);
    border: 1px solid rgba(13, 138, 62, 0.4);
    color: var(--primary-light);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.sidebar-location {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sidebar-location i {
    color: var(--accent);
}

.sidebar-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.sh-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--dark-3);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.sh-item i {
    color: var(--primary-light);
    font-size: 1rem;
}

.sidebar-cta {
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-cta-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-call {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary-light);
    padding: 11px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-call:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.sidebar-note {
    padding: 14px 24px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.sidebar-note i {
    color: var(--primary-light);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Other Listings ── */
.other-listings {
    background: var(--dark-3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.other-listings-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--glass-border);
    margin: 0;
}

.other-listing-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    text-decoration: none;
}

.other-listing-item:last-child {
    border-bottom: none;
}

.other-listing-item:hover {
    background: var(--glass);
}

.other-listing-item>i {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: auto;
}

.oli-img {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.oli-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.oli-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.oli-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
}

/* ── Parsel / Dükkan Table ── */
.parsel-table {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.parsel-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.8fr;
    gap: 0;
    border-bottom: 1px solid var(--glass-border);
}

.parsel-row:last-child {
    border-bottom: none;
}

.parsel-row span {
    padding: 12px 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-right: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.parsel-row span:last-child {
    border-right: none;
}

.parsel-row strong {
    color: var(--white);
}

.parsel-header {
    background: rgba(13, 138, 62, 0.12);
}

.parsel-header span {
    color: var(--primary-light);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.parsel-total {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
}

.parsel-total span {
    color: var(--white);
    font-size: 0.85rem;
}

.parsel-status {
    color: var(--primary-light) !important;
    font-weight: 600;
}

/* ── Responsive ── */

@media (max-width: 991.98px) {
    .detail-hero {
        min-height: 400px;
    }

    .sticky-sidebar {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .detail-title {
        font-size: 1.7rem;
    }

    .detail-hero {
        min-height: 360px;
    }

    .gallery-img {
        height: 130px;
    }

    .sidebar-highlights {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Video Section ── */
.detail-video-wrapper {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-video-wrapper video,
.detail-video {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    border: none;
    display: block;
}


/* ── Video Section ── */
.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--dark-3);
}

.map-img-clickable {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    transition: var(--transition);
    cursor: zoom-in;
}

.map-img-clickable:hover {
    transform: scale(1.01);
}

.map-frame-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
    height: 380px;
}

.map-frame-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg) brightness(0.85) saturate(0.8);
}

.map-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 575.98px) {
    .map-double {
        grid-template-columns: 1fr;
    }

    .map-frame-container {
        height: 260px;
    }
}

/* ── Lightbox ── */
#lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#lb.active {
    display: flex;
}

#lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 4, 0.94);
    backdrop-filter: blur(8px);
}

#lb-box {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 60px;
}

#lb-img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 85vh;
}

#lb-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
    object-fit: contain;
    transition: opacity 0.15s ease;
}

#lb-prev,
#lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(6px);
}

#lb-prev {
    left: 6px;
}

#lb-next {
    right: 6px;
}

#lb-prev:hover,
#lb-next:hover {
    background: rgba(13, 138, 62, 0.4);
    border-color: rgba(13, 138, 62, 0.6);
}

#lb-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(6px);
    z-index: 2;
}

#lb-close:hover {
    background: rgba(224, 32, 32, 0.4);
    border-color: rgba(224, 32, 32, 0.6);
}

#lb-counter {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(2, 8, 4, 0.7);
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    padding: 4px 14px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    z-index: 2;
}

@media (max-width: 575.98px) {
    #lb-box {
        padding: 0 10px;
    }

    #lb-img {
        max-width: 100vw;
        max-height: 75vh;
        border-radius: 0;
    }

    #lb-prev,
    #lb-next {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
        background: rgba(13, 31, 20, 0.5);
    }

    #lb-prev {
        left: 4px;
    }

    #lb-next {
        right: 4px;
    }

    #lb-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }

    .bento-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 8px;
    }
}