/*
 * The list of the Destination field of the searches (assets/js/lrr-destino.js), with the look of Brikk's header dropdowns
 * (Brikk: white, 7px corners, soft shadow, Montserrat 600 14px items, text 24px from the edge). The highlighted item
 * is a rounded block inside the list, not a stripe from edge to edge.
 */
#rz-explore [data-id="listing_region"] .rz-select,
.rz-search-form [data-id="listing_region"] .rz-select {
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
/* Clicks and taps go to the box (lrr-destino.js opens the list), so no native list opens on any device. */
#rz-explore [data-id="listing_region"] .rz-select > select,
.rz-search-form [data-id="listing_region"] .rz-select > select {
    pointer-events: none;
}
/* While the list is open the field's chevron (.rz-select::after) points up, like Routiz's dates and guests fields. */
.rz-select.lrr-open::after {
    transform: rotate(180deg);
}
.lrr-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    box-sizing: border-box;
    min-width: 100%;
    width: max-content;
    max-width: 320px;
    max-height: 320px;
    overflow-y: auto;
    margin: 0;
    padding: 12px 8px;
    list-style: none;
    background-color: #fff;
    border-radius: 7px;
    box-shadow: -6px 6px 30px rgba(0, 0, 0, .125);
}
.lrr-select-menu > li {
    margin: 0;
    padding: 7px 16px;
    border-radius: 6px;
    font-family: var(--font-body), sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
    color: #111;
    white-space: nowrap;
    cursor: pointer;
}
.lrr-select-menu > li + li {
    margin-top: 2px;
}
.lrr-select-menu > li.is-active {
    background-color: #f6f6f6;
}
.lrr-select-menu > li[aria-selected="true"] {
    color: var(--main);
}

/*
 * Home page hero (vertical search, desktop): the list opens beside the form, where Brikk opens the dates and guests
 * panels (.brk--style-vertical .rz-guests .rz--dropdown: left 100% + 2rem, centred on the field's lower edge, 10px
 * corners, soft shadow). Below 992px it stays under the field, as those panels do.
 */
@media (min-width: 992px) {
    .brk-carousel-search.brk--style-vertical [data-id="listing_region"] .lrr-select-menu {
        top: 100%;
        left: 100%;
        z-index: 90;
        min-width: 280px;
        width: 280px;
        margin-left: 2rem;
        transform: translateY(-50%);
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    }
}
