/* ========================================
   detail.css — İlan Detay Sayfası Stilleri
   ======================================== */

/* --- Header always scrolled on detail page --- */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 15px 0 !important;
}

.header .logo { color: var(--primary-color); }
.header .nav-link { color: var(--primary-color); }
.header .hamburger { color: var(--primary-color); }

/* --- Breadcrumb --- */
.detail-breadcrumb {
    background-color: var(--bg-light);
    padding: 14px 0;
    margin-top: 72px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.detail-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-breadcrumb a {
    color: var(--text-muted);
    transition: color 0.25s;
}

.detail-breadcrumb a:hover { color: var(--accent-color); }
.detail-breadcrumb i.fa-chevron-right { font-size: 0.7rem; opacity: 0.5; }
.detail-breadcrumb a i.fa-home { margin-right: 4px; }
.detail-breadcrumb .current { color: var(--primary-color); font-weight: 500; }

/* --- Main Page Layout --- */
.detail-page {
    padding: 50px 0 80px;
    background-color: var(--bg-light);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 36px;
    align-items: start;
}

/* --- Reusable Card Wrapper --- */
.detail-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 36px;
    margin-bottom: 24px;
}

.detail-card:last-child { margin-bottom: 0; }

.detail-section-title {
    font-size: 1.3rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-light);
}

.detail-section-title i { color: var(--accent-color); }

/* =====================
   GALLERY
   ===================== */
.gallery-section { margin-bottom: 24px; }

.gallery-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 480px;
    background: #111;
    cursor: zoom-in;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.35s ease;
    display: block;
}

.gallery-main:hover img { transform: scale(1.03); }

.gallery-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--accent-color);
    color: #fff;
    padding: 6px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 3;
}

.gallery-expand {
    position: absolute;
    bottom: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    background: rgba(17,17,17,0.7);
    backdrop-filter: blur(6px);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.25s;
    z-index: 3;
}

.gallery-expand:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Thumbnails */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.thumb {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
    border: 2px solid transparent;
    transition: border-color 0.25s, transform 0.25s;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.thumb:hover { transform: translateY(-3px); }
.thumb:hover img { transform: scale(1.08); }

.thumb.active {
    border-color: var(--accent-color);
}

.thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(201,162,74,0);
    transition: background 0.25s;
}

.thumb.active::after {
    background: rgba(201,162,74,0.15);
}

/* =====================
   DESCRIPTION
   ===================== */
.description-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 1rem;
}

.description-text p:last-child { margin-bottom: 0; }

/* =====================
   AMENITIES
   ===================== */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition: background 0.25s, color 0.25s, transform 0.25s;
    border: 1px solid transparent;
}

.amenity-item:hover {
    background: rgba(201,162,74,0.08);
    border-color: rgba(201,162,74,0.3);
    transform: translateY(-2px);
    color: var(--primary-color);
}

.amenity-item i {
    color: var(--accent-color);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* =====================
   MAP
   ===================== */
.location-address {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.location-address i { color: var(--accent-color); }

.detail-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* =====================
   SIDEBAR — INFO CARD
   ===================== */
.detail-sidebar {
    position: sticky;
    top: 90px;
}

.info-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.info-card-top {
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--bg-light);
}

.info-badge {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.info-title {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.info-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.info-location i { color: var(--accent-color); }

.info-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 20px 32px;
    gap: 10px;
    border-bottom: 1px solid var(--bg-light);
    background: var(--bg-light);
}

.qs-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.qs-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.qs-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
}

.qs-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Info List */
.info-list {
    padding: 20px 32px;
    border-bottom: 1px solid var(--bg-light);
}

.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.07);
    font-size: 0.9rem;
}

.info-list li:last-child { border-bottom: none; }

.il-label {
    color: var(--text-muted);
    font-weight: 400;
}

.il-val {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Action Buttons */
.info-actions {
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid var(--bg-light);
}

.btn-full {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
}

.btn-whatsapp {
    background-color: #25d366;
    color: #fff;
    border-color: #25d366;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    border-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37,211,102,0.25);
    color: #fff;
}

/* Agent Card */
.agent-card {
    padding: 20px 32px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.agent-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(201,162,74,0.12);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.agent-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agent-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent-info strong {
    font-size: 0.95rem;
    color: var(--primary-color);
}

.agent-phone {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* =====================
   SIMILAR PROPERTIES
   ===================== */
.similar-properties {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.similar-properties .section-title {
    margin-bottom: 50px;
}

/* =====================
   LIGHTBOX
   ===================== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5,5,5,0.96);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.open {
    display: flex;
}

.lb-img-wrap {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: lbFadeIn 0.3s ease;
}

@keyframes lbFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.lb-img-wrap img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.lb-caption {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.lb-close,
.lb-prev,
.lb-next {
    position: fixed;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.25s, transform 0.25s;
}

.lb-close { top: 24px; right: 24px; border-radius: 10px; font-size: 1.2rem; }
.lb-prev  { left: 24px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 24px; top: 50%; transform: translateY(-50%); }

.lb-close:hover { background: rgba(201,162,74,0.8); }
.lb-prev:hover, .lb-next:hover { background: rgba(201,162,74,0.8); }

/* =====================
   IMAGE CHANGE FADE
   ===================== */
.gallery-main img.fade-out {
    opacity: 0;
    transform: scale(1.04);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1100px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }

    .info-card {
        max-width: 600px;
        margin: 0 auto;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-main { height: 380px; }
}

@media (max-width: 768px) {
    .gallery-main { height: 260px; }

    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .detail-card { padding: 24px 20px; }
    .info-card-top, .info-actions, .info-list, .agent-card { padding-left: 20px; padding-right: 20px; }
    .quick-stats { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 480px) {
    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
    .amenities-grid { grid-template-columns: 1fr 1fr; }
}
