/*
 * Styles for the full-screen mobile filter menu
 */
.mobile-filters-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 1001; /* Must be higher than the header */
    display: flex;
    flex-direction: column;

    /* Hidden by default, off-screen at the top */
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    visibility: hidden;
}

/* Class to show the menu */
.mobile-filters-menu.is-open {
    transform: translateY(0);
    visibility: visible;
}

.mobile-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px; /* Matches padding-sm-portrait */
    border-bottom: 1px solid var(--light-grey);
    flex-shrink: 0; /* Prevents the header from shrinking */
}

.mobile-filters-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto; /* Enables scrolling if the list is long */
    flex-grow: 1;
}

.mobile-filters-list li a {
    display: flex;
    align-items: center;
    padding: 18px 16px;
    text-decoration: none;
    color: var(--main-dark-blue);
    font-size: var(--font-size-large);
    border-bottom: 1px solid #f0f0f0;
}

.mobile-filters-list li img {
    width: 24px;
    height: 24px;
    margin-right: 15px;
}

/* We use the existing class from your CSS to block body scroll */
body.modal-open {
    overflow: hidden;
}

.mobile-filters-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between "Fermer" and the icon */
    color: #888; /* A neutral color for the text */
    font-size: 1rem;
    font-weight: 500;
}

.mobile-filters-close-btn:hover {
    color: var(--main-dark-blue); /* Darken on hover */
}

.mobile-filters-list li.active {
    /* The orange indicator bar */
    border-left: 4px solid var(--main-orange);
    background-color: #fdf8f2; /* A very light orange background */
}

.mobile-filters-list li.active a {
    font-weight: 600;
    /* Move the content slightly to the right to account for the border */
    padding-left: 12px;
}