/* GZ-LIGHT-HEADER-01: header of the light (cream) pages. Markup: modules/public-pages/views/light-site-header.php.
   Self-contained (own tokens), so it looks the same on hotel.php, tours.php, experience.php, fly.php and the result pages. */

.lsh, .lsh-panel, .lsh-overlay {
    --lsh-bg: rgba(255, 253, 248, .88);
    --lsh-solid: #FFFDF8;
    --lsh-card: #FFFFFF;
    --lsh-line: #EAE1CD;
    --lsh-ink: #16140F;
    --lsh-soft: #3D372C;
    --lsh-mute: #6B6253;
    --lsh-gold: #B48A34;
    --lsh-gold-ink: #8A6620;
    --lsh-goldbg: #F7EED9;
    --lsh-badge-bg: #16140F;
    --lsh-badge-fg: #F6F1E7;
    --lsh-shadow: rgba(22, 20, 15, .14);
    --lsh-scrim: rgba(22, 20, 15, .45);
    --lsh-h: 64px;
}
@media (prefers-color-scheme: dark) {
    .lsh[data-lsh-scheme="auto"], .lsh-panel[data-lsh-scheme="auto"], .lsh-overlay[data-lsh-scheme="auto"] {
        --lsh-bg: rgba(10, 9, 7, .86); --lsh-solid: #0A0907; --lsh-card: #13100C; --lsh-line: rgba(217, 182, 94, .16);
        --lsh-ink: #F4EAD6; --lsh-soft: #D2C6AE; --lsh-mute: #A89F8E; --lsh-gold: #D9B65E; --lsh-gold-ink: #E6C774;
        --lsh-goldbg: #1E1910; --lsh-badge-bg: #E6C774; --lsh-badge-fg: #16140F; --lsh-shadow: rgba(0, 0, 0, .5); --lsh-scrim: rgba(0, 0, 0, .6);
    }
}
html[data-theme="dark"] .lsh, html[data-theme="dark"] .lsh-panel, html[data-theme="dark"] .lsh-overlay {
    --lsh-bg: rgba(10, 9, 7, .86); --lsh-solid: #0A0907; --lsh-card: #13100C; --lsh-line: rgba(217, 182, 94, .16);
    --lsh-ink: #F4EAD6; --lsh-soft: #D2C6AE; --lsh-mute: #A89F8E; --lsh-gold: #D9B65E; --lsh-gold-ink: #E6C774;
    --lsh-goldbg: #1E1910; --lsh-badge-bg: #E6C774; --lsh-badge-fg: #16140F; --lsh-shadow: rgba(0, 0, 0, .5); --lsh-scrim: rgba(0, 0, 0, .6);
}

.lsh, .lsh *, .lsh *::before, .lsh *::after,
.lsh-panel, .lsh-panel *, .lsh-panel *::before, .lsh-panel *::after { box-sizing: border-box; }
/* Pages with a universal font rule (booking-checkout.php: * { font-family }) would otherwise reach every element of the header. */
.lsh *, .lsh-panel * { font-family: inherit; }

.lsh {
    position: sticky; top: 0; z-index: 900; width: 100%;
    border-bottom: 1px solid var(--lsh-line);
    background: var(--lsh-bg);
    -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
    color: var(--lsh-ink); font-family: 'Manrope', system-ui, sans-serif; font-size: 14px; line-height: 1.4; text-align: left;
    transition: box-shadow .2s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .lsh { background: var(--lsh-solid); }
}
.lsh.is-scrolled { box-shadow: 0 8px 24px var(--lsh-shadow); }

.lsh ul, .lsh-panel ul { margin: 0; padding: 0; list-style: none; }
.lsh p, .lsh-panel p { margin: 0; }
.lsh a, .lsh button, .lsh-panel a, .lsh-panel button { -webkit-tap-highlight-color: transparent; }
.lsh a:focus-visible, .lsh button:focus-visible, .lsh-panel a:focus-visible, .lsh-panel button:focus-visible { outline: 2px solid var(--lsh-gold); outline-offset: 3px; }

.lsh__bar {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 24px;
    min-height: var(--lsh-h); padding: 0 max(16px, calc((100% - 1320px) / 2));
}
.lsh__brand { color: var(--lsh-gold); font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; }

