/* ============================================================================
   TripSkyWay public website - design system v2 (foundation + shell)
   ----------------------------------------------------------------------------
   Read docs/REDESIGN.md first. This file holds what every public page shares:
   fonts, tokens, base typography, layout primitives, components (buttons,
   form controls, chips, alerts, breadcrumbs, pagination, media), and the site
   shell (top bar, header, mobile menu, footer, WhatsApp button, consent
   banner). Page compositions live in site-home.css, site-trips.css and
   site-content.css, which only consume these tokens and components.

   Rules that keep it maintainable:
   * Every colour, size and radius is a token below. No literals in components.
   * Components are flat, single-class selectors (.btn, .btn-primary). State is
     an attribute or a modifier class, never a deeper descendant chain.
   * Spacing between siblings is `gap` on the parent, never margins that can
     collapse or double.
   ========================================================================== */

/* ---- Fonts (self-hosted; CSP allows font-src 'self' only) ---------------- */
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url(../fonts/bricolage-grotesque-latin-opsz-normal.woff2) format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url(../fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2) format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Source Serif 4';
    font-style: normal;
    font-display: swap;
    font-weight: 200 900;
    src: url(../fonts/source-serif-4-latin-wght-normal.woff2) format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Source Serif 4';
    font-style: normal;
    font-display: swap;
    font-weight: 200 900;
    src: url(../fonts/source-serif-4-latin-ext-wght-normal.woff2) format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Source Serif 4';
    font-style: italic;
    font-display: swap;
    font-weight: 200 900;
    src: url(../fonts/source-serif-4-latin-wght-italic.woff2) format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens --------------------------------------------------------------- */
