/* =============================================================
   0. Fonts (self-hosted — no external request at runtime)
   ============================================================= */
@font-face {
    font-family: "Google Sans Flex";
    src: url("/assets/fonts/google-sans-flex.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Playfair Display";
    src: url("/assets/fonts/playfair-display-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Playfair Display";
    src: url("/assets/fonts/playfair-display-700-italic.woff2") format("woff2");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* =============================================================
   1. Design tokens
   ============================================================= */
:root {
    --color-bg: #FAFAFA;
    --color-surface: #F2F2F5;
    --color-surface-alt: #E9E9EE;
    --color-text: #0A0A0B;
    --color-text-muted: #6B6B75;
    --color-primary: #0A0A0B;
    --color-primary-dark: #000000;
    --color-accent: #EC4899;
    --color-accent-dark: #DB2777;
    --color-accent-soft: #FCE7F3;
    --color-accent-blue: #1A73E8;
    --color-border: #E4E4E9;
    --color-white: #FFFFFF;

    /* Blue end deliberately close to Expedia's own CTA blue, so our buttons
       and their embedded widget read as one coherent system rather than
       two different brands glued together. */
    --gradient-brand: linear-gradient(135deg, #1A73E8 0%, #EC4899 100%);

    --font-body: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
    --font-accent: "Playfair Display", ui-serif, Georgia, serif;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;
    --space-8: 96px;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    --shadow-card: 0 2px 12px rgba(20, 30, 28, 0.06);
    --shadow-card-hover: 0 12px 28px rgba(20, 30, 28, 0.12);

    --container-max: 1200px;

    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset / base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
    line-height: 1.08;
    margin: 0 0 var(--space-3);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); font-weight: 700; }

p { margin: 0 0 var(--space-3); }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; cursor: pointer; }

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

/* Scroll-reveal: fades/slides content in as it enters the viewport (see main.js) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-bounce);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/*
 * --tilt lets a reveal-item also carry a permanent rotation (e.g. the
 * postcard-style destination cards) without the two transforms clobbering
 * each other — every rule below composes translateY + rotate(var(--tilt)).
 */
.reveal-group .reveal-item {
    opacity: 0;
    transform: translateY(20px) rotate(var(--tilt, 0deg));
    transition: opacity 0.5s ease, transform 0.5s var(--ease-bounce);
}

.reveal-group.is-visible .reveal-item {
    opacity: 1;
    transform: translateY(0) rotate(var(--tilt, 0deg));
}

.reveal-group.is-visible .reveal-item:nth-child(1) { transition-delay: 0.03s; }
.reveal-group.is-visible .reveal-item:nth-child(2) { transition-delay: 0.09s; }
.reveal-group.is-visible .reveal-item:nth-child(3) { transition-delay: 0.15s; }
.reveal-group.is-visible .reveal-item:nth-child(4) { transition-delay: 0.21s; }
.reveal-group.is-visible .reveal-item:nth-child(5) { transition-delay: 0.27s; }
.reveal-group.is-visible .reveal-item:nth-child(6) { transition-delay: 0.33s; }
.reveal-group.is-visible .reveal-item:nth-child(7) { transition-delay: 0.37s; }
.reveal-group.is-visible .reveal-item:nth-child(8) { transition-delay: 0.41s; }
.reveal-group.is-visible .reveal-item:nth-child(9) { transition-delay: 0.45s; }
.reveal-group.is-visible .reveal-item:nth-child(10) { transition-delay: 0.49s; }

/* =============================================================
   3. Layout
   ============================================================= */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-4);
}

.section-heading-block {
    text-align: center;
    max-width: 560px;
    margin: 0 auto var(--space-6);
}

.section-heading {
    margin-bottom: var(--space-2);
}

.section-sub {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 700;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* Fallback for .section-heading used without a wrapping block */
.section-heading:only-child { margin-bottom: var(--space-4); }

/* =============================================================
   3b. Buttons
   ============================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--gradient-brand);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px var(--space-4);
    border-radius: var(--radius-full);
    border: none;
    white-space: nowrap;
    transition: filter 0.25s ease, transform 0.3s var(--ease-bounce);
}

.btn:hover { filter: brightness(0.92); transform: translateY(-2px) scale(1.03); }

.btn--ghost {
    background: var(--color-white);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn--ghost:hover { background: var(--color-surface); }

.btn--sm { padding: 8px var(--space-3); font-size: 0.8rem; }

.page-content {
    padding-block: var(--space-6);
}

.lede {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 68ch;
}

.content-notice {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    color: var(--color-text-muted);
}

/* =============================================================
   4. Header / nav
   ============================================================= */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--space-3);
}

