/* GB.ABH Guidebook Styles
   All colors and fonts use CSS custom properties set server-side in base.html.
   This prevents FOUC — variables are defined inline before this stylesheet loads. */

/* ── CSS Custom Property Defaults ──────────────────────────── */
/* These are overridden by inline :root in base.html (server-side theme values). */
:root {
    --primary-color: #1a1a2e;
    --accent-color: #e91e8c;
    --font-family: Inter, sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    /* Semantic surface tokens (overridden by dark/light mode) */
    --bg: #f8f8fc;
    --bg-card: #ffffff;
    --bg-surface: #f0f0f8;
    --text: #1a1a2e;
    --text-muted: #666680;
    --border: #e0e0f0;
    /* Shared with the desktop sidebar-nav height calc — keep in sync */
    --gb-hero-height: 420px;
}

/* ── Dark mode ──────────────────────────────────────────────── */
html.dark {
    --bg: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-surface: #252540;
    --text: #e8e8f0;
    --text-muted: #9090b0;
    --border: #333360;
}

html:not(.dark) {
    --bg: #f8f8fc;
    --bg-card: #ffffff;
    --bg-surface: #f0f0f8;
    --text: #1a1a2e;
    --text-muted: #666680;
    --border: #e0e0f0;
}

/* ── Border radius variants ─────────────────────────────────── */
body.radius-sharp   { --radius-sm: 0;    --radius-md: 2px;  --radius-lg: 4px;  }
body.radius-soft    { --radius-sm: 4px;  --radius-md: 8px;  --radius-lg: 16px; }
body.radius-rounded { --radius-sm: 8px;  --radius-md: 16px; --radius-lg: 24px; }

/* ── Nav layout variants ────────────────────────────────────── */
body.nav-top .layout-wrapper {
    flex-direction: column;
}
body.nav-sidebar-left .layout-wrapper {
    flex-direction: row;
}
body.nav-sidebar-right .layout-wrapper {
    flex-direction: row-reverse;
}

/* ── Section display variants ───────────────────────────────── */
.sections-grid .section-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.sections-list .section-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-family, Inter, sans-serif);
}

a { color: var(--accent-color); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

[x-cloak] { display: none !important; }

/* ── App Container ─────────────────────────────────────────── */
.gb-app {
    /* Full-bleed — the hero and nav span the viewport. Only the content
       column (.gb-main) is width-constrained; see below. */
    padding-bottom: 72px; /* space for bottom nav */
}

/* ── Offline Banner ────────────────────────────────────────── */
.gb-offline-banner {
    background: #f59e0b;
    color: #1a1a2e;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ── Section Switcher (Three-section unified nav) ────────────── */
.gb-section-switcher {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 110;
}

.gb-section-switcher-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-2, 8px);
    display: flex;
    align-items: stretch;
    /* Six labelled controls (five destinations + More). Labels are what make
       this bar learnable for a once-per-trip audience, so the row must fit
       WITHOUT horizontal scrolling — the previous icon-only scroller hid the
       trailing controls entirely on narrow screens. Items share the width
       evenly instead; the utility controls moved into the More sheet to keep
       that division comfortable. */
    overflow: visible;
}

.gb-section-switcher-list {
    display: flex;
    align-items: stretch;
    gap: 0;
    list-style: none;
    flex-wrap: nowrap;
    margin: 0;
    width: 100%;
}

/* On/off language toggle (exactly 2 supported locales) — always used inside
   the section switcher's row, never floating. It shares the base
   .gb-locale-switcher class (for the __link/__current sub-styles used by
   the non-compact variant elsewhere, e.g. admin), so every fixed-position/
   chrome property that class sets must be reset here — otherwise this
   link floats to the top of the viewport per that rule instead of sitting
   in the bar (regression: this override used to be scoped to the now-
   removed .gb-section-switcher-tool-locale wrapper div). */
.gb-locale-switcher--compact {
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.gb-locale-switcher--compact:hover { background: var(--accent-color); color: #fff; text-decoration: none; }

.gb-section-switcher-item {
    flex: 1 1 0;
    min-width: 0;
}

/* Stacked icon-over-label tab — shared by the section links, the
   search/cart action buttons and the More trigger, so every control in the
   row (link or button) gets identical sizing. */
.gb-section-switcher-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-height: var(--touch-target, 44px);
    padding: var(--space-1, 4px) 2px;
    border: none;
    border-radius: var(--radius-md, 8px);
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.gb-section-switcher-label {
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.01em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gb-section-switcher-link:hover:not(.gb-section-switcher-link--disabled) {
    color: var(--text);
    background: rgba(0, 0, 0, 0.05);
}

.gb-section-switcher-link.active {
    color: var(--accent-color);
    background: rgba(0, 0, 0, 0.05);
}

.gb-section-switcher-link--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.gb-section-switcher-icon {
    display: flex;
    line-height: 1;
}

/* ── "More" sheet — utility controls (Install / Appearance / Language) ──
   These are once-per-visit settings, not navigation, so they sit behind a
   disclosure rather than competing with the five destinations for width. */
.gb-switcher-more {
    position: absolute;
    top: 100%;
    right: var(--space-2, 8px);
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 8px);
    box-shadow: var(--shadow-md);
    padding: var(--space-1, 4px);
    z-index: 120;
}

.gb-switcher-more-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gb-switcher-more-item {
    display: flex;
    align-items: center;
    gap: var(--space-3, 12px);
    width: 100%;
    min-height: var(--touch-target, 44px);
    padding: var(--space-2, 8px) var(--space-3, 12px);
    border: none;
    border-radius: var(--radius-sm, 4px);
    background: transparent;
    color: var(--text);
    font-size: var(--fs-sm);
    text-align: left;
    cursor: pointer;
}

.gb-switcher-more-item:hover { background: var(--bg-surface); }
.gb-switcher-more-item:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.gb-switcher-more-item--static { cursor: default; }
.gb-switcher-more-item--static:hover { background: transparent; }

.gb-switcher-more-icon {
    display: flex;
    line-height: 1;
    color: var(--text-muted);
}

.gb-switcher-more-item--link { padding: 0; }
.gb-switcher-more-item--link > .gb-switcher-more-icon { padding-left: var(--space-3, 12px); }

/* Labelled menu-row variant of the locale switcher (More sheet). Resets the
   fixed-position chrome the shared .gb-locale-switcher class sets. */
.gb-locale-switcher--row {
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    gap: var(--space-3, 12px);
    min-height: var(--touch-target, 44px);
    padding: var(--space-2, 8px) var(--space-3, 12px);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm, 4px);
    color: var(--text);
    font-size: var(--fs-sm);
    text-decoration: none;
}

.gb-locale-switcher--row:hover { background: var(--bg-surface); }
.gb-locale-switcher--row:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.gb-locale-switcher__code {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill, 999px);
    padding: 2px var(--space-2, 8px);
}

/* ── Header & Hero ─────────────────────────────────────────── */
.gb-header { position: relative; }

.gb-hero {
    position: relative;
    height: var(--gb-hero-height);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.gb-hero-overlay {
    width: 100%;
    padding: var(--space-6) 0 var(--space-5);
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.55) 45%,
        rgba(0, 0, 0, 0.15) 75%,
        rgba(0, 0, 0, 0) 100%);
    color: #fff;
}

