/* ============================================
   2026 FILTER UI OVERRIDES
   ============================================ */

/* NOTE: CSS Variables removed for .NET 4 bundling compatibility.
   Values hardcoded:
   Primary: #000000
   Primary Hover: #1a2730
   Bg: #ffffff
   Border: #e5e7eb
   Text: #1f2937
   Text Light: #6b7280
   Chip Bg: #d4dce4
   Chip Text: #000000
*/

/* ============================================
   SIDEBAR CONTAINER
   ============================================ */
#sideFilter {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.filter-container {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.filter-container .header {
    padding: 16px 20px;
    background: #ffffff;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    border-bottom: 1px solid #e5e7eb;
}

.filter-container .header.sm {
    background: #ffffff;
    color: #1f2937;
}

.filter-container .body {
    background-color: #ffffff;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    border-radius: 0 0 12px 12px;
}

.filter-container .body .filters {
    padding: 0;
}

/* ============================================
   APPLIED FILTERS SECTION
   ============================================ */
.applied-filters {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.applied-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.applied-filters-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.applied-filters-header .filter-count {
    background: #000000;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.clear-all-filters {
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s ease;
}

.clear-all-filters:hover {
    color: #1a2730;
    text-decoration: underline;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d4dce4;
    color: #000000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: #bfcbd6;
}

.filter-chip .remove-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(3, 105, 161, 0.2);
    cursor: pointer;
    transition: background 0.2s ease;
}

.filter-chip .remove-chip:hover {
    background: rgba(3, 105, 161, 0.4);
}

.filter-chip .remove-chip svg {
    width: 10px;
    height: 10px;
}

/* Hide applied filters when empty */
.applied-filters:empty,
.applied-filters.hidden {
    display: none;
}

/* ============================================
   COLLAPSIBLE FILTER SECTIONS
   ============================================ */
.filter.collapsible {
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
}

.filter .coll {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 20px 20px;
    transition: background-color 0.2s ease;
    min-height: 56px;
}

.filter .coll:hover {
    background-color: #f9fafb;
}

.filter .coll .title {
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    line-height: 1.4;
}

.filter .coll .filter-icon {
    font-size: 14px;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.filter .coll.collapsed .filter-icon {
    transform: rotate(180deg);
}

.filter .filter-collapse {
    margin-left: 0;
    padding: 0 20px 16px;
}

.filter .filter-collapse .check-filters {
    margin-top: 0;
    /* Removed max-height and overflow to prevent individual scrollbars */
    max-height: none;
    overflow-y: visible;
    padding-bottom: 2px;
}

/* ============================================
   CUSTOM CHECKBOX STYLING
   ============================================ */
.filter .check {
    display: flex;
    align-items: center;
    padding: 8px 0;
    position: relative;
}

.filter .check input[type="checkbox"],
.filter .check input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.filter .check label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #1f2937;
    font-weight: 400;
    line-height: 1.4;
    padding-left: 28px;
    position: relative;
    user-select: none;
    transition: color 0.2s ease;
}

.filter .check label::before {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    transition: all 0.2s ease;
}

.filter .check input[type="radio"]+label::before {
    border-radius: 50%;
}

