/* =================================================
   DETAYLI ARAMA — sol filtre paneli modern checkbox/radio
   Kırmızı aktif rengi kaldırıldı; nötr + temiz görünüm
   ================================================= */

/* PATENTLİ / Kaporta-Boya dikey butonları fixed+rotate ile sağ/sol kenardan
   taşıp yatay scroll yaratıyordu — engelle (header bozulması + içerik binmesi gider) */
body { overflow-x: hidden; }

/* ============================================================
   SONUÇ TABLOSU — modern: beyaz başlık + ferah satırlar + hover
   ============================================================ */
table.aramasonuc thead td {
    background: #fff !important;
    color: #111827 !important;
    border-top: 0 !important;
    border-bottom: 2px solid #eef0f2 !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    text-transform: none !important;
    letter-spacing: 0.2px;
}
/* Satır hover — fareyle gelince açık kırmızı vurgu */
table.aramasonuc tbody tr.aramasonuceleman:hover td {
    background: #fef2f2 !important;
}
/* Sıralanabilir başlık linkleri */
table.aramasonuc thead td a.siralama-bas {
    color: #111827 !important;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 700;
}
table.aramasonuc thead td a.siralama-bas:hover { color: #DC1F26 !important; }
table.aramasonuc thead td a.siralama-bas .fe { font-size: 13px; vertical-align: -1px; }
table.aramasonuc thead td a.siralama-bas.aktif { color: #DC1F26 !important; }
/* Satır ayırıcı ince çizgi + dikey çizgileri yumuşat */
table.aramasonuc tbody td {
    border-left-color: #f3f4f6 !important;
    border-bottom: 1px solid #f1f2f4 !important;
}
/* İlan satırları — normal kalınlık + siyah */
table.aramasonuc tbody td,
table.aramasonuc .aramasonucdegeri,
table.aramasonuc .aramasonucson,
table.aramasonuc .aramasonucbaslik,
table.aramasonuc .aramasonucbasligi,
table.aramasonuc tbody small {
    color: #1f2937 !important;
    font-weight: 400 !important;
}
/* İlan başlığı sütunu — daraltılmış + uzun başlık alt satıra geçer */
table.aramasonuc .aramasonucbaslik { max-width: 300px; }
table.aramasonuc .aramasonucbasligi {
    display: inline-block;
    max-width: 300px;
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.35;
}
/* İlan başlığı linki — hover'da kırmızı */
table.aramasonuc .aramasonucbasligi:hover { color: #DC1F26 !important; }
/* Fiyat — koyu kırmızı */
table.aramasonuc .aramasonucfiyat div { color: #a00010 !important; font-weight: 600 !important; }


.searchPageLeft .filter-boxes {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}
.searchPageLeft .filter-box {
    border-bottom: 1px solid #f0f0f0;
}
.searchPageLeft .filter-title {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    padding: 13px 16px;
}
.searchPageLeft .filter-title:hover:not(.nothover) {
    background: #fafafa;
}
.searchPageLeft .filter-title .collapse {
    color: #9ca3af;
}

/* Checkbox / radio listesi — modern satırlar */
.searchPageLeft .arama-sonuc-secenek-listesi label {
    display: flex !important;
    align-items: center;
    gap: 9px;
    padding: 8px 10px !important;
    margin: 0 0 1px !important;
    border-radius: 8px;
    font-size: 13.5px;
    color: #374151 !important;
    cursor: pointer;
    background: none !important;
    border: 0 !important;
    transition: background 0.15s ease, color 0.15s ease;
}
.searchPageLeft .arama-sonuc-secenek-listesi label:hover {
    background: #f3f4f6 !important;
}
/* Seçili satır — NÖTR vurgu (kırmızı değil) */
.searchPageLeft .arama-sonuc-secenek-listesi label.active {
    color: #111827 !important;
    font-weight: 600;
    background: #f9fafb !important;
}

/* Özel checkbox/radio kutusu (fe ikon yerine temiz kutu) */
.searchPageLeft .arama-sonuc-secenek-listesi label .fe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    transition: all 0.15s ease;
    position: relative;
}
.searchPageLeft .arama-sonuc-secenek-listesi:not(.type-checkbox) label .fe {
    border-radius: 50%;
}
.searchPageLeft .arama-sonuc-secenek-listesi label .fe::before {
    content: '' !important;
    border: 0 !important;
    background: none !important;
}
/* Seçili — koyu/yeşil onay kutusu + tik */
.searchPageLeft .arama-sonuc-secenek-listesi label.active .fe {
    background: #16a34a;
    border-color: #16a34a;
}
.searchPageLeft .arama-sonuc-secenek-listesi label.active .fe::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Min/max input modern */
.searchPageLeft .filter-minmax input[type="text"] {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
}
.searchPageLeft .filter-minmax input[type="text"]:focus {
    border-color: #94a3b8;
    outline: none;
}

/* Adres il/ilçe — dropdown buton + popup panel (arabam.com tarzı) */
.searchPageLeft .adres-lbl {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 5px;
}
/* Kategori/marka listesi — uzun marka listesi (Otomobil seçilince) scrollable */
.searchPageLeft .teklikategori .filter-category:not(.lv0) {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 0;
}
.searchPageLeft .teklikategori .filter-category:not(.lv0)::-webkit-scrollbar { width: 7px; }
.searchPageLeft .teklikategori .filter-category:not(.lv0)::-webkit-scrollbar-thumb {
    background: #d1d5db; border-radius: 4px;
}
.searchPageLeft .teklikategori .filter-category:not(.lv0)::-webkit-scrollbar-track { background: #f3f4f6; }

/* ============================================================
   SAYFALAMA — modern (kırmızı aktif, yuvarlak, hover)
   ============================================================ */
.sayfalama-alani { text-align: center; }
.sayfalama-alani .morepages { background: none; border: 0; box-shadow: none; padding: 0; }
.sayfalama-alani .pagination {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin: 0;
}
.sayfalama-alani .page-item { margin: 0; }
.sayfalama-alani .page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px !important;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s ease;
}
.sayfalama-alani .page-link:hover {
    background: #fef2f2;
    color: #DC1F26;
    border-color: #fca5a5;
    z-index: 1;
}
.sayfalama-alani .page-item.active .page-link {
    background: #DC1F26;
    border-color: #DC1F26;
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 31, 38, 0.3);
}
.sayfalama-alani .page-item.disabled .page-link {
    background: #f9fafb;
    color: #d1d5db;
    border-color: #f0f0f0;
}
.sayfa-bilgi {
    margin-top: 14px;
    font-size: 13px;
    color: #6b7280;
}
.sayfa-bilgi b { color: #1f2937; }

/* Görünüm ikonları (klasik/liste/galeri) — seçili gri, pasif beyaz */
.ilangosterimtarz .btn-group .btn {
    background: #fff !important;
    color: #9ca3af !important;
    border-color: #e5e7eb !important;
}
.ilangosterimtarz .btn-group .btn.btn-primary,
.ilangosterimtarz .btn-group .btn-primary {
    background: #6b7280 !important;
    color: #fff !important;
    border-color: #6b7280 !important;
}
.ilangosterimtarz .btn-group .btn:hover { color: #6b7280 !important; }

/* Liste arası reklam (slot) — görsel doğal oranında, container'a sarılı (boşluk yok) */
.arama-reklam {
    text-align: center;
    padding: 12px 0;
    line-height: 0;
    font-size: 0;
}
.arama-reklam a,
.arama-reklam picture {
    display: inline-block;
    line-height: 0;
    max-width: 100%;
}
.arama-reklam img {
    width: 100% !important;
    max-width: 970px !important;
    height: 120px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 8px;
}
.arama-reklam-row td {
    border: 0 !important;
    padding: 0 !important;
    height: auto !important;
    vertical-align: top !important;
}

/* ============================================================
   COMBOBOX filtre (Vites/Yakıt/Renk/Kasa...) — beyaz + kırmızı vurgu
   ============================================================ */
.filtre-cb { position: relative; border-bottom: 1px solid #f0f0f0; }
.filtre-cb__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 0;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    text-align: left;
}
.filtre-cb__btn:hover { background: #fff; color: #DC1F26; }
.filtre-cb__btn .fe { color: #9ca3af; font-size: 15px; transition: transform 0.2s ease; }
.filtre-cb.open .filtre-cb__btn { color: #DC1F26; }
.filtre-cb.open .filtre-cb__btn .fe { transform: rotate(180deg); color: #DC1F26; }
.filtre-cb__btn em {
    font-style: normal;
    color: #DC1F26;
    font-weight: 700;
}
.filtre-cb__btn.has-selection .filtre-cb__label { color: #DC1F26; }

/* Açılır panel — dropdown (beyaz) */
.filtre-cb__panel {
    display: none;
    background: #fff;
    border-top: 1px solid #f3f4f6;
    padding: 8px 10px 12px;
}
.filtre-cb.open .filtre-cb__panel { display: block; }

.filtre-cb__search {
    position: relative;
    margin-bottom: 8px;
}
.filtre-cb__search .fe {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    color: #9ca3af; font-size: 14px;
}
.filtre-cb__search input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px 8px 32px;
    font-size: 13px;
    color: #374151;
}
.filtre-cb__search input:focus { border-color: #DC1F26; outline: none; }

.filtre-cb__list { max-height: 240px; overflow-y: auto; }
.filtre-cb__list::-webkit-scrollbar { width: 7px; }
.filtre-cb__list::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

.filtre-cb__opt {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    margin: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13.5px;
    color: #374151;
    transition: background 0.15s ease;
}
.filtre-cb__opt:hover { background: #fef2f2; }
.filtre-cb__opt input { display: none; }
.filtre-cb__box {
    width: 18px; height: 18px; flex-shrink: 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    position: relative;
    transition: all 0.15s ease;
}
.filtre-cb__opt input:checked + .filtre-cb__box {
    background: #DC1F26;
    border-color: #DC1F26;
}
.filtre-cb__opt input:checked + .filtre-cb__box::after {
    content: '';
    position: absolute; left: 5px; top: 2px;
    width: 4px; height: 8px;
    border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.filtre-cb__opt input:checked ~ .filtre-cb__txt { color: #DC1F26; font-weight: 600; }

/* Radio seçeneği — yuvarlak kutu + nokta */
.filtre-cb__opt--radio .filtre-cb__box { border-radius: 50%; }
.filtre-cb__opt--radio input:checked + .filtre-cb__box::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 8px; height: 8px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%) rotate(0);
}

/* Min-max combobox paneli */
.filtre-cb__minmax {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px 2px;
}
.filtre-cb__minmax input {
    flex: 1; min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: #374151;
}
.filtre-cb__minmax input:focus { border-color: #DC1F26; outline: none; }
.filtre-cb__minmax .dash { color: #9ca3af; }

/* Para birimi seçici (Fiyat paneli) */
.filtre-cb__currency {
    display: flex;
    gap: 4px;
    padding: 4px 4px 0;
    margin-bottom: 4px;
}
.filtre-cb__currency label {
    flex: 1;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 6px 0;
    font-size: 12px;
    cursor: pointer;
    color: #374151;
    margin: 0;
    transition: all 0.15s ease;
}
.filtre-cb__currency input { display: none; }
.filtre-cb__currency label.active {
    background: #DC1F26; color: #fff; border-color: #DC1F26;
}

/* Tek metin kutusu paneli (Kelime) */
.filtre-cb__text { padding: 6px 4px 2px; }
.filtre-cb__text input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: #374151;
}
.filtre-cb__text input:focus { border-color: #DC1F26; outline: none; }

/* Adres bölümü — gri filter-content arka planını beyaza çevir */
#adresFilterBox .filter-content { background: #fff !important; padding: 0 0 8px !important; }
#adresFilterBox .filter-title { background: #f6f6f4; }

/* Tümünü Temizle linki (aktif filtreler) */
.tumunu-temizle {
    display: inline-block;
    margin-left: 8px;
    color: #DC1F26;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.tumunu-temizle:hover { text-decoration: underline; color: #b91c22; }
.tumunu-temizle .fe { vertical-align: -2px; margin-right: 2px; }

/* Çoklu Marka/Model Seçimi butonu — metin tek satırda */
#coklukategoriyegec {
    white-space: nowrap;
    font-size: 12.5px;
    padding-left: 8px;
    padding-right: 8px;
}
#coklukategoriyegec .fa { margin-right: 4px; }

.adres-dd { position: relative; }
.adres-dd.mt-2 { margin-top: 0 !important; }
.adres-dd__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 0;
    border-top: 1px solid #f0f0f0;
    border-radius: 0;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: color 0.15s ease;
}
.adres-dd__btn:hover:not(:disabled) { color: #DC1F26; }
.adres-dd__btn:disabled { background: #fff; color: #b6bdc7; cursor: not-allowed; }
.adres-dd__btn .fe { color: #9ca3af; font-size: 15px; }
.adres-dd--open .adres-dd__btn { color: #DC1F26; }
.adres-dd--open .adres-dd__btn .fe { color: #DC1F26; }
.adres-dd__btn.has-selection { color: #DC1F26; }
.adres-dd__btn.has-selection .fe { color: #DC1F26; }

/* Popup panel — position:fixed (JS ile butona göre konumlanır, sayfa kaymaz) */
.adres-dd__panel {
    display: none;
    position: fixed;
    width: 240px;
    max-width: 92vw;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.22);
    z-index: 1060;
    padding: 14px;
}
.adres-dd--open .adres-dd__panel { display: block; }
.adres-dd__close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
}
.adres-dd__close:hover { color: #ef4444; }

/* İlçe grup başlığı */
.searchPageLeft .adres-grup,
.adres-dd__panel .adres-grup {
    font-size: 12px;
    font-weight: 700;
    color: #DC1F26;
    padding: 10px 9px 5px;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
}
.adres-dd__panel .adres-grup:first-child { border-top: 0; margin-top: 0; }
.searchPageLeft .adres-search-wrap {
    position: relative;
    margin-bottom: 6px;
}
.searchPageLeft .adres-search-wrap .fe {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
}
.searchPageLeft .adres-search {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px 8px 32px;
    font-size: 13px;
    color: #374151;
}
.searchPageLeft .adres-search:focus {
    border-color: #DC1F26;
    outline: none;
}
.searchPageLeft .adres-checklist {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 4px;
}
.searchPageLeft .adres-checklist::-webkit-scrollbar { width: 7px; }
.searchPageLeft .adres-checklist::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.searchPageLeft .adres-check {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    margin: 0;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13.5px;
    color: #374151;
    transition: background 0.15s ease;
}
.searchPageLeft .adres-check:hover { background: #fef2f2; }
.searchPageLeft .adres-check input { display: none; }
.searchPageLeft .adres-check__box {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    position: relative;
    transition: all 0.15s ease;
}
.searchPageLeft .adres-check input:checked + .adres-check__box {
    background: #DC1F26;
    border-color: #DC1F26;
}
.searchPageLeft .adres-check input:checked + .adres-check__box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.searchPageLeft .adres-check input:checked ~ .adres-check__lbl {
    color: #DC1F26;
    font-weight: 600;
}
.searchPageLeft .adres-empty {
    padding: 12px 10px;
    font-size: 12.5px;
    color: #9ca3af;
    text-align: center;
}

/* Adres odak overlay — il/ilçe seçerken arka planı karart */
.adres-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}
.adres-overlay--on {
    opacity: 1;
    visibility: visible;
}
/* Aktif adres kutusu overlay'in üstünde kalsın */
.searchPageLeft #adresFilterBox.adres-aktif {
    position: relative;
    z-index: 1050;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Para birimi butonları — kırmızı yerine nötr seçili */
.searchPageLeft .curreny-type-button.active {
    background: #1f2937 !important;
    color: #fff !important;
    border-color: #1f2937 !important;
}

/* ============================================================
   MOBİL — Filtrele / Sırala / Kaydet bar + filtre drawer
   Mobilde sol filtre paneli gizli; Filtrele ile tam ekran açılır.
   ============================================================ */
.mobil-arama-bar { display: none; }
.ga-mobil-filtre-kapat { display: none; }
/* Klasik görünüm mobil kart listesi — desktop gizli, ≤991px görünür */
.aramasonucmobile { display: none; }
.aramasonucmobile .aramasonucbasligi { font-size: 14px; }
.aramasonucmobile .ilan-fiyat-m { color: #8c090d; font-weight: 700; }
@media (max-width: 991px) {
    .aramasonucmobile { display: block !important; }
    /* İlan etiketi (Satıldı/Hatasız/Ekspertizli...) — foto üstüne tam otursun, kesilmesin */
    .aramasonucmobile .aramasonucuilanfoto { position: relative; overflow: hidden; border-radius: 4px; }
    .aramasonucmobile .ilanetiket {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        padding: 3px 2px !important;
        line-height: 1.2 !important;
        font-size: 10px !important;
        border-radius: 4px 4px 0 0 !important;
        z-index: 3;
    }
    .aramasonucmobile .aramasonucuilan { align-items: stretch !important; }
}

@media (max-width: 991px) {
    /* Üst sticky bar — 3 buton */
    .mobil-arama-bar {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 1035;
        background: #fff;
        border: 1px solid #e9ecef;
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    .mobil-arama-bar button {
        flex: 1;
        padding: 12px 4px;
        background: #fff;
        border: 0;
        border-right: 1px solid #eef0f2;
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        cursor: pointer;
    }
    .mobil-arama-bar button:last-child { border-right: 0; }
    .mobil-arama-bar button .fe { font-size: 16px; color: #DC1F26; }
    .mobil-arama-bar button:active { background: #f8f9fa; }

    /* Filtre paneli — tam ekran drawer (varsayılan gizli) */
    .searchPageLeft {
        position: fixed !important;
        inset: 0;
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        background: #fff;
        z-index: 1056;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: none;
        padding: 60px 14px 24px;
    }
    .searchPageLeft.mobil-acik { display: block; }

    /* Drawer üst kapat çubuğu */
    .ga-mobil-filtre-kapat {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        padding: 13px 0;
        background: #DC1F26;
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        z-index: 1057;
        cursor: pointer;
        border: 0;
    }
    .ga-mobil-filtre-kapat .fe { font-size: 19px; }
}