/* The gradient above stays full-bleed; only the actual hero copy is
   width-constrained and centered, matching .gb-main's content measure. */
.gb-hero-content {
    width: 90%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .gb-hero-content {
        width: 100%;
        max-width: 1200px;
        padding: 0 var(--space-5);
    }
}

.gb-hero-no-image {
    background: var(--primary-color);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    text-align: center;
    padding: var(--space-7) var(--space-5);
}

.gb-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.gb-hero-eyebrow-rule {
    width: 24px;
    height: 1px;
    background: var(--accent-color);
    flex-shrink: 0;
}

.gb-hero-kicker {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--accent-color) 70%, #fff);
}

.gb-property-name {
    font-size: clamp(1.75rem, 5vw, var(--fs-2xl));
    font-weight: 700;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.gb-property-location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: var(--space-2);
    margin-bottom: var(--space-5);
}

.gb-property-location-dot {
    width: 5px;
    height: 5px;
    border-radius: var(--radius-pill);
    background: var(--accent-color);
    flex-shrink: 0;
}

/* ── Hero stay row (check-in / check-out / nights) ──────────── */
.gb-stay-row {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.gb-stay-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-4);
}

.gb-stay-card-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: var(--space-1);
}

.gb-stay-card-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.gb-stay-card-sub {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

/* ── Navigation ────────────────────────────────────────────── */
.gb-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 var(--space-4);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.gb-nav::-webkit-scrollbar { display: none; }

.gb-nav-list {
    display: flex;
    width: 100%;
    gap: 0;
    list-style: none;
    white-space: nowrap;
}

/* Centered once there's room; on narrow phones the list can overflow, and
   centering an overflowing flex row hides part of the start with no visual
   cue that it's still scrollable — so keep mobile left-aligned/scrollable. */
@media (min-width: 640px) {
    .gb-nav-list { justify-content: center; }
}

.gb-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-3);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    text-decoration: none;
}

.gb-nav-link:hover { color: var(--text); text-decoration: none; }
.gb-nav-link.active { color: var(--accent-color); font-weight: 600; border-bottom-color: var(--accent-color); }
.gb-nav-link.active .gb-nav-icon { transform: scale(1.15); }
/* ── Page-level destinations strip (Your Stay / Trip Dashboard / Gifts) ──
   Deliberately styled apart from .gb-nav-link: those are in-page anchors,
   these navigate away, and the two should not look interchangeable. */
.gb-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2, 8px);
    padding: var(--space-3, 12px) var(--space-4, 16px);
    border-bottom: 1px solid var(--border);
}

.gb-page-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 8px);
    min-height: var(--touch-target, 44px);
    padding: var(--space-2, 8px) var(--space-4, 16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill, 999px);
    background: var(--bg-card);
    color: var(--text);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.gb-page-link:hover { border-color: var(--accent-color); color: var(--accent-color); }
.gb-page-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.gb-page-link-icon { display: flex; line-height: 1; color: var(--text-muted); }
.gb-page-link:hover .gb-page-link-icon { color: var(--accent-color); }

.gb-nav-icon { font-size: 1rem; display: inline-block; transition: transform 0.2s; }
.gb-nav-label { font-size: 0.8rem; }

@media (prefers-reduced-motion: reduce) {
    .gb-nav-link, .gb-nav-icon { transition: none; }
    .gb-nav-link.active .gb-nav-icon { transform: none; }
}

/* ── Marketplace carousel (layout shell — sits between nav and content) ── */
.gb-marketplace-carousel {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}

.gb-marketplace-carousel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 var(--space-4);
    margin-bottom: var(--space-3);
}

.gb-marketplace-carousel-title {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text);
}

.gb-marketplace-carousel-link {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
}

.gb-marketplace-carousel-body {
    position: relative;
}

.gb-marketplace-carousel-track {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 var(--space-4);
}

.gb-marketplace-carousel-track::-webkit-scrollbar { display: none; }

.gb-marketplace-carousel-item {
    flex: 0 0 auto;
    width: 220px;
    scroll-snap-align: start;
}

.gb-marketplace-carousel-item .gb-product-card {
    height: 100%;
}

.gb-marketplace-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.gb-marketplace-carousel-nav--prev { left: var(--space-2); }
.gb-marketplace-carousel-nav--next { right: var(--space-2); }

/* Full-bleed band on mobile; constrained/centered on laptop+ so the row
   doesn't stretch edge-to-edge on wide viewports. */
@media (min-width: 768px) {
    .gb-marketplace-carousel-head,
    .gb-marketplace-carousel-body {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ── Main Content ──────────────────────────────────────────── */
.gb-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Section Cards ─────────────────────────────────────────── */
/* One section ("tab") visible at a time — guidebookApp.scrollToSection()
   toggles .active; see static/js/app.js. The wrapping <div data-section-id>
   in authenticated.html has no styling of its own, so hiding/showing the
   .gb-section element itself is what actually swaps the panel. */
.gb-section { display: none; }

#section-accommodation p {
    white-space: pre-line;
}

.gb-section.active {
    display: block;
    background: transparent;
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-5);
    margin: var(--space-4) 0;
    box-shadow: none;
    /* No entrance animation/transition here: an animation or transition
       targeting opacity/transform creates a new stacking context on the
       element for as long as it's declared — even after it finishes and
       even without a fill-mode holding a transform. .gb-section is the
       direct ancestor of the per-section lightbox overlay (_lightbox.html),
       and a stacking context here traps that overlay's z-index, breaking
       its full-viewport paint order against the sticky nav/bottom nav. */
}

/* ── Section head: icon badge + title/subtitle (matches every panel) ── */
.gb-section-head {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.gb-section-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
}

.gb-section-icon--welcome          { background: linear-gradient(135deg, var(--section-accent-welcome),          color-mix(in srgb, var(--section-accent-welcome) 55%, white)); }
.gb-section-icon--wifi             { background: linear-gradient(135deg, var(--section-accent-wifi),             color-mix(in srgb, var(--section-accent-wifi) 55%, white)); }
.gb-section-icon--arrival          { background: linear-gradient(135deg, var(--section-accent-arrival),          color-mix(in srgb, var(--section-accent-arrival) 55%, white)); }
.gb-section-icon--accommodation    { background: linear-gradient(135deg, var(--section-accent-accommodation),    color-mix(in srgb, var(--section-accent-accommodation) 55%, white)); }
.gb-section-icon--safety           { background: linear-gradient(135deg, var(--section-accent-safety),           color-mix(in srgb, var(--section-accent-safety) 55%, white)); }
.gb-section-icon--useful_numbers   { background: linear-gradient(135deg, var(--section-accent-useful_numbers),   color-mix(in srgb, var(--section-accent-useful_numbers) 55%, white)); }
.gb-section-icon--enhance          { background: linear-gradient(135deg, var(--section-accent-enhance),          color-mix(in srgb, var(--section-accent-enhance) 55%, white)); }
.gb-section-icon--local_area       { background: linear-gradient(135deg, var(--section-accent-local_area),       color-mix(in srgb, var(--section-accent-local_area) 55%, white)); }
.gb-section-icon--before_you_leave { background: linear-gradient(135deg, var(--section-accent-before_you_leave), color-mix(in srgb, var(--section-accent-before_you_leave) 55%, white)); }
.gb-section-icon--book_again       { background: linear-gradient(135deg, var(--section-accent-book_again),       color-mix(in srgb, var(--section-accent-book_again) 55%, white)); }
.gb-section-icon--farewell         { background: linear-gradient(135deg, var(--section-accent-farewell),         color-mix(in srgb, var(--section-accent-farewell) 55%, white)); }
.gb-section-icon--water_level      { background: linear-gradient(135deg, var(--section-accent-water_level),      color-mix(in srgb, var(--section-accent-water_level) 55%, white)); }