:root {
    /* Brand: --tsw-brand-blue is re-pointed by partials/_brand_style.php when
       Site Identity sets a custom primary, so everything derives from it. */
    --c-brand:        var(--tsw-brand-blue, #111E8E);
    --c-brand-strong: color-mix(in srgb, var(--c-brand) 78%, #000);
    --c-brand-soft:   color-mix(in srgb, var(--c-brand) 9%, #fff);
    --c-brand-line:   color-mix(in srgb, var(--c-brand) 28%, #fff);
    --c-marigold:     var(--tsw-brand-orange, #FFA500);   /* fill only */
    --c-marigold-soft:#FFF1D6;
    --c-marigold-text:#946000;                            /* 5.3:1 on white */

    --c-ink:          #1B1F3B;   /* text, dark surfaces */
    --c-ink-2:        #474C6B;   /* secondary text, 8.3:1 on white */
    --c-ink-3:        #5F6482;   /* tertiary text, 5.9:1 on white */
    --c-paper:        #FFFFFF;
    --c-haze:         #F3F4FA;   /* bands, inputs at rest */
    --c-haze-2:       #E9EBF5;
    --c-line:         #DFE2EE;
    --c-line-strong:  #C3C7DA;
    --c-on-dark:      #FFFFFF;
    --c-on-dark-2:    #C9CCE3;

    --c-success:      #13795B;
    --c-success-soft: #E5F4EE;
    --c-warning:      #8A5A00;
    --c-warning-soft: #FFF4DC;
    --c-danger:       #B42318;
    --c-danger-soft:  #FDECEA;

    --f-ui:    'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --f-text:  'Source Serif 4', Georgia, 'Times New Roman', serif;

    /* Type scale (px): 14 16 18 22 28 36 48 64 88 - fluid at the top end. */
    --t-xs:  0.875rem;
    --t-sm:  1rem;
    --t-md:  1.125rem;
    --t-lg:  1.375rem;
    --t-xl:  1.75rem;
    --t-2xl: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
    --t-3xl: clamp(2.125rem, 1.4rem + 2.4vw, 3rem);
    --t-4xl: clamp(2.5rem, 1.5rem + 3.4vw, 4rem);
    --t-5xl: clamp(2.75rem, 1.4rem + 5vw, 5.5rem);

    --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
    --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
    --section-y: clamp(56px, 4vw + 32px, 112px);

    --r-control: 8px;
    --r-media:   14px;
    --r-pill:    999px;

    --wrap: 1240px;
    --gutter: clamp(16px, 2.5vw, 32px);
    --measure: 68ch;

    --shadow-float: 0 1px 2px rgba(27, 31, 59, .06), 0 12px 32px -8px rgba(27, 31, 59, .22);
    --focus: 0 0 0 3px var(--c-paper), 0 0 0 5px var(--c-brand);

    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 72px;
}

/* ---- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    background: var(--c-paper);
    color: var(--c-ink);
    font-family: var(--f-ui);
    font-size: var(--t-sm);
    line-height: 1.55;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-brand); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--c-brand-strong); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-ui); color: var(--c-ink); font-weight: 680; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--t-4xl); }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-lg); line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-size: var(--t-md); line-height: 1.3; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 0; }
::selection { background: var(--c-marigold-soft); color: var(--c-ink); }
[hidden] { display: none !important; }

.sr-only, .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: var(--s-4); top: -100px; z-index: 1000;
    padding: var(--s-3) var(--s-4); background: var(--c-ink); color: var(--c-on-dark);
    border-radius: var(--r-control); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

/* Reading text: the serif. Anything a person reads for meaning. */
.prose, .text {
    font-family: var(--f-text);
    font-size: var(--t-md);
    line-height: 1.65;
    color: var(--c-ink);
}
.prose { max-width: var(--measure); display: grid; gap: 1em; }
.prose > * { margin: 0; }
.prose h2 { font-size: var(--t-2xl); margin-top: .6em; }
.prose h3 { font-size: var(--t-lg); margin-top: .4em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .4em; }
.prose blockquote { margin: 0; padding-left: var(--s-5); border-left: 3px solid var(--c-marigold); font-style: italic; color: var(--c-ink-2); }
.prose img { border-radius: var(--r-media); }
.prose a { color: var(--c-brand); }
.lede { font-family: var(--f-text); font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.55; color: var(--c-ink-2); max-width: 60ch; }
/* An editable introduction (Website -> Pages: Contact, Your data rights). */
.page-intro { display: grid; gap: var(--s-3); }
.page-intro > * { margin: 0; }
.page-intro a { color: inherit; text-decoration: underline; }
.muted { color: var(--c-ink-3); }

/* ---- Layout primitives ---------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(820px + 2 * var(--gutter)); }
.band { padding-block: var(--section-y); }
.band-haze { background: var(--c-haze); }
.band-ink { background: var(--c-ink); color: var(--c-on-dark); }
.band-ink h1, .band-ink h2, .band-ink h3 { color: var(--c-on-dark); }
.stack { display: grid; gap: var(--s-4); }
.stack-lg { display: grid; gap: var(--s-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.section-head { display: grid; gap: var(--s-3); max-width: 760px; margin-bottom: var(--s-6); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4) var(--s-6); margin-bottom: var(--s-6); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    min-height: 48px; padding: 0 var(--s-5);
    border: 1.5px solid transparent; border-radius: var(--r-control);
    font-family: var(--f-ui); font-size: var(--t-sm); font-weight: 620; line-height: 1;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--c-brand); color: var(--c-on-dark); }
.btn-primary:hover { background: var(--c-brand-strong); color: var(--c-on-dark); }
.btn-marigold { background: var(--c-marigold); color: var(--c-ink); }
.btn-marigold:hover { background: color-mix(in srgb, var(--c-marigold) 86%, #000); color: var(--c-ink); }
.btn-outline { border-color: var(--c-line-strong); color: var(--c-ink); background: var(--c-paper); }
.btn-outline:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn-ghost { color: var(--c-brand); background: transparent; padding-inline: var(--s-3); }
.btn-ghost:hover { background: var(--c-brand-soft); }
.btn-on-dark { border-color: rgba(255,255,255,.55); color: var(--c-on-dark); background: rgba(27,31,59,.18); }
.btn-on-dark:hover { border-color: #fff; color: #fff; background: rgba(27,31,59,.35); }
.btn-whatsapp { background: #128C4B; color: #fff; }  /* WhatsApp green darkened to 4.9:1 */
.btn-whatsapp:hover { background: #0E6E3B; color: #fff; }
.btn-sm { min-height: 38px; padding-inline: var(--s-4); font-size: var(--t-xs); }
.btn-lg { min-height: 56px; padding-inline: var(--s-6); font-size: var(--t-md); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* A text link that is the action of a block ("See all packages"). */
.link-action {
    display: inline-flex; align-items: center; gap: var(--s-2);
    font-weight: 620; color: var(--c-brand); text-decoration: none;
    border-bottom: 1.5px solid var(--c-brand-line); padding-bottom: 2px;
}
.link-action:hover { border-bottom-color: currentColor; }

/* ---- Form controls -------------------------------------------------------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: var(--t-xs); font-weight: 620; color: var(--c-ink); }
.field .req { color: var(--c-danger); }
.field-hint { font-size: var(--t-xs); color: var(--c-ink-3); }
.field-error { font-size: var(--t-xs); color: var(--c-danger); font-weight: 560; }
.input, .select, .textarea,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 12px 14px;
    background: var(--c-paper); color: var(--c-ink);
    border: 1.5px solid var(--c-line-strong); border-radius: var(--r-control);
    font-family: var(--f-ui); font-size: var(--t-sm); line-height: 1.3;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea, .textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select, .select {
    appearance: none; -webkit-appearance: none; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235F6482' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: #8A8EA6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-ink-3); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-soft);
}
.field [aria-invalid="true"], .field .is-invalid { border-color: var(--c-danger) !important; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--t-xs); color: var(--c-ink-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-brand); flex: none; }
.form-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid > .field-full, .form-grid > .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
/* Honeypot fields: present for bots, invisible and unreachable for people. */
.hp, .tsw-hp, [data-hp] { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- Small components ----------------------------------------------------- */
.chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
    border: 1.5px solid var(--c-line); border-radius: var(--r-pill); background: var(--c-paper);
    font-size: var(--t-xs); font-weight: 580; color: var(--c-ink); text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--c-ink-3); color: var(--c-ink); }
.chip[aria-current="true"], .chip[aria-pressed="true"], .chip.is-active { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-on-dark); }
.tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill);
    background: var(--c-haze); color: var(--c-ink-2); font-size: 0.8125rem; font-weight: 600; line-height: 1.2;
}
.tag-offer { background: var(--c-marigold); color: var(--c-ink); }
.tag-on-photo { background: rgba(255,255,255,.92); color: var(--c-ink); }
.alert {
    display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5);
    border-radius: var(--r-control); border: 1.5px solid; font-size: var(--t-sm);
}
.alert-success { background: var(--c-success-soft); border-color: color-mix(in srgb, var(--c-success) 35%, #fff); color: var(--c-success); }
.alert-error   { background: var(--c-danger-soft);  border-color: color-mix(in srgb, var(--c-danger) 35%, #fff);  color: var(--c-danger); }
.alert-info    { background: var(--c-brand-soft);   border-color: var(--c-brand-line); color: var(--c-brand-strong); }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--t-xs); color: var(--c-ink-3); }
.breadcrumbs li { display: inline-flex; gap: var(--s-2); align-items: center; }
.breadcrumbs li + li::before { content: '/'; color: var(--c-line-strong); }
.breadcrumbs a { color: var(--c-ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-brand); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--c-ink); font-weight: 600; }
.on-photo .breadcrumbs, .on-photo .breadcrumbs a { color: rgba(255,255,255,.86); }
.on-photo .breadcrumbs [aria-current="page"] { color: #fff; }

.pagination { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-top: var(--s-7); }
.pagination a, .pagination span {
    display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--s-3);
    border-radius: var(--r-control); border: 1.5px solid var(--c-line); text-decoration: none; color: var(--c-ink); font-weight: 600;
}
.pagination a:hover { border-color: var(--c-ink); }
.pagination [aria-current="page"] { background: var(--c-ink); color: var(--c-on-dark); border-color: var(--c-ink); }

/* Media frames: fixed aspect ratios so nothing shifts while loading, and a
   composed placeholder when a record has no photo. */
.media { position: relative; overflow: hidden; border-radius: var(--r-media); background: var(--c-haze-2); }
.media > img, .media > picture > img { width: 100%; height: 100%; object-fit: cover; }
.ratio-hero  { aspect-ratio: 16 / 9; }
.ratio-wide  { aspect-ratio: 3 / 2; }
.ratio-card  { aspect-ratio: 4 / 3; }
.ratio-tall  { aspect-ratio: 4 / 5; }
.ratio-square{ aspect-ratio: 1; }
.media-placeholder {
    position: absolute; inset: 0; display: grid; place-items: end start; padding: var(--s-5);
    background:
        radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--c-brand) 55%, transparent), transparent 60%),
        linear-gradient(160deg, var(--c-brand-strong), var(--c-ink));
    color: var(--c-on-dark); font-weight: 680; font-size: var(--t-xl); letter-spacing: -0.01em; line-height: 1.05;
}
.media-placeholder svg { position: absolute; right: 12%; top: 50%; width: clamp(40px, 28%, 120px); height: auto; transform: translateY(-50%); opacity: .3; }

