/* =========================================================
   neredeo.com - arama, haritada emlak, firma/mağaza profili
   Değişkenler nd-tema.css içinde.
   ========================================================= */

body {
    background: var(--nd-bg);
}

.nd-sayfa {
    font-family: var(--nd-font);
    color: var(--nd-ink);
    padding-top: 18px;
}

    .nd-sayfa a {
        text-decoration: none;
    }

    .nd-sayfa span {
        display: inline;
        word-break: normal;
    }

    .nd-sayfa h1 {
        margin: 0;
        font-family: var(--nd-font);
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -0.01em;
        color: var(--nd-ink);
    }

/* Yol (nd-liste.css yüklü olmayan sayfalar için de) */
.nd-sayfa .nd-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--nd-muted);
}

    .nd-sayfa .nd-crumbs a {
        color: var(--nd-muted);
    }

    .nd-sayfa .nd-crumbs .bi {
        font-size: 11px;
        align-self: center;
    }

/* ================= ARAMA ================= */
.nd-arama-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 24px;
}

.nd-arama-box {
    position: relative;
    display: flex;
    flex: 0 1 460px;
    height: 48px;
    border: 2px solid var(--nd-navy);
    border-radius: 10px;
    background: var(--nd-paper);
    overflow: hidden;
}

    .nd-arama-box:focus-within {
        box-shadow: 0 0 0 3px rgba(249, 178, 51, .45);
    }

    .nd-arama-box .bi {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--nd-muted);
    }

    .nd-arama-box input {
        flex: 1 1 auto;
        min-width: 0;
        border: 0;
        outline: 0;
        padding: 0 12px 0 40px;
        font: 500 15px/1 var(--nd-font);
        color: var(--nd-ink);
        background: transparent;
    }

    .nd-arama-box button {
        border: 0;
        padding: 0 20px;
        background: var(--nd-navy);
        color: #fff;
        font: 600 15px/1 var(--nd-font);
        cursor: pointer;
    }

.nd-notice {
    display: block !important;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 10px;
    background: var(--nd-amber-050);
    border: 1px solid #F3D48F;
    color: #6B4A00;
    font-size: 15px;
}

    .nd-notice:empty {
        display: none !important;
    }

.nd-arama-not {
    margin: 16px 0 12px;
    color: var(--nd-muted);
    font-size: 14px;
}

.nd-sr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.nd-sr-card {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 20px;
    background: var(--nd-paper);
    border: 1px solid var(--nd-line);
    border-radius: 12px;
    color: var(--nd-ink) !important;
    transition: border-color .15s ease;
}

    .nd-sr-card:hover {
        border-color: var(--nd-navy);
    }

.nd-sr-ico {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
    border-radius: 12px;
    background: var(--nd-amber-050);
    color: var(--nd-navy);
    font-size: 22px;
}

.nd-sr-title {
    font-size: 18px;
    font-weight: 800;
}

.nd-sr-text {
    color: var(--nd-muted);
    font-size: 14px;
    line-height: 1.45;
}

    .nd-sr-text strong {
        color: var(--nd-ink);
    }

.nd-sr-go {
    margin-top: auto;
    padding-top: 8px;
    color: var(--nd-navy);
    font-weight: 700;
    font-size: 15px;
}

.nd-sr-help {
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px dashed #C9CBE0;
    border-radius: 12px;
    color: var(--nd-muted);
    font-size: 15px;
    line-height: 1.6;
}

    .nd-sr-help strong {
        display: block;
        color: var(--nd-ink);
    }

    .nd-sr-help a {
        color: var(--nd-navy);
        font-weight: 600;
        text-decoration: underline !important;
        text-underline-offset: 3px;
    }

/* ================= HARİTADA EMLAK ================= */
.nd-harita-head {
    padding-bottom: 0;
}

.nd-harita-not {
    margin: 6px 0 16px;
    color: var(--nd-muted);
    font-size: 15px;
}

.nd-harita {
    max-width: var(--nd-wrap);
    margin: 0 auto !important;
    padding: 0 8px;
    font-family: var(--nd-font);
}

    .nd-harita #filtre_panel.nd-filtre {
        padding: 0 12px !important;
    }

    .nd-harita .nd-harita-map {
        padding: 0 12px;
    }

    .nd-harita #mapi {
        border-radius: 12px;
        border: 1px solid var(--nd-line);
        overflow: hidden;
    }

