/* ============================================================================
   arac-liste.css — /ikinci-el liste sayfasına ÖZEL stiller (MH monokrom-lux).
   Çekirdek araç kartı (.vc) paylaşılan arac-kart.css'tedir; burada yalnızca
   liste-özel öğeler: grid yerleşimi, karşılaştırma satır-içi ikonu, karşılaştırma
   çubuğu/modalı aksanı, aktif filtre çipleri, sayfalama, boş durum, sayfa başlığı,
   toolbar ve filtre paneli. Token'lar fallback'li.
   ============================================================================ */

/* ============================================================ GRID yerleşim */
#araclar-listing .view-grid .row { margin-left: -11px; margin-right: -11px; }
#araclar-listing .view-grid .row > [class*="col-"] { padding: 0 11px; margin-bottom: 22px; }

/* "Kredi kartına 12 taksit" — hazır görsel rozet (~/images/12-taksit.png) */
.vc__credit-img {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    width: 118px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .28));
    width: 110px !important;
    height: auto !important;
}
/* Liste görünümü: rozet görselin içinde değil, .vc__body > .vc__foot içinde,
   fiyatın hemen üstünde tam satır (ödeme teklifi fiyata bağlansın) */
.vc__body .vc__credit-img { position: static; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .16)); }
.vc--row .vc__foot { flex-wrap: wrap; }
.vc--row .vc__foot .vc__credit-line { flex: 0 0 100%; margin: 0 0 8px; line-height: 0; }
/* Kompakt/dar liste kartında biraz küçült */
@media (max-width: 520px) { .vc__credit-img { width: 104px; } }

/* ======== ARAYA SERPİŞTİRİLEN TANITIM KARTLARI — anasayfa (.sat-card) tasarımı.
   Grid hücresini doldursun diye height:100% eklendi. Stiller home.css'ten alındı. */