.site-header__logo {
    position: relative;
    z-index: 101;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

/* The full-screen mobile nav (.primary-nav) is a dark overlay that sits
   right behind the logo (both z-index'd above it within the header's
   stacking context) — without this, the logo's near-black text became
   invisible against that same near-black overlay once the menu opened. */
body.nav-open .site-header__logo {
    color: var(--color-white);
}

.site-header__logo span { color: var(--color-accent); font-family: var(--font-accent); font-style: italic; }

.logo-mark { flex-shrink: 0; }

.primary-nav {
    display: none;
    gap: var(--space-5);
}

.primary-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
}

.primary-nav a:hover { color: var(--color-primary); }

.nav-toggle {
    position: relative;
    z-index: 101;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
}

.nav-toggle__bar {
    width: 22px;
    height: 2px;
    margin-inline: auto;
    background: var(--color-text);
    border-radius: var(--radius-full);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .primary-nav {
        display: flex;
        position: static;
        background: none;
        padding: 0;
        flex-direction: row;
    }
}

@media (max-width: 767.98px) {
    .primary-nav {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 100;
        background: var(--color-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-4);
        padding: var(--space-6) var(--space-5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-16px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    .primary-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .primary-nav a {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        font-weight: 800;
        letter-spacing: -0.02em;
        color: var(--color-white);
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
        transition-delay: 0.05s;
    }

    .primary-nav.is-open a {
        opacity: 1;
        transform: translateY(0);
    }

    .primary-nav a:nth-child(2) { transition-delay: 0.1s; }
    .primary-nav a:nth-child(3) { transition-delay: 0.15s; }
    .primary-nav a:nth-child(4) { transition-delay: 0.2s; }
    .primary-nav a:nth-child(5) { transition-delay: 0.25s; }

    .primary-nav a:hover { color: var(--color-accent); }

    body.nav-open { overflow: hidden; }

    /* Hamburger morphs into a close (X) icon */
    .nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-toggle.is-open .nav-toggle__bar { background: var(--color-white); }
    .nav-toggle.is-open { background: rgba(255, 255, 255, 0.08); }
}

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
    padding-block: 0 var(--space-3);
    background: var(--color-bg);
}

.hero__frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero--compact .hero__frame { min-height: 320px; }

/* On phones a 560px-tall hero eats the whole first screen and pushes the
   floating search widget almost entirely below the fold — shrink it so
   the widget peeks into view without scrolling. */
@media (max-width: 640px) {
    .hero__frame { min-height: 400px; }
    .hero--compact .hero__frame { min-height: 260px; }
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(16, 18, 17, 0.58) 0%, rgba(16, 18, 17, 0.8) 100%);
}

.hero__content {
    position: relative;
    padding: var(--space-7) var(--space-4);
    max-width: 640px;
}

@media (max-width: 640px) {
    .hero__content { padding-block: var(--space-5); }
}

.hero__title {
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.hero__subtitle {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 700;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 46ch;
    margin-inline: auto;
}

.hero__widget-float {
    position: relative;
    margin: calc(var(--space-6) * -1) auto 0;
    max-width: 920px;
    z-index: 2;
}

@media (max-width: 640px) {
    .hero__widget-float { margin-top: calc(var(--space-4) * -1); }
}

/* =============================================================
   6. Search widget wrapper
   ============================================================= */
.search-widget {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: 0 20px 40px rgba(16, 18, 17, 0.14);
}

/* The Expedia script can take a few seconds to turn this empty div into an
   iframe — show a shimmering placeholder in the meantime instead of a
   blank gap, which otherwise reads as a broken/missing widget. */
.eg-widget:empty {
    display: block;
    min-height: 190px;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-alt) 37%, var(--color-surface) 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .eg-widget:empty { animation: none; }
}

/* =============================================================
   7. Buttons / CTA
   ============================================================= */
.cta-block {
    position: relative;
    overflow: hidden;
    background: var(--gradient-brand);
    color: var(--color-white);
    padding-block: var(--space-7);
    margin-top: var(--space-6);
}

.cta-block::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(70px);
    top: -160px;
    right: -100px;
    pointer-events: none;
}

.cta-block__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--space-5);
    align-items: center;
}

.cta-block__text h2 { color: var(--color-white); }
.cta-block__text p { color: rgba(255, 255, 255, 0.85); }

@media (min-width: 900px) {
    .cta-block__inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* =============================================================
   8. Cards
   ============================================================= */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-4);
}

.destination-card {
    display: block;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transform: rotate(var(--tilt, 0deg));
    transition: box-shadow 0.35s ease, transform 0.35s var(--ease-bounce);
}

