/* =================================================== */
/*  Dikey Liste Hizalama (Padding) */
/* =================================================== */

.filter-checkbox-group,
.filter-radio-group {
    display: block;
    padding-top: 5px;

    /* DÜZELTME BURADA:
       Girintiyi (padding) 5px'ten 20px'e çıkararak
       başlıkla (örn: İlan Tarihi) hizalıyoruz.
    */
    padding-left: 20px;
}

/* Geri kalan dikey stil kodları  */
.filter-checkbox-group label,
.filter-radio-group label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}



/* =================================================== */
/*  FİLTRE PANELİ (Dikey Kaydırma) */
/* =================================================== */
/* Bu, 'd-none d-xl-block' olan sol 'aside' barını hedefler */

aside.sidebar {
    /* Tarayıcıya bu barın konumunu sabitlemesini söyler */
    position: -webkit-sticky; /* Safari */
    position: sticky;


    /* Yüksekliği, ekranın tamamından (100vh) 'top' değerini çıkarak ayarla */
    height: calc(100vh - 100px);

    /* ÖNEMLİ: Kaydırmayı 'aside' değil, içindeki '.filter-container' yapacak */
    /* Bu yüzden 'aside' etiketine 'overflow' VERMİYORUZ. */
}

/* =================================================== */
/*  FİLTRE PANELİ (Dikey Kaydırma - DÜZELTİLDİ) */
/* =================================================== */
/* 'aside' içindeki FORM'un kendisi scroll olacak */

aside.sidebar form { /* '.filter-container' idi, 'form' olarak değiştirdik */
height: 100%; /* 'aside' yüksekliğini tamamen doldur */
overflow-y: auto;
overflow-x: hidden;
margin: 0; /* Formun varsayılan boşluğunu sıfırla */

}

/* Scrollbar boşluğunu formun içindeki .filter-container'a veriyoruz */
aside.sidebar .filter-container {
padding-right: 10px;
/* Formun içindeki bu div'in yüksekliği otomatik olmalı */
height: auto;
overflow: visible;
}


/* Kaydırma çubuğu stilleri (Artık 'form'u hedefliyor) */
aside.sidebar form {
scrollbar-width: thin; /* Firefox */
scrollbar-color: #aaa #f0f0f0; /* Firefox */
}

/* Chrome/Safari/Edge için kaydırma çubuğu (Artık 'form'u hedefliyor) */
aside.sidebar form::-webkit-scrollbar {
width: 8px;
}
aside.sidebar form::-webkit-scrollbar-track {
background: #f0f0f0;
border-radius: 4px;
}
aside.sidebar form::-webkit-scrollbar-thumb {
background: #aaa;
border-radius: 4px;
}
aside.sidebar form::-webkit-scrollbar-thumb:hover {
background: #777;
}


/* ============================================= */
/* === Profesyonel "Sonuç Yok" Kutusu === */
/* ============================================= */
.no-results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin-top: 20px;
    width: 100%;
    min-height: 300px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    color: #555;
}
.no-results-icon {
    font-size: 3em;
    color: #007bff; /* Ana tema rengi */
    margin-bottom: 15px;
}
.no-results-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.no-results-text {
    font-size: 1em;
    margin-bottom: 20px;
}
.no-results-clear-btn {
    font-size: 1em;
    padding: 10px 20px;
    color: #fff;
    background-color: #007bff; /* Ana tema rengi */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.no-results-clear-btn:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Mobil Modal Genel Yapı */
.mobile-filter-modal .modal-content {
    background-color: #f8f9fa; /* Hafif gri arka plan */
    padding: 0; /* İç boşluğu sıfırladık, içeriden vereceğiz */
    max-height: calc(100vh - 130px); /* Header ve footer için yer ayır */
    overflow-y: auto; /* Scroll eklendi */
}

.mobile-filter-modal .filter-body {
    padding: 20px;
}

/* Başlıklar */
.mobile-filter-modal .filter-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 15px;
    margin-bottom: 10px;
    display: block;
}

/* Input ve Select Kutuları */
.mobile-filter-modal .form-control {
    width: 100%;
    height: 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    padding: 0 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
    outline: none;
}

/* Fiyat Aralığı (Yan yana getirme) */
.mobile-filter-modal .row-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-filter-modal .row-group input {
    margin-bottom: 0;
    text-align: center;
}

.mobile-filter-modal .separator {
    color: #999;
    font-weight: bold;
}

/* Radio Button Grupları */
.mobile-filter-modal .filter-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-filter-modal .radio-container {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
    cursor: pointer;
}

.mobile-filter-modal .radio-container input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #e91e63; /* Radyo butonu rengi */
}

/* Modal Footer Düzeni */
.mobile-filter-modal .modal-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    gap: 15px;
    z-index: 10;
}

.mobile-filter-modal .clear-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    background: #f0f0f0;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
}

.mobile-filter-modal .apply-btn {
    flex: 1;
    height: 45px;
    background: #e91e63; /* Uygula butonu rengi */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.custom-sort {
    /* Standart görünümü sıfırla */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* Boyut ve Yazı Tipi */
    font-size: 13px;
    font-weight: 600;
    color: #666;
    height: 38px !important; /* Yükseklik sabitleme */
    line-height: 1.5;

    /* Arka plan ve Kenarlık */
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px; /* Tam oval (Pill) görünüm */
    padding: 0 35px 0 15px !important; /* Sağdan boşluk ok işareti için */

    /* Özel Ok İşareti (SVG) - Gri Renk */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23999999' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 10px;

    /* Geçiş Efekti */
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

/* Üzerine gelince (Hover) */
.custom-sort:hover {
    border-color: #b0b0b0;
    color: #333;
}

/* Tıklayınca (Focus) - Mavi çizgiyi kaldırıp kendi rengimizi verelim */
.custom-sort:focus {
    border-color: #e91e63; /* Sizin tema renginiz */
    box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.1); /* Hafif pembe gölge */
    outline: none;
}

/* Tüm option'lara renk ve arkaplan */
.custom-sort option {
    background-color: #f8f9fa; /* açık gri arkaplan */
    color: #333; /* yazı rengi */
}

/* Seçili option */
.custom-sort option:checked {
    background-color: #e91e63; /* tema rengin */
    color: #fff;
}