.sat-card {
    position: relative; isolation: isolate;
    display: flex; flex-direction: column; gap: 12px; height: 100%;
    padding: 24px; border-radius: 18px; border: 1px solid var(--line, #E7EAED);
    background: #fff; overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
} 
.sat-ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.sat-ico svg { width: 24px; height: 24px; }
.sat-card h3 { font-family: var(--display, sans-serif); font-weight: 800; letter-spacing: -.01em; font-size: 19px; line-height: 1.2; margin: 0; }
.sat-lead { font-size: 14px; line-height: 1.5; margin: 0; }
.sat-list { list-style: none; margin: 0; padding-top: 14px; border-top: 1px solid var(--line, #E7EAED); display: flex; flex-direction: column; gap: 10px; flex: 1; padding-left: unset; }
.sat-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink, #14171A); }
.sat-check svg { flex: 0 0 auto; width: 18px; height: 18px; stroke: #3d8f6d; }
.sat-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 48px; padding: 0 20px; border-radius: 11px; margin-top: 2px;
    font-family: var(--font, sans-serif); font-size: 14.5px; font-weight: 700; text-decoration: none; cursor: pointer;
    border: 1.6px solid transparent; transition: gap .2s ease, background .2s ease, color .2s ease;
}
.sat-btn svg { width: 17px; height: 17px; }
.sat-btn--dark {
    background: var(--ink, #14171A);
    color: #898d8f;
}
.sat-btn--light { background: #fff; color: var(--ink, #14171A); }
.sat-btn--dark:hover, .sat-btn--light:hover { gap: 13px; }
.sat-badge {
    position: absolute; top: 20px; right: 20px;
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #fff;
    background: var(--ink, #14171A); padding: 5px 11px; border-radius: 100px;
}
.sat-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: sat-pulse 2.2s infinite; }
@keyframes sat-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
    70% { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: reduce) { .sat-badge-dot { animation: none; } }
.sat-card--light .sat-ico { background: var(--soft, #F5F6F8); color: var(--ink, #14171A); }
.sat-card--light .sat-lead { color: var(--muted, #697682); }
.sat-card--dark { background: var(--ink, #14171A); color: #fff; border-color: transparent; }
.sat-card--dark .sat-ico { background: rgba(255,255,255,.1); color: #fff; }
.sat-card--dark h3 { color: #fff; }
.sat-card--dark .sat-lead { color: rgba(255,255,255,.78); }
.sat-card--dark .sat-check { color: rgba(255,255,255,.92); }
.sat-card--dark .sat-check svg { stroke: #fff; }
.sat-card--dark .sat-list { border-top-color: rgba(255,255,255,.14); }

/* KARŞILAŞTIRMA stilleri artık global ~/css/karsilastirma.css içinde
   (tüm yüzeylerde aynı: liste / yeni gelen / benzer). */

/* ===================================================== AKTİF FİLTRE ÇİPLERİ */
#filter-tags .tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--soft, #F5F6F8);
    border: 1px solid var(--line, #E7EAED);
    color: var(--ink, #14171A);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: border-color .15s ease;
}

    #filter-tags .tag:hover { border-color: var(--gri, #8B8C8E); }
    #filter-tags .tag .tag-x { color: var(--gri, #8B8C8E); font-weight: 700; font-size: 15px; line-height: 1; }

#filter-tags #btn-filtre-temizle {
    padding: 6px 14px;
    border: 1px solid transparent;
    background: none;
    color: var(--ink, #14171A);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

    #filter-tags #btn-filtre-temizle:hover { color: var(--gri-dark, #6A6C6E); }

/* Toplam ilan sayısı — mobilde listenin altında (sayfalamadan önce) */
.mhl-count-bottom { text-align: center; color: var(--gri-dark, #6A6C6E); font-size: 14px; font-weight: 700; margin: 8px 0 14px; }

/* Üst filtre-sıralama barı mobilde gereksiz (işlevleri alt app-bar'da) → gizle */
@media (max-width: 991px) { .box-filters { display: none; } }

/* ============================================================== SAYFALAMA == */
.araclistesi .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 28px 0 8px;
}

    .araclistesi .pagination li a,
    .araclistesi .pagination li span {
        display: inline-grid;
        place-items: center;
        min-width: 40px;
        height: 40px;
        padding: 0 11px;
        border: 1px solid var(--line, #E7EAED);
        border-radius: 10px;
        background: #fff;
        color: var(--ink, #14171A);
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        transition: border-color .15s ease, background .15s ease, color .15s ease;
    }

    .araclistesi .pagination li a:hover { border-color: var(--gri, #8B8C8E); }

    .araclistesi .pagination li.active a,
    .araclistesi .pagination li.active span {
        background: var(--ink, #14171A);
        border-color: var(--ink, #14171A);
        color: #fff;
    }

    .araclistesi .pagination li.disabled span { opacity: .4; }

/* ============================================================= BOŞ DURUM == */
.mhl-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--soft, #F5F6F8);
    border: 1px solid var(--line, #E7EAED);
    border-radius: 16px;
}

    .mhl-empty h4 { font-family: var(--display, sans-serif); font-weight: 800; color: var(--ink, #14171A); margin: 0 0 8px; font-size: 20px; }
    .mhl-empty p { color: var(--muted, #697682); margin: 0 0 18px; }

    .mhl-empty__btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 46px;
        padding: 0 24px;
        border-radius: 100px;
        background: var(--ink, #14171A);
        color: #fff;
        font-weight: 700;
        text-decoration: none;
    }

        .mhl-empty__btn:hover { background: var(--gri-dark, #6A6C6E); color: #fff; }

/* ========================================================= SAYFA BAŞLIĞI == */
.araclistesi .baslik-alani { padding-top: 24px !important; padding-bottom: 6px; }

.araclistesi .baslik-alani h1 {
    font-family: var(--display, 'adineue PRO', sans-serif) !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
    color: var(--ink, #14171A) !important;
    font-size: clamp(19px, 2.2vw, 24px) !important;
    line-height: 1.25 !important;
    margin-bottom: 0 !important;
}

/* ============================================================= TOOLBAR === */
.araclistesi .box-filters { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line, #E7EAED); }

.araclistesi .box-view-type { display: flex; align-items: center; gap: 0px; }

.araclistesi .display-type {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line, #E7EAED);
    border-radius: 10px;
    color: var(--ink, #14171A);
    opacity: 1;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

    .araclistesi .display-type svg { width: 18px; height: 18px; }
    .araclistesi .display-type svg path { fill: currentColor; }

    /* Hover: koyu buton + BEYAZ ikon (görüntü bozulmasın) */
    .araclistesi .display-type:hover,
    .araclistesi .display-type.active {
        background: var(--ink, #14171A);
        border-color: var(--ink, #14171A);
        color: #fff;
    }

.araclistesi .number-found { font-size: 14px; font-weight: 600; color: var(--muted, #697682); margin-left: 4px; }

.araclistesi .item-sort { display: inline-flex; align-items: center; gap: 8px; border: 0 !important; }

.araclistesi #dropdownSort {
    height: 40px;
    border: 1px solid var(--line, #E7EAED);
    border-radius: 10px;
    background: #fff;
    color: var(--ink, #14171A);
    font-weight: 600;
    font-size: 14px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .araclistesi #dropdownSort:hover { border-color: var(--gri, #8B8C8E); }

.araclistesi .dropdown-sort .dropdown-menu {
    border: 1px solid var(--line, #E7EAED);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(20, 23, 26, .12);
    padding: 6px;
    margin-top: 6px;
}

.araclistesi .dropdown-sort .dropdown-item {
    border-radius: 8px;
    font-size: 13.5px;
    padding: 9px 12px;
    color: var(--ink, #14171A);
}

    .araclistesi .dropdown-sort .dropdown-item:hover,
    .araclistesi .dropdown-sort .dropdown-item.active {
        background: var(--soft, #F5F6F8);
        color: var(--ink, #14171A);
    }

.araclistesi #btnMobileFilter {
    height: 42px;
    border-radius: 100px;
    background: var(--ink, #14171A) !important;
    color: #fff !important;   /* tema .btn-gray'in color:#000 !important'ını ez */
    font-weight: 700;
    padding: 0 22px;
    border: 0;
}

    .araclistesi #btnMobileFilter:hover { background: var(--gri-dark, #6A6C6E); color: #fff; }

/* ===================================== FİLTRE PANELİ — ortak iç öğeler ==== */
#filters .block-filter { padding: 18px 0; border-bottom: 1px solid var(--line, #E7EAED); }
#filters .block-filter:first-of-type { padding-top: 6px; }

#filters .item-collapse {
    font-family: var(--display, 'adineue PRO', sans-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: none;
    color: var(--ink, #14171A) !important;
    margin: 0 0 12px;
}

/* Temanın 18px li boşluğunu kaldır — gereksiz dikey boşluk */
#filters .list-filter-checkbox { list-style: none; margin: 0; padding: 0; }
#filters .list-filter-checkbox li { margin-bottom: 0 !important; padding: 0; }

#filters .cb-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    margin: 0 !important;
    cursor: pointer;
    user-select: none;
}

    #filters .cb-container input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; }
    #filters .cb-container .text-sm-medium { order: 1; font-size: 14px; color: var(--ink, #14171A); }

    #filters .cb-container .checkmark {
        order: 0;
        flex: 0 0 auto;
        position: relative;
        width: 19px;
        height: 19px;
        border: 1.5px solid #d7dbe0;
        border-radius: 6px;
        background: #fff;
        transition: background .15s ease, border-color .15s ease;
    }

    #filters .cb-container:hover .checkmark { border-color: var(--gri, #8B8C8E); }

    #filters .cb-container .checkmark::after {
        content: "";
        position: absolute;
        left: 6px;
        top: 2px;
        width: 5px;
        height: 10px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
        opacity: 0;
        transition: opacity .15s ease;
    }

    #filters .cb-container input:checked ~ .checkmark { background: var(--ink, #14171A); border-color: var(--ink, #14171A); }
    #filters .cb-container input:checked ~ .checkmark::after { opacity: 1; }

#filters .form-control {
    height: 42px;
    border: 1px solid var(--line, #E7EAED);
    border-radius: 10px;
    font-size: 14px;
    color: var(--ink, #14171A);
    padding: 0 12px;
    box-shadow: none;
}

    #filters .form-control:focus { border-color: var(--gri, #8B8C8E); box-shadow: none; }
    #filters .form-control::placeholder { color: #9aa4ad; }

#filters #btn-uygula {
    height: 48px;
    border-radius: 100px;
    background: var(--ink, #14171A) !important;
    color: #fff !important;   /* tema .btn-gray color:#000 !important'ını ez */
    font-weight: 700;
    letter-spacing: .02em;
    border: 0;
    transition: background .2s ease;
}

    #filters #btn-uygula:hover { background: var(--gri-dark, #6A6C6E) !important; color: #fff !important; }

#filters .brand-tree .brand-link,
#filters .brand-tree .model-link,
#filters .brand-tree .altmodel-link,
#filters .brand-tree .model-label a,
#filters .filter-title a { color: var(--ink, #14171A) !important; }

    #filters .brand-tree .brand-link:hover,
    #filters .brand-tree .model-link:hover,
    #filters .brand-tree .altmodel-link:hover { color: var(--gri-dark, #6A6C6E) !important; }

#filters .brand-tree .altmodel-link.active { color: var(--ink, #14171A) !important; }

/* Marka ağacı tipografi tutarlılığı (karışık boyut/BÜYÜK harf düzeltmesi) */
#filters .brand-tree .brand-link,
#filters .brand-tree .brand .brand-label,
#filters .brand-tree .brand-name {
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

#filters .brand-tree .model-link { font-size: 13.5px !important; font-weight: 500 !important; }
#filters .brand-tree .altmodel-link { font-size: 13px !important; font-weight: 500 !important; }
#filters .brand-tree .model-label,
#filters .brand-tree .model-label a { font-size: 14px !important; font-weight: 700 !important; }
#filters .filter-title,
#filters .filter-title a { font-size: 13px !important; font-weight: 600 !important; }

@media (min-width: 992px) {
    #filters.sidebar-left {
        background: #fff;
        border: 1px solid var(--line, #E7EAED) !important;
        border-radius: 16px;
    }

    #filters .box-filters-sidebar { padding: 6px 18px 14px; }
}

/* ===================================== AKORDİYON (bölümler default kapalı) == */
#filters .item-collapse {
    position: relative;
    cursor: pointer;
    padding-right: 22px;
    margin: 0;
    user-select: none;
    background-image: none !important;   /* temanın kendi ok ikonunu kapat (çift olmasın) */
}

    #filters .item-collapse::after {
        content: "";
        position: absolute;
        right: 3px;
        top: 50%;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--gri, #8B8C8E);
        border-bottom: 2px solid var(--gri, #8B8C8E);
        transform: translateY(-70%) rotate(45deg);
        transition: transform .2s ease;
    }

#filters .block-filter.is-open .item-collapse::after { transform: translateY(-30%) rotate(-135deg); }

#filters .box-collapse { display: none; }
#filters .block-filter.is-open .box-collapse { display: block; margin-top: 12px; }

/* Marka logoları — mono görünüm.
   NOT: brightness(0) dolu amblemleri (Alfa Romeo vb.) kapkara blob'a çevirdiği için
   grayscale kullanıyoruz; tüm logolar tek-renk/mono olur ama detay korunur. */
#filters .brand-tree .brand-logo {
    filter: grayscale(1);
    opacity: .9;
    align-self: baseline;
}

/* ============================================= MOBİL TOOLBAR (verimli düzen) */
@media (max-width: 991px) {
    /* Üst toolbar: sadece "X araç bulundu" kalsın; görünüm/filtrele/sırala alt app-bar'da */
    .araclistesi .box-filters { margin-bottom: 12px; padding-bottom: 10px; }
    .araclistesi .display-type,
    .araclistesi .box-item-sort { display: none !important; }
    .araclistesi .box-view-type { justify-content: flex-start; text-align: left !important; }
    .araclistesi .number-found { margin-left: 0; font-size: 13.5px; }

    /* İçerik alt app-bar'ın arkasında kalmasın */
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* Bu sayfada (arac-liste.css yalnız burada yüklü) WhatsApp/Ara alt çubuğu gizli */
.mh-callbar { display: none !important; }

/* ============================================ MOBİL APP-BAR (alt sabit) ==== */
.applbar { display: none; }
.appsheet { display: none; }

@media (max-width: 991px) {
    .applbar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 860;
        background: rgba(255, 255, 255, .96);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--line, #E7EAED);
        box-shadow: 0 -6px 20px rgba(20, 23, 26, .08);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .applbar__btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 9px 4px;
        background: none;
        border: 0;
        cursor: pointer;
        color: var(--muted, #697682);
        font-size: 11px;
        font-weight: 600;
    }

        .applbar__btn svg { width: 22px; height: 22px; }
        .applbar__btn.is-active { color: var(--ink, #14171A); }
        .applbar__btn:active { background: var(--soft, #F5F6F8); }
}

/* Sıralama alt sayfası (bottom sheet) */
.appsheet.is-open { display: block; position: fixed; inset: 0; z-index: 900; }

.appsheet__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 14, .5); }

.appsheet__panel {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-radius: 18px 18px 0 0;
    padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .2);
    max-height: 80vh;
    overflow-y: auto;
    animation: appsheet-up .22s ease;
}

@keyframes appsheet-up { from { transform: translateY(100%); } to { transform: none; } }

.appsheet__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 6px; }
.appsheet__title { font-family: var(--display, sans-serif); font-weight: 800; font-size: 16px; color: var(--ink, #14171A); }
.appsheet__close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--soft, #F5F6F8); color: var(--ink, #14171A); display: grid; place-items: center; cursor: pointer; }
.appsheet__close svg { width: 18px; height: 18px; }

.appsheet__list { list-style: none; margin: 0; padding: 4px; }

    .appsheet__list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 14px;
        border-radius: 10px;
        color: var(--ink, #14171A);
        text-decoration: none;
        font-size: 15px;
        font-weight: 600;
    }

        .appsheet__list a:active { background: var(--soft, #F5F6F8); }
        .appsheet__list a.is-active { background: var(--soft, #F5F6F8); }
        .appsheet__list a.is-active::after { content: "✓"; color: var(--ink, #14171A); font-weight: 800; }