/* Loose "scattered postcards" tilt that straightens up on hover. Setting the
   --tilt custom property (rather than `transform` directly) lets this
   compose with the scroll-reveal transform above instead of overriding it. */
.destination-grid .destination-card:nth-child(3n+1) { --tilt: -1.1deg; }
.destination-grid .destination-card:nth-child(3n+2) { --tilt: 0.8deg; }
.destination-grid .destination-card:nth-child(3n+3) { --tilt: -0.5deg; }

/* .reveal-item raised to match specificity: without it, the scroll-reveal
   rule (.reveal-group.is-visible .reveal-item) would win and hover would
   stop moving the card once it has scrolled into view. */
.destination-card.reveal-item:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px) rotate(0deg) scale(1.02);
    z-index: 1;
}

.destination-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.destination-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover .destination-card__image {
    transform: scale(1.08);
}

.destination-card__badge {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-white);
    background: rgba(16, 18, 17, 0.55);
    backdrop-filter: blur(4px);
    padding: 4px var(--space-2);
    border-radius: var(--radius-full);
    font-weight: 700;
}

.destination-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    padding: var(--space-4);
}

.destination-card__name { margin: 0; }

.destination-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-2);
}

.destination-card__cta { margin-top: auto; pointer-events: none; }

/* =============================================================
   9. Breadcrumb
   ============================================================= */
.breadcrumb {
    margin-bottom: var(--space-4);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: var(--space-1);
    color: var(--color-border);
}

.breadcrumb a:hover { color: var(--color-primary); }

/* =============================================================
   9b. Activities (GetYourGuide)
   ============================================================= */
.activities {
    margin-top: var(--space-6);
}

.activities-widget {
    min-height: 120px;
}

/* =============================================================
   10. FAQ
   ============================================================= */
.faq {
    margin-top: var(--space-6);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-4);
}

.faq__heading { margin-bottom: var(--space-2); }

.faq__list {
    max-width: 760px;
    margin-inline: auto;
}

.faq__item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-2);
    transition: background 0.2s ease, color 0.2s ease;
}

.faq__question {
    cursor: pointer;
    font-weight: 700;
}

.faq__answer {
    margin: var(--space-2) 0 0;
    color: var(--color-text-muted);
}

.faq__item[open] {
    background: var(--color-primary);
    color: var(--color-white);
}

.faq__item[open] .faq__answer {
    color: rgba(255, 255, 255, 0.8);
}

/* =============================================================
   11. Editorial / trust (homepage)
   ============================================================= */
.editorial, .popular-searches, .destinations, .trust {
    padding-block: var(--space-6);
}

.destinations {
    position: relative;
    overflow: hidden;
}

.destinations::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    height: 240px;
    background: var(--color-accent-soft);
    opacity: 0.6;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.destinations > .container {
    position: relative;
    z-index: 1;
}

.editorial__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-3);
}

.editorial-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    background: var(--color-white);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    font-weight: 700;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease, transform 0.3s var(--ease-bounce);
}

.editorial-card.reveal-item:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px) rotate(-0.5deg);
}

.editorial-card__arrow { color: var(--color-accent-dark); font-family: var(--font-body); }

.marquee {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.popular-searches__list {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: var(--space-2);
    animation: marquee-scroll 28s linear infinite;
}

.marquee:hover .popular-searches__list {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .popular-searches__list { animation: none; }
}

.popular-searches__list a {
    display: inline-block;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-bounce);
}

.popular-searches__list a:hover {
    background: var(--gradient-brand);
    border-color: transparent;
    color: var(--color-white);
    transform: translateY(-3px);
}

.trust {
    background: var(--color-primary);
    color: var(--color-white);
}

.trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.trust__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 600;
}

.trust__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: var(--color-white);
    font-size: 1rem;
}

/* =============================================================
   12. Footer
   ============================================================= */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding-top: var(--space-6);
}

.site-footer__inner {
    display: grid;
    gap: var(--space-6) var(--space-5);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-white);
    margin: 0 0 var(--space-2);
}

.site-footer__logo span { color: var(--color-accent); font-family: var(--font-accent); font-style: italic; }

.site-footer__tagline { max-width: 48ch; color: rgba(255, 255, 255, 0.7); }

.site-footer__disclosure {
    max-width: 44ch;
    margin-top: var(--space-3);
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
}

.site-footer__heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-3);
}

