/* ==========================================================================
   TravelOptions — site design system
   Light, search-first layout with physical motion. Loaded after main.css on
   every front-end page (layout_inner_page2), so the token overrides at the
   top re-skin legacy inner pages too. New components use the `to-` prefix.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --to-brand: #dc1d49;            /* overridden per request from CMS "Brand colours" */
    --to-brand-rgb: 220, 29, 73;
    --to-brand-2: #f74a1f;
    --to-brand-ink: #b3123a;        /* hover / pressed */
    --to-brand-tint: #fdecf0;

    --to-ink: #15151a;
    --to-ink-2: #3d3d47;
    --to-muted: #6b6b76;
    --to-line: #e7e7ec;
    --to-line-2: #d6d6de;
    --to-surface: #f2f3f6;
    --to-surface-2: #f8f8fa;
    --to-card: #fff;

    --to-font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

    /* 4px spacing scale */
    --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

    --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 28px; --r-pill: 999px;

    --sh-1: 0 1px 2px rgba(21, 21, 26, .06), 0 0 0 1px rgba(21, 21, 26, .05);
    --sh-2: 0 6px 24px -8px rgba(21, 21, 26, .16), 0 0 0 1px rgba(21, 21, 26, .05);
    --sh-3: 0 18px 48px -16px rgba(21, 21, 26, .28), 0 0 0 1px rgba(21, 21, 26, .04);

    --ease-out: cubic-bezier(.22, 1, .36, 1);       /* decelerate like an object */
    --ease-spring: cubic-bezier(.34, 1.4, .64, 1);  /* small overshoot for pops */
    --t-fast: 160ms;
    --t-base: 220ms;
    --t-slow: 700ms;

    --to-container: 1240px;

    /* legacy main.css tokens → new system, so inner pages follow along */
    --tg-ff-body: var(--to-font);
    --tg-ff-outfit: var(--to-font);
    --tg-theme-primary: var(--to-brand);
    --tg-theme-secondary: var(--to-brand-2);
    --tg-common-black: var(--to-ink);
    --tg-grey-1: var(--to-ink-2);
    --tg-grey-4: var(--to-muted);
    --tg-border-1: var(--to-line);
    --tg-border-3: var(--to-line);
}

/* ---------- Base ---------- */
body {
    font-family: var(--to-font);
    color: var(--to-ink-2);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--to-font); color: var(--to-ink); letter-spacing: -.02em; }
::selection { background: rgba(var(--to-brand-rgb), .16); }
:focus-visible { outline: 2px solid var(--to-brand); outline-offset: 2px; border-radius: 6px; }

.to-container { width: 100%; max-width: var(--to-container); margin-inline: auto; padding-inline: var(--s4); }
@media (min-width: 768px) { .to-container { padding-inline: var(--s5); } }

.to-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The skip link is the first thing a keyboard user reaches — it has to appear. */
a.to-sr:focus {
    position: fixed !important;
    top: var(--s3); left: var(--s3);
    z-index: 1000;
    width: auto; height: auto;
    padding: var(--s3) var(--s5);
    overflow: visible; clip: auto;
    background: var(--to-ink); color: #fff;
    border-radius: var(--r-sm);
    box-shadow: var(--sh-2);
    font: 600 14px/1 var(--to-font); text-decoration: none;
}

/* main.css resets focus outlines on a, button and form controls (a:focus { outline: none }),
   which outranks the bare :focus-visible rule above and left keyboard focus invisible
   across the whole front end. These selectors match that specificity and land later. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
details:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--to-brand);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Inputs sit inside tinted fields, where an offset ring reads as detached. */
.to-field input:focus-visible,
.to-searchbar input:focus-visible,
.to-news-form input:focus-visible {
    outline-offset: 0;
}

/* ---------- Buttons ---------- */
.to-btn {
    --_bg: var(--to-brand); --_fg: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
    min-height: 44px; padding: 0 var(--s5);
    border: 0; border-radius: var(--r-md);
    background: var(--_bg); color: var(--_fg);
    font: 700 15px/1 var(--to-font); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.to-btn:hover { background: var(--to-brand-ink); color: var(--_fg); }
.to-btn:active { transform: scale(.97); }
.to-btn:disabled, .to-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.to-btn--dark { --_bg: var(--to-ink); }
.to-btn--dark:hover { background: #000; }
.to-btn--ghost { --_bg: transparent; --_fg: var(--to-ink); box-shadow: inset 0 0 0 1px var(--to-line-2); }
.to-btn--ghost:hover { background: var(--to-surface); color: var(--to-ink); }
.to-btn--sm { min-height: 36px; padding: 0 var(--s4); font-size: 14px; border-radius: var(--r-sm); }

.to-icon-btn {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    border: 0; background: transparent; color: var(--to-ink);
    cursor: pointer; text-decoration: none;
    transition: background-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), color var(--t-fast);
}
.to-icon-btn:hover { background: var(--to-surface); color: var(--to-ink); }
.to-icon-btn:active { transform: scale(.92); }
.to-icon-btn--outline { box-shadow: inset 0 0 0 1px var(--to-line-2); background: #fff; width: 36px; height: 36px; }
.to-icon-btn:disabled { opacity: .35; cursor: default; transform: none; background: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.to-header {
    position: sticky; top: 0; z-index: 90;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    transition: box-shadow var(--t-base) var(--ease-out);
}
.to-header.is-scrolled { box-shadow: 0 1px 0 var(--to-line), 0 8px 24px -18px rgba(0, 0, 0, .25); }
.to-header__bar { display: flex; align-items: center; gap: var(--s3); height: 68px; }
.to-header__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.to-header__logo img { height: 34px; width: auto; display: block; }
.to-header__nav { display: none; margin-left: var(--s4); }
.to-header__nav ul { display: flex; gap: var(--s1); margin: 0; padding: 0; list-style: none; }
.to-header__nav li { position: relative; }
.to-header__nav a {
    display: inline-flex; align-items: center; height: 40px; padding: 0 var(--s3);
    border-radius: var(--r-sm); color: var(--to-ink-2); font-weight: 600; font-size: 15px; text-decoration: none;
    transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast);
}
.to-header__nav a:hover, .to-header__nav .current-menu-item > a, .to-header__nav .active > a { background: var(--to-surface); color: var(--to-ink); }
/* dropdowns from the CMS menu builder */
.to-header__nav .sub-menu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; padding: var(--s2);
    list-style: none; margin: 0; background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-3);
    display: block; opacity: 0; visibility: hidden; transform: translateY(6px) scale(.98); transform-origin: top left;
    transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), visibility var(--t-base);
}
.to-header__nav .sub-menu a { display: flex; width: 100%; }
.to-header__nav li:hover > .sub-menu, .to-header__nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.to-header__nav .dropdown-btn { display: none; }
.to-header__actions { display: flex; align-items: center; gap: var(--s2); margin-left: auto; }
.to-ask-ai {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--s3);
    border-radius: var(--r-pill); color: var(--to-ink); font-weight: 700; font-size: 14px; text-decoration: none;
    transition: background-color var(--t-fast) var(--ease-out);
}
.to-ask-ai:hover { background: var(--to-surface); color: var(--to-ink); }
.to-ask-ai svg { color: var(--to-brand); }
.to-header__account { display: none; }
@media (min-width: 576px) { .to-header__account { display: inline-flex; } }
@media (min-width: 1200px) { .to-header__nav { display: block; } }
@media (max-width: 575.98px) { .to-ask-ai span { display: none; } .to-header__logo img { height: 28px; } }

