/* =========================================================
   neredeo.com - ilan detay sayfaları (görsel yenileme)
   detay, detay-hizmet, detay-is-ilani, detay-mekan,
   detay-konut, detay-isyeri, detay-arsa, detay-otomobil, detay-suv
   Mevcut Bootstrap yapısı korunur; sadece .nd-detay kapsamında yeniden stillenir.
   Değişkenler nd-tema.css içinde.
   ========================================================= */

body {
    background: var(--nd-bg);
}

.nd-detay {
    font-family: var(--nd-font);
    color: var(--nd-ink);
    padding-top: 16px;
}

    .nd-detay a {
        text-decoration: none;
    }

    /* ---------- Yol (breadcrumb) ---------- */
    .nd-detay .nd-dt-crumbs {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 6px;
        margin: 0 0 6px !important;
        padding: 0 !important;
        border: 0 !important;
        opacity: 1 !important;
        font-size: 14px !important;
        color: var(--nd-muted);
    }

        .nd-detay .nd-dt-crumbs h2 {
            display: flex;
            align-items: center;
            margin: 0;
            font-size: 14px;
            font-weight: 500;
        }

        .nd-detay .nd-dt-crumbs a {
            color: var(--nd-muted) !important;
            font-size: 14px !important;
            font-weight: 500 !important;
        }

            .nd-detay .nd-dt-crumbs a:hover {
                color: var(--nd-navy) !important;
                text-decoration: underline;
            }

        .nd-detay .nd-dt-crumbs span {
            color: #A3A6C2;
            font-size: 14px !important;
        }

        /* boş linkler arasında "/ /" kalmasın */
        .nd-detay .nd-dt-crumbs h2:has(> a:empty) {
            display: none;
        }

        .nd-detay .nd-dt-crumbs > a:not(:first-child):not(:empty)::before {
            content: "›";
            margin-right: 6px;
            color: #A3A6C2;
        }

    /* ---------- Başlık ---------- */
    .nd-detay .nd-dt-h1 {
        margin: 4px 0 14px;
        font-family: var(--nd-font);
        font-size: 26px;
        font-weight: 800;
        line-height: 1.25;
        letter-spacing: -0.01em;
        color: var(--nd-ink);
    }

        .nd-detay .nd-dt-h1 span {
            display: inline;
            font: inherit;
            color: inherit;
        }

    /* Eski siyah "shine" şeridin yerine sade başlık alanı */
    .nd-detay .nd-dt-title {
        background: none !important;
        padding-left: 0;
        -webkit-animation: none !important;
        animation: none !important;
        -webkit-background-clip: border-box !important;
        color: var(--nd-ink) !important;
    }

    /* ---------- Fotoğraf galerisi ---------- */
    .nd-detay #demo,
    .nd-detay #demoBos {
        background: var(--nd-paper);
        border: 1px solid var(--nd-line) !important;
        border-radius: 12px;
        overflow: hidden;
    }

        .nd-detay #demo .carousel-inner {
            border: 0 !important;
        }

        .nd-detay #demo img {
            border-radius: 0 !important;
        }

        .nd-detay #demo .carousel-item button {
            background: var(--nd-paper) !important;
        }

        .nd-detay #demo .carousel-control-prev,
        .nd-detay #demo .carousel-control-next {
            width: 56px;
            opacity: 1;
        }

            .nd-detay #demo .carousel-control-prev::after,
            .nd-detay #demo .carousel-control-next::after {
                font-family: "bootstrap-icons";
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background: rgba(255, 255, 255, .92);
                box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
                color: var(--nd-navy);
                font-size: 18px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .nd-detay #demo .carousel-control-prev::after {
                content: "\F284";
            }

            .nd-detay #demo .carousel-control-next::after {
                content: "\F285";
            }

            .nd-detay #demo .carousel-control-prev-icon,
            .nd-detay #demo .carousel-control-next-icon {
                display: none;
            }

        .nd-detay #demo .carousel-indicators [data-bs-target] {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

    /* Küçük resim şeridi */
    .nd-detay #demo2 {
        background: var(--nd-paper);
        border: 1px solid var(--nd-line) !important;
        border-radius: 12px;
        overflow: hidden;
    }

        .nd-detay #demo2 .carousel-inner {
            border: 0 !important;
        }

        .nd-detay #demo2 img {
            border-radius: 6px;
        }

        .nd-detay #demo2 button.active img {
            outline: 3px solid var(--nd-amber);
            outline-offset: -3px;
        }

    /* ---------- Bilgi tablosu (.no-table) ---------- */
    .nd-detay .no-table {
        background: var(--nd-paper);
        border: 1px solid var(--nd-line);
        border-radius: 12px;
        overflow: hidden;
    }

        .nd-detay .no-table div:nth-of-type(odd) div,
        .nd-detay .no-table div:nth-of-type(even) div {
            background: transparent;
        }

        .nd-detay .no-table .row {
            margin: 0 !important;
            border-top: 1px solid var(--nd-line);
        }

        .nd-detay .no-table > .row:first-child,
        .nd-detay .no-table > div:first-child > .row:first-child {
            border-top: 0;
        }

        .nd-detay .no-table .text-proje.fw-bold {
            color: var(--nd-muted) !important;
            font-weight: 600 !important;
        }

        .nd-detay .no-table .fs-7,
        .nd-detay .no-table .fs-8 {
            font-size: 14px !important;
        }

        .nd-detay .no-table .text-dark-emphasis {
            color: var(--nd-ink) !important;
        }

    /* ---------- Fiyat ---------- */
    .nd-detay [id$="LblFiyat"],
    .nd-detay [id$="LblFiyatDemo1"] {
        color: var(--nd-navy) !important;
        font-family: var(--nd-font) !important;
        font-weight: 800 !important;
    }

    /* ---------- Satıcı / iletişim ---------- */
    .nd-detay .btn-proje,
    .hkn .btn-proje {
        background: var(--nd-navy) !important;
        border-color: var(--nd-navy) !important;
        color: #fff !important;
        border-radius: 8px !important;
        font-weight: 600;
    }

        .nd-detay .btn-proje:hover {
            background: var(--nd-navy-900) !important;
        }

    .nd-detay .btn.border-proje,
    .hkn .btn.border-proje {
        border-color: var(--nd-navy) !important;
        border-radius: 8px !important;
        color: var(--nd-navy) !important;
        font-weight: 600;
    }

    .nd-detay .text-proje2 {
        color: var(--nd-amber-600) !important;
    }

    .nd-detay .border-proje2 {
        border-color: var(--nd-line) !important;
    }

    .nd-detay [id$="LnkProfil"],
    .nd-detay [id$="LnkProfil"] span {
        color: var(--nd-ink) !important;
        font-weight: 700;
    }

    .nd-detay img[id*="SrcProfil"] {
        border-radius: 10px;
        background: var(--nd-paper);
        border: 1px solid var(--nd-line);
    }

    /* ---------- Sekme butonları (Açıklama / Konum / Mesaj / Favori / Paylaş) ---------- */
    .nd-detay #accordionFlushExample {
        gap: 8px;
    }

        .nd-detay #accordionFlushExample > div:not(.accordion-collapse) {
            flex: 1 1 0;
            min-width: 0;
            margin: 0 !important;
            padding: 12px 8px !important;
            background: var(--nd-paper) !important;
            border: 1px solid var(--nd-line);
            border-radius: 10px;
            color: var(--nd-ink);
            font-size: 14px !important;
            font-weight: 600;
            cursor: pointer;
        }

            .nd-detay #accordionFlushExample > div:not(.accordion-collapse):hover {
                border-color: var(--nd-navy);
            }

            .nd-detay #accordionFlushExample > div a,
            .nd-detay #accordionFlushExample > div span {
                color: var(--nd-ink) !important;
                font-size: 14px !important;
            }

    .nd-detay .accordion1.custom-active,
    .nd-detay #accordionFlushExample > .accordion1.custom-active {
        background: var(--nd-navy) !important;
        border-color: var(--nd-navy);
        color: #fff !important;
    }

        .nd-detay .accordion1.custom-active span {
            color: #fff !important;
        }

    .nd-detay #accordionFlushExample > .accordion-collapse {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .nd-detay .accordion-collapse {
        background: var(--nd-paper);
        border: 1px solid var(--nd-line);
        border-radius: 12px;
        padding: 18px 20px;
        line-height: 1.6;
    }

    /* Mobil eylem satırı (Favori / Mesaj / Ara / Paylaş) */
    .nd-detay .d-sm-none .border-top,
    .nd-detay .d-sm-none .border-bottom {
        border-color: var(--nd-line) !important;
        background: var(--nd-paper);
    }

    .nd-detay .d-sm-none .bi {
        font-size: 20px;
    }

    /* ---------- Özellik listeleri (Cephe, Çevre/Muhit, İç/Dış özellikler...) ---------- */
    .nd-detay .bg-proje.bg-opacity-80.text-white {
        background: var(--nd-paper) !important;
        color: var(--nd-ink) !important;
        border: 1px solid var(--nd-line);
        border-bottom: 0;
        border-radius: 12px 12px 0 0;
        padding: 14px 18px !important;
        font-size: 16px;
        text-transform: none;
    }

        .nd-detay .bg-proje.bg-opacity-80.text-white + div {
            background: var(--nd-paper);
            border: 1px solid var(--nd-line) !important;
            border-top: 1px solid var(--nd-line) !important;
            border-radius: 0 0 12px 12px;
            padding: 14px 18px !important;
        }

    .nd-detay .mystyle {
        color: var(--nd-ink) !important;
        font-size: 14px !important;
        line-height: 2;
    }

        .nd-detay .mystyle input[type=checkbox] {
            accent-color: var(--nd-navy);
            width: 16px;
            height: 16px;
            vertical-align: -3px;
            pointer-events: none;
        }

        .nd-detay .mystyle label {
            margin: 0 18px 0 6px;
        }

        /* İşaretsiz özellikler soluk, işaretliler belirgin */
        .nd-detay .mystyle input:not(:checked) + label {
            color: #A3A6C2;
        }

        .nd-detay .mystyle input:checked + label {
            color: var(--nd-ink);
            font-weight: 600;
        }

    /* ---------- Reklam ---------- */
    .nd-detay img[src*="reklamdikey"] {
        height: auto !important;
        border-radius: 10px !important;
        border: 1px solid var(--nd-line);
    }

/* ---------- Tam ekran galeri (hkn) ---------- */
.hkn {
    font-family: var(--nd-font);
}

/* ---------- Duyarlı ---------- */
@media (max-width: 767.98px) {
    .nd-detay {
        padding-top: 10px;
    }

        .nd-detay .nd-dt-h1 {
            font-size: 20px;
        }

        .nd-detay .no-table {
            border-radius: 10px;
        }
}
