/* The native language control stays available when the navigation is collapsed. */
.forest-language {
    flex: 0 0 126px;
    width: 126px;
    min-width: 0;
    margin-inline: 12px 0;
    direction: ltr;
}
.forest-language-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
#forest-language {
    display: block;
    appearance: auto;
    width: 100%;
    min-height: 44px;
    height: 44px;
    margin: 0;
    padding: 8px 6px;
    border: 1px solid var(--resort-gold, #aa8453);
    border-radius: 0;
    color: #fff;
    background: #3f4e4f;
    font-family: 'Barlow', Arial, Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}
#forest-language:focus-visible {
    outline: 3px solid var(--resort-gold-light, #d5bd91);
    outline-offset: 3px;
}
#forest-language option {
    color: #fff;
    background: #3f4e4f;
}
.forest-language-standalone {
    position: absolute;
    top: 20px;
    inset-inline-end: 20px;
    z-index: 100;
    margin: 0;
}

/* Fit the guide link and every locale without covering the language control. */
@media (min-width: 1200px) {
    .navbar .forest-language {
        order: 3;
    }
    .navbar .navbar-collapse {
        min-width: 0;
    }
    .navbar .navbar-nav {
        align-items: center;
    }
    .navbar .navbar-nav .nav-item {
        min-width: min-content;
    }
    .navbar .navbar-nav .nav-link {
        max-width: 108px;
        margin: 0;
        padding-inline: 5px;
        font-size: 14px;
        line-height: 1.35;
        letter-spacing: .5px;
        text-align: center;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }
    .navbar .nav-inquiry .nav-link {
        max-width: 150px;
        padding-inline: 10px;
        margin-inline-start: 8px;
    }
}
@media (max-width: 1199px) {
    .navbar .forest-language {
        margin-inline: auto 8px;
    }
}

/* Carry the existing mobile navigation treatment through the XL breakpoint. */
@media (min-width: 992px) and (max-width: 1199px) {
    :root {
        --resort-header-height: 80px;
    }
    .navbar,
    .navbar.nav-scroll {
        position: fixed;
        top: 0;
        transform: none;
        background: #3f4e4f;
    }
    .navbar .container {
        max-width: 100%;
        padding: 0 16px;
    }
    .navbar .logo-wrapper,
    .navbar.nav-scroll .logo-wrapper {
        padding: 8px 0;
    }
    .navbar .logo-img,
    .navbar.nav-scroll .logo-img {
        width: 64px;
        height: 64px;
    }
    .navbar .navbar-toggler {
        width: 48px;
        height: 48px;
        padding: 8px;
        margin: 0;
        border: 0;
        background: transparent;
    }
    .navbar .navbar-collapse {
        flex-basis: calc(100% + 32px);
        margin: 0 -16px;
        padding: 20px;
        max-height: calc(100svh - 80px);
        overflow: auto;
        background: #1b1b1b;
        text-align: start;
    }
    .navbar .navbar-nav .nav-link {
        margin: 0 !important;
        padding: 12px;
        min-height: 44px;
    }
    .navbar .dropdown-menu {
        display: none;
        position: static;
        width: auto;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: #1b1b1b;
    }
    .navbar .dropdown-menu.show {
        display: block;
    }
    .navbar .dropdown-menu .dropdown-item {
        padding: 8px 15px;
        min-height: 44px;
    }
    .navbar .nav-inquiry .nav-link {
        margin-inline: 0;
    }
}

/* Native system fallback fonts cover Thai, Korean and Hebrew without another download. */
html[lang="th"] body,
html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3,
html[lang="th"] h4,
html[lang="th"] h5,
html[lang="th"] h6,
html[lang="th"] .navbar .nav-link,
html[lang="th"] button,
html[lang="th"] input,
html[lang="th"] select,
html[lang="th"] textarea {
    font-family: 'Barlow', 'Thonburi', Tahoma, sans-serif;
    letter-spacing: 0;
}
html[lang="ko"] body,
html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="ko"] h3,
html[lang="ko"] h4,
html[lang="ko"] h5,
html[lang="ko"] h6,
html[lang="ko"] .navbar .nav-link,
html[lang="ko"] button,
html[lang="ko"] input,
html[lang="ko"] select,
html[lang="ko"] textarea {
    font-family: 'Barlow', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    letter-spacing: 0;
}
html[lang="he"] body,
html[lang="he"] h1,
html[lang="he"] h2,
html[lang="he"] h3,
html[lang="he"] h4,
html[lang="he"] h5,
html[lang="he"] h6,
html[lang="he"] .navbar .nav-link,
html[lang="he"] button,
html[lang="he"] input,
html[lang="he"] select,
html[lang="he"] textarea {
    font-family: 'Barlow', Arial, 'Arial Hebrew', sans-serif;
    letter-spacing: 0;
}