/* Drawer (all breakpoints — mirrors the menu button in the reference) */
.to-drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.to-drawer__scrim {
    position: absolute; inset: 0; background: rgba(15, 15, 20, .38);
    opacity: 0; transition: opacity 300ms var(--ease-out);
}
.to-drawer__panel {
    position: absolute; inset: 0 auto 0 0; width: min(340px, 88vw);
    background: #fff; box-shadow: var(--sh-3);
    display: flex; flex-direction: column;
    padding: var(--s4) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom));
    transform: translateX(-102%); transition: transform 420ms var(--ease-out);
    overflow-y: auto; overscroll-behavior: contain;
}
.to-drawer.is-open { pointer-events: auto; }
.to-drawer.is-open .to-drawer__scrim { opacity: 1; }
.to-drawer.is-open .to-drawer__panel { transform: none; }
.to-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.to-drawer__head img { height: 30px; }
.to-drawer__nav ul { list-style: none; margin: 0; padding: 0; }
.to-drawer__nav a {
    display: flex; align-items: center; min-height: 48px; padding: 0 var(--s3); border-radius: var(--r-md);
    color: var(--to-ink); font-weight: 600; text-decoration: none; transition: background-color var(--t-fast);
}
.to-drawer__nav a:hover { background: var(--to-surface); }
.to-drawer__nav .sub-menu { padding-left: var(--s3); }
.to-drawer__nav .sub-menu a { font-weight: 500; color: var(--to-ink-2); min-height: 44px; }
.to-drawer__nav .dropdown-btn { display: none; }
.to-drawer__section { border-top: 1px solid var(--to-line); margin-top: var(--s4); padding-top: var(--s4); }
.to-drawer__social { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: auto; padding-top: var(--s5); }
.to-drawer__social a { color: var(--to-ink-2); }
.to-drawer.is-open .to-drawer__nav > ul > li { animation: to-rise 520ms var(--ease-out) both; }
.to-drawer.is-open .to-drawer__nav > ul > li:nth-child(2) { animation-delay: 40ms; }
.to-drawer.is-open .to-drawer__nav > ul > li:nth-child(3) { animation-delay: 80ms; }
.to-drawer.is-open .to-drawer__nav > ul > li:nth-child(4) { animation-delay: 120ms; }
.to-drawer.is-open .to-drawer__nav > ul > li:nth-child(5) { animation-delay: 160ms; }
.to-drawer.is-open .to-drawer__nav > ul > li:nth-child(n+6) { animation-delay: 200ms; }
body.to-lock { overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */
.to-footer { background: var(--to-surface-2); border-top: 1px solid var(--to-line); margin-top: var(--s9); color: var(--to-ink-2); font-size: 14px; }
.to-footer a { color: var(--to-ink-2); text-decoration: none; transition: color var(--t-fast); }
.to-footer a:hover { color: var(--to-brand); }
.to-footer__news {
    display: grid; gap: var(--s4); align-items: center;
    padding: var(--s6) 0; border-bottom: 1px solid var(--to-line);
}
.to-footer__news h2 { font-size: 20px; margin: 0 0 4px; }
.to-footer__news p { margin: 0; color: var(--to-muted); }
.to-news-form { display: flex; gap: var(--s2); }
.to-news-form input {
    flex: 1; min-width: 0; height: 48px; padding: 0 var(--s4);
    border: 1px solid var(--to-line-2); border-radius: var(--r-md); background: #fff; font: 500 15px var(--to-font); color: var(--to-ink);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.to-news-form input:focus { outline: 0; border-color: var(--to-ink); box-shadow: 0 0 0 3px rgba(21, 21, 26, .08); }
.to-news-form .to-btn { height: 48px; }
@media (min-width: 992px) { .to-footer__news { grid-template-columns: 1fr minmax(360px, 460px); } }

.to-footer__cols { display: grid; gap: var(--s6) var(--s5); grid-template-columns: repeat(2, 1fr); padding: var(--s7) 0 var(--s6); }
@media (min-width: 992px) { .to-footer__cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.to-footer__cols h3 { font-size: 14px; font-weight: 800; margin: 0 0 var(--s4); letter-spacing: 0; }
.to-footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.to-footer__brand { grid-column: 1 / -1; }
@media (min-width: 992px) { .to-footer__brand { grid-column: auto; } }
.to-footer__brand img { height: 32px; margin-bottom: var(--s3); }
.to-footer__brand p { color: var(--to-muted); max-width: 320px; }
.to-footer__apps { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.to-app-badge {
    display: inline-flex; align-items: center; gap: var(--s2); height: 42px; padding: 0 14px;
    border-radius: 10px; background: var(--to-ink); color: #fff !important; font-size: 12px; line-height: 1.1;
    transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast);
}
.to-app-badge:hover { background: #000; transform: translateY(-1px); }
.to-app-badge i { font-size: 20px; }
.to-app-badge small { display: block; font-size: 10px; opacity: .75; }
.to-app-badge strong { font-size: 14px; }
.to-footer__bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3);
    padding: var(--s5) 0 calc(var(--s5) + env(safe-area-inset-bottom)); border-top: 1px solid var(--to-line); color: var(--to-muted);
}
.to-footer__social { display: flex; flex-wrap: wrap; gap: var(--s1); margin: 0; padding: 0; list-style: none; }
.to-footer__social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease-out); }
.to-footer__social a:active { transform: scale(.92); }
.to-footer__social a:hover { background: #fff; box-shadow: var(--sh-1); }

/* Floating AI prompt (bottom-left pill in the reference) */
.to-float-ai {
    position: fixed; left: var(--s4); bottom: calc(var(--s4) + env(safe-area-inset-bottom)); z-index: 80;
    display: inline-flex; align-items: center; gap: var(--s2); height: 48px; padding: 0 var(--s5) 0 var(--s4);
    border-radius: var(--r-pill); background: #fff; color: var(--to-ink); font-weight: 600; font-size: 14px; text-decoration: none;
    box-shadow: var(--sh-3), 0 0 0 1px rgba(var(--to-brand-rgb), .25);
    transform: translateY(24px) scale(.96); opacity: 0; pointer-events: none;
    transition: transform 520ms var(--ease-spring), opacity 300ms var(--ease-out), box-shadow var(--t-base);
}
.to-float-ai.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.to-float-ai:hover { color: var(--to-ink); box-shadow: var(--sh-3), 0 0 0 2px rgba(var(--to-brand-rgb), .5); }
.to-float-ai svg { color: var(--to-brand); }
.to-float-ai__text { display: inline-block; min-width: 14ch; }
@media (max-width: 575.98px) { .to-float-ai { height: 44px; padding: 0 var(--s4) 0 var(--s3); font-size: 13px; } }

/* Back to top — bottom-right, opposite the AI pill and cookie notice; shown once a screen has scrolled by */
.to-top {
    position: fixed; right: calc(var(--s4) + env(safe-area-inset-right)); bottom: calc(var(--s4) + env(safe-area-inset-bottom)); z-index: 80;
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: #fff; color: var(--to-ink); box-shadow: var(--sh-3);
    transform: translateY(16px) scale(.9); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 520ms var(--ease-spring), opacity 300ms var(--ease-out), visibility 0s 300ms, color var(--t-fast), box-shadow var(--t-base);
}
.to-top.is-visible { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.to-top:hover { color: var(--to-brand); box-shadow: var(--sh-3), 0 0 0 2px rgba(var(--to-brand-rgb), .35); }
.to-top:active { transform: scale(.92); transition-duration: var(--t-fast); }
.to-top svg { transition: transform var(--t-base) var(--ease-out); }
@media (hover: hover) { .to-top:hover svg { transform: translateY(-2px); } }
@media (min-width: 768px) { .to-top { right: calc(var(--s5) + env(safe-area-inset-right)); bottom: calc(var(--s5) + env(safe-area-inset-bottom)); } }
/* Live chat (Tawk) puts its bubble in this corner — sit above it */
.to-top.to-top--over-chat { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media print { .to-top { display: none; } }

/* ==========================================================================
   Home — hero
   ========================================================================== */
.to-hero-wrap { padding: 0 var(--s2); }
@media (min-width: 768px) { .to-hero-wrap { padding: 0 var(--s4); } }
.to-hero {
    /* no overflow clip here: popovers in the search bar must escape the hero */
    position: relative;
    background: var(--to-surface); border-radius: var(--r-xl);
    display: grid; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1200px) { .to-hero { grid-template-columns: minmax(0, 1fr) 320px; min-height: 480px; } }
@media (min-width: 1440px) { .to-hero { grid-template-columns: minmax(0, 1fr) 400px; } }
.to-hero__main { position: relative; z-index: 2; padding: var(--s6) var(--s4) var(--s6); min-width: 0; }
@media (min-width: 768px) { .to-hero__main { padding: var(--s7) var(--s6); } }
@media (min-width: 1200px) { .to-hero__main { padding: var(--s8) var(--s6) var(--s7) max(var(--s6), calc((100vw - var(--to-container)) / 2)); } }

.to-hero__title {
    font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -.035em;
    margin: 0 0 var(--s5); max-width: 18ch;
}
.to-hero__title .to-dot { color: var(--to-brand); }
/* rotating word: only the active word is in flow; JS animates the width between words */
.to-hero__rotator { display: inline-block; position: relative; white-space: nowrap; vertical-align: bottom; transition: width 560ms var(--ease-out); }
.to-hero__rotator > span { display: inline-block; transition: transform 640ms var(--ease-out), opacity 400ms var(--ease-out), filter 400ms var(--ease-out); }
.to-hero__rotator > span:not(.is-on) { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(.45em); filter: blur(4px); }
.to-hero__rotator > span.is-leaving { opacity: 0; transform: translateY(-.45em); filter: blur(4px); }

/* Vertical tabs (icon tiles) */
.to-vtabs { display: flex; gap: var(--s2); margin: 0 calc(-1 * var(--s4)) var(--s4); padding: 2px var(--s4) var(--s1); overflow-x: auto; scrollbar-width: none; }
.to-vtabs::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .to-vtabs { margin-inline: 0; padding-inline: 2px; gap: var(--s3); } }
.to-vtab {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px;
    width: 76px; padding: 0; border: 0; background: none; cursor: pointer;
    color: var(--to-ink-2); font: 600 13px/1.2 var(--to-font); text-align: center;
}
.to-vtab__tile {
    position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
    background: #fff; color: var(--to-ink); font-size: 19px; box-shadow: var(--sh-1);
    transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), transform 360ms var(--ease-spring), box-shadow var(--t-base);
}
.to-vtab:hover .to-vtab__tile { transform: translateY(-2px); box-shadow: var(--sh-2); }
.to-vtab:active .to-vtab__tile { transform: scale(.94); }
.to-vtab[aria-selected="true"] { color: var(--to-ink); }
.to-vtab[aria-selected="true"] .to-vtab__tile { background: var(--to-brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(var(--to-brand-rgb), .7); }

/* Search panel — hosts the per-service forms (flight/transfer partials included as-is) */
.to-search { position: relative; }
.to-search__pane { animation: to-pane-in 420ms var(--ease-out) both; }
.to-search__pane[hidden] { display: none !important; }
@keyframes to-pane-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.to-searchbar {
    display: flex; flex-wrap: wrap; gap: 4px; padding: 4px;
    background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-2);
    transition: box-shadow var(--t-base) var(--ease-out);
}
.to-searchbar:focus-within { box-shadow: var(--sh-3); }
.to-field {
    position: relative; flex: 1 1 180px; min-width: 0; display: flex; align-items: center; gap: var(--s2);
    min-height: 56px; padding: 0 var(--s4); border-radius: var(--r-md); background: var(--to-surface-2);
    transition: background-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast);
    cursor: text;
}
.to-field:hover { background: #eef0f3; }
.to-field:focus-within { background: #fff; box-shadow: inset 0 0 0 2px var(--to-ink); }
.to-field > i { color: var(--to-muted); font-size: 15px; width: 16px; text-align: center; }
.to-field__stack { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.to-field__label { font-size: 11px; font-weight: 700; color: var(--to-muted); text-transform: uppercase; letter-spacing: .06em; line-height: 1; margin-bottom: 4px; }
.to-field input, .to-field button.to-field__value {
    /* height: main.css gives every text input a fixed 56px, which pushes the label out of the field */
    width: 100%; min-width: 0; height: auto; border: 0; padding: 0; background: transparent; outline: 0;
    font: 600 15px/1.3 var(--to-font); color: var(--to-ink); text-align: left; cursor: inherit;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.to-field input::placeholder { color: #8d8d98; font-weight: 500; }
.to-field--grow { flex: 3 1 260px; }
.to-searchbar__go { flex: 0 0 auto; min-height: 56px; padding: 0 var(--s6); border-radius: var(--r-md); font-size: 16px; }
@media (max-width: 767.98px) { .to-field, .to-searchbar__go { flex-basis: 100%; } }

/* Popover for guests / destination */
.to-pop {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 280px; max-width: calc(100vw - 32px);
    background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: var(--s3);
    transform-origin: top left;
}
.to-pop[x-cloak] { display: none; }
.to-pop-enter { transition: opacity 180ms var(--ease-out), transform 260ms var(--ease-out); }
.to-pop-from { opacity: 0; transform: translateY(-4px) scale(.97); }
.to-pop-to { opacity: 1; transform: none; }
.to-pop__list { max-height: 280px; overflow-y: auto; margin: 0; padding: 0; list-style: none; overscroll-behavior: contain; }
.to-pop__list button {
    display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 44px; padding: 0 var(--s3);
    border: 0; background: none; border-radius: var(--r-sm); text-align: left; font: 500 15px var(--to-font); color: var(--to-ink); cursor: pointer;
}
.to-pop__list button:hover, .to-pop__list button:focus-visible { background: var(--to-surface); }
.to-pop__list i { color: var(--to-muted); }
.to-pop__empty { padding: var(--s4) var(--s3); color: var(--to-muted); font-size: 14px; }
.to-stepper { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 52px; padding: 0 var(--s2); }
.to-stepper + .to-stepper { border-top: 1px solid var(--to-line); }
.to-stepper strong { display: block; color: var(--to-ink); font-size: 15px; }
.to-stepper small { color: var(--to-muted); }
.to-stepper__ctl { display: flex; align-items: center; gap: var(--s3); }
.to-stepper__ctl output { min-width: 2ch; text-align: center; font-weight: 700; color: var(--to-ink); font-variant-numeric: tabular-nums; }

/* Embedded module partials: flatten their own card chrome into the hero */
.to-search .tr-form { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: var(--s4); }

/* Collage (right) — three columns drifting in opposite directions */
.to-collage { display: none; position: relative; overflow: hidden; border-radius: 0 var(--r-xl) var(--r-xl) 0; }
@media (min-width: 1200px) { .to-collage { display: block; } }
.to-collage__cols { position: absolute; inset: -20px 0 -20px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-right: 12px; }
.to-collage__col { display: flex; flex-direction: column; animation: to-drift 46s linear infinite; will-change: transform; }
.to-collage__col:nth-child(2) { animation-direction: reverse; animation-duration: 54s; margin-top: -90px; }
.to-collage__col:nth-child(3) { animation-duration: 60s; margin-top: -40px; }
.to-collage:hover .to-collage__col { animation-play-state: paused; }
.to-collage__img { margin-bottom: 12px;
    width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; display: block; background: #e3e5ea;
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .5);
}
.to-collage__col:nth-child(2) .to-collage__img:nth-child(odd) { border-radius: 200px 200px 22px 22px; }
.to-collage__col:nth-child(3) .to-collage__img:nth-child(even) { border-radius: 22px 22px 200px 200px; }
@keyframes to-drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
/* soft fade at top/bottom so the drift reads as continuous */
.to-collage::before, .to-collage::after { content: ""; position: absolute; left: 0; right: 0; height: 60px; z-index: 1; pointer-events: none; }
.to-collage::before { top: 0; background: linear-gradient(var(--to-surface), transparent); }
.to-collage::after { bottom: 0; background: linear-gradient(transparent, var(--to-surface)); }

/* ==========================================================================
   Home — generic section scaffolding
   ========================================================================== */
.to-section { padding: var(--s8) 0; }
.to-section--tint { background: var(--to-surface-2); }
@media (min-width: 992px) { .to-section { padding: 80px 0; } }
.to-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.to-section__title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; margin: 0; letter-spacing: -.03em; }
.to-section__sub { margin: 6px 0 0; color: var(--to-muted); font-size: 15px; }
.to-link-more {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    color: var(--to-ink); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.to-link-more i { transition: transform var(--t-base) var(--ease-out); font-size: 12px; }
.to-link-more:hover { color: var(--to-ink); }
.to-link-more:hover i { transform: translateX(3px); }

/* ---------- Promo banner ---------- */
.to-promo {
    display: grid; overflow: hidden; border-radius: var(--r-xl); background: #fff;
    box-shadow: var(--sh-1); text-decoration: none; color: inherit;
}
@media (min-width: 768px) { .to-promo { grid-template-columns: 5fr 7fr; min-height: 260px; } }
.to-promo__media { position: relative; overflow: hidden; min-height: 200px; background: var(--to-surface); }
.to-promo__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1400ms var(--ease-out); }
.to-promo.is-in .to-promo__media img { transform: scale(1); }
.to-promo__body { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--s3); padding: var(--s6); }
.to-promo__eyebrow { color: var(--to-brand); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.to-promo__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin: 0; }
.to-promo__text { margin: 0; color: var(--to-muted); max-width: 52ch; }
.to-promo__tag { position: absolute; top: var(--s4); right: var(--s4); padding: 2px 8px; border-radius: 6px; background: var(--to-surface); font-size: 11px; font-weight: 700; color: var(--to-muted); }

/* ---------- Trust strip ---------- */
.to-trust { display: grid; gap: var(--s4); margin-top: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 768px) { .to-trust { grid-template-columns: repeat(3, 1fr); } }
.to-trust__card { padding: var(--s5); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: var(--s3); }
.to-trust__art { height: 40px; display: flex; align-items: center; gap: 6px; }
.to-trust__chip { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--to-surface); color: var(--to-ink); font-size: 15px; }
.to-trust__chip:nth-child(2) { background: var(--to-brand-tint); color: var(--to-brand); }
.to-trust__big { font-size: 26px; font-weight: 800; color: var(--to-ink); font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 40px; }
.to-trust__title { font-weight: 800; color: var(--to-ink); font-size: 17px; margin: 0; }
.to-trust__text { margin: 0; color: var(--to-muted); font-size: 13px; }

/* ---------- Carousel ---------- */
.to-rail { position: relative; }
.to-rail__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 82%); gap: var(--s4);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--s4);
    margin-inline: calc(-1 * var(--s4)); padding: var(--s1) var(--s4) var(--s4);
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.to-rail__track::-webkit-scrollbar { display: none; }
.to-rail__track > * { scroll-snap-align: start; }
@media (min-width: 576px) { .to-rail__track { grid-auto-columns: calc((100% - var(--s4)) / 2); } }
@media (min-width: 768px) { .to-rail__track { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } }
@media (min-width: 992px) { .to-rail__track { grid-auto-columns: calc((100% - 2 * var(--s4)) / 3); } }
@media (min-width: 1200px) { .to-rail__track { grid-auto-columns: calc((100% - 3 * var(--s4)) / 4); } }
.to-rail__nav { display: flex; justify-content: flex-end; gap: var(--s2); margin-top: var(--s2); }
.to-rail__nav[hidden] { display: none; }