.gb-section-title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
}

.gb-section-subtitle {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}

.gb-section p { margin-bottom: 12px; }

.gb-section ul, .gb-section ol {
    margin: 8px 0 16px 20px;
}

.gb-section li { margin-bottom: 6px; }

/* ── WiFi Section ──────────────────────────────────────────── */
.gb-wifi-card {
    background: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.gb-wifi-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.gb-wifi-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-bottom: 16px;
    word-break: break-all;
}

.gb-wifi-copy-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.gb-wifi-copy-btn:hover { background: rgba(255,255,255,0.3); }

/* ── Arrival Section ───────────────────────────────────────── */
.gb-arrival-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.gb-arrival-time-card {
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
}

.gb-arrival-time-card--checkout {
    background: var(--bg-surface);
    color: var(--text);
}

.gb-arrival-time-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.gb-arrival-time-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.75;
    margin-bottom: 4px;
}

.gb-arrival-time-value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.gb-arrival-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gb-arrival-tab {
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    font-family: var(--font-family);
}

.gb-arrival-tab:hover { color: var(--accent-color); }

.gb-arrival-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    font-weight: 600;
}

.gb-arrival-tab-panel {
    padding: 4px 0 8px;
    line-height: 1.7;
}

.gb-arrival-contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}

.gb-arrival-contact-icon { font-size: 1.5rem; flex-shrink: 0; }

.gb-arrival-contact-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 2px;
}

.gb-arrival-contact-phone {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-decoration: none;
}

.gb-arrival-contact-phone:hover { text-decoration: underline; }

/* ── Useful Numbers ────────────────────────────────────────── */
.gb-number-list { list-style: none; margin: 0; padding: 0; }

.gb-number-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.gb-number-item:last-child { border-bottom: none; }

.gb-number-label { font-weight: 500; }

.gb-number-value {
    color: var(--accent-color);
    font-weight: 600;
}

/* ── Local Area ────────────────────────────────────────────── */
.gb-map-container {
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0;
    height: 300px;
}