/* The route: the design's signature. A line of day stops (see docs). */
.route { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.route::before { content: ''; position: absolute; left: 10px; top: 9px; border-top: 2.5px dashed var(--c-marigold);
    /* End at the last stop, not the far edge of the last column: columns are equal, var(--s-2) apart, stops 20px wide. */
    right: calc((100% - (var(--stops, 5) - 1) * var(--s-2)) / var(--stops, 5) - 10px); }
.route li { position: relative; display: grid; gap: 6px; justify-items: start; min-width: 0; }
.route li::before { content: ''; position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--c-paper); border: 5px solid var(--c-marigold); }
.route li:first-child::before, .route li:last-child::before { background: var(--c-marigold); border-color: var(--c-marigold); }
.route .route-day { font-size: 0.8125rem; color: var(--c-ink-3); font-weight: 600; }
.route .route-place { font-size: var(--t-xs); font-weight: 650; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.route-compact li::before { width: 12px; height: 12px; border-width: 3px; }
.route-compact::before { top: 5px; left: 6px; right: calc((100% - (var(--stops, 5) - 1) * var(--s-2)) / var(--stops, 5) - 6px); border-top-width: 2px; }

/* ---- Grids for repeated items -------------------------------------------- */
.grid-3 { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-2 { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.list-tickets { display: grid; gap: var(--s-5); }
.field-err { font-size: var(--t-xs); color: var(--c-danger); font-weight: 560; }
.pagination svg { width: 18px; height: 18px; }
.pagination > span[aria-hidden] { border: 0; min-width: 24px; }

/* ---- Package ticket (website.partials._package_card) ----------------------
   Stacked in a narrow column; a horizontal ticket with a perforated stub when
   its container is at least 760px wide. The title link covers the card. */
.ticket-wrap, .grid-3, .grid-2, .list-tickets { container-type: inline-size; }
.ticket {
    position: relative; display: grid; grid-template-rows: auto 1fr auto; height: 100%;
    background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-media); overflow: hidden;
    transition: border-color .15s var(--ease);
}
.ticket:hover { border-color: var(--c-ink-3); }
.ticket:focus-within { box-shadow: var(--focus); }
.ticket-media { border-radius: 0; aspect-ratio: 4 / 3; }
.ticket-media img { transition: transform .5s var(--ease); }
.ticket:hover .ticket-media img { transform: scale(1.03); }
.ticket-label { position: absolute; left: var(--s-3); top: var(--s-3); }
.ticket-body { display: grid; align-content: start; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-4); min-width: 0; }
.ticket-place { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 600; color: var(--c-ink-2); }
.ticket-place svg { width: 16px; height: 16px; color: var(--c-marigold-text); }
.ticket-title { font-size: var(--t-lg); line-height: 1.18; letter-spacing: -0.015em; }
.ticket-title a { color: var(--c-ink); text-decoration: none; }
.ticket-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.ticket-title a:focus-visible { box-shadow: none; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--t-xs); color: var(--c-ink-2); }
.ticket-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ticket-meta svg { width: 16px; height: 16px; color: var(--c-ink-3); }
.ticket-summary { font-family: var(--f-text); font-size: var(--t-sm); color: var(--c-ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket .route { margin-top: var(--s-1); }
.ticket-stub {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
    padding: var(--s-4) var(--s-5); border-top: 2px dashed var(--c-line);
}
/* The perforation's notches: two half-circles cut from the card edge. */
.ticket-stub::before, .ticket-stub::after {
    content: ''; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--ticket-ground, var(--c-paper)); border: 1px solid var(--c-line);
}
.ticket-stub::before { left: -9px; }
.ticket-stub::after { right: -9px; }
.band-haze .ticket-stub::before, .band-haze .ticket-stub::after { background: var(--c-haze); }
.ticket-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: var(--t-xs); color: var(--c-ink-2); }
.ticket-price strong { font-size: var(--t-lg); font-weight: 720; color: var(--c-ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ticket-from { font-weight: 600; }
.ticket-cta { display: inline-flex; align-items: center; gap: 2px; font-weight: 650; font-size: var(--t-xs); color: var(--c-brand); white-space: nowrap; }
.ticket-cta svg { width: 16px; height: 16px; }
@container (min-width: 760px) {
    .list-tickets .ticket-media > img { position: absolute; inset: 0; }
    .list-tickets .ticket { grid-template-columns: minmax(220px, 34%) minmax(0, 1fr) 200px; grid-template-rows: none; }
    .list-tickets .ticket-media { aspect-ratio: auto; min-height: 220px; height: 100%; }
    .list-tickets .ticket-body { padding: var(--s-5) var(--s-6); align-content: center; }
    .list-tickets .ticket-stub { flex-direction: column; align-items: flex-start; justify-content: center; border-top: 0; border-left: 2px dashed var(--c-line); padding: var(--s-5); }
    .list-tickets .ticket-stub::before { top: -9px; left: -9px; }
    .list-tickets .ticket-stub::after { top: auto; bottom: -9px; left: -9px; right: auto; }
    .list-tickets .ticket-price { flex-direction: column; align-items: flex-start; gap: 2px; }
    .list-tickets .ticket-price strong { font-size: var(--t-xl); }
}

/* ---- Destination tile + mosaic (website.partials._destination_tile) ------ */
.dest-tile {
    position: relative; display: block; min-height: 280px; height: 100%; overflow: hidden; border-radius: var(--r-media);
    color: #fff; text-decoration: none; background: var(--c-ink); isolation: isolate;
}
.dest-tile-media, .dest-tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dest-tile-media img { transition: transform .6s var(--ease); }
.dest-tile:hover .dest-tile-media img { transform: scale(1.04); }
.dest-tile::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(27,31,59,0) 40%, rgba(27,31,59,.82) 100%); }
.dest-tile-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 4px; padding: var(--s-5); }
.dest-tile-name { color: #fff; font-size: var(--t-2xl); font-weight: 720; letter-spacing: -0.025em; line-height: 1; }
.dest-tile-where { font-size: var(--t-xs); font-weight: 560; color: rgba(255,255,255,.85); }
.dest-tile-note { font-size: var(--t-xs); color: rgba(255,255,255,.85); max-width: 36ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dest-tile:hover { color: #fff; }
.dest-tile:focus-visible { box-shadow: var(--focus); }
/* Mosaic: unequal tiles. The first tile is the feature (2x2) on wide screens. */
.mosaic { display: grid; gap: var(--s-4); grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(240px, 22vw); grid-auto-flow: dense; }
.mosaic > :first-child { grid-column: span 2; grid-row: span 2; }
.mosaic > :first-child .dest-tile-name { font-size: var(--t-4xl); }
.mosaic > :nth-child(4n + 4) { grid-column: span 2; }
.mosaic .dest-tile { min-height: 0; }  /* the grid row sets the height */
@media (max-width: 1024px) {
    .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; }
    .mosaic > :nth-child(4n + 4) { grid-column: auto; }
    .mosaic > :first-child { grid-column: 1 / -1; grid-row: span 2; }
    /* After a full-width feature the rest pair up; a lone last tile takes the row. */
    .mosaic > :last-child:nth-child(even) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .mosaic { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; grid-auto-rows: 360px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-2); }
    .mosaic > * { scroll-snap-align: start; }
    .mosaic > :first-child { grid-column: auto; grid-row: auto; }
    .mosaic > :first-child .dest-tile-name { font-size: var(--t-2xl); }
}

/* ---- Lead form (website.partials._lead_form) ------------------------------ */
.lead-form { display: grid; gap: var(--s-5); }
.lead-form-group { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-4); min-width: 0; }
.lead-form-group legend { padding: 0; margin-bottom: var(--s-3); font-weight: 680; font-size: var(--t-md); letter-spacing: -0.01em; }
.lead-form-submit { display: grid; gap: var(--s-3); }
.lead-form-submit .field-hint { text-align: center; }
.form-panel { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-media); padding: clamp(20px, 3vw, 36px); }