/* Harita filtresindeki min-max kutuları yan yana sığsın */
.nd-harita #filtre_panel input[type=text][style*="width: 60px"] {
    width: calc(50% - 10px) !important;
    display: inline-block;
}

/* ================= FİRMA / MAĞAZA PROFİLİ ================= */
.nd-profil {
    font-family: var(--nd-font);
    color: var(--nd-ink);
    padding-top: 18px;
}

    .nd-profil a {
        text-decoration: none;
    }

    /* Kapak + logo + firma adı */
    .nd-profil > .position-relative {
        border-radius: 14px 14px 0 0;
        overflow: hidden;
        background: linear-gradient(120deg, var(--nd-navy) 0%, #424788 100%);
    }

        .nd-profil > .position-relative > img[id$="SrcKapak"] {
            display: block;
            height: 200px !important;
            opacity: .35 !important;
            border-radius: 0 !important;
            background: transparent !important;
        }

        .nd-profil > .position-relative > .position-absolute {
            top: auto !important;
            bottom: 20px;
            transform: none !important;
            padding: 0 24px;
            gap: 16px;
        }

    .nd-profil img[id$="SrcLogo"] {
        width: 96px !important;
        height: 96px !important;
        margin: 0 !important;
        border: 4px solid #fff;
        background: #fff;
        object-fit: contain;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    }

    .nd-profil [id$="LblKullaniciAdi"] {
        color: #fff !important;
        font-size: 26px !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
    }

    /* Sekmeler */
    .nd-profil .nd-pf-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        background: var(--nd-paper);
        border: 1px solid var(--nd-line);
        border-top: 0;
        border-radius: 0 0 14px 14px;
        padding: 0 12px !important;
        scrollbar-width: none;
    }

        .nd-profil .nd-pf-tabs::-webkit-scrollbar {
            display: none;
        }

        .nd-profil .nd-pf-tabs > .col {
            flex: 0 0 auto;
            width: auto;
            padding: 0 !important;
            white-space: nowrap;
        }

    .nd-profil .nd-pf-tab {
        display: block;
        padding: 16px 14px 13px;
        border-bottom: 3px solid transparent;
        color: var(--nd-ink) !important;
        font-size: 15px;
        font-weight: 600;
    }

        .nd-profil .nd-pf-tab:hover {
            color: var(--nd-navy) !important;
        }

        .nd-profil .nd-pf-tab.active {
            color: var(--nd-navy) !important;
            border-bottom-color: var(--nd-amber);
        }

    .nd-profil .nd-pf-tabs > .col:last-child {
        margin-left: auto;
    }

    .nd-profil .nd-pf-fav {
        display: flex;
        align-items: center;
        padding: 10px 6px;
        font-size: 20px;
        color: var(--nd-amber-600) !important;
    }

    /* İlan sayısı + sıralama satırı */
    .nd-profil .nd-count {
        font-size: 15px;
    }

    .nd-profil select[id$="DrpSiralama"] {
        height: 40px;
        padding: 0 12px !important;
        border: 1px solid var(--nd-line) !important;
        border-radius: 8px !important;
        background-color: var(--nd-paper);
        color: var(--nd-ink) !important;
        font: 500 14px/1 var(--nd-font);
    }

    /* Mağaza bilgileri kartı */
    .nd-profil #DvMagazaBilgileri,
    .nd-profil [id$="DvMagazaBilgileri"] {
        margin-top: 20px !important;
        padding: 18px 12px !important;
        background: var(--nd-paper);
        border: 1px solid var(--nd-line) !important;
        border-radius: 14px;
        font-size: 15px !important;
    }

        .nd-profil [id$="DvMagazaBilgileri"] .fw-semibold {
            color: var(--nd-muted) !important;
            font-size: 13px !important;
            font-weight: 600 !important;
        }

        .nd-profil [id$="DvMagazaBilgileri"] [id^="Lbl"],
        .nd-profil [id$="DvMagazaBilgileri"] span[id] {
            color: var(--nd-ink) !important;
            font-size: 15px;
        }

        .nd-profil [id$="DvMagazaBilgileri"] hr {
            border-color: var(--nd-line);
            opacity: 1;
            margin: 6px 0 10px !important;
        }

    /* Tanıtım video/resim şeridi */
    .nd-profil .overflow-x-scroll {
        border: 1px solid var(--nd-line) !important;
        border-radius: 14px;
        background: var(--nd-paper);
    }

    /* Kurum açıklama başlıkları */
    .nd-profil [id$="DvKurumBilgileri"] .text-proje {
        color: var(--nd-ink) !important;
        font-size: 20px !important;
        font-weight: 800;
    }

    /* Filtre sütunu */
    .nd-profil #filtre_panel.nd-filtre {
        padding: 0 16px 0 0 !important;
        max-width: 300px !important;
    }

    /* ---- Eski liste satırları (hizmet, ürün, iş ilanı, emlak, araç) ---- */
    .nd-profil .row.m-0.p-0.mb-1.border,
    .nd-profil .ilan-list-sorgulama > .row {
        margin-bottom: 10px !important;
        border: 1px solid var(--nd-line) !important;
        border-radius: 12px;
        overflow: hidden;
        background: var(--nd-paper);
        transition: border-color .15s ease;
    }

        .nd-profil .row.m-0.p-0.mb-1.border:hover,
        .nd-profil .ilan-list-sorgulama > .row:hover {
            border-color: var(--nd-navy) !important;
        }

        .nd-profil .row.m-0.p-0.mb-1.border > div,
        .nd-profil .ilan-list-sorgulama > .row > div {
            border-color: var(--nd-line) !important;
        }

        .nd-profil .row.m-0.p-0.mb-1.border img,
        .nd-profil .ilan-list-sorgulama img {
            object-fit: cover !important;
        }

    /* Eski gri tablo başlığı */
    .nd-profil [style*="background-color: #f2f2f2"] {
        background: var(--nd-paper) !important;
        border: 1px solid var(--nd-line);
        border-radius: 12px;
        margin-bottom: 10px !important;
    }

        .nd-profil [style*="background-color: #f2f2f2"] .text-proje {
            color: var(--nd-muted) !important;
        }

    /* Fiyatlar (eski turuncu) */
    .nd-profil [style*="#e27213"],
    .nd-profil [style*="#e27213"] a {
        color: var(--nd-navy) !important;
        font-weight: 800;
    }

    /* Danışman kartları */
    .nd-profil [id$="RptAltKullanici"],
    .nd-profil .col-lg-4.col-sm-6.col-12 > .row {
        background: var(--nd-paper);
        border-radius: 12px;
    }

        .nd-profil .col-lg-4.col-sm-6.col-12 > .row > .border,
        .nd-profil .col-lg-4.col-sm-6.col-12 > .row > .col-5,
        .nd-profil .col-lg-4.col-sm-6.col-12 > .row > .col-7 {
            border-color: var(--nd-line) !important;
        }

    .nd-profil .btn-proje {
        background: var(--nd-navy) !important;
        border-color: var(--nd-navy) !important;
        color: #fff !important;
        border-radius: 8px !important;
    }

