/* Kapsayıcı hizalaması */
.custom-checkbox-list .form-check {
    padding-left: 0 !important;
    margin-bottom: 12px;
    display: flex !important;
    /* Blok görünümü engellemek için */
    align-items: center;
    min-height: auto;
}

/* Sade ve Sabit Checkbox */
.ui-checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;
    /* Önemli: Tarayıcının block/stretch zorlamasını eziyoruz */
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;

    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 0 !important;
    /* Bazı temalar üstten boşluk verir */
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    background-color: #fff;
    flex-shrink: 0 !important;
    min-height: initial;
    /* Esnemeyi kesin olarak durdurur */
}

/* Seçili Durum */
.ui-checkbox:checked {
    /* background-color: #ff5e14;
    border-color: #ff5e14; */
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Sade Tik İşareti (Arka plan boyansın ama içinde beyaz bir işaret olsun) */
.ui-checkbox:checked::after {
    content: '\2713';
    color: white;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Yazı hizalaması */
.form-check-label {
    cursor: pointer;
    font-size: 15px;
    color: #444;
    margin-bottom: 0;
    /* Bootstrap alt boşluğunu sıfırlar */
    line-height: 20px;
    /* Checkbox yüksekliği ile eşitleyerek tam hizalar */
}

/* Başlık kapalıyken (collapsed iken) ikonun durumu */
.filter-title.collapsed i {
    transform: rotate(-90deg);
}

/* Geçiş efekti ve hizalama için ikonun genel durumu */
.filter-title i {
    transition: transform 0.3s ease;
    float: right;
    /* İkonu sağa yaslamak için */
    line-height: inherit;
}

/* Arama kutusu kapsayıcısı */
.search-wrapper {
    position: relative;
    width: 100%;
}

/* Input için özel ayar (sağ taraftan ikon mesafesi bırakıyoruz) */
.search-input {
    height: 45px;
    min-height: initial;
    padding-right: 40px;
    /* İkonun üzerine gelmemesi için sağdan boşluk */
    border: 1px solid #dee2e6;
    border-radius: 4px;
    outline: none;
}

/* Mercek ikonu konumlandırma */
/* Mercek ikonu konumlandırma */
.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    /* pointer-events: none;  <-- BU SATIRI SİLDİK (Tıklanabilmesi için) */
    font-size: 16px;
    cursor: pointer;
    /* Üzerine gelince el işareti çıksın */
    transition: color 0.2s;
}

/* Üzerine gelince ikonun rengi değişsin (Opsiyonel) */
.search-icon:hover {
    color: var(--color-primary);
}

/* Butonun arka planını ve çerçevesini sıfırlıyoruz */
/* Arama butonu - Temadan gelen padding ve arka planı eziyoruz */
.search-wrapper .search-submit-btn {
    background: transparent !important;
    /* Temanın primary rengini ezer */
    border: none !important;
    padding: 0 !important;
    /* Temanın 16px 52px paddingini sıfırlar */
    margin: 0;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45px;
    display: flex !important;
    /* Temanın inline-block değerini ezer */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    /* Temanın z-index: 1 değerinin üzerine çıkar */
    box-shadow: none !important;
    border-radius: 0 4px 4px 0;
    min-width: auto;
    /* Temada min-width varsa sıfırlar */
}

/* İkonun temadan etkilenmemesi için */
.search-wrapper .search-icon {
    position: static !important;
    /* Önceki absolute değerini temizler */
    transform: none !important;
    /* Önceki translateY değerini temizler */
    color: #888;
    font-size: 16px;
    transition: color 0.2s;
    pointer-events: none;
    /* Tıklama butona geçsin */
}

/* Hover durumunda renk değişimi */
.search-wrapper .search-submit-btn:hover .search-icon {
    color: var(--color-primary);
}

/* Temanın butonlara eklediği 'overlay' veya 'after' efektlerini gizlemek için (eğer varsa) */
.search-wrapper .search-submit-btn::before,
.search-wrapper .search-submit-btn::after {
    display: none !important;
}



/* #region FİLTRE RESONSİVE */

/* Masaüstü Varsayılan */
#mobile-filter-trigger,
#filter-overlay,
#close-filter {
    display: none;
}

@media (max-width: 991px) {

    /* Sidebar'ı ekran dışına al */
    .filter-sidebar {
        position: fixed !important;
        top: 0;
        left: -320px;
        /* Genişlik kadar sola */
        width: 300px;
        height: 100vh;
        z-index: 9999;
        overflow-y: auto;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0 !important;
    }

    .filter-sidebar.active {
        left: 0;
    }

    /* Kapatma butonu göster */
    #close-filter {
        display: inline-block;
        border-radius: 50%;
    }

    /* Karartma */
    #filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        display: none;
    }

    /* Sağ Alttaki Yuvarlak Buton */
    #mobile-filter-trigger {
        display: flex;
        position: fixed;
        bottom: 25px;
        left: 25px;
        /* Sol alt */
        width: 60px;
        height: 60px;
        background: var(--color-primary);
        color: white;
        border-radius: 50%;
        z-index: 999;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        border: none;
    }
}

/* #endregion  */


/* Filtre Tetikleyici Buton (Sol Alt) Reset ve Stil */
#mobile-filter-trigger {
    background: var(--color-primary) !important;
    color: white !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    min-width: auto !important;
}

#mobile-filter-trigger:hover {
    background: #333 !important;
    /* Veya temanızın koyu rengi */
    transform: scale(1.1);
}

#mobile-filter-trigger::before,
#mobile-filter-trigger::after {
    display: none !important;
    /* Tema efektlerini gizler */
}

/* Sidebar Kapatma Butonu (X) Reset */
#close-filter {
    background: #f8f9fa !important;
    color: #dc3545 !important;
    width: 35px !important;
    height: 35px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6 !important;
    border-radius: 50% !important;
    min-width: auto !important;
    z-index: 10;
}

#close-filter:hover {
    background: #dc3545 !important;
    color: white !important;
}

#close-filter::before,
#close-filter::after {
    display: none !important;
}

/* Sidebar içindeki 'Filtrele' başlığının mobilde X butonuyla hizalanması */
@media (max-width: 991px) {
    .filter-sidebar h4 {
        margin-top: 10px;
    }
}

/* Genel Buton Reset (Sadece bu kapsayıcı içindekiler için temanın ağır paddingini ezer) */
.filter-sidebar button,
.search-wrapper button {
    text-transform: none !important;
    letter-spacing: normal !important;
    /* overflow: visible !important; */
}