/* Filter Styles */
.filter-sidebar {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.filter-header h4 {
    margin: 0;
    font-size: 20px;
}

.close-filter {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #2c2c2c;
}

.close-filter:hover {
    color: #dc3545;
}

.filter-list {
    max-height: none;
    overflow: hidden;
}

.filter-item {
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.filter-item-hidden {
    display: none;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
    font-size: 14px;
}

.form-check-input {
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

.show-more-btn,
.show-less-btn {
    color: #dc3545;
    text-decoration: none;
    font-size: 13px;
}

.show-more-btn:hover,
.show-less-btn:hover {
    color: #c82333;
    text-decoration: underline;
}

.filter-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

/* Mobile Filter Toggle Button */
.filter-toggle-btn {
    display: none;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #dc3545;
    color: #ffffff;
    border: none;
    padding: 15px 8px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    z-index: 998;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.filter-toggle-btn:hover {
    background: #c82333;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
}

/* Mobile Drawer Styles */
@media (max-width: 991.98px) {
    .filter-toggle-btn {
        display: block;
    }

    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        overflow-y: auto;
        z-index: 999;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
        border-radius: 0;
    }

    .filter-sidebar.active {
        left: 0;
    }

    .filter-header {
        display: flex !important;
    }
}

/* Overlay for mobile drawer */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-overlay.active {
    display: block;
    opacity: 1;
}

/* RTL Support */
[dir="rtl"] .filter-toggle-btn {
    left: auto;
    right: 0;
    border-radius: 8px 0 0 8px;
}

[dir="rtl"] .filter-sidebar {
    left: auto;
    right: -100%;
    transition: right 0.3s ease;
}

[dir="rtl"] .filter-sidebar.active {
    left: auto;
    right: 0;
}