@media (max-width: 767.98px) {
    .nd-sayfa h1 {
        font-size: 22px;
    }

    .nd-arama-box {
        flex: 1 1 100%;
    }

    .nd-sr-grid {
        grid-template-columns: 1fr;
    }

    .nd-harita #mapi {
        height: 460px !important;
    }

    .nd-profil > .position-relative > img[id$="SrcKapak"] {
        height: 150px !important;
    }

    .nd-profil > .position-relative > .position-absolute {
        bottom: 14px;
        padding: 0 14px;
        gap: 12px;
    }

    .nd-profil img[id$="SrcLogo"] {
        width: 68px !important;
        height: 68px !important;
    }

    .nd-profil [id$="LblKullaniciAdi"] {
        font-size: 19px !important;
    }

    .nd-profil #filtre_panel.nd-filtre {
        padding: 0 !important;
        max-width: none !important;
    }
}

/* Harita: filtre sabit genişlik, harita kalan alanı doldursun */
.nd-harita.row {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
    padding: 0 20px;
}

    .nd-harita.row > div {
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
    }

@media (max-width: 767.98px) {
    .nd-harita.row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Profil listelerinde eski zebra çizgileri kalmasın */
.nd-profil .no-table div:nth-of-type(odd) div,
.nd-profil .no-table div:nth-of-type(even) div {
    background: transparent;
}