/* ---------- Cards ---------- */
.to-card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1);
    color: inherit; text-decoration: none;
    transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out);
}
.to-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); color: inherit; }
.to-card:active { transform: translateY(-2px) scale(.99); }
.to-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--to-surface); margin: 8px 8px 0; border-radius: 12px; }
.to-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.to-card:hover .to-card__media img { transform: scale(1.06); }
.to-card__badge {
    position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .92); color: var(--to-ink); font-size: 12px; font-weight: 700; backdrop-filter: blur(6px);
}
.to-card__body { display: flex; flex-direction: column; gap: 4px; padding: var(--s4) var(--s4) var(--s5); flex: 1; }
.to-card__title { font-size: 18px; font-weight: 800; margin: 0 0 2px; color: var(--to-ink); letter-spacing: -.02em; line-height: 1.25; }
.to-card__meta { margin: 0; color: var(--to-muted); font-size: 13px; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.to-card__meta i { font-size: 11px; margin-right: 4px; }
.to-card__price { margin-top: auto; padding-top: var(--s4); font-weight: 800; color: var(--to-ink); font-size: 17px; }
.to-card__price small { font-weight: 600; color: var(--to-muted); font-size: 13px; margin-right: 4px; }
.to-card__price del { color: var(--to-muted); font-weight: 500; font-size: 13px; margin-left: 6px; }
.to-card__stars { margin: 2px 0; }

/* ---------- Tool tiles ---------- */
.to-tool {
    position: relative; display: flex; flex-direction: column; height: 100%; min-height: 300px; padding: var(--s5);
    background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden;
    color: inherit; text-decoration: none;
    transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out);
}
.to-tool:hover { transform: translateY(-4px); box-shadow: var(--sh-3); color: inherit; }
.to-tool h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.to-tool p { margin: 0; color: var(--to-muted); font-size: 13px; line-height: 1.5; }
.to-tool__art { position: relative; margin-top: auto; height: 150px; display: grid; place-items: center; }
.to-tool__blob {
    position: absolute; width: 132px; height: 132px; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
    background: var(--_tint, var(--to-brand-tint)); transition: transform 900ms var(--ease-out), border-radius 900ms var(--ease-out);
}
.to-tool:hover .to-tool__blob { transform: rotate(18deg) scale(1.08); border-radius: 55% 45% 42% 58% / 52% 58% 42% 48%; }
.to-tool__icon {
    position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px;
    background: #fff; color: var(--_ink, var(--to-brand)); font-size: 30px; box-shadow: var(--sh-2);
    transition: transform 500ms var(--ease-spring);
}
.to-tool:hover .to-tool__icon { transform: translateY(-6px) rotate(-6deg); }
.to-tool__spark { position: absolute; color: var(--_ink, var(--to-brand)); font-size: 14px; opacity: .8; animation: to-twinkle 2.6s ease-in-out infinite; }
.to-tool__spark--a { top: 18px; left: 26%; }
.to-tool__spark--b { bottom: 26px; right: 24%; animation-delay: 1.1s; font-size: 10px; }
.to-tool__img { position: relative; width: 132px; height: 132px; object-fit: cover; border-radius: 50%; box-shadow: var(--sh-2); }
@keyframes to-twinkle { 0%, 100% { transform: scale(.7); opacity: .3; } 50% { transform: scale(1.15); opacity: 1; } }