.gb-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.gb-recommendation {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.gb-recommendation:last-child { border-bottom: none; }

.gb-recommendation-name {
    font-weight: 600;
    /* --primary-color is the tenant's fixed brand color (dark navy by
       default), not a light/dark-aware token — using it here made
       recommendation names render as dark text that never lightened in
       dark mode. var(--text) tracks the active theme like everything else. */
    color: var(--text);
}

.gb-recommendation-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Products ──────────────────────────────────────────────── */
.gb-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gb-product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.gb-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* ── Product media area ── */
.gb-product-media {
    position: relative;
    flex-shrink: 0;
}

.gb-product-image {
    width: 100%;
    height: 172px;
    object-fit: cover;
    display: block;
}

.gb-product-image-placeholder {
    width: 100%;
    height: 172px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0.85;
}

/* ── Product type badge ── */
.gb-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gb-product-badge--purchasable {
    background: rgba(255,255,255,0.9);
    color: var(--primary-color);
    border: 1px solid rgba(0,0,0,0.1);
}

.gb-product-badge--bookable {
    background: var(--accent-color);
    color: #fff;
}

.gb-product-badge--affiliate {
    background: rgba(0,0,0,0.55);
    color: #fff;
}

/* ── Card body ── */
.gb-product-body {
    padding: 14px 16px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gb-product-name {
    font-size: 0.975rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
    line-height: 1.35;
}

.gb-product-description {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* ── Card footer ── */
.gb-product-footer {
    padding: 10px 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
}

.gb-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.gb-product-price-from {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    display: block;
    line-height: 1;
    margin-bottom: 1px;
}

.gb-product-price--partner {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gb-product-cta {
    flex-shrink: 0;
}

.gb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.gb-btn:hover { text-decoration: none; }
/* [hidden] is same specificity as .gb-btn's own display:inline-flex, and this
   author rule loads after the UA stylesheet's [hidden]{display:none} — so
   without this, a hidden .gb-btn (e.g. the PWA banner's Install button before
   deferredPrompt is captured) stays visible and clickable, just silently
   no-opping on click instead of actually being hidden. */
.gb-btn[hidden] { display: none; }

.gb-btn-primary {
    background: var(--accent-color);
    color: #fff;
}

.gb-btn-primary:hover { opacity: 0.9; }

.gb-btn-secondary {
    background: #f1f5f9;
    color: var(--primary-color);
}

.gb-btn-secondary:hover { background: #e2e8f0; }

.gb-btn-outline {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.gb-btn-danger {
    background: #ef4444;
    color: #fff;
}

.gb-btn-danger:hover { background: #dc2626; }

.gb-btn-ghost {
    background: transparent;
    color: #64748b;
    border: none;
}

.gb-btn-ghost:hover { color: #475569; text-decoration: underline; }

.gb-btn-sm {
    font-size: 0.8rem;
    padding: 4px 10px;
}

/* ── Upsell Banner ─────────────────────────────────────────── */
.gb-upsell-banner {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-lg, 12px);
    padding: 20px;
    /* On-gradient text — deliberately literal white, not a surface token. */
    color: #fff;
    margin: 16px 0;
}

/* Dismiss control. The banner sits above everything the guest actually opened
   the guide for, so it must be closable. */
.gb-upsell-dismiss {
    position: absolute;
    top: var(--space-2, 8px);
    right: var(--space-2, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    color: inherit;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.gb-upsell-dismiss:hover { opacity: 1; background: rgba(0, 0, 0, 0.28); }
.gb-upsell-dismiss:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.gb-upsell-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.gb-upsell-description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 12px;
}

.gb-upsell-price {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.gb-upsell-btn {
    background: #fff;
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gb-upsell-btn:hover { opacity: 0.9; }

/* Consent-gated Accept & Pay */
.gb-upsell-form { display: flex; flex-direction: column; gap: 10px; }
.gb-upsell-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    line-height: 1.35;
    opacity: 0.95;
    cursor: pointer;
}
.gb-upsell-consent input { margin-top: 2px; flex-shrink: 0; }
.gb-upsell-form .gb-upsell-btn { align-self: flex-start; }

.gb-cart-badge {
    /* Anchored to the tab's centre (where the icon sits) rather than its right
       edge — tabs are now flex:1 and their width varies with the label. */
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(1px);
    background: var(--accent-color);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Chat Widget ───────────────────────────────────────────── */
.gb-chat-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.gb-chat-btn:hover { transform: scale(1.05); }

.gb-chat-drawer {
    max-height:calc(100vh - 58px);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: #fff;
    z-index: 300;
    display: flex;
    flex-direction: column;
}

.gb-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: var(--primary-color);
    color: #fff;
}

.gb-chat-header h3 { font-size: 1rem; font-weight: 600; }

.gb-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gb-chat-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.gb-chat-message-user {
    align-self: flex-end;
    background: var(--accent-color);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.gb-chat-message-assistant {
    align-self: flex-start;
    background: #f1f5f9;
    color: #1a1a2e;
    border-bottom-left-radius: 4px;
}

.gb-chat-typing {
    align-self: flex-start;
    background: #f1f5f9;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #64748b;
}

.gb-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.gb-chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    font-family: var(--font-family);
    /* .gb-chat-form is a fixed white bar regardless of theme — pin the text
       to match instead of inheriting body's dark-mode-light --text color. */
    background: #fff;
    color: #1a1a2e;
}

.gb-chat-input:focus { border-color: var(--accent-color); }

.gb-chat-send {
    padding: 10px 20px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gb-chat-send:hover { opacity: 0.9; }
.gb-chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Search Overlay ────────────────────────────────────────── */
.gb-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
}

.gb-search-panel {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 60vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.gb-search-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.gb-search-input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    font-size: 1rem;
    outline: none;
    font-family: var(--font-family);
    /* .gb-search-panel is a fixed white overlay regardless of theme — pin the
       text to match instead of inheriting body's dark-mode-light --text color. */
    background: #fff;
    color: #1a1a2e;
}

.gb-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 4px 8px;
}

.gb-search-results {
    overflow-y: auto;
    padding: 8px;
}

.gb-search-result {
    display: block;
    padding: 12px;
    border-radius: 8px;
    color: #1a1a2e;
    text-decoration: none;
    transition: background 0.15s;
}

.gb-search-result:hover { background: #f1f5f9; text-decoration: none; }

.gb-search-result-title { font-weight: 500; }

.gb-search-empty {
    text-align: center;
    color: #64748b;
    padding: 20px;
}

/* ── Cart Drawer ───────────────────────────────────────────── */
.gb-cart-drawer {
    position: fixed;
    bottom: 58px;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 250;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.gb-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.gb-cart-header h3 { font-size: 1rem; font-weight: 600; }

.gb-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.gb-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.gb-cart-item:last-child { border-bottom: none; }

.gb-cart-item-name { font-weight: 500; }

.gb-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gb-cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.gb-cart-item-price { font-weight: 600; color: var(--primary-color); }

.gb-cart-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.gb-cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.gb-cart-checkout {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gb-cart-checkout:hover { opacity: 0.9; }

.gb-cart-empty {
    text-align: center;
    color: #64748b;
    padding: 40px 20px;
}

/* ── Images ────────────────────────────────────────────────── */

/* Mosaic mode (default): CSS columns for natural gap-free flow */
.gb-image-grid {
    columns: 1;
    column-gap: 8px;
    margin: 16px 0;
}

.gb-image-grid .gb-image-item {
    break-inside: avoid;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.gb-image-grid .gb-image-item:last-child { margin-bottom: 0; }

/* 7-step aspect-ratio cycle; coprime with 3 columns so offsets stay out of phase */
.gb-image-grid .gb-image-item:nth-child(7n+1) { aspect-ratio: 4/3; }
.gb-image-grid .gb-image-item:nth-child(7n+2) { aspect-ratio: 2/3; }
.gb-image-grid .gb-image-item:nth-child(7n+3) { aspect-ratio: 16/9; }
.gb-image-grid .gb-image-item:nth-child(7n+4) { aspect-ratio: 3/4; }
.gb-image-grid .gb-image-item:nth-child(7n+5) { aspect-ratio: 1; }
.gb-image-grid .gb-image-item:nth-child(7n+6) { aspect-ratio: 5/3; }
.gb-image-grid .gb-image-item:nth-child(7n)   { aspect-ratio: 3/5; }

.gb-image-grid .gb-image-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

@media (min-width: 640px) {
    .gb-image-grid { columns: 3; }
}

/* Featured mode: CSS Grid so starred images can span wider */
.gb-image-grid.gb-featured-mode {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-flow: dense;
    gap: 8px;
    columns: unset;
}

.gb-image-grid.gb-featured-mode .gb-image-item {
    grid-column: span 3;   /* mobile: half width */
    aspect-ratio: 4/3;
    margin-bottom: 0;
}

.gb-image-grid.gb-featured-mode .gb-image-item.featured {
    grid-column: span 6;   /* mobile: full width */
    aspect-ratio: 16/9;
}

@media (min-width: 640px) {
    .gb-image-grid.gb-featured-mode .gb-image-item          { grid-column: span 2; }
    .gb-image-grid.gb-featured-mode .gb-image-item.featured { grid-column: span 4; }
}

/* ── Photo grid (Airbnb-style capped preview) ─────────────────
   One large image + a 2x2 of the next four, capped at 5 visible cells so a
   large gallery doesn't turn the page into one long scroll. Any remaining
   photos stay in the DOM (data-lightbox-index) but display:none — they're
   still picked up when building the lightbox's image array, just not shown
   in the grid. "Show all photos" opens the same shared lightbox at photo 0. */
.gb-photo-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--space-1);
    aspect-ratio: 16 / 7;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: var(--space-4) 0;
}

.gb-photo-grid-item { overflow: hidden; background: var(--bg-surface); }

.gb-photo-grid-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.gb-photo-grid-main { grid-column: span 2; grid-row: span 2; }
.gb-photo-grid-offscreen { display: none; }

.gb-photo-grid-showall {
    position: absolute;
    right: var(--space-3);
    bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    padding: var(--space-2) var(--space-4);
    font-size: var(--fs-sm);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.15s;
}

.gb-photo-grid-showall:hover { transform: translateY(-1px); }

@media (max-width: 639px) {
    .gb-photo-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        aspect-ratio: 4 / 3;
    }
    .gb-photo-grid-thumb { display: none; }
    .gb-photo-grid-main { grid-column: 1; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .gb-photo-grid-showall { transition: none; }
}

/* ── Lightbox ──────────────────────────────────────────────── */
.gb-lightbox {
    position: fixed;
    inset: 0;
    /* Above every guidebook chrome layer — sticky nav (100), section
       switcher (1000 across all nav-style variants), and the nav-style/
       locale-switcher gear cluster (2000) — a modal overlay must sit above
       all of it while open. */
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gb-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.gb-lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.gb-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    display: block;
    object-fit: contain;
}

.gb-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

.gb-lightbox-counter {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
}

.gb-lightbox-prev,
.gb-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    padding: 12px 8px;
    border-radius: 4px;
    line-height: 1;
}

.gb-lightbox-prev { left: 16px; }
.gb-lightbox-next { right: 16px; }

/* ── Checklist ─────────────────────────────────────────────── */
.gb-checklist { list-style: none; padding: 0; margin: 0; }

.gb-checklist li {
    padding: 8px 0 8px 28px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.gb-checklist li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.gb-dont-worry { list-style: none; padding: 0; margin: 8px 0; }

.gb-dont-worry li {
    padding: 6px 0 6px 28px;
    position: relative;
    color: #64748b;
}

.gb-dont-worry li::before {
    content: '\2717';
    position: absolute;
    left: 0;
    color: #94a3b8;
}

/* ── Book Again CTA ────────────────────────────────────────── */
.gb-cta-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    color: #fff;
}

.gb-cta-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.gb-cta-card p {
    opacity: 0.9;
    margin-bottom: 16px;
}

.gb-cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--primary-color);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.gb-cta-btn:hover { opacity: 0.9; text-decoration: none; }

/* ── Amenities ─────────────────────────────────────────────── */
.gb-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.gb-amenity-tag {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* ── Order Pages ───────────────────────────────────────────── */
.gb-order-page {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 16px;
    text-align: center;
}

.gb-order-page h1 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 16px;
}

.gb-order-items {
    margin: 24px 0;
    text-align: left;
}

.gb-order-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.gb-order-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 2px solid #e5e7eb;
}

.gb-order-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    text-align: left;
}

.gb-order-item-sub {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 2px;
}

.gb-price-was {
    text-decoration: line-through;
    color: #94a3b8;
}

.gb-order-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Auth Pages ────────────────────────────────────────────── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
}

.auth-card {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.08));
}

.auth-card h1 {
    text-align: center;
    color: var(--text);
    margin-bottom: 24px;
}

/* ── Utility Classes (.u-*) ────────────────────────────────── */

/* Splash page */
.u-splash-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d2d5e 100%);
    color: #fff;
    text-align: center;
    padding: 24px;
}

.u-splash-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.u-splash-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 480px;
}

