/* listing-detail.html özel stilleri – inline <style> bloğundan taşındı */

/* ---- Gallery Flex Layout (main on top, thumbnails below, horizontal strip) ---- */
.gallery-flex-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}
.gallery-main-col {
    width: 100%;
    min-width: 0;
}
.gallery-thumb-col {
    width: 100%;
    flex-shrink: 0;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}
.gallery-thumb-col::-webkit-scrollbar { height: 5px; }
.gallery-thumb-col::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

/* sync1 — main image */
#lightgallery #sync1 .dlab-thum-bx {
    height: 520px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border-radius: 12px;
}
#lightgallery #sync1 .dlab-thum-bx img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* sync2 — horizontal thumbnail strip below main */
.gallery-thumb-col #sync2.owl-carousel {
    display: block !important;
    width: 100% !important;
}
.gallery-thumb-col #sync2 .owl-stage-outer {
    overflow: visible !important;
    height: auto !important;
}
.gallery-thumb-col #sync2 .owl-stage {
    display: flex !important;
    flex-direction: row !important;
    transform: none !important;
    transition: none !important;
    gap: 6px;
    width: 100% !important;
}
.gallery-thumb-col #sync2 .owl-item {
    width: 80px !important;
    height: 80px;
    flex-shrink: 0;
}
.gallery-thumb-col #sync2 .dlab-media {
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.gallery-thumb-col #sync2 .owl-item.current .dlab-media {
    border-color: var(--color-primary, #e84343);
}
.gallery-thumb-col #sync2 .dlab-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Features sidebar (col-3, single column) ---- */
.listing-details-panel--sidebar .features-grid--sidebar {
    grid-template-columns: 1fr;
    gap: 8px;
}
@media (min-width: 992px) {
    .listing-details-panel--sidebar {
        max-height: none;
        overflow: visible;
    }
    .listing-details-panel--sidebar .features-grid--sidebar {
        gap: 6px;
    }
    .listing-details-panel--sidebar .feature-chip {
        padding: 8px 10px;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
    }
    .listing-details-panel--sidebar .feature-chip .feature-label {
        font-size: 0.65rem;
        margin-bottom: 0;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .listing-details-panel--sidebar .feature-chip .feature-value {
        font-size: 0.8rem;
        min-width: 0;
        word-break: break-word;
        margin-left: auto;
        text-align: right;
    }
    .listing-details-panel--sidebar .feature-chip--center {
        justify-content: center;
        text-align: center;
    }
    .listing-details-panel--sidebar .feature-chip--center .feature-value {
        margin-left: 0;
        text-align: center;
    }
    #listing-detail-features-col {
        overflow-y: auto;
        min-height: 0;
    }
}

/* ---- Listing Header ---- */
.listing-header {
    padding: 10px 0 18px;
    border-bottom: 1px solid #eee;
}
.listing-main-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.3;
}
.listing-address {
    color: #777;
    font-size: 0.93rem;
    margin-bottom: 0;
}
.listing-address i {
    color: var(--color-primary, #e84343);
}

/* ---- Details Panel ---- */
.listing-details-panel {
    padding: 4px 0;
}

/* ---- Price Badge ---- */
.price-badge {
    display: inline-flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--color-primary, #c79d3b) 0%, var(--color-primary, #c79d3b) 42%, #a77f24 58%, #8f6b1e 100%);
    color: #fff;
    border-radius: 12px;
    padding: 12px 22px;
    margin-bottom: 22px;
    box-shadow: 0 4px 16px rgba(232,67,67,0.18);
}
.price-badge .price-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 2px;
}
.price-badge .price-value {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.price-badge--sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.price-badge--sidebar .price-value {
    text-align: center;
}

/* ---- Feature Chips Grid ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.feature-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #f8f9fc;
    border: 1px solid #eaedf3;
    border-radius: 10px;
    padding: 10px 12px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-chip:hover {
    border-color: var(--color-primary, #e84343);
    box-shadow: 0 2px 10px rgba(232,67,67,0.08);
}
.feature-chip .feature-label {
    font-size: 0.7rem;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.feature-chip .feature-value {
    font-size: 0.88rem;
    color: #2d2d2d;
    font-weight: 600;
}
.feature-chip--center {
    justify-content: center;
    text-align: center;
}
.feature-chip--center .feature-value {
    margin-left: 0;
    text-align: center;
}

/* ---- Listing Sidebar ---- */
.listing-sidebar {
    position: sticky;
    top: 90px;
}

/* ---- Agent Card (dlab-team3 override) ---- */
.listing-detail .dlab-team3 .dlab-media {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}
.listing-detail .dlab-team3 .dlab-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    max-height: 360px;
    object-fit: contain;
    object-position: center center;
    background: #f5f5f5;
    display: block;
    transition: transform 0.4s ease;
}
.listing-detail .dlab-team3:hover .dlab-media img {
    transform: scale(1.04);
}
.listing-detail .dlab-team3 {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid #eaedf3;
}