/* ---------- Accordions (destinations + FAQ) ---------- */
.to-acc-grid { display: grid; gap: 0 var(--s6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .to-acc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .to-acc-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.to-acc { border-bottom: 1px solid var(--to-line); }
.to-acc > summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
    min-height: 52px; padding: var(--s2) 0; list-style: none; cursor: pointer;
    font-weight: 700; font-size: 14px; color: var(--to-ink);
    transition: color var(--t-fast);
}
.to-acc > summary::-webkit-details-marker { display: none; }
.to-acc > summary:hover { color: var(--to-brand); }
.to-acc > summary::after {
    content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-right: 4px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px);
    transition: transform var(--t-base) var(--ease-out);
}
.to-acc[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.to-acc__body { padding: 0 0 var(--s4); color: var(--to-muted); font-size: 14px; line-height: 1.6; overflow: hidden; }
.to-acc__body p { margin: 0; }
.to-acc__links { display: flex; flex-wrap: wrap; gap: var(--s2); }
.to-acc__links a {
    display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: var(--r-pill);
    background: var(--to-surface); color: var(--to-ink); font-size: 13px; font-weight: 600; text-decoration: none;
    transition: background-color var(--t-fast), color var(--t-fast);
}
.to-acc__links a:hover { background: var(--to-ink); color: #fff; }
.to-intro { color: var(--to-ink-2); font-size: 14px; line-height: 1.6; max-width: 90ch; margin: 0 0 var(--s5); }

/* ---------- Testimonials marquee ---------- */
.to-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.to-marquee__track { display: flex; gap: var(--s4); width: max-content; animation: to-marquee 60s linear infinite; padding: var(--s1) 0 var(--s3); }
.to-marquee:hover .to-marquee__track, .to-marquee:focus-within .to-marquee__track { animation-play-state: paused; }
@keyframes to-marquee { to { transform: translateX(-50%); } }
.to-quote { width: 340px; flex-shrink: 0; padding: var(--s5); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); }
.to-quote p { margin: var(--s3) 0 var(--s4); color: var(--to-ink-2); font-size: 15px; line-height: 1.55; }
.to-quote footer { display: flex; align-items: center; gap: var(--s3); }
.to-quote img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.to-quote strong { display: block; color: var(--to-ink); font-size: 14px; }
.to-quote small { color: var(--to-muted); }

/* ---------- AI band ---------- */
.to-ai {
    position: relative; overflow: hidden; border-radius: var(--r-xl); padding: var(--s7) var(--s5);
    background: var(--to-ink); color: #fff; text-align: center; isolation: isolate;
}
.to-ai::before {
    content: ""; position: absolute; inset: -40%; z-index: -1;
    background:
        radial-gradient(40% 50% at 30% 40%, rgba(var(--to-brand-rgb), .55), transparent 70%),
        radial-gradient(35% 45% at 70% 60%, rgba(247, 74, 31, .45), transparent 70%);
    filter: blur(20px); animation: to-aurora 18s ease-in-out infinite alternate;
}
@keyframes to-aurora { from { transform: rotate(0deg) scale(1); } to { transform: rotate(30deg) scale(1.15); } }
.to-ai__eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .12); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.to-ai h2 { color: #fff; font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; margin: var(--s4) auto var(--s2); max-width: 22ch; }
.to-ai p { color: rgba(255, 255, 255, .72); margin: 0 auto var(--s5); max-width: 52ch; }
.to-ai__form { display: flex; gap: 6px; max-width: 620px; margin: 0 auto; padding: 6px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.to-ai__form input { flex: 1; min-width: 0; height: 48px; padding: 0 var(--s4); border: 0; border-radius: var(--r-md); background: #fff; font: 500 15px var(--to-font); color: var(--to-ink); }
.to-ai__form input:focus { outline: 2px solid rgba(255, 255, 255, .6); outline-offset: 1px; }
.to-ai__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-top: var(--s4); }
.to-ai__chips button {
    min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, .1); color: #fff;
    font: 600 13px var(--to-font); cursor: pointer; transition: background-color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.to-ai__chips button:hover { background: rgba(255, 255, 255, .2); }
.to-ai__chips button:active { transform: scale(.96); }
@media (max-width: 575.98px) { .to-ai__form { flex-direction: column; } .to-ai__form .to-btn { width: 100%; } }

/* ==========================================================================
   Shared small parts — SVG icons, eyebrows, segmented controls, chips, stars
   ========================================================================== */
.to-icon { flex-shrink: 0; vertical-align: -.15em; }
.to-spin { animation: to-spin 800ms linear infinite; }
@keyframes to-spin { to { transform: rotate(360deg); } }
.to-center { text-align: center; }
.to-section__title.to-center { margin-bottom: var(--s6); }

.to-eyebrow {
    display: inline-flex; align-items: center; gap: 6px; margin: 0 0 var(--s3);
    color: var(--to-brand); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.to-eyebrow--light {
    padding: 5px 12px; border-radius: var(--r-pill); color: #fff;
    background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.to-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--sh-1); }
.to-seg__opt {
    min-height: 36px; padding: 0 var(--s4); border: 0; border-radius: var(--r-pill); background: transparent;
    color: var(--to-muted); font: 700 14px/1 var(--to-font); cursor: pointer; white-space: nowrap;
    transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.to-seg__opt:hover { color: var(--to-ink); }
.to-seg__opt:active { transform: scale(.96); }
.to-seg__opt[aria-checked="true"] { background: var(--to-ink); color: #fff; }

.to-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.to-chip {
    min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: #fff;
    box-shadow: inset 0 0 0 1px var(--to-line-2); color: var(--to-ink); font: 600 13px/1 var(--to-font); cursor: pointer;
    transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast), box-shadow var(--t-fast);
}
.to-chip:hover { background: var(--to-surface); }
.to-chip[aria-checked="true"] { background: var(--to-ink); color: #fff; box-shadow: inset 0 0 0 1px var(--to-ink); }

.to-stars { display: inline-flex; gap: 2px; line-height: 0; }
.to-stars svg { fill: #f5a524; }
.to-stars svg.is-off { fill: var(--to-line-2); }

/* Fields: icon + validation states shared by every search form */
.to-field__icon { color: var(--to-muted); transition: color var(--t-fast); }
.to-field:focus-within .to-field__icon { color: var(--to-ink); }
.to-field.is-invalid { background: #fff5f4; box-shadow: inset 0 0 0 2px #d92d20; }
.to-field.is-muted input::placeholder { color: #a9a9b3; }

/* ==========================================================================
   Flight search card (homepage Flights tab + /flights hero)
   ========================================================================== */
.to-fs { position: relative; }
.to-fs__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.to-fs__pax { position: relative; }
.to-fs__pax-btn {
    display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4);
    border: 0; border-radius: var(--r-pill); background: #fff; box-shadow: var(--sh-1);
    color: var(--to-ink); font: 700 14px/1 var(--to-font); cursor: pointer;
    transition: box-shadow var(--t-base) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.to-fs__pax-btn:hover { box-shadow: var(--sh-2); }
.to-fs__pax-btn:active { transform: scale(.97); }
.to-fs__caret { transition: transform var(--t-base) var(--ease-out); }
.to-fs__pax-btn[aria-expanded="true"] .to-fs__caret { transform: rotate(180deg); }
.to-fs__pax-pop { left: auto; right: 0; width: 320px; transform-origin: top right; }
.to-fs__pax-pop .to-stepper small { display: block; font-size: 12px; }
.to-fs__pop-label { margin: var(--s3) var(--s2) var(--s2); color: var(--to-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.to-fs__pax-pop .to-chips { padding: 0 var(--s2); }
.to-fs__done { width: calc(100% - 2 * var(--s2)); margin: var(--s4) var(--s2) var(--s1); }

.to-fs__bar {
    display: flex; gap: 4px; padding: 4px; margin: 0;
    background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-2);
    transition: box-shadow var(--t-base) var(--ease-out);
}
.to-fs__bar:focus-within { box-shadow: var(--sh-3); }
.to-fs__route { position: relative; flex: 2.3 1 0; display: flex; gap: 4px; min-width: 0; }
.to-fs__dates { flex: 1.6 1 0; display: flex; gap: 4px; min-width: 0; }
.to-fs__route .to-field, .to-fs__dates .to-field { flex: 1 1 0; }
.to-fs__route .to-fs__place:last-of-type { padding-left: 28px; } /* room for the swap button */
.to-fs__date { cursor: pointer; }
.to-fs__date input { cursor: pointer; }
.to-fs .to-field .to-fs__date-input { width: 100%; min-width: 0; height: auto; border: 0; padding: 0; background: transparent; font: 600 15px/1.3 var(--to-font); color: var(--to-ink); cursor: pointer; }
.to-fs .to-field .to-fs__date-input::placeholder { color: #8d8d98; font-weight: 500; }
.to-fs .to-field.is-muted .to-fs__date-input::placeholder { color: #a9a9b3; }
.to-fs .to-field .to-fs__date-input:focus-visible { outline: 0; }

.to-fs__swap {
    position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%);
    display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
    background: #fff; color: var(--to-ink); box-shadow: 0 0 0 4px #fff, var(--sh-2); cursor: pointer;
    transition: transform 420ms var(--ease-spring), color var(--t-fast);
}
.to-fs__swap:hover { color: var(--to-brand); }
.to-fs__swap .to-icon { transition: transform 420ms var(--ease-spring); }
.to-fs__swap.is-spun .to-icon { transform: rotate(180deg); }
.to-fs__swap:active { transform: translate(-50%, -50%) scale(.9); }

.to-fs__clear {
    display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: var(--to-muted); cursor: pointer;
    transition: background-color var(--t-fast), color var(--t-fast);
}
.to-fs__clear:hover { background: var(--to-surface); color: var(--to-ink); }

.to-fs__list { width: max(100%, 340px); max-height: 340px; padding: var(--s2); }
.to-fs__option { align-items: center; min-height: 56px !important; }
.to-fs__code {
    display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 32px; border-radius: var(--r-sm);
    background: var(--to-surface); color: var(--to-ink); font-size: 13px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.to-fs__option.is-city .to-fs__code { background: var(--to-brand-tint); color: var(--to-brand); }
.to-fs__place-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.to-fs__place-text strong { color: var(--to-ink); font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.to-fs__place-text small { color: var(--to-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.to-fs__go { flex: 0 0 auto; min-height: 56px; padding: 0 var(--s6); border-radius: var(--r-md); font-size: 16px; }
.to-fs__go-busy { display: none; }
.to-fs__go[aria-busy="true"] .to-fs__go-idle { display: none; }
.to-fs__go[aria-busy="true"] .to-fs__go-busy { display: inline-block; }
.to-fs__error {
    display: flex; align-items: center; gap: var(--s2); margin: var(--s3) var(--s1) 0;
    color: #b42318; font-size: 14px; font-weight: 600; animation: to-rise 320ms var(--ease-out) both;
}

/* Calendar for the card's date pickers (flatpickr, tagged .to-cal). The legacy theme hides
   weekday names and draws a bordered grid with "today" filled like a selection. */
.flatpickr-calendar.to-cal { border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-3); font-family: var(--to-font); }
.flatpickr-calendar.to-cal.open { width: 324px; margin-top: 8px; padding: var(--s4) var(--s4) var(--s3); animation: to-cal-in 240ms var(--ease-out); }
@keyframes to-cal-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.flatpickr-calendar.to-cal .flatpickr-months { margin-bottom: var(--s2); }
.flatpickr-calendar.to-cal .flatpickr-current-month { padding-top: 4px; font-size: 15px !important; font-weight: 800 !important; }
.flatpickr-calendar.to-cal .flatpickr-current-month .cur-month, .flatpickr-calendar.to-cal .flatpickr-current-month input.cur-year { font-size: 15px; font-weight: 800; color: var(--to-ink); }
.flatpickr-calendar.to-cal.open .flatpickr-months .flatpickr-prev-month, .flatpickr-calendar.to-cal.open .flatpickr-months .flatpickr-next-month {
    top: var(--s3); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; transition: background-color var(--t-fast);
}
.flatpickr-calendar.to-cal.open .flatpickr-months .flatpickr-prev-month { left: var(--s3); }
.flatpickr-calendar.to-cal.open .flatpickr-months .flatpickr-next-month { right: var(--s3); }
.flatpickr-calendar.to-cal.open .flatpickr-months .flatpickr-prev-month:hover, .flatpickr-calendar.to-cal.open .flatpickr-months .flatpickr-next-month:hover { background: var(--to-surface); }
.flatpickr-calendar.to-cal .flatpickr-weekdays { display: flex; height: 28px; }
.flatpickr-calendar.to-cal .flatpickr-weekday { color: var(--to-muted); font-size: 12px; font-weight: 700; }
.flatpickr-calendar.to-cal .flatpickr-days, .flatpickr-calendar.to-cal .dayContainer { width: 292px; min-width: 292px; max-width: 292px; }
.flatpickr-calendar.to-cal.open .flatpickr-innerContainer .flatpickr-days .flatpickr-day {
    width: 40px; max-width: 40px; height: 40px; margin: 1px 1px 0 0; line-height: 40px; border: 0; border-radius: 50%;
    color: var(--to-ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
    transition: background-color var(--t-fast), color var(--t-fast);
}
.flatpickr-calendar.to-cal.open .flatpickr-innerContainer .flatpickr-days .flatpickr-day:hover { background: var(--to-surface); color: var(--to-ink); }
.flatpickr-calendar.to-cal.open .flatpickr-innerContainer .flatpickr-days .flatpickr-day.today { background: transparent; color: var(--to-brand); box-shadow: inset 0 0 0 1px rgba(var(--to-brand-rgb), .4); }
.flatpickr-calendar.to-cal.open .flatpickr-innerContainer .flatpickr-days .flatpickr-day.selected,
.flatpickr-calendar.to-cal.open .flatpickr-innerContainer .flatpickr-days .flatpickr-day.selected:hover { background: var(--to-brand); color: #fff; box-shadow: none; }
.flatpickr-calendar.to-cal.open .flatpickr-innerContainer .flatpickr-days .flatpickr-day.flatpickr-disabled,
.flatpickr-calendar.to-cal.open .flatpickr-innerContainer .flatpickr-days .flatpickr-day.flatpickr-disabled:hover { background: transparent; color: #c5c5cd; cursor: default; }
.flatpickr-calendar.to-cal.open .flatpickr-innerContainer .flatpickr-days .flatpickr-day.prevMonthDay,
.flatpickr-calendar.to-cal.open .flatpickr-innerContainer .flatpickr-days .flatpickr-day.nextMonthDay { color: #b3b3bc; }

/* Tablet: route on one row, dates + button on the next */
@media (max-width: 1099.98px) {
    .to-fs__bar { flex-wrap: wrap; }
    .to-fs__route { flex-basis: 100%; }
    .to-fs__dates { flex: 1 1 auto; }
}
/* Phone: everything stacks; the swap button moves to the right edge and turns vertical */
@media (max-width: 767.98px) {
    .to-fs__route { flex-direction: column; }
    .to-fs__route .to-fs__place:last-of-type { padding-left: var(--s4); }
    .to-fs__route .to-fs__place { padding-right: 56px; }
    .to-fs__swap { left: auto; right: var(--s3); transform: translateY(-50%) rotate(90deg); }
    .to-fs__swap:active { transform: translateY(-50%) rotate(90deg) scale(.9); }
    .to-fs__dates { flex-basis: 100%; }
    .to-fs__date { padding-right: var(--s3); }
    .to-fs__date .to-fs__clear { display: none !important; } /* half-width fields need the room; "One way" does the same job */
    .to-fs__go { flex-basis: 100%; }
    .to-fs__list { width: calc(100vw - 48px); }
    .to-fs__pax-pop { right: auto; left: 0; width: min(320px, calc(100vw - 32px)); transform-origin: top left; }
    .to-fs__top { gap: var(--s2); }
    .to-seg__opt { padding: 0 var(--s3); }
}

/* ==========================================================================
   Flights landing page
   ========================================================================== */
.to-fhero-wrap { padding: 0 var(--s2); }
@media (min-width: 768px) { .to-fhero-wrap { padding: 0 var(--s4); } }
.to-fhero {
    /* The photo and its wash are clipped separately: the hero itself must not
       clip, or the airport list and traveller popover could not escape it. */
    position: relative; border-radius: var(--r-xl); background: #1c2230; isolation: isolate;
}
.to-fhero__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.to-fhero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(10, 12, 20, .62) 0%, rgba(10, 12, 20, .28) 42%, rgba(10, 12, 20, .55) 100%),
        linear-gradient(90deg, rgba(10, 12, 20, .45) 0%, rgba(10, 12, 20, 0) 60%);
}
.to-fhero__inner { padding-top: var(--s7); padding-bottom: var(--s7); }
@media (min-width: 992px) { .to-fhero__inner { padding-top: 88px; padding-bottom: 72px; } }
.to-fhero__title {
    margin: 0 0 var(--s3); max-width: 16ch; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
    font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.04; letter-spacing: -.04em;
    animation: to-rise 800ms var(--ease-out) both;
}
.to-fhero__sub { margin: 0 0 var(--s6); max-width: 52ch; color: rgba(255, 255, 255, .88); text-shadow: 0 1px 12px rgba(0, 0, 0, .45); font-size: 17px; line-height: 1.5; animation: to-rise 800ms var(--ease-out) 80ms both; }
.to-fhero .to-fs {
    /* The entrance animation makes the card a stacking context, which traps its popovers'
       z-index — so the card as a whole has to sit above what follows it. */
    position: relative; z-index: 5;
    padding: var(--s3); border-radius: var(--r-xl); background: #fff;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
    animation: to-rise 800ms var(--ease-out) 160ms both;
}
@media (min-width: 768px) { .to-fhero .to-fs { padding: var(--s4); } }
.to-fhero .to-fs__bar { padding: 0; box-shadow: none; }
.to-fhero .to-seg, .to-fhero .to-fs__pax-btn { background: var(--to-surface); box-shadow: none; }
.to-fhero .to-fs__pax-btn:hover { background: #e9eaef; }
.to-fhero .to-fs__swap { box-shadow: 0 0 0 4px #fff, var(--sh-1); }
.to-fhero__trust {
    display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: var(--s5) 0 0; padding: 0; list-style: none;
    color: rgba(255, 255, 255, .92); font-size: 14px; font-weight: 600;
    animation: to-fade 900ms var(--ease-out) 300ms both;
}
.to-fhero__trust li { display: inline-flex; align-items: center; gap: var(--s2); }

/* Why book with us — illustration-led, no card chrome */
.to-why { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .to-why { grid-template-columns: repeat(3, 1fr); } }
.to-why__item { text-align: center; }
.to-why__item h3 { margin: var(--s4) 0 6px; font-size: 18px; font-weight: 800; }
.to-why__item p { margin: 0 auto; max-width: 34ch; color: var(--to-muted); font-size: 14px; line-height: 1.55; }
.to-why__art { position: relative; display: grid; place-items: center; height: 132px; }
.to-why__blob {
    position: absolute; width: 124px; height: 124px; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
    background: var(--_tint, var(--to-brand-tint));
    transition: transform 900ms var(--ease-out), border-radius 900ms var(--ease-out);
}
.to-why__tile {
    position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px;
    background: #fff; color: var(--_ink, var(--to-brand)); box-shadow: var(--sh-2);
    transition: transform 500ms var(--ease-spring);
}
.to-why__item:nth-child(2) { --_tint: #e8f1ff; --_ink: #2563eb; }
.to-why__item:nth-child(3) { --_tint: #e6f6ec; --_ink: #15803d; }
.to-why__item:nth-child(4) { --_tint: #fff3e0; --_ink: #c2410c; }
@media (hover: hover) {
    .to-why__item:hover .to-why__blob { transform: rotate(18deg) scale(1.06); border-radius: 55% 45% 42% 58% / 52% 58% 42% 48%; }
    .to-why__item:hover .to-why__tile { transform: translateY(-6px) rotate(-6deg); }
}

/* Route cards — portrait photos with the route on top */
.to-rail__track--tall { grid-auto-columns: minmax(200px, 64%); }
@media (min-width: 576px) { .to-rail__track--tall { grid-auto-columns: calc((100% - 2 * var(--s4)) / 3); } }
@media (min-width: 992px) { .to-rail__track--tall { grid-auto-columns: calc((100% - 3 * var(--s4)) / 4); } }
@media (min-width: 1200px) { .to-rail__track--tall { grid-auto-columns: calc((100% - 4 * var(--s4)) / 5); } }
.to-route {
    position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; isolation: isolate;
    border-radius: var(--r-lg); background: #2a2f3a; color: #fff; text-decoration: none; box-shadow: var(--sh-1);
    transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out);
}
.to-route img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.to-route::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .78) 100%); }
.to-route:hover { transform: translateY(-4px); box-shadow: var(--sh-3); color: #fff; }
.to-route:hover img { transform: scale(1.06); }
.to-route:active { transform: translateY(-2px) scale(.99); }
.to-route__body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: var(--s4); }
.to-route__code { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; opacity: .85; }
.to-route__city { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.to-route__meta { font-size: 13px; opacity: .88; }

/* Deals band — full photo behind white deal cards */
.to-band { position: relative; margin: var(--s8) var(--s2) 0; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; background: #1c2230; }
@media (min-width: 768px) { .to-band { margin-inline: var(--s4); } }
@media (min-width: 992px) { .to-band { margin-top: 80px; } }
.to-band__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1600ms var(--ease-out); }
.to-band:has(.to-band__head.is-in) .to-band__media { transform: scale(1); }
.to-band::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, rgba(8, 10, 18, .82) 0%, rgba(8, 10, 18, .5) 55%, rgba(8, 10, 18, .25) 100%);
}
.to-band__inner { padding-top: var(--s8); padding-bottom: var(--s8); }
@media (min-width: 992px) { .to-band__inner { padding-top: 88px; padding-bottom: 88px; } }
.to-band__head { max-width: 560px; }
.to-band__title { margin: 0 0 var(--s2); color: #fff; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.to-band__sub { margin: 0; color: rgba(255, 255, 255, .8); font-size: 16px; line-height: 1.5; }
.to-deals { display: grid; gap: var(--s3); grid-template-columns: 1fr; margin-top: var(--s6); }
@media (min-width: 576px) { .to-deals { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .to-deals { grid-template-columns: repeat(4, 1fr); } }
.to-deal {
    display: flex; flex-direction: column; gap: 6px; padding: var(--s4); border-radius: var(--r-lg);
    background: #fff; color: var(--to-ink); text-decoration: none;
    box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .7);
    transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out);
}
.to-deal:hover { transform: translateY(-4px); color: var(--to-ink); box-shadow: 0 32px 56px -28px rgba(0, 0, 0, .8); }
.to-deal:active { transform: translateY(-2px) scale(.99); }
.to-deal__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: 2px; }
.to-deal__codes { display: inline-flex; align-items: center; gap: 6px; color: var(--to-muted); font-size: 13px; font-weight: 800; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.to-deal__codes .to-icon { color: var(--to-brand); }
.to-deal__tag { padding: 3px 8px; border-radius: var(--r-pill); background: var(--to-brand-tint); color: var(--to-brand); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.to-deal__route { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.to-deal__route span { color: var(--to-line-2); margin: 0 2px; }
.to-deal__note { color: var(--to-muted); font-size: 13px; }
.to-deal__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--to-line); }
.to-deal__price { font-size: 17px; font-weight: 800; }
.to-deal__price--soft { font-size: 14px; font-weight: 700; color: var(--to-brand); }
.to-deal__go {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--to-surface);
    transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}
.to-deal__go .to-icon { transition: transform var(--t-base) var(--ease-out); }
.to-deal:hover .to-deal__go { background: var(--to-brand); color: #fff; }
.to-deal:hover .to-deal__go .to-icon { transform: translateX(2px); }

/* Offer cards — the photo is the card */
.to-offers { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .to-offers { grid-template-columns: repeat(3, 1fr); } }
.to-offer {
    position: relative; display: flex; align-items: flex-end; min-height: 320px; overflow: hidden; isolation: isolate;
    border-radius: var(--r-lg); background: #2a2f3a; color: #fff; text-decoration: none;
    transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out);
}
@media (min-width: 992px) { .to-offer { min-height: 380px; } }
.to-offer img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-out); }
.to-offer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .8) 100%); }
a.to-offer:hover { transform: translateY(-4px); box-shadow: var(--sh-3); color: #fff; }
a.to-offer:hover img { transform: scale(1.05); }
a.to-offer:active { transform: translateY(-2px) scale(.99); }
.to-offer__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: var(--s5); }
.to-offer__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.to-offer__title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.to-offer__text { color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.5; }
.to-offer__cta {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: var(--s2); padding: 0 var(--s4);
    border-radius: var(--r-pill); background: #fff; color: var(--to-ink); font-size: 14px; font-weight: 700;
}
.to-offer__cta .to-icon { transition: transform var(--t-base) var(--ease-out); }
a.to-offer:hover .to-offer__cta .to-icon { transform: translateX(3px); }

/* Card accordions (explore + FAQ) */
.to-acc--card { padding: 0 var(--s4); margin-bottom: var(--s3); border: 0; border-radius: var(--r-md); background: #fff; box-shadow: var(--sh-1); }
.to-acc--card > summary { min-height: 60px; font-size: 15px; }
.to-acc[open] > .to-acc__body { animation: to-rise 320ms var(--ease-out) both; }
.to-acc__links a .to-icon { opacity: .6; }

/* ==========================================================================
   Sign in / sign up / password reset
   ========================================================================== */
.to-auth { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); max-width: 1360px; margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 992px) { .to-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 68px - var(--s4)); padding: 0 var(--s4); } }
.to-auth__main { display: flex; align-items: center; justify-content: center; padding: var(--s7) 0 var(--s4); }
@media (min-width: 992px) { .to-auth__main { padding: var(--s7) var(--s5); } }
.to-auth__form { width: 100%; max-width: 420px; animation: to-rise 700ms var(--ease-out) both; }
.to-auth__title { margin: 0 0 var(--s2); font-size: clamp(28px, 3.2vw, 36px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.to-auth__text { margin: 0 0 var(--s6); color: var(--to-muted); font-size: 16px; line-height: 1.5; }

.to-auth__alert {
    display: flex; align-items: flex-start; gap: var(--s2); margin: 0 0 var(--s5); padding: var(--s3) var(--s4);
    border-radius: var(--r-md); background: #fef3f2; color: #b42318; font-size: 14px; font-weight: 600; line-height: 1.45;
    animation: to-rise 320ms var(--ease-out) both;
}
.to-auth__alert .to-icon { margin-top: 1px; }
.to-auth__alert--ok { background: #ecfdf3; color: #067647; }

.to-auth__social { display: grid; gap: var(--s2); }
.to-auth__provider {
    display: flex; align-items: center; justify-content: center; gap: var(--s3); min-height: 52px; padding: 0 var(--s4);
    border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--to-line-2);
    color: var(--to-ink); font-size: 15px; font-weight: 700; text-decoration: none;
    transition: background-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.to-auth__provider:hover { background: var(--to-surface-2); color: var(--to-ink); box-shadow: inset 0 0 0 1px #b9b9c4; }
.to-auth__provider:active { transform: scale(.98); }
.to-auth__fb { color: #1877f2; }
.to-auth__or { display: flex; align-items: center; gap: var(--s3); margin: var(--s5) 0; color: var(--to-muted); font-size: 13px; }
.to-auth__or::before, .to-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--to-line); }

.to-auth__field { margin-bottom: var(--s4); }
.to-auth__field label { display: block; margin: 0 0 6px; color: var(--to-ink); font-size: 14px; font-weight: 700; }
.to-auth__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.to-auth__label-row .to-auth__link { font-size: 14px; }
.to-auth__field input {
    /* 16px keeps iOS from zooming the page on focus */
    width: 100%; height: 52px; padding: 0 var(--s4); line-height: normal;
    border: 1px solid var(--to-line-2); border-radius: var(--r-md); background: #fff;
    color: var(--to-ink); font: 500 16px var(--to-font);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.to-auth__field input:hover { border-color: #b9b9c4; }
.to-auth__field input:focus { outline: 0; border-color: var(--to-ink); box-shadow: 0 0 0 3px rgba(21, 21, 26, .08); }
.to-auth__field.is-invalid input { border-color: #d92d20; }
.to-auth__field.is-invalid input:focus { box-shadow: 0 0 0 3px rgba(217, 45, 32, .14); }
.to-auth__error { margin: 6px 0 0; color: #b42318; font-size: 13px; font-weight: 600; }
.to-auth__password { position: relative; }
.to-auth__password input { padding-right: 52px; }
.to-auth__reveal {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r-sm);
    background: none; color: var(--to-muted); cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast);
}
.to-auth__reveal:hover { background: var(--to-surface); color: var(--to-ink); }
.to-auth__eye-off, .to-auth__reveal[aria-pressed="true"] .to-auth__eye { display: none; }
.to-auth__reveal[aria-pressed="true"] .to-auth__eye-off { display: block; }

.to-auth__check { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; margin: calc(-1 * var(--s2)) 0 var(--s3); color: var(--to-ink-2); font-size: 14px; cursor: pointer; }
.to-auth__check input { width: 18px; height: 18px; margin: 0; accent-color: var(--to-brand); cursor: pointer; }
.to-auth__captcha { margin-bottom: var(--s4); }
.to-auth__submit { width: 100%; min-height: 52px; font-size: 16px; }
.to-auth__spinner { display: none; }
.to-auth__submit[aria-busy="true"] .to-auth__spinner { display: inline-block; }
.to-auth__submit[aria-busy="true"]:disabled { opacity: .85; cursor: progress; }
.to-auth__fine { margin: var(--s4) 0 0; color: var(--to-muted); font-size: 13px; line-height: 1.5; }
.to-auth__link { color: var(--to-brand); font-weight: 700; text-decoration: none; }
.to-auth__link:hover { color: var(--to-brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.to-auth__foot { margin: var(--s6) 0 0; padding-top: var(--s5); border-top: 1px solid var(--to-line); color: var(--to-muted); font-size: 15px; }
.to-auth__back { display: inline-flex; align-items: center; gap: 6px; }

.to-auth__panel { position: relative; display: none; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); background: #2a2f3a; }
@media (min-width: 992px) { .to-auth__panel { display: block; margin: var(--s2) 0 var(--s4); } }
.to-auth__panel img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: to-auth-photo 1400ms var(--ease-out) both; }
@keyframes to-auth-photo { from { transform: scale(1.05); opacity: .6; } to { transform: none; opacity: 1; } }
.to-auth__panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .72) 100%); }
.to-auth__panel-body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s7); color: #fff; }
.to-auth__panel-title { margin: 0 0 var(--s4); max-width: 16ch; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.to-auth__panel ul { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; font-size: 16px; font-weight: 600; }
.to-auth__panel li { display: flex; align-items: center; gap: var(--s3); }

/* ==========================================================================
   Motion — scroll reveal (progressive: content is visible without JS)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@keyframes to-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.to-hero__title, .to-vtabs, .to-search { animation: to-rise 800ms var(--ease-out) both; }
.to-vtabs { animation-delay: 90ms; }
.to-search { animation-delay: 180ms; }
.to-collage { animation: to-fade 1200ms var(--ease-out) 150ms both; }
@keyframes to-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
    .to-collage__col, .to-marquee__track, .to-ai::before { animation: none !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Inner pages — harmonise the legacy template with the new system
   ========================================================================== */
.service_page .tg-btn, .tg-btn, .tg-btn-2, .bk-search-button, .tg-btn-header {
    border-radius: var(--r-md) !important; font-family: var(--to-font); font-weight: 700; letter-spacing: -.01em;
    transition: background-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast);
}
.tg-btn:active, .tg-btn-2:active, .bk-search-button:active { transform: scale(.97); }
.tg-breadcrumb-area, .tg-breadcrumb-spacing { border-radius: var(--r-xl); margin: 0 var(--s2); overflow: hidden; }
@media (min-width: 768px) { .tg-breadcrumb-area, .tg-breadcrumb-spacing { margin: 0 var(--s4); } }
.tg-breadcrumb-title, .tg-breadcrumb-area h2 { letter-spacing: -.03em; font-weight: 800; }
.tg-listing-card-item, .tg-blog-item, .tg-tour-about-sidebar, .tg-listing-sidebar, .tg-blog-sidebar-box {
    border-radius: var(--r-lg) !important;
}
.tg-listing-card-item { transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out); }
.tg-listing-card-item:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.tg-grey-bg { background-color: var(--to-surface-2); }
input.form-control, select.form-select, textarea.form-control { border-radius: var(--r-md); border-color: var(--to-line-2); }
.form-control:focus, .form-select:focus { border-color: var(--to-ink); box-shadow: 0 0 0 3px rgba(21, 21, 26, .08); }
.pagination .page-link, .tg-pagenation-wrap a { border-radius: var(--r-sm) !important; }

/* Legacy listing pages open with a search bar directly under the sticky header */
.tg-booking-form-area.tg-listing-booking-shadow { padding-top: var(--s4); }
