/* Filter Button Styling */
.filter-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #bac11b;
    color: white;
    border: none;
    padding: 14px 18px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover {
    background-color: #9aa013;
}

/* Make Button Smaller on Mobile */
@media (max-width: 600px) {
    .filter-btn {
        padding: 10px 12px;
        font-size: 14px;
        bottom: 15px;
        right: 15px;
    }
}

/* MODAL STYLING */
.modal {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* MODAL CONTENT */
.modal-content {
    background: #222;
    padding: 25px;
    border-radius: 12px;
    width: 450px;
    text-align: center;
    color: white;
    box-shadow: 0px 6px 20px rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Modal Title */
.modal-content h2 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #bac11b;
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #bac11b;
}

/* MODAL FILTER STYLING */
.filters-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    flex-direction: column;
    gap: 15px;
}

/* FILTER GROUP */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    background-color: #111;
    border-radius: 8px;
    width: 100%;
}

/* FILTER DROPDOWN */
.filter-select {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.filter-select:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.filter-select:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.filter-select option {
    background-color: #0056b3;
    color: white;
    padding: 12px;
}

/* Mobile-Friendly Modal */
@media (max-width: 500px) {
    .modal-content {
        width: 90%;
        padding: 20px;
    }

    .modal-content h2 {
        font-size: 20px;
    }

    .filter-group {
        padding: 10px;
    }

    .filter-select {
        font-size: 14px;
        padding: 10px 14px;
    }

    .close-modal {
        font-size: 20px;
    }
}

/* Clear Filters Button */
.clear-btn {
    background-color: #444;
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    margin-top: 15px;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.clear-btn:hover {
    background-color: #bac11b;
    transform: scale(1.05);
}

.clear-btn:active {
    transform: scale(0.95);
}

/* Mobile Adjustment */
@media (max-width: 500px) {
    .clear-btn {
        font-size: 14px;
        padding: 10px 14px;
    }
}