/* ---- Tabs ---- */
.listing-tabs-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    border: 1px solid #eaedf3;
    overflow: hidden;
    margin-bottom: 32px;
}
.listing-tabs-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #eaedf3;
    background: #fafbfc;
}
.listing-tabs-nav li a {
    display: block;
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}
.listing-tabs-nav li a:hover,
.listing-tabs-nav li.active a,
.listing-tabs-nav li a.active {
    color: var(--color-primary, #e84343);
    border-bottom-color: var(--color-primary, #e84343);
}
.listing-tab-content {
    padding: 28px 24px;
}
.listing-description {
    line-height: 1.8;
    color: #555;
    font-size: 0.95rem;
}
.map-wrap {
    border-radius: 10px;
    overflow: hidden;
}

/* ---- Other Listings Section Header ---- */
.other-listings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.other-listings-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
}
.see-all-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary, #e84343);
    text-decoration: none;
    transition: opacity 0.2s;
}
.see-all-link:hover { opacity: 0.75; }

/* ---- Listing Cards (Carousel) ---- */
.listing-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eaedf3;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}
.listing-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.listing-card-img a {
    display: block;
    height: 100%;
}
.listing-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.listing-card:hover .listing-card-img img {
    transform: scale(1.06);
}
.listing-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-primary, #e84343);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
}
.listing-card-body {
    padding: 14px 14px 12px;
}
.listing-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary, #e84343);
    margin-bottom: 6px;
}
.listing-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.listing-card-meta span {
    font-size: 0.72rem;
    background: #f3f4f8;
    color: #666;
    border-radius: 4px;
    padding: 2px 8px;
    font-weight: 500;
}
.listing-card-address {
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.listing-card-address i { color: var(--color-primary, #e84343); }
.listing-card-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary, #e84343);
    text-decoration: none;
    transition: opacity 0.2s;
}
.listing-card-link:hover { opacity: 0.75; }

/* ---- Wide Features Grid ---- */
.features-grid--wide {
    grid-template-columns: repeat(3, 1fr);
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    #lightgallery #sync1 .dlab-thum-bx { height: 400px; }
    .features-grid--wide { grid-template-columns: repeat(2, 1fr); }
    .listing-details-panel--sidebar { max-height: none; overflow: visible; }
    .listing-details-panel--sidebar .features-grid--sidebar { grid-template-columns: repeat(2, 1fr); }
    .listing-detail .dlab-team3 .dlab-media img { max-height: 300px; }
}
@media (max-width: 768px) {
    .gallery-flex-wrap { flex-direction: column; }
    .gallery-main-col { width: 100%; }
    .gallery-thumb-col { width: 100%; scroll-snap-type: x mandatory; }
    .gallery-thumb-col #sync2 .owl-stage { flex-direction: row !important; gap: 6px; }
    .gallery-thumb-col #sync2 .owl-item { width: 80px !important; height: 60px; scroll-snap-align: start; }
    .gallery-thumb-col #sync2 .dlab-media { height: 60px; }
    #lightgallery #sync1 .dlab-thum-bx { height: auto; aspect-ratio: 4/3; }
    .features-grid--wide { grid-template-columns: repeat(2, 1fr); }
    .listing-sidebar { position: static; }
    .listing-tabs-nav li a { padding: 12px 18px; font-size: 0.85rem; }
    .listing-tab-content { padding: 20px 16px; }
    .listing-detail .dlab-team3 .dlab-media img { max-height: 260px; }
}
@media (max-width: 576px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid--wide { grid-template-columns: repeat(2, 1fr); }
    .listing-main-title { font-size: 1.3rem; }
    .price-badge .price-value { font-size: 1.2rem; }
    .price-badge { padding: 8px 12px; margin-bottom: 10px; }
    .gallery-thumb-col #sync2 .owl-item { width: 68px !important; height: 52px; }
    .gallery-thumb-col #sync2 .dlab-media { height: 52px; }
    .listing-tabs-nav li a { padding: 10px 12px; font-size: 0.78rem; }
    .listing-tab-content { padding: 16px 12px; }
}
@media (max-width: 400px) {
    .gallery-thumb-col #sync2 .owl-item { width: 58px !important; height: 44px; }
    .gallery-thumb-col #sync2 .dlab-media { height: 44px; }
    .listing-main-title { font-size: 1.1rem; }
}
