/* Global multilingual controls and right-to-left layout support. */
.language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 7.4rem;
    min-height: 2.55rem;
    padding: 0 0.5rem;
    border: 1px solid rgba(201, 164, 92, 0.4);
    border-radius: 999px;
    background: rgba(7, 24, 43, 0.72);
    color: #fff;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
    isolation: isolate;
}

.language-switcher:focus-within {
    border-color: #e0bd72;
    box-shadow:
        0 0 0 3px rgba(224, 189, 114, 0.2),
        0 0.5rem 1.25rem rgba(0, 0, 0, 0.16);
}

.language-switcher__icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.3rem;
    height: 1.3rem;
    color: #d8b15e;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}

.language-switcher__select {
    min-width: 0;
    width: 100%;
    min-height: 2.4rem;
    padding: 0 1.7rem 0 0.1rem;
    border: 0;
    outline: 0;
    background-color: transparent;
    color: inherit;
    color-scheme: dark;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 650;
    cursor: pointer;
}

.language-switcher__select option {
    background: #07182b;
    color: #fff;
}

.dashboard-header .language-switcher {
    background: #0a2139;
}

.site-header:not(.site-header--transparent) .language-switcher {
    background: #0a2139;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .brand,
html[dir="rtl"] .site-header__container,
html[dir="rtl"] .dashboard-header__container,
html[dir="rtl"] .dashboard-header__actions,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .primary-navigation__list,
html[dir="rtl"] .search-form__grid,
html[dir="rtl"] .dashboard-page-heading,
html[dir="rtl"] .dashboard-card__header,
html[dir="rtl"] .form-field,
html[dir="rtl"] .button,
html[dir="rtl"] .notification-item,
html[dir="rtl"] .message-composer {
    direction: rtl;
}

html[dir="rtl"] .language-switcher__select {
    padding-right: 0.1rem;
    padding-left: 1.7rem;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] [data-booking-reference],
html[dir="rtl"] [data-payment-reference] {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] .dashboard-sidebar {
    border-right: 0;
    border-left: 1px solid var(--color-border, rgba(0, 0, 0, 0.12));
}

html[dir="rtl"] .dashboard-navigation__count,
html[dir="rtl"] .notification-button__count {
    margin-left: 0;
    margin-right: auto;
}

@media (max-width: 1100px) {
    .language-switcher {
        min-width: 6.3rem;
    }

    .language-switcher__select {
        font-size: 0.8rem;
    }
}

@media (max-width: 760px) {
    .language-switcher {
        min-width: 3rem;
        max-width: 7.5rem;
        min-height: 2.4rem;
        padding-inline: 0.45rem;
    }

    .language-switcher__icon {
        display: none;
    }

    .language-switcher__select {
        min-height: 2.25rem;
        font-size: 0.76rem;
    }

    .dashboard-header__actions .language-switcher {
        order: -1;
    }
}

.language-switcher--floating {
    position: fixed;
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
    z-index: 10000;
}

html[dir="rtl"] .language-switcher--floating {
    right: auto;
    left: max(0.75rem, env(safe-area-inset-left));
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
