/* -------------------- FILTERS -------------------- */
.filters-container {
    display: flex;
    flex-direction: row;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filters-container.active {
    max-height: fit-content;
}

.multiselect-wrapper {
    flex: 1;
    max-width: 33.333%;
    min-width: 0;
    border-right: var(--border);
    border-bottom: none;
}

.multiselect-wrapper:last-child {
    border-right: none;
}

.filters-container:has(.multiselect-wrapper.active) .multiselect-wrapper:not(.active) {
    border-bottom: var(--border);
}

.multiselect-header,
.multiselect-value,
.filters-accordion-title {
    border-left: none;
}

.multiselect-field,
.filters-accordion-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    cursor: pointer;
    user-select: none;
    border-bottom: var(--border);
}

.multiselect-field:hover,
.filters-accordion-header:hover {
    background-color: var(--black);
}

.multiselect-chevron,
.filters-accordion-chevron {
    width: var(--menu-brick-height);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
}

.multiselect-chevron::before,
.filters-accordion-chevron::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--black);
    transition: transform 0.2s ease;
}

.multiselect-value:hover+.multiselect-chevron::before,
.multiselect-chevron:hover::before,
.filters-accordion-header:hover .filters-accordion-chevron::before {
    border-top: 7px solid var(--white);
}

.multiselect-wrapper.active .multiselect-chevron::before,
.filters-accordion-header.active .filters-accordion-chevron::before {
    transform: rotate(180deg);
}

.multiselect-value,
.filters-accordion-title {
    flex: 1;
    min-width: 0;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
    border-bottom: none;
}

.multiselect-field:hover .multiselect-value,
.filters-accordion-header:hover .filters-accordion-title {
    color: var(--white);
}

.multiselect-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.multiselect-wrapper.active .multiselect-dropdown {
    max-height: fit-content;
}

.multiselect-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    border-left: none;
}

.multiselect-option:hover {
    background-color: var(--black);
}

.multiselect-checkbox {
    width: 14px;
    height: 14px;
    border: var(--border);
    border-radius: 0%;
    position: relative;
    margin-right: 8px;
}

.multiselect-option:hover .multiselect-checkbox {
    border-color: var(--white);
}

.multiselect-checkbox::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background-color: var(--black);
    border-radius: 0%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.multiselect-option:hover .multiselect-checkbox::after {
    background-color: var(--white);
}

.multiselect-option.selected .multiselect-checkbox::after {
    transform: translate(-50%, -50%) scale(1);
}

.multiselect-option-label {
    flex: 1;
    color: var(--black);
}

.multiselect-option:hover .multiselect-option-label {
    color: var(--white);
}

.multiselect-option.selected .multiselect-option-label {
    font-family: 'SuisseIntl-SemiBold', Arial, Helvetica, sans-serif;
    font-weight: 600;
}

[data-singleselect] .multiselect-checkbox {
    display: none;
}

[data-singleselect] .multiselect-option-label {
    margin-left: 0;
}

.multiselect-option[data-value="all"] .multiselect-checkbox {
    display: none;
}

.multiselect-option[data-value="all"] .multiselect-option-label {
    margin-left: 0;
}

/* Desktop - Hide accordion, show filters */
@media screen and (min-width: 768px) {
    .filters-accordion-header {
        display: none;
    }
    
    .filters-container {
        max-height: none !important;
        overflow: visible;
    }
}

/* Mobile */
@media screen and (max-width: 767px) {
    .filters-container {
        flex-direction: column;
    }

    .multiselect-wrapper {
        max-width: 100%;
        border-right: none;
        border-left: none;
    }

    .filters-container:has(.multiselect-wrapper.active) .multiselect-wrapper:not(.active) {
        border-bottom: none;
    }

    .multiselect-option {
        align-items: flex-start;
    }

    .multiselect-option:last-child {
        border-bottom: var(--border);
    }
}

/* -------------------- LOCATION -------------------- */
.locations-container {
    display: grid;
    grid-template-columns: calc(50% + 1px) calc(50% - 0px);
    border-bottom: var(--border);
}

.location {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.location:nth-child(odd) {
    border-right: var(--border);
}

.location .menu-brick {
    border-left: none;
}

.location:hover {
    background-color: transparent;
}

.location:hover .location-title {
    background-color: var(--black);
}

.location:hover .menu-brick:last-child {
    background-color: transparent;
}

.location:nth-last-child(-n+2) .location-divider {
    border-bottom: none;
}

/* When total locations is odd, the second-to-last location have border-bottom */
.locations-container:has(.location:nth-child(odd):last-child) .location:nth-last-child(2) .location-divider {
    border-bottom: var(--border);
}

.location-title {
    text-decoration: none !important;
}

.location-cover {
    width: 100%;
    border-bottom: var(--border);
    overflow: hidden;
}

.location-cover img,
.location-cover video {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.location:hover .location-cover img,
.location:hover .location-cover video {
    transform: scale(1.05);
}

.no-results-message {
    grid-column: span 2;
}

.no-results-message .menu-brick {
    border-left: none;
}

.no-results-message .menu-brick:last-child {
    border-bottom: none;
}

.no-results-action:hover {
    background-color: var(--black);
    color: var(--white);
    cursor: pointer;
}

/* Mobile & Tablet*/
@media screen and (max-width: 1023px) {
    .locations-container {
        grid-template-columns: 100%;
    }

    .location:nth-child(odd) {
        border-right: none;
    }

    .location:nth-last-child(2) .location-divider {
        border-bottom: var(--border);
    }
}