/**
 * Reservaline homepage destination autocomplete v4.
 * Isolated from Traveler/Bootstrap so the panel always opens below the field.
 */

body.rh1-template .rh1-page .rh1-search-overlap,
body.rh1-template .rh1-page .rh1-search-overlap > .rh1-container,
body.rh1-template .rh1-page .rh1-search-shell,
body.rh1-template .rh1-page .rh1-native-search,
body.rh1-template .rh1-page .rh1-native-search .search-form,
body.rh1-template .rh1-page .rh1-native-search form,
body.rh1-template .rh1-page .rh1-native-search form > .row {
    overflow: visible !important;
}

body.rh1-template .rh1-page .rh1-search-overlap,
body.rh1-template .rh1-page .rh1-search-overlap > .rh1-container,
body.rh1-template .rh1-page .rh1-search-shell {
    z-index: 100000 !important;
}

body.rh1-template .rh1-page .rh1-native-search form > .row > [class*="col-"] {
    overflow: visible !important;
}

body.rh1-template .rh1-page .rh1-native-search form > .row > [class*="col-"]:first-child {
    z-index: 300 !important;
}

body.rh1-template .rh1-page .rh1-native-search .rh1-destination-host-v4 {
    position: relative !important;
    z-index: 250 !important;
    overflow: visible !important;
    isolation: isolate;
}

/* Traveler's native Bootstrap dropdown is deliberately disabled for this field. */
body.rh1-template .rh1-page .rh1-native-search .rh1-destination-host-v4 > .dropdown-menu,
body.rh1-template .rh1-page .rh1-native-search .rh1-destination-host-v4 > .dropdown-menu.show,
body.rh1-template .rh1-page .rh1-native-search .rh1-destination-host-v4 > .dropdown-menu.rh1-location-open {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
}

body.rh1-template .rh1-page .rh1-native-search .rh1-destination-host-v4 [data-rh1-destination-trigger-v4] {
    position: relative !important;
    z-index: 2 !important;
}

body.rh1-template .rh1-page .rh1-native-search .rh1-destination-host-v4 input[data-rh1-destination-v4] {
    position: relative !important;
    z-index: 3 !important;
    cursor: text !important;
}

body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4[hidden] {
    display: none !important;
}

body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4 {
    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: 2147483000 !important;
}

body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4__list {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4__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;
}

body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4__option + .rh1-destination-v4__option {
    border-top: 1px solid #e5eaf1 !important;
}

body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4__option:hover,
body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4__option:focus,
body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4__option.is-active,
body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4__option[aria-selected="true"] {
    z-index: 1 !important;
    background: #f1f5fb !important;
    color: #17243a !important;
    outline: none !important;
}

body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4__icon {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #e6ad18 !important;
    transform: none !important;
}

body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4__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;
}

body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4__copy {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
    transform: none !important;
}

body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4__city,
body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4__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;
}

body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4__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;
}

body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4__country {
    margin-top: 2px !important;
    color: #718096 !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
}

body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4__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: 767px) {
    body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4 {
        top: calc(100% + 6px) !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        max-height: 286px !important;
    }

    body.rh1-template .rh1-page .rh1-native-search .rh1-destination-v4__option {
        min-height: 45px !important;
        padding: 6px 6px !important;
    }
}