.filter .check label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translateY(-60%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.filter .check input[type="radio"]+label::after {
    width: 8px;
    height: 8px;
    top: 9px;
    border: none;
    border-radius: 50%;
    background: white;
    left: 5px;
    transform: translateY(-50%);
}

.filter .check input:checked+label::before {
    background: #000000;
    border-color: #000000;
}

.filter .check input:checked+label::after {
    opacity: 1;
}

.filter .check input:checked+label {
    color: #1f2937;
    font-weight: 500;
}

.filter .check:hover label::before {
    border-color: #000000;
}

/* ============================================
   BODY STYLE ICONS
   ============================================ */
.filter-bodystyle .check {
    padding: 10px 0;
}

.filter-bodystyle .check label {
    padding-left: 32px;
}

.filter-bodystyle .check .bodystyle-icon {
    width: 40px;
    height: 24px;
    margin-right: 10px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.2s ease;
}

.filter-bodystyle .check input:checked+label .bodystyle-icon,
.filter-bodystyle .check:hover .bodystyle-icon {
    opacity: 1;
    filter: grayscale(0%);
}

/* SVG body style icons inline */
.bodystyle-icon-sedan {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M58 20h-2l-4-8H12l-4 8H6a2 2 0 00-2 2v4h4a4 4 0 108 0h28a4 4 0 108 0h6v-4a2 2 0 00-2-2zM12 26a2 2 0 110-4 2 2 0 010 4zm40 0a2 2 0 110-4 2 2 0 010 4z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.bodystyle-icon-suv {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M56 16H42l-6-8H14l-4 8H8a4 4 0 00-4 4v6h4a5 5 0 1010 0h22a5 5 0 1010 0h6v-6a4 4 0 00-4-4zM13 28a3 3 0 110-6 3 3 0 010 6zm38 0a3 3 0 110-6 3 3 0 010 6z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.bodystyle-icon-truck {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M58 18H36V8H10l-4 10H4a2 2 0 00-2 2v6h4a5 5 0 1010 0h28a5 5 0 1010 0h6v-6a2 2 0 00-2-2zM11 28a3 3 0 110-6 3 3 0 010 6zm42 0a3 3 0 110-6 3 3 0 010 6z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.bodystyle-icon-coupe {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M56 18l-8-8H18l-8 10H6a2 2 0 00-2 2v4h4a4 4 0 108 0h28a4 4 0 108 0h6v-4a2 2 0 00-2-2h-2zM12 26a2 2 0 110-4 2 2 0 010 4zm40 0a2 2 0 110-4 2 2 0 010 4z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.bodystyle-icon-van {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M56 12H42l-4-6H10a4 4 0 00-4 4v14h4a5 5 0 1010 0h20a5 5 0 1010 0h8a2 2 0 002-2v-8a2 2 0 00-2-2h-2zM15 28a3 3 0 110-6 3 3 0 010 6zm34 0a3 3 0 110-6 3 3 0 010 6z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.bodystyle-icon-crossover {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M54 16H44l-6-8H16l-6 10H8a3 3 0 00-3 3v5h4a5 5 0 1010 0h22a5 5 0 1010 0h6v-5a3 3 0 00-3-3zM14 28a3 3 0 110-6 3 3 0 010 6zm36 0a3 3 0 110-6 3 3 0 010 6z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.bodystyle-icon-wagon {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M56 14H48l-4-6H14l-4 8H6a2 2 0 00-2 2v6h4a4 4 0 108 0h28a4 4 0 108 0h6v-8a2 2 0 00-2-2zM12 26a2 2 0 110-4 2 2 0 010 4zm40 0a2 2 0 110-4 2 2 0 010 4z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.bodystyle-icon-hatchback {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M52 16l-4-6H16l-6 8H8a2 2 0 00-2 2v4h4a4 4 0 108 0h24a4 4 0 108 0h6v-4a2 2 0 00-2-2h-2zM14 26a2 2 0 110-4 2 2 0 010 4zm36 0a2 2 0 110-4 2 2 0 010 4z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.bodystyle-icon-convertible {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%236b7280' d='M56 18l-8-6H20l-10 8H8a2 2 0 00-2 2v2h4a4 4 0 108 0h28a4 4 0 108 0h6v-2a2 2 0 00-2-2-2 2 0 01-2-2zM14 26a2 2 0 110-4 2 2 0 010 4zm38 0a2 2 0 110-4 2 2 0 010 4z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* ============================================
   COLOR SWATCHES FOR EXTERIOR/INTERIOR COLOR
   ============================================ */
.filter-color .check {
    padding: 8px 0;
}

.filter-color .check label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
    margin-left: auto;
}

/* Common color swatches */
.color-swatch-black {
    background: #1f2937;
}

.color-swatch-white {
    background: #ffffff;
    border-color: #d1d5db;
}

.color-swatch-silver {
    background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%);
}

.color-swatch-grey,
.color-swatch-gray {
    background: #6b7280;
}

.color-swatch-red {
    background: #dc2626;
}

.color-swatch-blue {
    background: #2563eb;
}

.color-swatch-brown {
    background: #78350f;
}

.color-swatch-green {
    background: #16a34a;
}

.color-swatch-beige {
    background: #d4c4a8;
}

.color-swatch-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.color-swatch-orange {
    background: #ea580c;
}

.color-swatch-yellow {
    background: #facc15;
}

.color-swatch-purple {
    background: #7c3aed;
}

.color-swatch-tan {
    background: #c9a66b;
}

.color-swatch-maroon {
    background: #7f1d1d;
}

.color-swatch-burgundy {
    background: #7f1d1d;
}

.color-swatch-navy {
    background: #1e3a5f;
}

.color-swatch-charcoal {
    background: #374151;
}

/* ============================================
   RANGE SLIDER STYLING
   ============================================ */
.filter .budget {
    color: #1f2937;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    margin-top: 8px;
    padding: 0;
}

.filter .budget .budget-slider {
    margin-top: 12px;
    padding: 0;
}

/* Slider value inputs */
.slider-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.slider-input-group {
    flex: 1;
}

.slider-input-group label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.slider-input-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
    text-align: center;
    background-color: #fff;
}

.slider-input-group input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(37, 55, 70, 0.15);
}

/* noUiSlider Override for Modern style */
.budget-slider .noUi-target {
    border: none;
    box-shadow: none;
    background: #e5e7eb;
    height: 4px;
    border-radius: 2px;
}

.budget-slider .noUi-base,
.budget-slider .noUi-connects {
    background: #e5e7eb;
    border-radius: 2px;
}

.budget-slider .noUi-connect {
    background: #000000;
}

.budget-slider .noUi-horizontal .noUi-handle {
    width: 20px;
    height: 20px;
    right: -10px;
    top: -8px;
    border-radius: 50%;
    border: 2px solid #000000;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: grab;
}

.budget-slider .noUi-horizontal .noUi-handle:active {
    cursor: grabbing;
    box-shadow: 0 2px 8px rgba(37, 55, 70, 0.35);
}

.budget-slider .noUi-handle:after,
.budget-slider .noUi-handle:before {
    display: none;
}

/* ============================================
   SPECIALS TOGGLE SWITCH
   ============================================ */
.filter-toggle {
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    min-height: 56px;
}

.filter-toggle .toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    font-family: Roboto, Poppins, sans-serif;
    line-height: 1.4;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: all 0.3s ease;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background-color: #000000;
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(20px);
}

/* ============================================
   FILTER BUTTONS
   ============================================ */
.filter-buttons {
    padding: 16px 20px;
    margin-top: 0;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    gap: 10px;
}

.filter-buttons .btn {
    flex: 1;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    transition: all 0.2s ease;
}

.filter-buttons .btn-primary,
.filter-buttons .btn-apply {
    background: #000000;
    border-color: #000000;
    color: white;
}

.filter-buttons .btn-primary:hover,
.filter-buttons .btn-apply:hover {
    background: #1a2730;
    border-color: #1a2730;
}

.filter-buttons .btn-outlined,
.filter-buttons .btn-clear {
    background: white;
    border: 1px solid #e5e7eb;
    color: #1f2937;
}

.filter-buttons .btn-outlined:hover,
.filter-buttons .btn-clear:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* ============================================
   MILEAGE (KM) FILTER INPUTS
   ============================================ */
.mileage-inputs {
    display: flex;
    gap: 12px;
    padding: 0 0 8px;
}

.mileage-input-group {
    flex: 1;
}

.mileage-input-group label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.mileage-input-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}

/* ============================================
   MOBILE FILTER TOGGLE BUTTON
   ============================================ */
.mobile-filter-toggle {
    display: none;
}

@media (max-width: 991px) {
    .search-bar-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .search-bar-wrapper .text-filter {
        flex: 1;
        display: flex;
        align-items: center;
    }

    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background: #f0f5fa;
        color: #6b7280;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        font-size: 18px;
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.2s ease;
        position: relative;
    }

    .mobile-filter-toggle:hover {
        background: #e5ebf1;
        color: #1f2937;
    }

    .mobile-filter-toggle i {
        font-size: 18px;
    }

    .mobile-filter-count {
        position: absolute;
        top: -6px;
        right: -6px;
        background: #253746;
        color: white;
        font-size: 11px;
        font-weight: 700;
        padding: 2px 5px;
        border-radius: 10px;
        min-width: 18px;
        text-align: center;
        line-height: 1.2;
    }

    .mobile-filter-count.hidden {
        display: none;
    }

    .text-filter .input-field {
        flex: 1;
    }
}

@media (min-width: 992px) {
    .mobile-filter-overlay {
        display: none !important;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991px) {
    #sideFilter {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 360px;
        height: 100vh;
        max-height: none;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        background: white;
    }

    #sideFilter.show {
        transform: translateX(0);
    }

    .filter-container {
        border: none;
        border-radius: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
        height: 100%;
    }

    .filter-container .body {
        height: auto !important;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }

    .mobile-filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-filter-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile filter header with close */
    .filter-container .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .filter-close-btn {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        color: #1f2937;
        font-size: 24px;
    }

    /* Hide sticky header when mobile filter is open */
    body.mobile-filter-open .header,
    body.mobile-filter-open .header--mobile,
    body.mobile-filter-open .header__wrap,
    body.mobile-filter-open .header__banner,
    body.mobile-filter-open .search-bar-wrapper {
        display: none !important;
    }
}

/* Mobile Apply Filters Button Footer */
.mobile-filter-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.btn-apply-filters {
    width: 100%;
    padding: 14px 24px;
    background: #000000;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-apply-filters:hover,
.btn-apply-filters:focus {
    background: #141c24;
}

@media (max-width: 767px) {
    #sideFilter {
        max-width: 100%;
    }
}

/* ============================================
   SEARCH BAR WRAPPER (Modern-style)
   ============================================ */
.search-bar-wrapper {
    background: #f0f1f3;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: sticky;
    top: 16px;
    z-index: 100;
    transition: all 0.3s ease;
}

.search-bar-wrapper.is-sticky {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 12px 12px;
    background-color: #1a2730;
    top: 0;
    z-index: 1050;
}

.search-bar-wrapper .text-filter {
    background: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 4px 0;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.search-bar-wrapper .text-filter .icon {
    color: #6b7280;
    font-size: 18px;
    padding: 10px 12px;
    min-width: 44px;
}

.search-bar-wrapper .text-filter .search-icon-btn {
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-bar-wrapper .text-filter .search-icon-btn:hover {
    color: #1f2937;
}

.search-bar-wrapper .text-filter .input-field {
    border: none;
    font-size: 16px;
    line-height: 24px;
    height: 40px;
    padding: 8px 12px 8px 0;
    background: transparent;
    outline: none;
    box-shadow: none;
}

.search-bar-wrapper .text-filter .input-field:focus {
    outline: none;
    box-shadow: none;
}

.search-bar-wrapper .text-filter .input-field::placeholder {
    color: #9ca3af;
}

/* ============================================
   PAGINATION (Modern-style compact)
   ============================================ */
#dvPagination.results-pagination {
    margin-left: 360px;
    margin-top: 40px;
    margin-bottom: 40px;
}

#dvPagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: none;
    flex-wrap: wrap;
}

#dvPagination .pagination>li {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin: 0;
    float: none;
}

#dvPagination .pagination>li.pagination-chevron {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

#dvPagination .pagination>li.pagination-chevron:not(.disabled):hover {
    background: #e5e7eb;
}

