.bds-filter-bar-wrapper {
    background: transparent;
    padding: 0;
    margin-bottom: 24px;
    width: 100%;
}

.bds-premium-filter {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 0;
    width: 100%;
    overflow: visible; 
}

.filter-divider {
    width: 1px;
    height: 40px;
    background-color: #e5e7eb;
    margin: 0;
    flex-shrink: 0;
}

.filter-item {
    position: relative;
    padding: 10px 12px;
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60px;
    transition: background-color 0.2s;
    cursor: pointer;
    white-space: nowrap;
}
.filter-item:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.filter-item:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.filter-search {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 1.5; 
    cursor: text;
}
.filter-search i {
    color: #6b7280;
    font-size: 16px;
}
.filter-search input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 15px !important;
    padding: 0;
    margin: 0;
    height: 100%;
    color: #374151;
    width: 100%;
    outline: none !important;
}
.filter-search input:focus {
    box-shadow: none !important;
    background: transparent !important;
}

.filter-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.filter-label i {
    font-size: 10px;
    color: #9ca3af;
}

.filter-value {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.bds-clear-filter {
    display: inline-flex;
    margin-left: 6px;
    color: #9ca3af;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s, transform 0.2s;
}
.bds-clear-filter:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.filter-select-wrap {
    position: relative;
}
.hidden-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    appearance: none; 
}

.bds-custom-dropdown {
    position: relative;
}
.bds-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 16px;
    width: 300px;
    z-index: 100;
    display: none;
    cursor: default;
}
.bds-custom-dropdown.show .bds-dropdown-panel {
    display: block;
}

.select-panel {
    padding: 8px 0;
    width: 250px;
}
.bds-select-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 250px;
    overflow-y: auto;
}
.bds-select-list li {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    color: #374151;
    transition: background 0.2s;
    margin: 0;
}
.bds-select-list li a {
    display: block;
    color: inherit;
    text-decoration: none;
}
.bds-select-list li:hover {
    background-color: #f3f4f6; 
}
.bds-select-list li.active {
    font-weight: 600;
    color: #e85a24;
}

.slider-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.slider-inputs > div {
    flex: 1;
}
.slider-inputs label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
    display: block;
}
.slider-inputs input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}
.slider-inputs input:focus {
    border-color: #e85a24;
}

.bds-dual-range {
    position: relative;
    width: 100%;
    height: 4px;
    margin: 20px 0 16px;
    background: #e5e7eb;
    border-radius: 4px;
}
.bds-range-progress {
    position: absolute;
    height: 100%;
    background: #e85a24;
    border-radius: 4px;
    left: 0%;
    right: 0%;
}
.bds-dual-range input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    top: -2px;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
    background: none;
    margin: 0;
    padding: 0;
    outline: none;
}
.bds-dual-range input[type="range"]::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e85a24;
    pointer-events: auto;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.bds-dual-range input[type="range"]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e85a24;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.slider-footer {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.slider-footer.dual-btns {
    justify-content: space-between;
    gap: 12px;
}
.bds-btn-clear {
    flex: 1;
    background-color: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.bds-btn-clear:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}
.bds-btn-apply {
    flex: 1;
    background-color: #e85a24;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.bds-btn-apply:hover {
    background-color: #c94010;
}

.filter-actions {
    flex: 1.2; 
    cursor: default;
    padding-left: 12px;
    padding-right: 12px;
}
.filter-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
}
.filter-advanced-btn {
    background: transparent;
    color: #4b5563;
    border: none;
    padding: 0;
    margin: 0;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: none;
    text-transform: none !important; 
}
.filter-advanced-btn:hover {
    color: #111827;
    background: transparent;
    box-shadow: none;
    transform: translateY(-1px);
}
.filter-reset-btn {
    position: relative;
    padding-left: 24px;
    color: #ff0000;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s;
    margin: 0;
    text-transform: none !important;
}
.filter-reset-btn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background-color: #d1d5db;
}
.filter-reset-btn:hover {
    color: #cc0000;
    transform: translateY(-1px);
}

.mobile-filter-trigger {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex: 0.8;
}
.btn-open-modal {
    background: transparent;
    border: none;
    color: #111827;
    font-weight: 600;
    font-size: 15px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: none;
    text-transform: none !important;
}

@media (min-width: 1101px) {
    .mobile-only, .mobile-filter-trigger, .filter-modal-overlay {
        display: none !important;
    }
    .filter-modal-wrapper, 
    .filter-modal-content, 
    .filter-modal-body {
        display: contents; 
    }
}

.mobile-only {
    display: none;
}
.desktop-only {
    display: flex;
}

.bds-extra-modal-wrapper {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: none; 
    align-items: center;
    justify-content: center;
}
.bds-extra-modal-wrapper.show {
    display: flex;
}
.bds-extra-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.bds-extra-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 10001;
    overflow: hidden;
    animation: extraSlideDown 0.3s ease forwards;
}
@keyframes extraSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.bds-extra-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}
.bds-extra-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}
.btn-close-extra {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
}
.bds-extra-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}
.bds-extra-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}

@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }

    .bds-premium-filter {
        box-shadow: none;
        border-radius: 8px; 
    }
    .mobile-filter-trigger {
        border-left: 1px solid #e5e7eb;
    }

    
    .filter-modal-wrapper {
        position: fixed;
        inset: 0;
        z-index: -1;
        visibility: hidden;
        opacity: 0;
        transition: 0.3s;
    }
    .filter-modal-wrapper.open {
        z-index: 9999;
        visibility: visible;
        opacity: 1;
    }

    .filter-modal-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.5);
    }

    .filter-modal-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 16px 16px 0 0;
        display: flex;
        flex-direction: column;
        max-height: 85vh;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .filter-modal-wrapper.open .filter-modal-content {
        transform: translateY(0);
    }

    .filter-modal-header {
        padding: 16px 20px;
        border-bottom: 1px solid #e5e7eb;
        text-align: center;
    }
    .filter-modal-header h3 {
        margin: 0;
        font-size: 16px;
        font-weight: bold;
    }

    .filter-modal-body {
        padding: 0 20px;
        overflow-y: auto;
    }

    .filter-item {
        width: 100%;
        min-height: 60px;
    }
    .filter-divider {
        width: 100%;
        height: 1px;
    }

    
    .bds-dropdown-panel {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px dashed #e5e7eb;
        border-radius: 0;
        margin-top: 0;
        padding: 16px 0;
    }

    
    .filter-modal-footer {
        padding: 16px 20px;
        border-top: 1px solid #e5e7eb;
        display: flex;
        gap: 12px;
        background: #fff;
    }
    .bds-btn-close-modal {
        flex: 1;
        background: #f3f4f6;
        color: #374151;
        border: none;
        padding: 12px;
        border-radius: 8px;
        font-weight: 600;
    }
    .bds-btn-submit-modal {
        flex: 1;
        background: #e85a24;
        color: #fff;
        border: none;
        padding: 12px;
        border-radius: 8px;
        font-weight: 600;
    }
}