/**
 * Reservaline result-page destination autocomplete v5.
 * The custom panel is independent from Traveler/Bootstrap and is always placed
 * below the destination field.
 */

:is(body.rrr-template, body.rrs-template) .rrr-search-band,
:is(body.rrr-template, body.rrs-template) .rrr-search-band__inner,
:is(body.rrr-template, body.rrs-template) .rrr-search-form,
:is(body.rrr-template, body.rrs-template) .rrr-search-form form,
:is(body.rrr-template, body.rrs-template) .rrr-search-form__grid {
    overflow: visible !important;
}

:is(body.rrr-template, body.rrs-template) .rrr-destination-host-v5 {
    position: relative !important;
    z-index: 350 !important;
    overflow: visible !important;
    isolation: isolate;
}

:is(body.rrr-template, body.rrs-template) .rrr-destination-host-v5 > .form-extra-field {
    position: relative !important;
    z-index: 2 !important;
}

:is(body.rrr-template, body.rrs-template) .rrr-destination-host-v5 input[data-rrr-destination-v5] {
    position: relative !important;
    z-index: 3 !important;
    cursor: text !important;
}

/* Traveler's native Bootstrap list is disabled only after v5 has started. */
:is(body.rrr-template, body.rrs-template) .rrr-destination-host-v5.rrr-destination-v5-ready > .rrr-location-menu,
:is(body.rrr-template, body.rrs-template) .rrr-destination-host-v5.rrr-destination-v5-ready > .rrr-location-menu.show,
:is(body.rrr-template, body.rrs-template) .rrr-destination-host-v5.rrr-destination-v5-ready > .dropdown-menu,
:is(body.rrr-template, body.rrs-template) .rrr-destination-host-v5.rrr-destination-v5-ready > .dropdown-menu.show {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
}

:is(body.rrr-template, body.rrs-template) .rrr-destination-v5[hidden] {
    display: none !important;
}

:is(body.rrr-template, body.rrs-template) .rrr-destination-v5 {
    position: absolute !important;
    inset: auto auto auto 0 !important;
    top: calc(100% + 8px) !important;
    display: block !important;
    width: min(430px, calc(100vw - 32px)) !important;
    min-width: min(350px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    max-height: 324px !important;
    margin: 0 !important;
    padding: 4px 9px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    border: 1px solid #d8e1ec !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #17243a !important;
    box-shadow: 0 14px 34px rgba(7, 42, 101, 0.18) !important;
    transform: none !important;
    translate: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 2147483200 !important;
}

:is(body.rrr-template, body.rrs-template) .rrr-destination-v5__list {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

:is(body.rrr-template, body.rrs-template) .rrr-destination-v5__option {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) !important;
    column-gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 6px 7px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #17243a !important;
    font: inherit !important;
    text-align: left !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transform: none !important;
}

:is(body.rrr-template, body.rrs-template) .rrr-destination-v5__option + .rrr-destination-v5__option {
    border-top: 1px solid #e5eaf1 !important;
}

:is(body.rrr-template, body.rrs-template) .rrr-destination-v5__option:hover,
:is(body.rrr-template, body.rrs-template) .rrr-destination-v5__option:focus,
:is(body.rrr-template, body.rrs-template) .rrr-destination-v5__option.is-active,
:is(body.rrr-template, body.rrs-template) .rrr-destination-v5__option[aria-selected="true"] {
    z-index: 1 !important;
    background: #f1f5fb !important;
    color: #17243a !important;
    outline: none !important;
}

:is(body.rrr-template, body.rrs-template) .rrr-destination-v5__icon {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    color: #e6ad18 !important;
    transform: none !important;
}

:is(body.rrr-template, body.rrs-template) .rrr-destination-v5__icon svg {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    stroke: currentColor !important;
    fill: none !important;
    transform: none !important;
}

:is(body.rrr-template, body.rrs-template) .rrr-destination-v5__copy {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0 !important;
    line-height: normal !important;
    transform: none !important;
}

:is(body.rrr-template, body.rrs-template) .rrr-destination-v5__city,
:is(body.rrr-template, body.rrs-template) .rrr-destination-v5__country {
    position: static !important;
    inset: auto !important;
    display: block !important;
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    transform: none !important;
}

:is(body.rrr-template, body.rrs-template) .rrr-destination-v5__city {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    color: #17243a !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.18 !important;
}

:is(body.rrr-template, body.rrs-template) .rrr-destination-v5__country {
    margin-top: 2px !important;
    color: #718096 !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
}

:is(body.rrr-template, body.rrs-template) .rrr-destination-v5__empty {
    display: block !important;
    width: 100% !important;
    padding: 14px 10px !important;
    color: #718096 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

@media (max-width: 767.98px) {
    :is(body.rrr-template, body.rrs-template) .rrr-mobile-search-panel .rrr-search-form,
    :is(body.rrr-template, body.rrs-template) .rrr-mobile-search-panel .rrr-search-form__grid,
    :is(body.rrr-template, body.rrs-template) .rrr-mobile-search-panel .rrr-destination-host-v5 {
        overflow: visible !important;
    }

    :is(body.rrr-template, body.rrs-template) .rrr-mobile-search-panel .rrr-destination-host-v5 {
        z-index: 2147483150 !important;
    }

    :is(body.rrr-template, body.rrs-template) .rrr-destination-v5 {
        top: calc(100% + 6px) !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        max-height: min(46dvh, 330px) !important;
        padding: 4px 7px !important;
    }

    :is(body.rrr-template, body.rrs-template) .rrr-destination-v5__option {
        min-height: 45px !important;
        padding: 6px !important;
    }
}


/* v15: single accommodation search stability. */
:is(body.rrr-template, body.rrs-template) .rrr-search-form,
:is(body.rrr-template, body.rrs-template) .rrr-search-form__grid,
:is(body.rrr-template, body.rrs-template) .rrr-search-field,
:is(body.rrr-template, body.rrs-template) .destination-search {
    overflow: visible !important;
}
:is(body.rrr-template, body.rrs-template) .daterangepicker,
:is(body.rrr-template, body.rrs-template) .st-search-form-calendar {
    z-index: 2147483600 !important;
}
:is(body.rrr-template, body.rrs-template) .rrr-destination-v5 {
    z-index: 2147483640 !important;
}
