.filter-bar {
    background: #fff;
    width: 100%;
    font-family: "Montserrat-Normal", sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #717171;
}

/* .filter-bar .filter-container .filters-wrapper {
    flex: 1 1 auto;
    border-right: 1px solid #e3e3e3;
} */

.filter-bar .filter-container .filters-wrapper .filter-bar-slider {
    padding: 20px 10px 00px 10px;
}

.filter-bar .filter-container .filters-wrapper .filter-bar-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding: 10px;
}

.filter-bar .filter-container .filters-wrapper .filter-bar-filters .filter-wrapper {
    flex: 1 1 calc(16.666% - 30px); /* 6 items: 100/6 = 16.666% */
    min-width: calc(16.666% - 30px);
    display: flex;
    align-items: center;
}

.filter-bar .filter-container .filters-wrapper .filter-bar-filters .filter-wrapper:nth-last-child(5):first-child,
.filter-bar .filter-container .filters-wrapper .filter-bar-filters .filter-wrapper:nth-last-child(5):first-child ~ .filter-wrapper {
    flex: 1 1 calc(33.333% - 30px); /* 3 items per row */
    min-width: calc(33.333% - 30px);
}


.filter-bar .filter-container .filters-wrapper .filter-bar-filters .filter-wrapper .icon-wrapper .icon {
    width: 20px;
    margin-right: 10px;
}

.filter-bar .filter-container .filters-wrapper .filter-bar-filters .filter-wrapper .filter-field-wrapper {
    width: 100%;
    border: 1px solid #C1C1C1;
}

.filter-bar .filter-container .filters-wrapper .filter-bar-filters .filter-wrapper .filter-field-wrapper .filter-input-field {   
    margin-bottom: 0;
    border: 0;
    border-radius: 20px;
    outline: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    font-weight: inherit;
    height: 40px;
}

.filter-bar .filter-container .filter-button-wrapper {
    padding: 0px 10px 10px 10px;
}

.filter-bar .filter-container .filter-button-wrapper .filter-wrapper .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: inherit;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    user-select: none;
}

.filter-bar .filter-container .filter-button-wrapper .filter-wrapper .btn.btn-filter {
    color: white;
    background-color: #242477;
    border: 1px solid #242477;
}

.filter-bar .filter-container .filter-button-wrapper .filter-wrapper .btn.btn-show-more {
    display: none;
    color: #242477;
    border: 1px solid #242477;
    margin-top: 4px;
}

.filter-bar .filter-container .filter-button-wrapper .filter-wrapper .btn-filter .icon {
    width: 30px;
    padding-right: 10px;
}

/* Multiselect filter css */

.filter-bar .multi-select {
    padding-right: 30px;
}

.filter-bar .multi-select * {
    font-size: inherit !important;
}

.filter-bar .multi-select .multi-select-header {
    display: flex;
    align-items: flex-start;
    padding-top: 5px;
    border: 0;
    flex-direction: column;
    height: 40px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #242477 transparent;
}

.filter-bar .multi-select .multi-select-header .multi-select-header-option {
    word-break: break-word;
    overflow-wrap: break-word;
}

.filter-bar .multi-select .multi-select-header::-webkit-scrollbar {
    height: 2px;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.filter-bar .multi-select .multi-select-header::-webkit-scrollbar-track {
    background: transparent;
}

.filter-bar .multi-select .multi-select-header::-webkit-scrollbar-thumb {
    background-color: #242477;
    border-radius: 10px;
}

/* Show scrollbar on hover */
.filter-bar .multi-select .multi-select-header:hover::-webkit-scrollbar {
    opacity: 1;
}

.filter-bar .multi-select .multi-select-header:hover::-webkit-scrollbar-thumb {
    background-color: #888;
}

/* Range Slider */

.filter-bar .slider-container .slider-label {
    width: 40px;
    color: inherit;
}

.filter-bar .slider-container .progress-bar-container {
    height: 10px;
    background: #eee;
}

.filter-bar .slider-container .progress-bar-container .progress-bar {
    /* background: #aaa; */
    background: #242477;
    border: 0;
    filter: drop-shadow(5px 0px 3px grey);
    /* background: 
        url('https://d34za4dk7fsfj6.cloudfront.net/a4cb299c-fc78-4239-8cd8-7c2fe796ff0f/images/icons/icon-smoke.png') repeat-x 0 0,
        url('https://d34za4dk7fsfj6.cloudfront.net/a4cb299c-fc78-4239-8cd8-7c2fe796ff0f/images/icons/icon-smoke.png') repeat-x 35px 0;
    background-size: 70px 70px;
    width: 100%;
    /* height: 70px;
    margin-top: -30px;
    filter: drop-shadow(5px 0px 3px grey); */ 
}

.filter-bar .custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    /* width: 50px;
    height: 50px;
    background: url('https://d34za4dk7fsfj6.cloudfront.net/a4cb299c-fc78-4239-8cd8-7c2fe796ff0f/images/icons/icon-car.svg') no-repeat center center;
    background-size: 50px 50px;
    border-radius: 0;
    margin-top: -37px; */
    width: 20px;
    height: 20px;
    background: rgb(252, 95, 0);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    margin-top: -15px;
}

.filter-bar .custom-slider::-moz-range-thumb {
    width: 50px;
    height: 50px;
    background: url('https://d34za4dk7fsfj6.cloudfront.net/a4cb299c-fc78-4239-8cd8-7c2fe796ff0f/images/icons/icon-car.svg') no-repeat center center;
    background-size: 50px 50px;
    border-radius: 0;
    margin-top: -37px;
}

@media (max-width: 768px) {
    .filter-bar .filter-container .filters-wrapper .filter-bar-filters {
        gap: 15px;
    }
    
    .filter-bar .filter-container .filters-wrapper .filter-bar-filters .filter-wrapper {
        flex: 1 1 calc(50% - 15px); /* 2 items per row */
        min-width: calc(50% - 15px);
    }
    
    /* Hide items after the first 2 by default */
    .filter-bar .filter-container .filters-wrapper .filter-bar-filters .filter-wrapper:nth-child(n+3) {
        display: none;
    }
    
    /* When "show more" is active (add this class via JavaScript) */
    .filter-bar .filter-container .filters-wrapper .filter-bar-filters.show-all .filter-wrapper:nth-child(n+3) {
        display: flex;
    }
    
    /* Items 3-4: half width (2 per row) */
    .filter-bar .filter-container .filters-wrapper .filter-bar-filters.show-all .filter-wrapper:nth-child(3),
    .filter-bar .filter-container .filters-wrapper .filter-bar-filters.show-all .filter-wrapper:nth-child(4) {
        flex: 1 1 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }
    
    /* Items 5-6: full width */
    .filter-bar .filter-container .filters-wrapper .filter-bar-filters.show-all .filter-wrapper:nth-child(5),
    .filter-bar .filter-container .filters-wrapper .filter-bar-filters.show-all .filter-wrapper:nth-child(6) {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .filter-bar .filter-container .filter-button-wrapper .filter-wrapper .btn.btn-show-more {
        display: flex;
    }
}