/* ---- Accordion (website.js contract: [data-tsw-accordion] .acc-item > .acc-q + .acc-a, .open) */
.accordion { display: grid; border-top: 1px solid var(--c-line); }
.acc-item { border-bottom: 1px solid var(--c-line); }
.acc-q {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); width: 100%;
    min-height: 64px; padding: var(--s-4) 0; background: none; border: 0; text-align: left; cursor: pointer;
    font-family: var(--f-ui); font-size: var(--t-md); font-weight: 620; color: var(--c-ink); letter-spacing: -0.005em;
}
.acc-q:hover { color: var(--c-brand); }
.acc-q::after {
    content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--c-line-strong);
    background: center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231B1F3B' stroke-width='2.4' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
    transition: transform .2s var(--ease);
}
.acc-item.open .acc-q::after { transform: rotate(45deg); }
.acc-q > svg, .acc-q .acc-icon { display: none; }
.acc-a { display: none; padding: 0 0 var(--s-5); font-family: var(--f-text); font-size: var(--t-md); line-height: 1.6; color: var(--c-ink-2); max-width: var(--measure); }
.acc-item.open .acc-a { display: block; }

/* ---- Top bar --------------------------------------------------------------- */
.topbar { background: var(--c-ink); color: var(--c-on-dark-2); font-size: 0.8125rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 38px; }
.topbar a { color: var(--c-on-dark); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-contact, .topbar-links { display: flex; gap: var(--s-5); align-items: center; list-style: none; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; }
@media (max-width: 900px) { .topbar { display: none; } }

/* ---- Header ----------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--c-line);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--s-6); min-height: var(--header-h); }
.site-logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; color: var(--c-ink); font-weight: 750; font-size: var(--t-lg); }
.site-logo img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: var(--s-1); flex: 1; min-width: 0; }
.site-nav a {
    position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s-3);
    color: var(--c-ink); text-decoration: none; font-weight: 560; font-size: 0.9688rem; border-radius: var(--r-control); white-space: nowrap;
}
.site-nav a:hover { background: var(--c-haze); color: var(--c-ink); }
.site-nav a[aria-current="page"] { color: var(--c-brand); }
.site-nav a[aria-current="page"]::after { content: ''; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 6px; height: 2.5px; border-radius: 2px; background: var(--c-marigold); }
.nav-badge { font-size: 0.6875rem; font-weight: 700; padding: 2px 7px; border-radius: var(--r-pill); background: var(--c-marigold); color: var(--c-ink); }
.header-actions { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--c-ink); text-decoration: none; font-weight: 620; font-variant-numeric: tabular-nums; }
.header-phone svg { width: 18px; height: 18px; color: var(--c-brand); }
.nav-toggle {
    display: none; width: 48px; height: 48px; place-items: center; border-radius: var(--r-control);
    border: 1.5px solid var(--c-line); background: var(--c-paper); cursor: pointer; color: var(--c-ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1180px) { .header-phone span { display: none; } }
@media (max-width: 1024px) {
    :root { --header-h: 64px; }
    .site-nav, .header-phone { display: none; }
    .nav-toggle { display: inline-grid; }
    .site-logo img { height: 34px; }
}
@media (max-width: 480px) {
    .site-header .wrap { gap: var(--s-3); }
    .header-actions { gap: var(--s-2); }
    .header-actions .btn { min-height: 44px; padding-inline: 14px; font-size: var(--t-xs); }
    .site-logo img { height: 30px; }
    .nav-toggle { width: 44px; height: 44px; }
}
@media (max-width: 350px) { .header-actions .btn { display: none; } }

/* Mobile menu: a full-height sheet. JS toggles [aria-hidden] and .is-open. */
.mobile-nav { position: fixed; inset: 0; z-index: 100; display: none; }
.mobile-nav.is-open { display: block; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(27,31,59,.5); }
.mobile-nav .panel {
    position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--c-paper);
    display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
}
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) var(--gutter); min-height: var(--header-h); border-bottom: 1px solid var(--c-line); }
.mobile-nav-title { font-weight: 700; font-size: var(--t-md); }
.mobile-nav-close { width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid var(--c-line); border-radius: var(--r-control); background: none; cursor: pointer; }
.mobile-nav-close svg { width: 22px; height: 22px; }
.mobile-nav-links { display: grid; align-content: start; overflow-y: auto; padding: var(--s-3) var(--gutter); }
.mobile-nav-links a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 56px; border-bottom: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; font-size: var(--t-lg); font-weight: 620; letter-spacing: -0.01em; }
.mobile-nav-links a[aria-current="page"] { color: var(--c-brand); }
.mobile-nav-foot { display: grid; gap: var(--s-3); padding: var(--s-4) var(--gutter) calc(var(--s-4) + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); background: var(--c-haze); }
body.nav-open { overflow: hidden; }