.site-footer__nav {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.site-footer__nav a:hover { color: var(--color-white); }

.site-footer__bottom {
    padding-block: var(--space-4);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 640px) {
    .site-footer__inner {
        grid-template-columns: repeat(2, 1fr);
    }
    .site-footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
    .site-footer__inner {
        grid-template-columns: 1.3fr repeat(4, 1fr);
        align-items: start;
    }
    .site-footer__brand { grid-column: auto; }
}

/* =============================================================
   12b. Mobile bottom tab bar
   ============================================================= */
.mobile-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 16px rgba(16, 18, 17, 0.06);
}

.mobile-tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding-block: var(--space-2);
    color: var(--color-text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.mobile-tabbar__item.is-active { color: var(--color-accent); }

@media (min-width: 768px) {
    .mobile-tabbar { display: none; }
}

body.has-tabbar {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
    body.has-tabbar { padding-bottom: 0; }
}

/* =============================================================
   13. Page-specific: destination / seo-landing article, fact grid
   ============================================================= */
.destination-article, .seo-article { margin-bottom: var(--space-6); }

.highlight-list li {
    position: relative;
    padding-left: var(--space-4);
    margin-bottom: var(--space-2);
    color: var(--color-text-muted);
}

.highlight-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
    margin: var(--space-4) 0;
}

.fact-grid__item {
    background: var(--color-surface);
    border-left: 3px solid var(--color-accent-blue);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
}

.fact-grid__item h3 { margin-bottom: var(--space-1); font-size: 1rem; }
.fact-grid__item p { margin: 0; color: var(--color-text-muted); }

.weather-badge {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.weather-icon { flex-shrink: 0; }

.weather-badge__temp {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-text);
}

.weather-badge__label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.seo-block__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-3);
    margin: var(--space-5) 0;
}

.seo-block__item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.seo-block__item h3 { margin-bottom: var(--space-1); }
.seo-block__item p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }

.internal-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.internal-links a {
    font-weight: 600;
    color: var(--color-primary);
}

.internal-links a:hover { text-decoration: underline; }

.related-destinations { margin-top: var(--space-6); }

/* =============================================================
   14. Cookie consent banner + consent-gated widgets
   ============================================================= */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 16px rgba(16, 18, 17, 0.1);
    padding: var(--space-4);
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
}

body.has-tabbar .cookie-banner {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: var(--space-4);
}

@media (min-width: 768px) {
    body.has-tabbar .cookie-banner { bottom: 0; }
}

.cookie-banner__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.cookie-banner__text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    flex: 1 1 320px;
}

.cookie-banner__text a { color: var(--color-primary); font-weight: 600; }

.cookie-banner__actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

.consent-gate {
    position: relative;
}

.consent-gate__overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    position: absolute;
    inset: 0;
    background: rgba(250, 250, 250, 0.97);
    border-radius: inherit;
    padding: var(--space-4);
    text-align: center;
}

.consent-gate__overlay p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.consent-gate.is-unlocked .consent-gate__overlay {
    display: none;
}


.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-2);
    font-size: 0.85rem;
}

.site-footer__legal a,
.site-footer__legal-btn {
    color: var(--color-text-muted);
}

.site-footer__legal a:hover,
.site-footer__legal-btn:hover {
    color: var(--color-text);
}

.site-footer__legal-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* =============================================================
   15. Blog / guides
   ============================================================= */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-4);
}

.guide-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.35s ease, transform 0.35s var(--ease-bounce);
}

.guide-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
}

.guide-card__image-wrap { aspect-ratio: 4 / 3; overflow: hidden; }

.guide-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.guide-card:hover .guide-card__image { transform: scale(1.08); }

.guide-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    padding: var(--space-4);
}

.guide-card__title { margin: 0; font-size: 1.05rem; }

.guide-card__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-2);
}

.guide-card__cta { margin-top: auto; pointer-events: none; }

.guide-section { margin-bottom: var(--space-5); }
.guide-section h2 { margin-bottom: var(--space-2); }

.guide-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

/* =============================================================
   16. Legal pages (privacy / cookies)
   ============================================================= */
.legal-article { max-width: 720px; margin: 0 auto var(--space-7); }
.legal-article section { margin-bottom: var(--space-5); }
.legal-article h2 { margin-bottom: var(--space-2); }
.legal-article ul { margin: 0 0 var(--space-3); padding-left: var(--space-4); color: var(--color-text-muted); }
.legal-article li { margin-bottom: var(--space-1); }

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-3) 0 var(--space-5);
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    text-align: left;
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.cookie-table th { color: var(--color-text-muted); font-weight: 600; }

.section-hub h1 { margin-top: var(--space-3); }

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-3);
    margin: var(--space-6) 0;
    padding: var(--space-5) var(--space-4);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
}

.about-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-stats__value {
    font-family: var(--font-accent);
    font-size: 2.4rem;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.about-stats__label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}
