/* --- General Filter Styles --- */
.vehicle-filters-sidebar {
    padding: 20px;
    border: #2D79C480 2px solid;
    border-top-width: 0;
    background: #f1f3f5;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.filter-group input[type="text"],
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #8fb6dc;
    border-radius: 4px;
    box-sizing: border-box;
}

.cvf-button {
    padding: 10px 30px;
    background-color: #f4a716;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-family: 'DM Sans';
    transition: all 0.4s ease 0s;
}

.cvf-button:hover {
    background-color: #2d79c3;
}

/* --- Price Slider --- */
#price-slider {
    margin: 10px 5px;
    margin-right: 12px;
}
.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}
.ui-slider .ui-slider-handle {
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    background: #2d79c3;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    cursor: pointer;
    outline-color: #f4a716;
}
.ui-slider-horizontal .ui-slider-handle {
    top: -0.74em;
}
.ui-slider-range {
    background: #2d79c3;
}
.ui-slider-horizontal {
    height: .3em !important;
}

/* --- AJAX Loader --- */
.vehicle-listings-container.loading {
    opacity: 0.5;
    position: relative;
    min-height: 200px;
}
.cvf-loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -25px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- NEW: Mobile Responsive Styles --- */
.cvf-mobile-only {
    display: none; /* Hidden by default */
}

@media (max-width: 900px) {
    /* Show the mobile toggle button */
    #cvf-mobile-toggle.cvf-mobile-only {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        background: #2d79c3;
        text-align: left;
        padding-left: 30px;
        padding-right: 30px;
        line-height: 1.8;
    }
    
    /* Style the close button inside the sidebar */
    #cvf-mobile-close.cvf-mobile-only {
        display: flex;
        position: absolute;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        top: 10px;
        right: 15px;
        font-size: 28px;
        font-weight: bold;
        line-height: 1;
        color: #12314f;
        background: none;
        border: none;
        cursor: pointer;
        padding-left: 43px;
        padding-top: 20px;
        font-family: 'DM Sans';
    }
    .view-results-btn.cvf-button.cvf-mobile-only {
        display: block;
        width: 100%;
        margin-top: 10px;
        padding: 15px 20px !important;
        font-size: 15px !important;
        font-weight: 600;
        color: #ffffff;
        background: #f4a716;
        border-radius: 8px;
        transition: all .2s ease-in-out;
    }
    .view-results-btn.cvf-button.cvf-mobile-only:hover {
        background: #2d79c3;
    }
    .vehicle-filters-sidebar {
        position: fixed;
        top: 0;
        left: -320px; /* Start off-screen */
        width: 320px;
        height: 100%;
        z-index: 10000;
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
        background-color: #ffffff; /* Match the provided screenshot background */
        padding: 80px 30px 40px;
        border: none !important;
        border-radius: 0 !important;
    }
    .vehicle-filters-sidebar.active {
        left: 0; /* Slide in */
    }
    body.cvf-sidebar-active .filter-sidebar::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 99;
    }
    body.cvf-sidebar-active .fusion-tb-header .custom-header {
        display: none !important;
    }
    body.cvf-sidebar-active .vehicle-with-sidebar {
        z-index: 99999999;
    }
}