/* ---- Page header (inner pages) ------------------------------------------- */
.page-hero { padding-block: var(--s-8) var(--s-7); background: var(--c-haze); border-bottom: 1px solid var(--c-line); }
.page-hero .wrap { display: grid; gap: var(--s-4); }
.page-hero h1 { max-width: 18ch; }
.page-hero-photo { position: relative; min-height: clamp(360px, 52vh, 560px); display: grid; align-items: end; color: #fff; background: var(--c-ink); overflow: hidden; }
.page-hero-photo > img, .page-hero-photo > picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,31,59,.15) 0%, rgba(27,31,59,.0) 35%, rgba(27,31,59,.78) 100%); }
.page-hero-photo .wrap { position: relative; z-index: 1; display: grid; gap: var(--s-3); padding-block: var(--s-8) var(--s-7); }
.page-hero-photo h1 { color: #fff; max-width: 16ch; }
.page-hero-photo .lede { color: rgba(255,255,255,.9); }

/* ---- Footer ------------------------------------------------------------------ */
.site-footer { background: var(--c-ink); color: var(--c-on-dark-2); font-size: var(--t-xs); }
.site-footer a { color: var(--c-on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-cta { border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); padding-block: var(--s-7); }
.footer-cta h2 { color: #fff; font-size: var(--t-2xl); max-width: 22ch; }
.footer-main .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); padding-block: var(--s-8) var(--s-7); }
.footer-brand { display: grid; gap: var(--s-4); align-content: start; max-width: 340px; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand img.is-tinted { filter: brightness(0) invert(1); }
.footer-brand p { color: var(--c-on-dark-2); line-height: 1.6; }
.footer-col, .footer-brand { min-width: 0; }
.footer-col h2 { font-size: var(--t-sm); color: #fff; letter-spacing: 0; margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; display: grid; gap: var(--s-3); }
.footer-contact li { display: flex; gap: var(--s-2); align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 2px; flex: none; color: var(--c-marigold); }
.footer-social { display: flex; gap: var(--s-2); list-style: none; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); }
.footer-social a:hover { border-color: #fff; text-decoration: none; }
.footer-social svg { width: 18px; height: 18px; }
.footer-legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-5); padding-block: var(--s-5); border-top: 1px solid rgba(255,255,255,.12); color: var(--c-on-dark-2); }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: var(--s-4); list-style: none; }
.footer-legal-meta { display: grid; gap: var(--s-1); min-width: 0; }
.footer-credit { font-size: var(--t-xs); letter-spacing: .01em; color: var(--c-on-dark-2); }
.footer-legal .footer-credit a {
    color: var(--c-on-dark); font-weight: 650; letter-spacing: .08em;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
    text-decoration-color: color-mix(in srgb, var(--c-marigold) 70%, transparent);
}
.footer-legal .footer-credit a:hover { color: var(--c-marigold); text-decoration-color: var(--c-marigold); }
.footer-legal .footer-credit a:focus-visible { outline: 2px solid var(--c-marigold); outline-offset: 3px; border-radius: 2px; }
.footer-legal button { background: none; border: 0; padding: 0; color: var(--c-on-dark); cursor: pointer; text-decoration: none; font-size: inherit; }
.footer-legal button:hover { text-decoration: underline; }
.footer-news { display: grid; gap: var(--s-3); }
.footer-news form { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.footer-news input { flex: 1 1 160px; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: var(--r-control); border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; }
.footer-news input::placeholder { color: var(--c-on-dark-2); }
/* Three or more link columns (Website -> Footer): the brand takes its own row
   and the columns share the next ones in equal tracks (footer-n-N = link
   columns + the contact column, at most 6 per row; more wrap). */
.footer-main .wrap.footer-wide .footer-brand { grid-column: 1 / -1; max-width: 46ch; }
.footer-main .wrap.footer-n-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer-main .wrap.footer-n-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.footer-main .wrap.footer-n-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.footer-col a { overflow-wrap: anywhere; }
@media (max-width: 960px) { .footer-main .wrap, .footer-main .wrap.footer-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-main .wrap, .footer-main .wrap.footer-wide { grid-template-columns: minmax(0, 1fr); } }

/* ---- WhatsApp float + mobile action bar --------------------------------- */
.wa-float {
    position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: #128C4B; color: #fff; box-shadow: var(--shadow-float);
}
.wa-float:hover { background: #0E6E3B; color: #fff; }
.wa-float svg { width: 28px; height: 28px; }
body.has-action-bar .wa-float { bottom: calc(88px + env(safe-area-inset-bottom)); }

/* ---- Consent banner (markup from consent.js) ---------------------------- */
/* Styled in the shell because it appears on every page; see consent.js for
   the class names it creates. Kept compact so it never covers the first
   screen on a phone. */
.tsw-consent {
    position: fixed; z-index: 90; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom));
    width: min(460px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
    background: var(--c-paper); color: var(--c-ink); border: 1px solid var(--c-line); border-radius: var(--r-media);
    box-shadow: var(--shadow-float);
}
.tsw-consent-inner { display: grid; gap: var(--s-4); padding: var(--s-5); }
.tsw-consent-body { display: grid; gap: var(--s-2); }
.tsw-consent-title { font-size: var(--t-md); letter-spacing: -0.01em; }
.tsw-consent-text { font-size: var(--t-xs); line-height: 1.5; color: var(--c-ink-2); }
.tsw-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.tsw-consent-btn {
    min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-control); border: 1.5px solid var(--c-brand);
    background: var(--c-brand); color: #fff; font-family: var(--f-ui); font-weight: 620; font-size: var(--t-xs); cursor: pointer;
}
.tsw-consent-btn:hover { background: var(--c-brand-strong); border-color: var(--c-brand-strong); }
.tsw-consent-btn-outline { grid-column: 1 / -1; background: transparent; color: var(--c-brand); border-color: transparent; min-height: 36px; }
.tsw-consent-btn-outline:hover { background: var(--c-brand-soft); border-color: transparent; }
.tsw-consent-prefs { display: grid; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--c-line); }
.tsw-consent-prefs .tsw-consent-btn { justify-self: start; }
.tsw-consent-subtitle { font-size: var(--t-sm); }
.tsw-consent-subtitle:focus { outline: none; }
.tsw-consent-list { display: grid; gap: var(--s-3); }
.tsw-consent-row { display: grid; gap: 4px; }
.tsw-consent-rowhead { display: flex; gap: var(--s-3); align-items: center; }
.tsw-consent-check { width: 20px; height: 20px; accent-color: var(--c-brand); margin: 0; }
.tsw-consent-label { font-weight: 620; font-size: var(--t-xs); display: flex; gap: var(--s-2); align-items: center; }
.tsw-consent-always { font-weight: 560; color: var(--c-success); font-size: .8125rem; }
.tsw-consent-desc { font-size: .8125rem; color: var(--c-ink-3); padding-left: 32px; }
@media (max-width: 560px) {
    .tsw-consent { left: 0; right: 0; bottom: 0; width: 100%; border-radius: var(--r-media) var(--r-media) 0 0; border-bottom: 0; }
    .tsw-consent-inner { padding: var(--s-4) var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom)); gap: var(--s-3); }
}

/* ---- Preview banner ------------------------------------------------------- */
.preview-banner { background: var(--c-marigold); color: var(--c-ink); font-size: var(--t-xs); font-weight: 600; }
.preview-banner .wrap { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; min-height: 44px; }

/* ---- Motion --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