.u-splash-btn-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.u-splash-btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: #fff;
    color: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.u-splash-btn-primary:hover { text-decoration: none; opacity: 0.9; color: var(--primary-color); }

.u-splash-btn-ghost {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.u-splash-btn-ghost:hover { text-decoration: none; background: rgba(255,255,255,0.25); color: #fff; }

.u-splash-note {
    margin-top: 28px;
    max-width: 420px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.72);
}

.u-splash-footer-note {
    margin-top: 48px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Button modifiers */
.u-btn-full {
    width: 100%;
    justify-content: center;
    padding: 12px;
}

/* Google SSO wrapper */
.u-sso-center {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

/* Auth divider */
.u-divider-or {
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 16px 0;
}

/* Auth card subtitle */
.u-auth-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 24px;
}

/* Light-coloured close button (on dark backgrounds) */
.u-close-light { color: #fff; }

/* ── Public Guidebook Message ──────────────────────────────── */
.gb-public-notice {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #92400e;
    margin: 16px 0;
}

/* ── Responsive ────────────────────────────────────────────── */
/* No sidebar variant, at any width — hero and nav stay full-bleed/horizontal;
   only the content column (.gb-main) gets a comfortable centered measure. See
   .gb-main rule above the section cards for the max-width/centering. */
@media (min-width: 768px) {
    .gb-main { padding: 0 24px; }

    .gb-chat-btn { bottom: 24px; right: 24px; }
}

/* ── Guidebook hero logo ── A direct child of .gb-hero (sibling of
   .gb-hero-overlay / the no-image variant's content), pinned to the top and
   centered independent of the bottom-anchored property-name block below it. */
.gb-nav-logo-wrap {
    position: absolute;
    top: var(--space-5);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    max-width: min(70%, 320px);
}
.gb-nav-logo {
    max-height: 48px;
    width: auto;
    max-width: 100%;
    display: block;
}
/* Opt-in via Settings > Branding > Logo — a translucent card behind the
   logo for tenants whose logo needs more contrast against the hero. */
.gb-nav-logo--framed {
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* ── Local Guide (products booking flow) ─────────────────── */
.lg-container       { max-width: 100%; margin: 0 auto; padding: 0rem; }
.lg-header          { margin-bottom: 2rem; }
.lg-title           { font-size: 1.5rem; font-weight: 700; }
.lg-section-title   { font-size: 1.25rem; margin-bottom: 1rem; }
.lg-product-grid    { display: grid; gap: 1rem; }
.lg-product-card    { display: block; border: 1px solid #e2e8f0; border-radius: 8px; padding: 1rem; text-decoration: none; color: inherit; }
.lg-product-img     { width: 100%; height: 160px; object-fit: cover; border-radius: 4px; margin-bottom: 0.75rem; }
.lg-product-name    { font-size: 1rem; font-weight: 600; }
.lg-product-desc    { color: #64748b; font-size: 0.875rem; margin: 0.25rem 0; }
.lg-product-price   { font-weight: 700; margin-top: 0.5rem; }
.lg-badge-book      { display: inline-block; background: #dbeafe; color: #1d4ed8; font-size: 0.75rem; padding: 2px 8px; border-radius: 9999px; margin-top: 0.5rem; }
.lg-badge-view      { display: inline-block; background: #f0fdf4; color: #166534; font-size: 0.75rem; padding: 2px 8px; border-radius: 9999px; margin-top: 0.5rem; }
.lg-empty           { color: #64748b; }
.lg-back-link       { color: #3b82f6; font-size: 0.875rem; }
.lg-detail-title    { font-size: 1.25rem; font-weight: 700; margin: 1rem 0 0.5rem; }
.lg-detail-img      { width: 100%; max-height: 300px; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; }
.lg-detail-desc     { color: #475569; margin-bottom: 1rem; }
.lg-card            { border: 1px solid #e2e8f0; border-radius: 8px; padding: 1.5rem; margin-top: 1rem; }
.lg-card-title      { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.lg-card-subtitle   { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.lg-avail-result    { margin-top: 1rem; }
.lg-price-summary   { margin-top: 1rem; font-weight: 700; }
.lg-dl              { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; }
.lg-dt              { color: #64748b; font-size: 0.875rem; }
.lg-confirm-wrap    { text-align: center; padding: 2rem 0; }
.lg-confirm-icon    { font-size: 3rem; margin-bottom: 1rem; }
.lg-confirm-title   { font-size: 1.25rem; font-weight: 700; }
.lg-confirm-sub     { color: #64748b; margin-top: 0.5rem; }
.lg-warning-card    { border: 1px solid #fcd34d; border-radius: 8px; padding: 1.5rem; margin-top: 1rem; background: #fffbeb; }
.lg-warning-text    { font-size: 0.875rem; color: #92400e; margin-bottom: 1rem; }
.lg-warning-count   { font-size: 0.875rem; margin-top: 1rem; color: #64748b; }
.lg-form            { display: flex; flex-direction: column; gap: 1rem; }
.lg-grid-2          { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lg-label           { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.lg-label-check     { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; cursor: pointer; margin-bottom: 0.5rem; }
.lg-input           { width: 100%; padding: 0.5rem; border: 1px solid #cbd5e1; border-radius: 4px; background: var(--input-bg); color: var(--text); }
.lg-input-warning   { width: 100%; padding: 0.5rem; border: 1px solid #d97706; border-radius: 4px; margin-bottom: 0.75rem; background: var(--input-bg); color: var(--text); }
.lg-file-input      { margin-bottom: 0.75rem; display: block; }
.lg-price-box       { background: #f8fafc; border-radius: 6px; padding: 1rem; }
.lg-error-box       { background: #fef2f2; border: 1px solid #fca5a5; border-radius: 6px; padding: 0.75rem 1rem; margin-bottom: 1rem; color: #dc2626; }
.lg-btn-primary     { display: inline-block; background: #16a34a; color: #fff; padding: 0.5rem 1.5rem; border-radius: 4px; text-decoration: none; margin-top: 1rem; }
.lg-btn-secondary   { display: inline-block; background: #fff; color: #374151; border: 1px solid #d1d5db; padding: 0.5rem 1.5rem; border-radius: 4px; text-decoration: none; margin-top: 1rem; }
.lg-btn-affiliate   { display: inline-block; background: #3b82f6; color: #fff; padding: 0.75rem 1.5rem; border-radius: 4px; text-decoration: none; margin-top: 1rem; }
.lg-btn-submit      { background: #16a34a; color: #fff; padding: 0.75rem; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; }
.lg-btn-check       { background: #3b82f6; color: #fff; padding: 0.5rem 1.5rem; border: none; border-radius: 4px; cursor: pointer; }
.lg-btn-warning     { background: #d97706; color: #fff; padding: 0.5rem 1rem; border: none; border-radius: 4px; cursor: pointer; }
.lg-actions         { margin-top: 1.5rem; }
.lg-hidden          { display: none; }
.lg-avail-ok        { color: #16a34a; font-weight: 600; }
.lg-avail-no        { color: #dc2626; font-weight: 600; }

/* ── Marketplace View ──────────────────────────────────────── */
.gb-marketplace {
    padding: 16px;
}

.gb-marketplace-header {
    text-align: center;
    margin: 24px 0 32px;
}

.gb-marketplace-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.gb-marketplace-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

.gb-marketplace-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.gb-search-input-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.gb-marketplace-search {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text);
    transition: all 0.2s;
}

.gb-marketplace-search:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}

.gb-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    pointer-events: none;
}

.gb-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.gb-filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.gb-filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.gb-filter-btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.gb-marketplace-product-item {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty states */
.gb-marketplace-empty,
.gb-marketplace-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.gb-marketplace-empty-icon,
.gb-marketplace-no-results-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.gb-marketplace-empty-title,
.gb-marketplace-no-results-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.gb-marketplace-empty-text,
.gb-marketplace-no-results-text {
    color: var(--text-muted);
    max-width: 400px;
}

@media (max-width: 768px) {
    .gb-marketplace {
        padding: 12px;
    }

    .gb-marketplace-title {
        font-size: 1.5rem;
    }

    .gb-filter-bar {
        gap: 6px;
    }

    .gb-filter-btn {
        font-size: 0.8rem;
        padding: 7px 12px;
    }

    .gb-marketplace-search {
        font-size: 16px;
    }
}

/* ── Local Guide Enhancements ──────────────────────────────── */
.lg-guide-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.lg-host-guide-card {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.05) 0%, rgba(233, 30, 140, 0.02) 100%);
    border: 1px solid rgba(233, 30, 140, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.lg-host-guide-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.lg-host-guide-narrative {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 16px;
}

.lg-host-recommendations {
    margin-top: 16px;
}

.lg-host-recommendations-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.lg-host-recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lg-host-recommendation-item {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text);
}

.lg-host-recommendation-item strong {
    color: var(--text);
}

.lg-rec-category {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    text-transform: uppercase;
}

.lg-host-recommendation-item p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.lg-products-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lg-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lg-search-wrapper {
    position: relative;
}

.lg-search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text);
    transition: all 0.2s;
}

.lg-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}

.lg-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    pointer-events: none;
}

.lg-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lg-filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.lg-filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.lg-filter-btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.lg-product-card {
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.lg-product-category {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 500;
    text-transform: capitalize;
    margin: 4px 0;
}

.lg-badge-purchase {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.lg-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.lg-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.6;
}

.lg-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .lg-host-guide-card {
        padding: 16px;
    }

    .lg-controls {
        gap: 12px;
    }

    .lg-filter-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .lg-search-input {
        font-size: 16px;
    }
}

/* ── Marketplace (cloned from Local Guide's lg-* classes so each page can be
   restyled independently — e.g. .lg-container's width doesn't affect
   .mp-container, and vice versa) ──────────────────────────────────────── */
.mp-container       { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.mp-header          { margin-bottom: 2rem; }
.mp-title           { font-size: 1.5rem; font-weight: 700; }
.mp-guide-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.mp-products-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.mp-section-title   { font-size: 1.25rem; margin-bottom: 1rem; }
.mp-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mp-search-wrapper {
    position: relative;
}
.mp-search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text);
    transition: all 0.2s;
}
.mp-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}
.mp-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    pointer-events: none;
}
.mp-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.mp-filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.mp-filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.mp-filter-btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
.mp-product-grid    { display: grid; gap: 1rem; }
.mp-product-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 8px);
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
}
.mp-product-img     { width: 100%; height: 160px; object-fit: cover; border-radius: 4px; margin-bottom: 0.75rem; }
.mp-product-name    { font-size: 1rem; font-weight: 600; }
.mp-product-desc    { color: var(--text-muted); font-size: 0.875rem; margin: 0.25rem 0; }
.mp-product-category {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 500;
    text-transform: capitalize;
    margin: 4px 0;
}
.mp-product-price   { font-weight: 700; margin-top: 0.5rem; }
/* Product-type badges. Deliberately NOT button-shaped: the whole card is the
   link to the product detail page, so a solid primary "Add to Cart" block
   (which is what .mp-badge-purchase used to be) promised an action the span
   could not perform. */
.mp-badge {
    display: inline-block;
    margin-top: var(--space-2, 8px);
    padding: 2px var(--space-2, 8px);
    border-radius: var(--radius-pill, 999px);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.mp-badge--bookable    { background: var(--state-info-bg); color: var(--state-info-fg); }
.mp-badge--purchasable { background: var(--state-neutral-bg); color: var(--state-neutral-fg); }
.mp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}
.mp-empty-icon      { font-size: 3rem; margin-bottom: 12px; opacity: 0.6; }
.mp-empty           { color: #64748b; }
.mp-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .mp-controls {
        gap: 12px;
    }

    .mp-filter-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .mp-search-input {
        font-size: 16px;
    }
}

/* ── Invalid / expired token page (B1) ──────────────────────── */
.gb-link-invalid {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5, 24px);
}
.gb-link-invalid__card { max-width: 480px; width: 100%; text-align: center; }
.gb-link-invalid__icon { font-size: 2.5rem; line-height: 1; margin-bottom: var(--space-3, 12px); }
.gb-link-invalid__title { font-size: var(--fs-xl, 1.5rem); color: var(--text); margin-bottom: var(--space-4, 16px); }
.gb-link-invalid__msg { color: var(--text-muted); margin-bottom: var(--space-4, 16px); }

/* SW update banner (C4) */
.gb-update-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 560px;
    margin: 0 auto;
    background: var(--primary-color, #1a1a2e);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    font-size: 0.9rem;
}
.gb-update-banner[hidden] { display: none; }
.gb-update-banner__actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Offline fallback page (C3 / #381) ─────────────────────────── */
.gb-offline-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}
.gb-offline-fallback {
    max-width: 420px;
    margin: 0 auto;
    padding: 32px 24px;
    text-align: center;
}
.gb-offline-fallback__icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 16px;
}
.gb-offline-fallback__title {
    font-size: 1.5rem;
    margin: 0 0 12px;
    color: var(--primary-color, #1a1a2e);
}
.gb-offline-fallback__text {
    color: #475569;
    line-height: 1.5;
    margin: 0 0 12px;
}
.gb-offline-fallback__hint {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0 0 24px;
}

/* PWA install prompt (C2) — centered modal + backdrop. Fixed full-viewport
   overlay so it sits above .gb-section-switcher (z-index: 1000) instead of
   pinning to the bottom edge, where the switcher used to hide it. */
.gb-pwa-install {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4, 16px);
    background: rgba(0, 0, 0, 0.5);
}
.gb-pwa-install[hidden] { display: none; }

.gb-pwa-install__panel {
    width: 100%;
    max-width: 420px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
    padding: 24px;
}
.gb-pwa-install__text { font-size: 0.9rem; color: var(--text, #1a1a2e); }
.gb-pwa-install__actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ── Guest order history + receipt (B3) ─────────────────────── */
.gb-orders, .gb-receipt { max-width: 640px; margin: 0 auto; padding: var(--space-5, 24px); }
.gb-orders__header { display: flex; align-items: center; gap: var(--space-3, 12px); flex-wrap: wrap; margin-bottom: var(--space-4, 16px); }
.gb-orders__logo, .gb-receipt__logo { height: 40px; width: auto; }
.gb-orders__title { font-size: var(--fs-xl, 1.5rem); color: var(--text); margin-right: auto; }
.gb-orders__card { margin-bottom: var(--space-3, 12px); }
.gb-orders__row { display: flex; justify-content: space-between; align-items: center; }
.gb-orders__date { color: var(--text-muted); font-size: var(--fs-sm, 0.85rem); }
.gb-orders__items { list-style: none; margin: var(--space-3,12px) 0; padding: 0; }
.gb-orders__items li { display: flex; justify-content: space-between; padding: 2px 0; }
.gb-orders__total { border-top: 1px solid var(--border); padding-top: var(--space-2,8px); margin-bottom: var(--space-3,12px); }

.gb-receipt__actions { display: flex; gap: var(--space-2,8px); margin-bottom: var(--space-4,16px); }
.gb-receipt__head { display: flex; align-items: center; gap: var(--space-3,12px); margin-bottom: var(--space-4,16px); }
.gb-receipt__title { font-size: var(--fs-xl,1.5rem); color: var(--text); }
.gb-receipt__meta { color: var(--text-muted); }
.gb-receipt__info { display: grid; gap: var(--space-2,8px); margin-bottom: var(--space-4,16px); }
.gb-receipt__info div { display: flex; gap: var(--space-3,12px); }
.gb-receipt__info dt { width: 80px; color: var(--text-muted); }
.gb-receipt__table { width: 100%; border-collapse: collapse; }
.gb-receipt__table th, .gb-receipt__table td { text-align: left; padding: var(--space-2,8px) 0; border-bottom: 1px solid var(--border); }
.gb-receipt__num { text-align: right; }
.gb-receipt__grandtotal td { border-bottom: none; padding-top: var(--space-3,12px); }
@media print { .gb-receipt__no-print { display: none !important; } }

/* Locale switcher (D4) */
.gb-locale-switcher {
    position: static;
    top: 8px;
    right: 8px;
    z-index: 120;
    display: flex;
    gap: var(--space-1);
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    font-size: var(--fs-xs);
    line-height: 1.6;
    color: var(--text);
}
.gb-locale-switcher__link { color: var(--primary-color); text-decoration: none; padding: 0 4px; min-height: var(--touch-target); display: inline-flex; align-items: center; }
html.dark .gb-locale-switcher__link { color: var(--accent-color); }
.gb-locale-switcher__link:hover { text-decoration: underline; }
.gb-locale-switcher__current { font-weight: 700; padding: 0 4px; color: var(--text); }

/* Admin surface: the switcher sits in the normal topbar flow (fixed
   positioning overlapped the notification bell and table controls). */
.admin-topbar .gb-locale-switcher {
    position: static;
    z-index: auto;
}


/* ── Deep-link focus flash — a message link (?focus= / #section-) lands here
      and briefly highlights the target section (Bet 1, Phase 3). ──────────── */
.gb-section--focus { animation: gbSectionFocus 2.4s ease-out; }
@keyframes gbSectionFocus {
    0%   { background: var(--accent-soft); }
    100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
    .gb-section--focus {
        animation: none;
        outline: 2px solid var(--accent-tint);
        outline-offset: 4px;
    }
}

/* ── Concierge propose→confirm action card (Bet 2, Phase 2) ─────────────── */
.gb-chat-action {
    background: var(--bg-card);
    border: 1px solid var(--accent-color);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    margin: var(--space-2) 0;
    max-width: 85%;
}
.gb-chat-action-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-2);
}
.gb-chat-action-consent {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
    font-size: var(--fs-xs);
    line-height: 1.4;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    cursor: pointer;
}
.gb-chat-action-btn {
    min-height: var(--touch-target);
    padding: 0 var(--space-4);
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
}
.gb-chat-action-btn:hover { opacity: 0.92; }
.gb-chat-action-note {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0 0 var(--space-2);
    line-height: 1.4;
}
.gb-chat-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.gb-chat-host-btn {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    border-radius: var(--radius-pill);
    padding: var(--space-1) var(--space-3);
    font-size: var(--fs-xs);
    font-weight: 600;
    cursor: pointer;
    opacity: 0.9;
}
.gb-chat-host-btn:hover { opacity: 1; }

/* ── Trip-aware personalization chips (Bet 3) ────────────────────────────── */
/* Root is .gb-trip-highlights, NOT .gb-trip — the Trip Coordination Hub below
   owns .gb-trip (max-width/centred/padded, page-level) and would otherwise win
   the cascade and re-pad these chips inside the guidebook section flow. */
.gb-trip-highlights { margin: 0 0 var(--space-5); }
.gb-trip-welcome {
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--text);
    margin: 0 0 var(--space-3);
}
.gb-trip-eyebrow {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 var(--space-2);
}
.gb-trip-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.gb-trip-chip {
    min-height: var(--touch-target);
    padding: var(--space-2) var(--space-4);
    background: var(--accent-soft);
    color: var(--text);
    border: 1px solid var(--accent-tint);
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
}
.gb-trip-chip:hover { background: var(--accent-tint); }
.gb-trip-chip:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ── Guest issue reporting (Bet 4 — Peace-of-Mind) ───────────────────────── */
.gb-issue {
    margin: var(--space-5) 0 var(--space-6);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
}
.gb-issue-summary {
    cursor: pointer;
    padding: var(--space-3) var(--space-4);
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    list-style: none;
}
.gb-issue-summary::-webkit-details-marker { display: none; }
.gb-issue[open] .gb-issue-summary { color: var(--text); border-bottom: 1px solid var(--border); }
.gb-issue-form { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); }
.gb-issue-hint { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.gb-issue-camera { display: block; }
.gb-issue-file {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}
.gb-issue-camera-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: var(--touch-target);
    padding: var(--space-3);
    border: 1px dashed var(--accent-tint);
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--text);
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
}
.gb-issue-file:focus-visible + .gb-issue-camera-btn { box-shadow: var(--focus-ring); }
.gb-issue-label { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }
.gb-issue-optional { font-weight: 400; text-transform: none; }
.gb-issue-input {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font: inherit;
}
.gb-issue-input:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.gb-issue-btn {
    align-self: flex-start;
    min-height: var(--touch-target);
    padding: 0 var(--space-4);
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
}
.gb-issue-btn:hover { opacity: 0.92; }
.gb-issue-done {
    margin: var(--space-4) 0;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--state-success-bg);
    color: var(--state-success-fg);
    font-size: var(--fs-sm);
    font-weight: 600;
}

/* ── Trip Coordination Hub ──────────────────────────── */
.gb-trip { max-width: 720px; margin: 0 auto; padding: var(--space-5, 24px); }
.gb-trip__header { margin-bottom: var(--space-4, 16px); }
.gb-trip__title { font-size: var(--fs-xl, 1.5rem); color: var(--text); margin-bottom: var(--space-2, 8px); }
.gb-trip__subtitle { color: var(--text-muted); }
.gb-trip__share-input { width: 100%; font-family: monospace; }
.gb-trip__catalog-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3, 12px);
    padding: var(--space-2, 8px) 0;
    border-bottom: 1px solid var(--border);
}
.gb-trip__catalog-prompt { flex: 1 1 auto; min-width: 200px; }
.gb-trip__catalog-choice { display: inline-flex; align-items: center; gap: var(--space-1, 4px); font-size: var(--fs-sm); }
.gb-trip__optional-nudge { color: var(--text-muted); font-size: var(--fs-sm); margin: var(--space-3, 12px) 0; }

.gb-trip-grid__scroll { overflow-x: auto; }
.gb-trip-grid { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.gb-trip-grid th, .gb-trip-grid td { text-align: left; padding: var(--space-2, 8px) var(--space-3, 12px); border-bottom: 1px solid var(--border); white-space: nowrap; }
.gb-trip-grid__prompt { display: block; font-weight: 600; }
.gb-trip-grid__completion { display: block; color: var(--text-muted); font-weight: 400; font-size: var(--fs-xs); }
.gb-trip-grid__badge {
    display: inline-block;
    margin-left: var(--space-2, 8px);
    padding: 0 var(--space-2, 8px);
    border-radius: var(--radius-pill, 999px);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: var(--fs-xs);
}
.gb-trip-grid__cell--empty { color: var(--text-muted); font-style: italic; }

/* ── Gift & Experience Registry ──────────────────────────── */
.gb-gift { max-width: 640px; margin: 0 auto; padding: var(--space-5, 24px); }
.gb-gift__header { margin-bottom: var(--space-4, 16px); }
.gb-gift__title { font-size: var(--fs-xl, 1.5rem); color: var(--text); margin-bottom: var(--space-2, 8px); }
.gb-gift__subtitle { color: var(--text-muted); }
.gb-gift-item__desc { color: var(--text-muted); margin-bottom: var(--space-3, 12px); }
.gb-gift-progress { width: 100%; height: 10px; border-radius: var(--radius-pill, 999px); overflow: hidden; }
.gb-gift-progress::-webkit-progress-bar { background: var(--bg-surface); border-radius: var(--radius-pill, 999px); }
.gb-gift-progress::-webkit-progress-value { background: var(--accent-color); border-radius: var(--radius-pill, 999px); }
.gb-gift-progress::-moz-progress-bar { background: var(--accent-color); border-radius: var(--radius-pill, 999px); }
.gb-gift-progress__label { color: var(--text-muted); font-size: var(--fs-sm); margin: var(--space-2, 8px) 0 var(--space-3, 12px); }
.gb-gift-givers { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-3, 12px); }
.gb-gift-funded-badge {
    display: inline-block;
    padding: var(--space-2, 8px) var(--space-3, 12px);
    border-radius: var(--radius-md);
    background: var(--state-success-bg);
    color: var(--state-success-fg);
    font-weight: 600;
    font-size: var(--fs-sm);
}
.gb-gift__anon-check { display: flex; align-items: center; gap: var(--space-2, 8px); margin: var(--space-3, 12px) 0; font-size: var(--fs-sm); }

/* ── Guest utility-page shell (guidebook/shell.html) ─────────────────────────
   Order review / receipts / order history / stay timeline / sale-waiting.
   These pages previously extended base.html directly, which dropped the brand
   and the section switcher at the highest-intent moment of the funnel. The
   shell keeps that chrome while staying much lighter than the full guidebook
   layout (no hero, no section nav, no chat). */
.gb-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-5, 24px) var(--space-4, 16px) var(--space-7, 48px);
}

.gb-shell__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3, 12px);
    margin-bottom: var(--space-5, 24px);
    padding-bottom: var(--space-4, 16px);
    border-bottom: 1px solid var(--border);
}

.gb-shell__logo {
    height: 36px;
    width: auto;
    flex: 0 0 auto;
}

.gb-shell__heading { flex: 1 1 auto; min-width: 0; }

.gb-shell__title {
    font-size: var(--fs-xl, 1.5rem);
    line-height: 1.2;
    color: var(--text);
    margin: 0;
}

.gb-shell__subtitle {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: var(--space-1, 4px) 0 0;
}

.gb-shell__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 8px);
    flex: 0 0 auto;
    min-height: var(--touch-target, 44px);
    padding: var(--space-2, 8px) var(--space-4, 16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill, 999px);
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.gb-shell__back:hover { border-color: var(--accent-color); color: var(--accent-color); }
.gb-shell__back:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.gb-shell__back-icon { display: flex; line-height: 1; }

/* Receipts are printed. Drop the navigation chrome the shell adds, so the
   printed page is the receipt card alone (matches .gb-receipt__no-print). */
@media print {
    .gb-section-switcher,
    .gb-switcher-more,
    .gb-shell__back,
    .gb-receipt__no-print { display: none !important; }
    .gb-shell { max-width: none; padding: 0; }
}

/* ── Local guide: booking form hint + payment deadline ──────────────────────
   The deadline sits above the pay button and in the guest's own timezone
   (rendered client-side from an ISO timestamp) — it used to be small muted
   UTC text underneath the CTA, which is the wrong clock in the wrong place
   for the one number that decides whether the guest acts now. */
.lg-field-hint {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin: calc(-1 * var(--space-2, 8px)) 0 var(--space-3, 12px);
}

.lg-expiry {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2, 8px);
    margin: 0 0 var(--space-3, 12px);
}

.lg-expiry-countdown {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text);
}

.lg-expiry-absolute {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.lg-expiry--soon .lg-expiry-countdown { color: var(--state-warning-fg); }
.lg-expiry--over { display: none; }
