/* =========================================================
   NAVIGATION
   ========================================================= */

.inner-navigation-shell {
    position: sticky;
    top: 0;
    z-index: 100;

    border-top: 1px solid rgba(31, 58, 46, 0.09);
    border-bottom: 1px solid rgba(31, 58, 46, 0.12);

    box-shadow:
        0 1px 0 rgba(31, 58, 46, 0.06);

    background: rgba(243, 238, 228, 0.96);

    backdrop-filter: blur(10px);
}


/*
 * Homepage navigation does not stay sticky.
 * The full-screen cinematic sections need the whole viewport.
 */
.navigation-homepage {
    position: relative;
    top: auto;
}


.inner-navigation-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    min-height: 72px;
}


.inner-navigation {
    display: flex;
    align-items: center;
    gap: 24px;

    font-size: 0.95rem;
}


.inner-navigation a,
.inner-account a {
    text-decoration: none;

    transition:
        color var(--transition-fast),
        opacity var(--transition-fast);
}


.inner-navigation a:hover,
.inner-account a:hover {
    color: var(--color-copper);
}


/* =========================================================
   HOME ICON
   ========================================================= */

.navigation-home {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    flex: 0 0 auto;
}


.navigation-home svg {
    display: block;

    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   DESKTOP ACCOUNT / UTILITIES
   ========================================================= */

.inner-account {
    display: flex;
    align-items: center;
    gap: 16px;

    flex: 0 0 auto;
}


/* =========================================================
   PROFILE DROPDOWN
   ========================================================= */

.profile-menu {
    position: relative;
}


.profile-menu-toggle {
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 8px 0;

    border: 0;

    background: transparent;
    color: var(--color-text);

    font: inherit;

    cursor: pointer;

    transition:
        color var(--transition-fast);
}


.profile-menu-toggle:hover,
.profile-menu-toggle[aria-expanded="true"] {
    color: var(--color-copper);
}


.profile-menu-chevron {
    display: inline-block;

    font-size: 0.72rem;

    transition:
        transform var(--transition-fast);
}


.profile-menu-toggle[aria-expanded="true"]
.profile-menu-chevron {
    transform: rotate(180deg);
}


.profile-dropdown {
    position: absolute;
    z-index: 120;

    top: calc(100% + 10px);
    right: 0;

    min-width: 190px;

    padding: 8px;

    border: 1px solid rgba(31, 58, 46, 0.10);
    border-radius: 12px;

    background: var(--color-alabaster);

    box-shadow:
        0 14px 35px rgba(31, 58, 46, 0.12);
}


.profile-dropdown[hidden] {
    display: none;
}


.profile-dropdown a,
.profile-dropdown button {
    display: block;

    width: 100%;

    padding: 10px 12px;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: var(--color-text);

    font: inherit;
    text-align: left;
    text-decoration: none;

    cursor: pointer;
}


.profile-dropdown a:hover,
.profile-dropdown button:hover {
    background: rgba(31, 58, 46, 0.06);

    color: var(--color-copper);
}


.profile-dropdown form {
    margin: 0;
}


/* =========================================================
   LANGUAGE SWITCH
   ========================================================= */

.language-switch {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    overflow: hidden;

    transition:
        transform var(--transition-fast),
        opacity var(--transition-fast);
}


.language-switch:hover {
    transform: translateY(-1px);

    opacity: 0.82;
}


.language-switch img {
    display: block;

    width: 22px;
    height: 22px;

    object-fit: cover;
}


/* =========================================================
   MOBILE BAR
   ========================================================= */

.inner-mobile-bar {
    display: none;

    width: 100%;

    align-items: center;
    justify-content: space-between;
}


.mobile-menu-toggle {
    display: grid;
    gap: 5px;

    width: 42px;

    padding: 9px 7px;

    border: 0;

    background: transparent;

    cursor: pointer;
}


.mobile-menu-toggle span {
    display: block;

    width: 27px;
    height: 2px;

    background: var(--color-forest);

    transition:
        transform var(--transition-fast),
        opacity var(--transition-fast);
}


/* =========================================================
   MOBILE HOME
   ========================================================= */

.mobile-navigation-home {
    display: flex;
    align-items: center;
    gap: 10px;
}


.mobile-navigation-home svg {
    width: 19px;
    height: 19px;

    flex: 0 0 auto;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   MOBILE OFFCANVAS
   ========================================================= */

.mobile-navigation-backdrop {
    position: fixed;
    z-index: 190;

    inset: 0;

    background: rgba(17, 33, 27, 0.42);

    backdrop-filter: blur(2px);
}


.mobile-navigation-backdrop[hidden] {
    display: none;
}


.mobile-navigation-panel {
    position: fixed;
    z-index: 200;

    top: 0;
    right: 0;

    display: flex;
    flex-direction: column;

    width: min(88vw, 380px);
    height: 100dvh;

    padding: 24px;

    overflow-y: auto;

    background: var(--color-alabaster);

    box-shadow:
        -18px 0 50px rgba(31, 58, 46, 0.16);

    transform: translateX(105%);

    visibility: hidden;

    transition:
        transform 280ms ease,
        visibility 280ms ease;
}


.mobile-navigation-panel.is-open {
    transform: translateX(0);

    visibility: visible;
}


.mobile-navigation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 20px;

    border-bottom: 1px solid rgba(31, 58, 46, 0.10);
}


.mobile-navigation-title {
    color: var(--color-forest);

    font-family: var(--font-serif);
    font-size: 1.35rem;
}


.mobile-navigation-close {
    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;

    background: transparent;
    color: var(--color-forest);

    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1;

    cursor: pointer;
}


.mobile-navigation-links {
    display: grid;

    padding: 24px 0;
}


.mobile-navigation-links a {
    padding: 12px 0;

    color: var(--color-forest);

    font-family: var(--font-serif);
    font-size: 1.25rem;
    text-decoration: none;
}


.mobile-navigation-section {
    display: grid;
    gap: 8px;

    padding: 20px 0;

    border-top: 1px solid rgba(31, 58, 46, 0.10);
}


.mobile-navigation-section-title {
    margin-bottom: 4px;

    color: var(--color-sage);

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.mobile-navigation-section a,
.mobile-navigation-section button {
    color: var(--color-text);

    font: inherit;
    text-decoration: none;
}


.mobile-navigation-section form {
    margin: 0;
}


.mobile-navigation-section button {
    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
}


/* =========================================================
   MOBILE LANGUAGE SWITCH
   ========================================================= */

.mobile-language-switch {
    display: flex;
    align-items: center;
    gap: 10px;

    width: fit-content;
}


.mobile-language-switch img {
    display: block;

    width: 24px;
    height: 24px;

    object-fit: cover;
}


/* =========================================================
   MOBILE BOOKING CTA
   ========================================================= */

.mobile-navigation-book {
    margin-top: auto;

    padding-top: 26px;
}


.mobile-navigation-book .button {
    width: 100%;
}


/* =========================================================
   MOBILE MENU STATE
   ========================================================= */

body.mobile-menu-open {
    overflow: hidden;
}


/* =========================================================
   RESPONSIVE NAVIGATION
   ========================================================= */

@media (max-width: 980px) {

    .inner-navigation-desktop,
    .inner-account-desktop {
        display: none;
    }


    .inner-navigation-inner {
        min-height: 64px;
    }


    .inner-mobile-bar {
        display: flex;
    }

}