/* Hebrew prose follows its reading direction; machine-readable values keep theirs. */
html[dir="rtl"] body {
    direction: rtl;
}
html[dir="rtl"] p,
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-subtitle,
html[dir="rtl"] .footer-title,
html[dir="rtl"] .navbar-collapse,
html[dir="rtl"] .dropdown-menu,
html[dir="rtl"] .contact__form,
html[dir="rtl"] .booking-note,
html[dir="rtl"] .booking-status,
html[dir="rtl"] .select2-selection__rendered {
    text-align: start;
}
html[dir="rtl"] .text-center p,
html[dir="rtl"] .text-center .section-title,
html[dir="rtl"] .text-center .section-subtitle,
html[dir="rtl"] .home-hero p,
html[dir="rtl"] .home-hero h1 {
    text-align: center;
}
html[dir="rtl"] .navbar .nav-inquiry .nav-link {
    margin-left: 0;
    margin-right: 12px;
}
html[dir="rtl"] .navbar .dropdown-menu {
    left: auto;
    right: 0;
}
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] input[type="date"],
html[dir="rtl"] input[name="check_in"],
html[dir="rtl"] input[name="check_out"],
html[dir="rtl"] a[href^="mailto:"],
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] .date-range-value,
html[dir="rtl"] .date-range-calendars,
html[dir="rtl"] .date-range-grid,
html[dir="rtl"] .date-range-navigation,
html[dir="rtl"] .date-range-year-select,
html[dir="rtl"] .ui-datepicker,
html[dir="rtl"] .ui-datepicker-calendar {
    direction: ltr;
    unicode-bidi: isolate;
}
html[dir="rtl"] .date-range-trigger,
html[dir="rtl"] .date-range-label,
html[dir="rtl"] .date-range-nights,
html[dir="rtl"] .date-range-help,
html[dir="rtl"] .date-range-month h3,
html[dir="rtl"] .date-range-month-select,
html[dir="rtl"] .date-range-grid th,
html[dir="rtl"] .ui-datepicker-title,
html[dir="rtl"] .ui-datepicker-calendar th {
    direction: rtl;
    text-align: start;
}
html[dir="rtl"] .date-range-month h3,
html[dir="rtl"] .date-range-grid th,
html[dir="rtl"] .ui-datepicker-title,
html[dir="rtl"] .ui-datepicker-calendar th {
    text-align: center;
}

@media (max-width: 1199px) {
    html[dir="rtl"] .navbar .nav-inquiry .nav-link {
        margin-inline: 0;
    }
}

/* Optional browser-language controls float below the header without moving
   content or the guest's focus. The bottom mobile inquiry stays unobstructed. */
#forest-language-suggestion {
    position: fixed;
    top: calc(var(--resort-header-height, 88px) + 8px);
    inset-inline-end: 16px;
    z-index: 98;
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: calc(100vw - 32px);
    padding: 4px;
    border: 1px solid var(--resort-gold, #aa8453);
    background: #3f4e4f;
    color: #fff;
    box-shadow: 0 4px 16px rgb(0 0 0 / 18%);
}
#forest-language-suggestion[hidden],
body:has(.navbar-collapse.show) #forest-language-suggestion,
body:has(.navbar-collapse.collapsing) #forest-language-suggestion,
body:has(dialog[open]) #forest-language-suggestion {
    display: none;
}
#forest-language-suggestion button {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}
#forest-language-suggestion [data-language-suggestion-choice] {
    min-width: 0;
    text-align: start;
    overflow-wrap: anywhere;
}
#forest-language-suggestion [data-language-suggestion-dismiss] {
    flex: 0 0 44px;
    padding: 8px;
    font-size: 24px;
}
#forest-language-suggestion button:hover {
    background: #2b3839;
}
#forest-language-suggestion button:focus-visible {
    outline: 3px solid var(--resort-gold-light, #d5bd91);
    outline-offset: 1px;
}