/* menu */
.lsh__nav { justify-self: center; min-width: 0; }
.lsh__list { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 30px); }
.lsh__item { position: relative; }
.lsh__link {
    position: relative; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 2px;
    border: 0; background: none; color: var(--lsh-ink); cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.lsh__link::after {
    content: ""; position: absolute; left: 2px; right: 2px; bottom: 7px; height: 2px; border-radius: 2px;
    background: var(--lsh-gold); transform: scaleX(0); transform-origin: left center; transition: transform .2s ease;
}
.lsh__link:hover { color: var(--lsh-gold-ink); }
.lsh__link.is-current::after, .lsh__link[aria-current="page"]::after, .lsh__link[aria-expanded="true"]::after { transform: scaleX(1); }
.lsh__chev { flex: none; transition: transform .2s ease; }
[aria-expanded="true"] > .lsh__chev { transform: rotate(180deg); }

.lsh__menu {
    position: absolute; top: calc(100% - 4px); left: -14px; z-index: 4; min-width: 208px; padding: 6px;
    border: 1px solid var(--lsh-line); border-radius: 14px; background: var(--lsh-card); box-shadow: 0 18px 44px var(--lsh-shadow);
}
.lsh__menu[hidden] { display: none; }
.lsh__menu a {
    display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px;
    color: var(--lsh-ink); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.lsh__menu a:hover { background: var(--lsh-goldbg); color: var(--lsh-gold-ink); }
.lsh__menu a[aria-current="page"] { color: var(--lsh-gold-ink); font-weight: 800; }

/* right side */
.lsh__tools { display: flex; align-items: center; justify-self: end; gap: 10px; }
.lsh__login {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
    border: 1px solid var(--lsh-line); border-radius: 999px; background: var(--lsh-card);
    color: var(--lsh-ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.lsh__login:hover { border-color: var(--lsh-gold); background: var(--lsh-goldbg); }

.lsh__lang { position: relative; }
.lsh__lang-btn {
    display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px;
    border: 1px solid var(--lsh-line); border-radius: 999px; background: var(--lsh-card);
    color: var(--lsh-ink); cursor: pointer; font-size: 13px; font-weight: 700;
}
.lsh__lang-btn:hover, .lsh__lang-btn[aria-expanded="true"] { border-color: var(--lsh-gold); background: var(--lsh-goldbg); }
.lsh__flag { display: block; flex: none; width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(22, 20, 15, .12); }
.lsh__cart, .lsh__burger {
    position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
    border: 1px solid var(--lsh-line); border-radius: 50%; background: var(--lsh-card); color: var(--lsh-ink); cursor: pointer;
}
.lsh__cart:hover, .lsh__burger:hover { border-color: var(--lsh-gold); background: var(--lsh-goldbg); }
.lsh__cart[hidden] { display: none; }
.lsh__badge {
    position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: var(--lsh-badge-bg); color: var(--lsh-badge-fg); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.lsh__burger { display: none; }

/* checkout variant */
.lsh__secure { display: inline-flex; align-items: center; justify-self: center; gap: 8px; min-width: 0; color: var(--lsh-soft); font-size: 14px; font-weight: 700; }
.lsh__secure svg { flex: none; color: var(--lsh-gold-ink); }
.lsh__secure span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* side panel (below 900 px) */
.lsh-overlay { position: fixed; inset: 0; z-index: 990; background: var(--lsh-scrim); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.lsh-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.lsh-panel {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1000; display: flex; flex-direction: column; gap: 4px;
    width: min(360px, 100vw); padding: 0 20px 28px; overflow-y: auto; overscroll-behavior: contain;
    border-left: 1px solid var(--lsh-line); background: var(--lsh-solid); color: var(--lsh-ink);
    font-family: 'Manrope', system-ui, sans-serif; font-size: 15px; line-height: 1.4; text-align: left;
    visibility: hidden; transform: translateX(100%); transition: transform .28s ease, visibility 0s linear .28s; box-shadow: -18px 0 44px var(--lsh-shadow);
}
.lsh-panel.is-open { visibility: visible; transform: none; transition: transform .28s ease; }
.lsh-panel__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; min-height: var(--lsh-h); margin: 0 -20px 6px; padding: 0 20px; border-bottom: 1px solid var(--lsh-line); background: var(--lsh-solid); }
.lsh-panel__close { display: inline-grid; }
.lsh-panel__title { margin: 14px 0 2px; color: var(--lsh-mute); font-size: 13px; font-weight: 700; }
.lsh-panel__list a {
    display: flex; align-items: center; min-height: 48px; padding: 0 4px; border-radius: 10px;
    color: var(--lsh-ink); font-size: 16px; font-weight: 600; text-decoration: none;
}
.lsh-panel__list--sub a { padding-left: 14px; font-size: 15px; }
.lsh-panel__list a:hover { color: var(--lsh-gold-ink); }
.lsh-panel__list a[aria-current="page"] { color: var(--lsh-gold-ink); font-weight: 800; box-shadow: inset 2px 0 0 var(--lsh-gold); padding-left: 12px; }
.lsh-panel__login {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 16px; padding: 0 16px;
    border: 1px solid var(--lsh-line); border-radius: 999px; background: var(--lsh-card);
    color: var(--lsh-ink); font-size: 15px; font-weight: 700; text-decoration: none;
}
.lsh-panel__login:hover { border-color: var(--lsh-gold); background: var(--lsh-goldbg); }
.lsh-panel__lang {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px;
    border: 1px solid var(--lsh-line); border-radius: 12px; background: var(--lsh-card);
    color: var(--lsh-ink); cursor: pointer; font-size: 15px; font-weight: 600; text-align: left;
}
.lsh-panel__lang span { flex: 1; min-width: 0; }
.lsh-panel__lang:hover { border-color: var(--lsh-gold); background: var(--lsh-goldbg); }

html.lsh-lock { overflow: hidden; }

/* popovers open with a short fade; none of this moves when the visitor prefers reduced motion */
.lsh__menu:not([hidden]) { animation: lsh-pop .16s ease-out; }
@keyframes lsh-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (max-width: 899px) {
    .lsh { --lsh-h: 56px; }
    .lsh-panel, .lsh-overlay { --lsh-h: 56px; }
    .lsh__bar { column-gap: 12px; }
    .lsh__brand { font-size: 22px; }
    .lsh__nav, .lsh__login { display: none; }
    .lsh__burger { display: inline-grid; }
    .lsh__tools { grid-column: 3; gap: 8px; }
    .lsh__bar > .lsh__brand { grid-column: 1; }
    .lsh__lang-btn { padding: 0 11px; }
    .lsh[data-lsh-variant="full"] .lsh__lang-code, .lsh[data-lsh-variant="full"] .lsh__lang-btn .lsh__chev { display: none; }
}
@media (min-width: 900px) {
    .lsh-panel, .lsh-overlay { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lsh, .lsh__link::after, .lsh__chev, .lsh-overlay, .lsh-panel { transition: none !important; }
    .lsh__menu:not([hidden]) { animation: none; }
}

/* ---------- language popover = the home page's glass card (assets/css/language-popover.css), dark on the cream pages too ---------- */
#glx-popover.glx-popover--light {
    min-width: 240px; max-height: min(70vh, 640px); padding: 6px 0;
    border-color: rgba(217, 182, 94, .3); background: rgba(12, 10, 8, .9);
    font-family: 'Manrope', system-ui, sans-serif; text-align: left;
}
#glx-popover.glx-popover--light *, #glx-popover.glx-popover--light *::before, #glx-popover.glx-popover--light *::after { box-sizing: border-box; font-family: inherit; }
#glx-popover.glx-popover--light .glx-pop-title { padding: 8px 18px 10px; color: rgba(230, 199, 116, .72); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
#glx-popover.glx-popover--light .glx-pop-row { min-height: 50px; margin: 0; padding: 8px 18px; outline-offset: -2px; }
#glx-popover.glx-popover--light .glx-pop-row:focus-visible { outline: 2px solid #D9B65E; }
#glx-popover.glx-popover--light .glx-pop-row[aria-busy="true"] { opacity: .55; pointer-events: none; }
#glx-popover.glx-popover--light .glx-pop-native { font-size: 14px; }
/* a soft fade at the bottom says there are more languages; it goes away when the list ends */
#glx-popover.glx-popover--light::after {
    content: ""; position: sticky; bottom: 0; display: block; height: 40px; margin-top: -40px; pointer-events: none;
    background: linear-gradient(to top, rgba(12, 10, 8, .96), rgba(12, 10, 8, 0)); transition: opacity .15s ease;
}
#glx-popover.glx-popover--light.is-end::after { opacity: 0; }
#glx-backdrop.glx-backdrop--light { background: rgba(0, 0, 0, 0); transition: background .25s ease; }

@media (max-width: 899px) {
    #glx-backdrop.glx-backdrop--light.glx-open { background: rgba(0, 0, 0, .5); }
    #glx-popover.glx-popover--light, #glx-popover.glx-popover--light.glx-bottom {
        left: 0 !important; right: 0; top: auto !important; bottom: 0 !important; width: 100%; min-width: 0; max-width: none;
        max-height: min(78vh, 640px); padding: 6px 0 calc(10px + env(safe-area-inset-bottom, 0px));
        border-width: 1px 0 0; border-radius: 22px 22px 0 0;
        opacity: 1; transform: translateY(100%); transform-origin: bottom center; transition: transform .28s ease;
    }
    #glx-popover.glx-popover--light.glx-open, #glx-popover.glx-popover--light.glx-bottom.glx-open { transform: none; }
    #glx-popover.glx-popover--light .glx-pop-title { padding: 14px 22px 10px; }
    #glx-popover.glx-popover--light .glx-pop-row { min-height: 54px; padding: 8px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    #glx-popover.glx-popover--light, #glx-popover.glx-popover--light *, #glx-backdrop.glx-backdrop--light { transition: none !important; }
}
