:root {
    --primary: #18181b;
    --secondary: #f5b204;
    --accent: #facc15;
    --success: #22c55e;
    --danger: #ef4444;
    --dark: #09090b;
}

/* Sidebar Filter Styling */
.filter-section { border-bottom: 1px solid #f1f5f9; padding-bottom: 1.25rem; }
.filter-section:last-child { border-bottom: none; }
#filter-sidebar { display: flex; flex-direction: column; }
.filtering-active .vehicle-card { display: none; }
.filter-scroll-wrapper {
    overflow-y: auto;
    flex: 1 1 auto;
    padding-right: 4px;
    max-height: calc(100vh - 190px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.filter-scroll-wrapper::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}
.filter-scroll-wrapper:hover::-webkit-scrollbar {
    width: 6px;
}
.filter-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.filter-scroll-wrapper:hover::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.12);
    border-radius: 999px;
}
.filter-scroll-wrapper:hover { scrollbar-width: thin; }
.filter-header { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.filter-header i.toggle-icon { transition: transform 0.3s; font-size: 10px; color: #94a3b8; }
.filter-header.collapsed i.toggle-icon { transform: rotate(-90deg); }
.filter-body { max-height: 500px; overflow: hidden; transition: max-height 0.35s ease; }
.filter-header.collapsed + .filter-body { max-height: 0 !important; padding: 0 !important; }
.filter-search {
    width: 100%; border: 1px solid #f1f5f9; border-radius: 8px; padding: 7px 10px 7px 32px; font-size: 0.8rem;
    outline: none; background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") no-repeat 8px center; background-size: 16px; transition: all 0.2s;
}
.filter-search:focus { border-color: var(--secondary); background-color: #fff; }
.filter-list { max-height: 200px; overflow-y: auto; margin-top: 6px; }
.filter-list::-webkit-scrollbar { width: 4px; }
.filter-list::-webkit-scrollbar-track { background: transparent; }
.filter-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }
.filter-radio-item {
    display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px;
    font-size: 0.825rem; color: #475569; cursor: pointer; transition: all 0.15s; font-weight: 500;
}
.filter-radio-item:hover { background: #f1f5f9; color: #1e293b; }
.filter-radio-item.active { background: #fef3c7; color: var(--secondary); font-weight: 700; }
.filter-radio-item .radio-dot {
    width: 10px; height: 10px; border-radius: 50%; border: 2px solid #cbd5e1; flex-shrink: 0; transition: all 0.15s;
}
.filter-radio-item.active .radio-dot { border-color: var(--secondary); background: var(--secondary); box-shadow: 0 0 0 2px rgba(245, 178, 4, 0.3); }
.filter-check-item {
    display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px;
    font-size: 0.825rem; color: #475569; cursor: pointer; transition: all 0.15s; font-weight: 500;
}
.filter-check-item:hover { background: #f1f5f9; color: #1e293b; }
.filter-check-item.active { background: #fef3c7; color: var(--secondary); font-weight: 700; }
.filter-check-item .check-box {
    width: 16px; height: 16px; border-radius: 4px; border: 2px solid #cbd5e1; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; transition: all 0.15s; font-size: 9px; color: transparent;
}
.filter-check-item.active .check-box { border-color: var(--secondary); background: var(--secondary); color: #fff; }
.filter-badge { font-size: 0.65rem; background: #f1f5f9; color: #94a3b8; padding: 1px 6px; border-radius: 4px; margin-left: auto; font-weight: 600; }
.filter-range-input {
    width: 100%; border: 1px solid #f1f5f9; border-radius: 8px; padding: 8px 10px; font-size: 0.825rem;
    outline: none; background: #f8fafc; font-weight: 600; color: #334155; transition: all 0.2s;
}
.filter-range-input:focus { border-color: var(--secondary); background: #fff; }
.filter-range-input::placeholder { color: #cbd5e1; font-weight: 500; }
.filter-disabled { opacity: 0.45; pointer-events: none; }
/* Nested tree sub-lists */
.sub-list { padding-left: 18px; border-left: 2px solid #e2e8f0; margin: 4px 0 4px 14px; overflow: hidden; }
.sub-list .filter-radio-item { font-size: 0.8rem; padding: 6px 8px; }
.sub-list .sub-list { border-left-color: #bfdbfe; }
.sub-list .sub-list .filter-radio-item { font-size: 0.775rem; }

/* Range Slider Styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    outline: none;
    -webkit-slider-thumb-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(245, 178, 4, 0.5);
    transition: all 0.2s;
    border: 2px solid white;
}

input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 12px rgba(245, 178, 4, 0.8);
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(245, 178, 4, 0.5);
    border: 2px solid white;
    transition: all 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
    box-shadow: 0 0 12px rgba(245, 178, 4, 0.8);
    transform: scale(1.1);
}

input[type="range"].bg-secondary {
    background: linear-gradient(to right, var(--secondary) 0%, var(--secondary) 100%);
}

/* Select2 Theme Customization */
.select2-container {
    width: 100% !important;
    min-width: 140px;
}
.select2-container--default .select2-selection--single {
    background-color: #ffffff !important;
    border: 1px solid rgba(245, 178, 4, 0.2) !important;
    border-radius: 0.75rem !important;
    height: 42px !important;
    padding: 0 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    outline: none !important;
    box-shadow: inset 0 1px 1.5px rgba(15, 23, 42, 0.06) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0f172a !important;
    font-weight: 700 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    line-height: normal !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(245, 178, 4, 0.8) !important;
    opacity: 1 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: flex !important;
    align-items: center !important;
    right: 0.85rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: auto !important;
    width: auto !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: rgba(245, 178, 4, 1) transparent transparent transparent !important;
}
.select2-dropdown {
    background-color: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 0.85rem !important;
    box-shadow: 0 18px 28px -12px rgba(15, 23, 42, 0.16) !important;
    overflow: hidden !important;
    z-index: 9999 !important;
    padding: 4px !important;
    margin-top: 8px !important;
}
.select2-search--dropdown {
    padding: 8px !important;
}
.select2-search--dropdown .select2-search__field {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 0.75rem !important;
    padding: 8px 12px !important;
    outline: none !important;
    background-color: #ffffff !important;
}
.select2-results__option {
    padding: 10px 16px !important;
    font-size: 0.875rem !important;
    border-radius: 0.65rem !important;
    margin: 2px 0 !important;
}
.select2-results__option--highlighted[aria-selected] {
    background-color: rgba(245, 178, 4, 0.15) !important;
    color: #0f172a !important;
}
.select2-results__option--highlighted {
    background-color: rgba(245, 178, 4, 0.10) !important;
    color: #0f172a !important;
}
.select2-container--default .select2-results > .select2-results__options {
    max-height: 300px !important;
}
.select2-search--dropdown .select2-search__field:focus {
    border-color: #e2e8f0 !important;
    box-shadow: 0 0 0 2px rgba(229, 231, 235, 0.4) !important;
    outline: none !important;
}

.vehicle-card.list-view {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem !important;
    min-height: 170px !important;
}
.vehicle-card.list-view .relative.h-56 {
    width: 220px !important;
    min-width: 220px !important;
    height: 150px !important;
    margin-bottom: 0 !important;
    border-radius: 1.5rem !important;
    flex-shrink: 0 !important;
}
.vehicle-card.list-view .px-3.pb-3 {
    padding: 0 !important;
    flex: 1 !important;
    min-width: 0 !important;
}
.vehicle-card.list-view .grid.grid-cols-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0.8rem !important;
}
.vehicle-card.list-view .grid.grid-cols-2 > div {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
}
.vehicle-card.list-view .absolute.top-5.right-5 {
    top: 1rem !important;
    right: 1rem !important;
}
.vehicle-card.list-view h3 {
    margin-bottom: 0.4rem !important;
}
.vehicle-card.list-view .text-xl.font-bold.text-primary {
    font-size: 1.15rem !important;
    line-height: 1.15 !important;
}
.vehicle-card.list-view .flex.justify-between.items-end.mt-3 {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    margin-top: 0.6rem !important;
}
.vehicle-card.list-view .text-xs.text-slate-400 {
    white-space: nowrap !important;
}

/* Simple Select Styling */
select#sort-select {
    background-image: none !important;
}

select#sort-select:hover {
    border-color: rgba(245, 178, 4, 0.5) !important;
}

select#sort-select option {
    background-color: white;
    color: #334155;
    padding: 8px 12px;
    font-weight: 600;
}

select#sort-select option:checked {
    background: linear-gradient(var(--secondary), var(--secondary));
    background-color: var(--secondary) !important;
    color: white !important;
}

/* Active States */
.compare-btn.active { background-color: var(--secondary) !important; color: white !important; }
.compare-btn.active i { color: white !important; }
.favorite-btn.active { background-color: #fee2e2 !important; }
.favorite-btn.active i { color: #ef4444 !important; }

/* Secili Arac Kartư Vurgusu */
.vehicle-card.compare-active {
    border-color: var(--secondary) !important;
    border-width: 2px !important;
    box-shadow: 0 10px 15px -3px rgba(245, 178, 4, 0.1), 0 4px 6px -4px rgba(245, 178, 4, 0.1) !important;
    transform: translateY(-4px);
}
.compare-btn.active i.fa-scale-balanced { display: none; }
.compare-btn.active i.fa-check { display: inline-block; }

#detail-content.compare-active { border: 2px solid var(--secondary) !important; border-radius: 1rem; padding: 1rem; box-shadow: 0 10px 15px -3px rgba(245, 178, 4, 0.1) !important; }
