/* Balcity Tokur-Style Detail Page CSS */

:root {
    --balcity-orange: #FF3600;
    --balcity-orange-hover: #e03000;
    --balcity-dark: #1a1a1a;
    --balcity-darker: #111111;
    --balcity-whatsapp: #25D366;
    --balcity-whatsapp-hover: #1ebd59;
}

body {
    background-color: #f7f9fc; /* Light, premium background */
    font-family: 'Outfit', sans-serif !important;
}

/* Page Layout */
.detaypage-main {
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography & Titles */
.ilan-title-tokur {
    color: #1a1a1a !important;
    line-height: 1.3;
}

.ilan-location-tokur {
    font-weight: 400;
    color: #555555 !important;
}

.detay-ilan-fiyati {
    letter-spacing: -0.5px;
    color: #FF3600 !important;
}

/* Action Buttons */
.top-action-buttons .btn {
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-like-top:hover, .btn-like-top.active {
    background-color: #FF3600 !important;
    color: #fff !important;
    border-color: #FF3600 !important;
}

/* Gallery Section */
.gallery-section {
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 10px;
    border-radius: 8px;
}

.thumb-item {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    opacity: 0.7;
}

.thumb-item:hover, .thumb-item.border-balcity-orange, .thumb-item.border-danger {
    opacity: 1;
    border-color: #FF3600 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Share Dropdown */
.share-link {
    font-weight: 500;
    transition: background 0.2s;
}
.share-link:hover {
    background-color: #f1f5f9;
}

/* Sections */
.description-section, .comments-section, #teklif-ver {
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 24px;
    border-radius: 8px;
}

/* Sidebar Box (Specs) - ARKA PLAN KORUNUR, TÜM YAZILAR BEYAZ TONDA */
.specs-box-dark {
    background: rgba(39, 54, 79, .96) !important; /* Kullanıcının korunsun dediği teknik özellikler arka planı */
    color: #ffffff !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    font-size: 13.5px;
}

.specs-box-dark h5,
.specs-box-dark h5 i,
.specs-box-dark .specs-dl,
.specs-box-dark .specs-dl dt,
.specs-box-dark .specs-dl dd,
.specs-box-dark .specs-dl span {
    color: #ffffff !important;
}

.specs-box-dark .specs-dl dt {
    font-weight: 400;
    color: #ffffff !important;
    opacity: 0.92;
}

.specs-box-dark .specs-dl dd {
    font-weight: 700;
    color: #ffffff !important;
}

.specs-box-dark hr {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Balcity Kurumsal Renk Sınıfları (#FF3600 Turuncu & #1a1a1a Alt Footer Rengi) */
.bg-balcity-orange {
    background-color: #FF3600 !important;
    color: #ffffff !important;
}

.text-balcity-orange {
    color: #FF3600 !important;
}

.border-balcity-orange {
    border-color: #FF3600 !important;
}

.bg-balcity-dark {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.text-balcity-dark {
    color: #1a1a1a !important;
}

.border-balcity-dark {
    border-color: #1a1a1a !important;
}

.btn-balcity-orange {
    background-color: #FF3600 !important;
    border-color: #FF3600 !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.btn-balcity-orange:hover, .btn-balcity-orange:focus {
    background-color: #e03000 !important;
    border-color: #e03000 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 54, 0, 0.25);
}

.btn-outline-balcity-orange {
    color: #FF3600 !important;
    border-color: #FF3600 !important;
    background-color: transparent !important;
    transition: all 0.3s ease;
}

.btn-outline-balcity-orange:hover, .btn-outline-balcity-orange:focus {
    background-color: #FF3600 !important;
    border-color: #FF3600 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 54, 0, 0.25);
}

.btn-balcity-dark {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.btn-balcity-dark:hover, .btn-balcity-dark:focus {
    background-color: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
}

.btn-outline-balcity-dark {
    color: #1a1a1a !important;
    border-color: #1a1a1a !important;
    background-color: transparent !important;
    transition: all 0.3s ease;
}

.btn-outline-balcity-dark:hover, .btn-outline-balcity-dark:focus {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: #ffffff !important;
}

/* WhatsApp Butonu - Her zaman yeşil kalmalı */
.btn-whatsapp-green {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.btn-whatsapp-green:hover, .btn-whatsapp-green:focus {
    background-color: #1ebd59 !important;
    border-color: #1ebd59 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Agent Sidebar */
.agent-sidebar {
    border: 1px solid #eaeaea;
}

.agent-image {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #FF3600 !important;
}

/* Calculator Box */
.calculator-sidebar-v2 {
    border: 1px solid #eaeaea;
}

.results-box {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
}

/* Form inputs focus styles */
.teklif-form .form-control:focus,
#tourRequestForm .form-control:focus,
#directMessageForm .form-control:focus {
    border-color: #FF3600 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 54, 0, 0.15) !important;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .ilan-title-tokur {
        font-size: 24px !important;
    }
    
    .detay-ilan-fiyati {
        font-size: 22px !important;
    }

    .gallery-container .carousel-item img {
        height: 300px !important;
    }
}


/* ------------------------------------------------ */
/* Sahibinden.com Birebir Fotoğraf Galerisi & Modal */
/* ------------------------------------------------ */
body.sg-modal-open {
    overflow: hidden !important;
}

.gallery-main-img {
    transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-main-img:hover {
    filter: brightness(0.96);
}

.sahibinden-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0b0d12;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    user-select: none;
    -webkit-user-select: none;
}

/* Header */
.sg-header {
    height: 60px;
    background: #14171f;
    border-bottom: 1px solid #232734;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
    color: #ffffff;
    flex-shrink: 0;
}

.sg-header-left {
    display: flex;
    flex-direction: column;
    max-width: 45%;
}

.sg-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sg-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: #9aa1b2;
    margin-top: 2px;
}

.sg-price {
    color: var(--balcity-orange, #FF3600);
    font-weight: 700;
    font-size: 14.5px;
}

.sg-no {
    color: #c4c9d4;
}

.sg-header-center {
    display: flex;
    align-items: center;
}

.sg-counter {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.sg-counter strong, .sg-counter span#sgCurrentIdx {
    color: var(--balcity-orange, #FF3600);
}

.sg-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sg-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d1d5db;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.sg-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.sg-btn-close {
    background: rgba(255, 54, 0, 0.15);
    border-color: rgba(255, 54, 0, 0.4);
    color: #ff6b47;
    margin-left: 8px;
}

.sg-btn-close:hover {
    background: #FF3600;
    color: #ffffff;
    border-color: #FF3600;
}

/* Stage / Sahne */
.sg-stage {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.sg-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sg-img-wrapper img {
    max-width: 90vw;
    max-height: calc(100vh - 180px);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.2s ease-out;
    cursor: zoom-in;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.sg-img-wrapper.is-zoomed img {
    cursor: grab;
    max-width: none;
    max-height: none;
}

.sg-img-wrapper.is-zoomed.is-dragging img {
    cursor: grabbing;
}

/* Nav Buttons */
.sg-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(20, 23, 31, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 15;
    backdrop-filter: blur(4px);
}

.sg-nav-btn:hover {
    background: var(--balcity-orange, #FF3600);
    border-color: var(--balcity-orange, #FF3600);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.sg-nav-prev {
    left: 20px;
}

.sg-nav-next {
    right: 20px;
}

/* Footer / Thumbs Bar */
.sg-footer {
    position: relative;
    background: #14171f;
    border-top: 1px solid #232734;
    padding: 8px 16px 12px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
}

.sg-footer.collapsed {
    transform: translateY(calc(100% - 30px));
}

.sg-toggle-strip-wrap {
    text-align: center;
    margin-bottom: 6px;
}

.sg-toggle-strip-btn {
    background: #232734;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #b0b7c3;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sg-toggle-strip-btn:hover {
    background: #313748;
    color: #ffffff;
}

.sg-thumbs-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.sg-thumb-scroll-btn {
    background: rgba(35, 39, 52, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 32px;
    height: 60px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sg-thumb-scroll-btn:hover {
    background: var(--balcity-orange, #FF3600);
    border-color: var(--balcity-orange, #FF3600);
}

.sg-thumbs-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #3b4254 transparent;
    padding: 4px 2px;
    flex: 1;
}

.sg-thumbs-track::-webkit-scrollbar {
    height: 4px;
}
.sg-thumbs-track::-webkit-scrollbar-thumb {
    background: #3b4254;
    border-radius: 4px;
}

.sg-thumb-item {
    position: relative;
    width: 82px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    opacity: 0.55;
    transition: all 0.2s ease;
}

.sg-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.sg-thumb-num {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    line-height: 1;
}

.sg-thumb-item:hover {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.4);
}

.sg-thumb-item.active {
    opacity: 1;
    border-color: var(--balcity-orange, #FF3600) !important;
    transform: scale(1.04);
    box-shadow: 0 0 10px rgba(255, 54, 0, 0.4);
}

/* ------------------------------------------------ */
/* Bildirim / Toast CSS                             */
/* ------------------------------------------------ */
.balcity-toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 99999999;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
    opacity: 0;
    pointer-events: none;
}

.balcity-toast-container.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.balcity-toast {
    background: #1a1a1a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .sg-header {
        padding: 6px 12px;
        height: auto;
        min-height: 54px;
        flex-wrap: wrap;
        gap: 6px;
    }
    .sg-header-left {
        max-width: 100%;
        order: 1;
        width: 100%;
    }
    .sg-header-center {
        order: 2;
    }
    .sg-header-right {
        order: 3;
    }
    .sg-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    .sg-nav-prev { left: 10px; }
    .sg-nav-next { right: 10px; }
    .sg-img-wrapper img {
        max-width: 96vw;
        max-height: calc(100vh - 200px);
    }
    .sg-thumb-item {
        width: 65px;
        height: 48px;
    }
}