#dvPagination .pagination>li.pagination-chevron.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#dvPagination .pagination>li a {
    font-size: 14px;
    line-height: 1;
    color: #1f2937;
    font-weight: 500;
    padding: 0;
    background: transparent;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border:none;
}

#dvPagination .pagination>li.pagination-chevron a {
    font-size: 16px;
    color: #6b7280;
}

#dvPagination .pagination>li.pagination-chevron a i {
    font-size: 14px;
}

#dvPagination .pagination>li:not(.pagination-chevron):not(.active):not(.disabled):hover {
    background: #f3f4f6;
}

#dvPagination .pagination>li.active {
    background: #000000;
}

#dvPagination .pagination>li.active a {
    color: #ffffff;
    font-weight: 600;
}

#dvPagination .pagination>li.disabled a {
    color: #9ca3af;
    cursor: not-allowed;
    pointer-events: none;
}

/* Pagination responsive adjustments */
@media (max-width: 991px) {
    #dvPagination.results-pagination {
        margin-left: 0;
    }
}

@media (max-width: 1450px) and (min-width: 992px) {
    #dvPagination.results-pagination {
        margin-left: 310px;
    }
}

/* ============================================
   CUSTOM COLLAPSE (replaces Bootstrap collapse)
   ============================================ */
.filter .filter-collapse {
    display: none;
    overflow: hidden;
}

