﻿.filter-column {
    display: none; /* Hidden by default on all devices */
}

    .filter-column.active {
        display: block;
    }

.filter-panel {
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

.filter-column.active .filter-panel {
    opacity: 1;
}

.filter-panel .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}





.filter-panel .accordion-button {
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
    padding: 10px;
}

    .filter-panel .accordion-button:not(.collapsed) {
        color: #fff;
        background-color: #6FB203;
    }

    .filter-panel .accordion-button:not(.collapsed)::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    }

.filter-checkbox {
    margin-bottom: 8px;
}

    .filter-checkbox label {
        font-size: 14px;
        color: #333;
        cursor: pointer;
    }

.range-dropdown {
    width: 100%;
    margin: 10px 0;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.range-values {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 0px;
}

.chip {
    display: flex;
    align-items: center;
    background-color: #6FB203;
    color: #fff;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    margin: 2px;
    max-width: 120px;
}

    .chip span:first-child {
        white-space: nowrap;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .chip .close-btn {
        margin-left: 8px;
        cursor: pointer;
        font-size: 16px;
        line-height: 1;
        transition: color 0.2s ease-in-out;
    }

        .chip .close-btn:hover {
            color: #ff4d4d;
        }

.filter-panel .accordion-body {
    max-height: 200px;
    overflow-y: auto;
}

/* Add this new class for the overlay */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 999; /* Below the filter panel (z-index 1000) */
}

@media (min-width: 768px) {
    .filter-column.active {
        position: relative;
    }

    .filter-panel {
        position: sticky;
        top: 75px;
    }

    .filter-buttons {
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .filter-column {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100% - 70px);
        z-index: 1000;
        overflow-y: auto;
        background: #fff;
    }

        .filter-column.active {
            display: block;
        }

            .filter-column.active + .filter-overlay {
                display: block; /* Show overlay when filter is active */
            }

    .filter-panel {
        width: 100%;
        height: 100%;
    }

    .filter-buttons {
        flex-direction: column;
        gap: 10px !important;
    }
}