/* Show content that should be visible by default (has 'in' class or 'collapse-in' class) */
.filter .filter-collapse.in,
.filter .filter-collapse.collapse-in {
    display: block;
}

/* Chevron rotation - matches slideToggle duration (200ms) */
/* When expanded (open): point up. When collapsed (closed): point down */
.filter .coll .filter-icon {
    transition: transform 0.2s ease;
    transform: rotate(180deg);
}

.filter .coll.collapsed .filter-icon {
    transform: rotate(0deg);
}

/* ============================================
   MODERN-STYLE COMBINED PAYMENT & PRICE FILTER
   ============================================ */
.filter-subsection {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.filter-subsection:first-child {
    padding-top: 8px;
}

.filter-subsection-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.filter-subsection-desc {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 16px;
}

.slider-separator {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: #9ca3af;
    font-size: 14px;
}

/* Slider container with extra spacing */
.slider-container {
    padding: 16px 0 8px 0;
}

/* Slider range labels (min/max below slider) */
.slider-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
    color: #6b7280;
}

.slider-range-min,
.slider-range-max {
    font-weight: 400;
}

/* Single input for payment slider */
.slider-input-single {
    flex: 0 0 auto !important;
}

.slider-input-single input {
    width: 120px !important;
}

/* CTA Sections */
.filter-cta-section {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.filter-cta-section:last-child {
    border-bottom: none;
    padding-bottom: 12px;
}

.filter-cta-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.filter-cta-desc {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Override noUiSlider for Modern-style larger handles */
.budget-slider .noUi-horizontal .noUi-handle {
    width: 28px;
    height: 28px;
    right: -14px;
    top: -12px;
    border-radius: 50%;
    border: 2px solid #000000;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: grab;
}

.budget-slider .noUi-horizontal .noUi-handle:active {
    cursor: grabbing;
    box-shadow: 0 2px 10px rgba(37, 55, 70, 0.45);
}

.budget-slider .noUi-horizontal .noUi-handle::before,
.budget-slider .noUi-horizontal .noUi-handle::after {
    display: none;
}

/* Thicker track for visibility */
.budget-slider .noUi-target {
    height: 6px;
    border-radius: 3px;
}

/* Payment slider single handle - connect goes from start */
.payment-slider-single .noUi-connect {
    background: #253746;
}

/* ============================================
   MOBILE INLINE CONDITION FILTER BUTTONS
   ============================================ */
.mobile-condition-filter {
    display: none;
}

@media (max-width: 991px) {
    .mobile-condition-filter {
        display: flex;
        gap: 8px;
        padding: 10px 0;
        margin-bottom: 5px;
    }

    .mobile-condition-filter .condition-btn {
        flex: 1;
        padding: 8px 12px;
        border: 1px solid #e5e7eb;
        border-radius: 20px;
        background: #fff;
        color: #6b7280;
        font-size: 14px;
        font-weight: 500;
        font-family: Roboto, Poppins, sans-serif;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: center;
    }

    .mobile-condition-filter .condition-btn:hover {
        background: #f3f4f6;
        border-color: #d1d5db;
    }

    .mobile-condition-filter .condition-btn.active {
        background: #253746;
        border-color: #253746;
        color: #fff;
    }

    .mobile-condition-filter .condition-btn.active:hover {
        background: #1a2830;
        border-color: #1a2830;
    }
}
