/* ==========================================================================
   Travelin Design System — core layer
   --------------------------------------------------------------------------
   Loaded AFTER the vendor theme (css/style.css) so it can retune the vendor's
   primitives without editing 11k lines we do not own. Two files, no overlap:

     travelin.css        tokens, base, and the primitives every page uses
     travelin-pages.css  compositions that belong to one page or one flow

   Anything that appears on more than one page lives here. If you find
   yourself repeating a rule in travelin-pages.css, it belongs in this file.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
    /* -- Brand ------------------------------------------------------------
       Deep ocean blue carries the logo; amber is the call to action; coral
       marks anything time-limited; teal confirms. Nothing else is decorative. */
    --tv-brand-900: #052B4A;
    --tv-brand-800: #073B66;
    --tv-brand-700: #084376;
    --tv-brand-600: #0A4F8F;
    --tv-brand-500: #1268B3;
    --tv-brand-400: #3E8FD4;
    --tv-brand-100: #D3E5F6;
    --tv-brand-50:  #EAF3FB;

    --tv-gold-600: #D98B0E;
    --tv-gold-500: #F5A524;
    --tv-gold-400: #FFBB4D;
    --tv-gold-50:  #FEF4E2;

    /* The -500/-600 accents are FILL values: they carry 2.0–4.3:1 against white
       and fail WCAG AA as text. Every accent therefore has a darker text tone,
       measured, for use on white or on its own -50 tint. Use these whenever the
       accent colours a glyph that has to be read. */
    --tv-gold-text:  #8A5A02;   /* 5.4:1 on gold-50,  5.9:1 on white */

    --tv-coral-600: #E5502C;
    --tv-coral-500: #FF6B4A;
    --tv-coral-50:  #FFEFEA;
    --tv-coral-text: #B83A1B;   /* 5.7:1 on white, 5.1:1 on coral-50 */
    --tv-coral-solid: #C0391A;  /* 5.5:1 carrying white text */

    --tv-teal-600: #0B8A74;
    --tv-teal-500: #0FA88E;
    --tv-teal-50:  #E4F7F3;
    --tv-teal-text: #087058;    /* 6.1:1 on white, 5.5:1 on teal-50 */

    --tv-red-600: #C93B3F;
    --tv-red-500: #E5484D;
    --tv-red-50:  #FDECEC;

    /* -- Ink and surfaces -------------------------------------------------- */
    --tv-ink-900: #0A1626;
    --tv-ink-800: #16263B;
    --tv-ink-700: #26384D;
    --tv-ink-600: #3D5065;
    --tv-ink-500: #5A6B80;
    --tv-ink-400: #7A8899;
    --tv-ink-300: #A3AEBC;
    --tv-ink-200: #C9D1DB;
    --tv-line:    #E4E9F0;
    --tv-line-soft: #EFF3F8;

    --tv-surface: #FFFFFF;
    --tv-canvas:  #F6F8FB;
    --tv-canvas-2:#EEF2F8;
    --tv-overlay: rgba(10, 22, 38, .55);

    /* -- Typography -------------------------------------------------------- */
    --tv-font-display: 'Plus Jakarta Sans', 'Montserrat', system-ui, sans-serif;
    --tv-font-body: 'Inter', 'Open Sans', system-ui, -apple-system, sans-serif;

    /* Fluid scale: readable at 360px, generous at 1440px, no media queries. */
    --tv-text-xs:   0.75rem;
    --tv-text-sm:   0.8125rem;
    --tv-text-base: 0.9375rem;
    --tv-text-md:   1rem;
    --tv-text-lg:   clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
    --tv-text-xl:   clamp(1.1875rem, 0.7vw + 1.05rem, 1.375rem);
    --tv-h4:        clamp(1.125rem, 0.6vw + 1rem, 1.3125rem);
    --tv-h3:        clamp(1.375rem, 1.4vw + 1.05rem, 1.875rem);
    --tv-h2:        clamp(1.625rem, 2.2vw + 1.1rem, 2.5rem);
    --tv-h1:        clamp(1.875rem, 3.2vw + 1.1rem, 3.25rem);
    --tv-display:   clamp(2.125rem, 4.6vw + 1rem, 4rem);

    --tv-leading-tight: 1.18;
    --tv-leading-snug: 1.35;
    --tv-leading: 1.6;

    /* -- Space (4px base) --------------------------------------------------- */
    --tv-1: 4px;   --tv-2: 8px;   --tv-3: 12px;  --tv-4: 16px;
    --tv-5: 20px;  --tv-6: 24px;  --tv-8: 32px;  --tv-10: 40px;
    --tv-12: 48px; --tv-14: 56px; --tv-16: 64px; --tv-20: 80px;
    --tv-24: 96px;

    /* Vertical rhythm between page sections, tighter on phones. */
    --tv-section-y: clamp(3.25rem, 6.5vw, 7rem);
    --tv-gutter: clamp(1rem, 3vw, 1.5rem);

    /* -- Radius ------------------------------------------------------------- */
    --tv-r-sm: 8px;
    --tv-r-md: 12px;
    --tv-r-lg: 16px;
    --tv-r-xl: 20px;
    --tv-r-2xl: 28px;
    --tv-r-full: 999px;

    /* -- Elevation: navy-tinted, never grey ---------------------------------- */
    --tv-shadow-xs: 0 1px 2px rgba(10, 22, 38, .06);
    --tv-shadow-sm: 0 1px 3px rgba(10, 22, 38, .07), 0 1px 2px rgba(10, 22, 38, .04);
    --tv-shadow-md: 0 4px 12px rgba(10, 22, 38, .08), 0 1px 3px rgba(10, 22, 38, .05);
    --tv-shadow-lg: 0 12px 28px rgba(10, 22, 38, .11), 0 4px 8px rgba(10, 22, 38, .05);
    --tv-shadow-xl: 0 24px 48px rgba(10, 22, 38, .16), 0 8px 16px rgba(10, 22, 38, .06);
    --tv-ring: 0 0 0 4px rgba(18, 104, 179, .18);

    /* -- Motion -------------------------------------------------------------- */
    --tv-ease: cubic-bezier(.22, 1, .36, 1);
    --tv-ease-out: cubic-bezier(.16, 1, .3, 1);
    --tv-fast: 140ms;
    --tv-base: 240ms;
    --tv-slow: 420ms;

    /* -- Chrome heights ------------------------------------------------------ */
    --tv-header-h: 72px;
    --tv-bottomnav-h: 62px;
    --tv-safe-b: env(safe-area-inset-bottom, 0px);
}

/*
 * Inside the Genesis host, the safe area is not ours to pay.
 *
 * MiniAppChrome already insets the WebView on both edges, so adding
 * env(safe-area-inset-bottom) on top of it charged the inset twice and left an
 * empty band between the bottom nav and the system bar. The flag is set by an
 * inline script in the layout head, before first paint.
 *
 * An attribute rather than a media query: "am I inside the host" is not something
 * CSS can ask. Standalone on the web the token keeps the device's real value.
 */
:root[data-genesis-host='true'] {
    --tv-safe-b: 0px;
}

/* ==========================================================================
   2. Base
   Scoped to the public site: `body.nav-fixed` is the frontend layout's body
   class, so none of this can reach the admin panel.
   ========================================================================== */

body.nav-fixed {
    font-family: var(--tv-font-body);
    font-size: var(--tv-text-base);
    line-height: var(--tv-leading);
    color: var(--tv-ink-700);
    background: var(--tv-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* The Arabic face has a taller x-height; Jakarta has no Arabic coverage. */
html[dir="rtl"] body.nav-fixed,
html[dir="rtl"] body.nav-fixed h1,
html[dir="rtl"] body.nav-fixed h2,
html[dir="rtl"] body.nav-fixed h3,
html[dir="rtl"] body.nav-fixed h4,
html[dir="rtl"] body.nav-fixed h5,
html[dir="rtl"] body.nav-fixed h6,
html[dir="rtl"] body.nav-fixed .btn {
    font-family: 'Cairo', 'Inter', system-ui, sans-serif;
}

body.nav-fixed h1, body.nav-fixed h2, body.nav-fixed h3,
body.nav-fixed h4, body.nav-fixed h5, body.nav-fixed h6 {
    font-family: var(--tv-font-display);
    color: var(--tv-ink-900);
    line-height: var(--tv-leading-tight);
    letter-spacing: -0.02em;
    font-weight: 700;
    margin-bottom: var(--tv-3);
}

body.nav-fixed h1 { font-size: var(--tv-h1); }
body.nav-fixed h2 { font-size: var(--tv-h2); }
body.nav-fixed h3 { font-size: var(--tv-h3); }
body.nav-fixed h4 { font-size: var(--tv-h4); letter-spacing: -0.01em; }
body.nav-fixed h5 { font-size: var(--tv-text-lg); letter-spacing: -0.01em; }
body.nav-fixed h6 { font-size: var(--tv-text-md); letter-spacing: 0; }

body.nav-fixed p { line-height: var(--tv-leading); }

/* The vendor paints a handful of headings white because they sit on a photo or
   a dark panel. Those rules are (0,1,1) and lose to the (0,1,2) block above,
   which turned the flight-search title into navy on a sunlit beach. Re-stated
   here at a weight that wins, rather than found one page at a time. Selectors
   whose vendor rule already outranks the base — an id, two classes, or an
   anchor — are deliberately absent. */
body.nav-fixed .flightinthero h1,
body.nav-fixed .pageTitle h1,
body.nav-fixed h3.slide-h3,
body.nav-fixed .hotel-name h5,
body.nav-fixed .newsletter h3,
body.nav-fixed .servicesbox h3,
body.nav-fixed .submitquery h3,
body.nav-fixed .userdetailbox h3,
body.nav-fixed .bformBox h3 { color: #fff; }

/* Default link colour, deliberately at zero specificity.

   As `body.nav-fixed a` this is (0,1,2) — it beats every single-class component
   rule, so a card title, a category tile or a button rendered as an <a> all
   came out link-blue and each needed its own override. `:where()` contributes
   nothing, so any component that states a colour simply wins. */
:where(body.nav-fixed) a {
    color: var(--tv-brand-600);
    text-decoration: none;
    transition: color var(--tv-fast) var(--tv-ease);
}
:where(body.nav-fixed) a:hover { color: var(--tv-brand-500); }

/* One visible focus ring for the whole site — the vendor removed them. */
body.nav-fixed :focus-visible {
    outline: 2px solid var(--tv-brand-500);
    outline-offset: 2px;
    border-radius: var(--tv-r-sm);
}

body.nav-fixed ::selection {
    background: var(--tv-brand-100);
    color: var(--tv-brand-900);
}

/* Responsive image reset. Wrapped in :where() so it carries no specificity of
   its own — as `body.nav-fixed img` (0,1,2) it beat every component rule that
   sizes an image, and `height: auto` left every card photo short of its frame
   with the placeholder background showing through underneath. */
:where(body.nav-fixed) img { max-width: 100%; height: auto; }

/* Inline SVG icons default to the text size around them; components that need
   a specific size set it on the parent (`.tv-btn svg`, `.tv-meta__item svg`…). */
.tv-icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -0.15em; }
body.nav-fixed .btn > .tv-icon, .tv-btn > .tv-icon { width: 17px; height: 17px; }

/* ---- Utility: the only ones we allow, each earning its place -------------- */
.tv-container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--tv-gutter); }
.tv-stack > * + * { margin-top: var(--tv-3); }
.tv-muted { color: var(--tv-ink-500); }
.tv-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tv-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tv-hide-desktop { display: none; }
.tv-only-mobile { display: none; }

/* ==========================================================================
   3. Sections and headings
   Retunes the vendor's `.parallax-section` / `.section-title` so untouched
   pages inherit the new rhythm.
   ========================================================================== */

.tv-section,
body.nav-fixed .parallax-section {
    padding-block: var(--tv-section-y);
    position: relative;
}
.tv-section--tight { padding-block: clamp(2rem, 3.5vw, 3.5rem); }
.tv-section--canvas { background: var(--tv-canvas); }
.tv-section--brand { background: var(--tv-brand-900); color: #fff; }
.tv-section--brand h2, .tv-section--brand h3 { color: #fff; }

body.nav-fixed .bg-grey { background: var(--tv-canvas); }

/* Section heading: eyebrow + title + lede, left on phones, centred on desktop
   only where the composition asks for it (.tv-head--center). */
.tv-head { margin-bottom: clamp(1.75rem, 3.5vw, 3rem); max-width: 58ch; }
.tv-head--center { margin-inline: auto; text-align: center; }
.tv-head__eyebrow {
    display: inline-flex; align-items: center; gap: var(--tv-2);
    font-family: var(--tv-font-body);
    font-size: var(--tv-text-xs); font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase;
    color: var(--tv-brand-500);
    margin-bottom: var(--tv-3);
}
.tv-head__eyebrow::before {
    content: ""; width: 22px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--tv-gold-500), var(--tv-brand-500));
}
.tv-head--center .tv-head__eyebrow::before { display: none; }
.tv-head__title { font-size: var(--tv-h2); margin: 0 0 var(--tv-3); }
.tv-head__lede { font-size: var(--tv-text-lg); color: var(--tv-ink-500); margin: 0; }

/* Header row with a trailing "see all" link. */
.tv-head-row {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: var(--tv-4); margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
}
.tv-head-row .tv-head { margin-bottom: 0; }
.tv-seeall {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--tv-2);
    font-weight: 600; font-size: var(--tv-text-base); color: var(--tv-brand-600);
    padding: var(--tv-2) 0;
}
.tv-seeall svg { transition: transform var(--tv-base) var(--tv-ease); }
.tv-seeall:hover svg { transform: translateX(3px); }
html[dir="rtl"] .tv-seeall svg { transform: scaleX(-1); }
html[dir="rtl"] .tv-seeall:hover svg { transform: scaleX(-1) translateX(3px); }

/* Retune the vendor's own section titles so legacy pages follow suit. */
body.nav-fixed .section-title { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
body.nav-fixed .section-title h3 { font-size: var(--tv-h2); margin-bottom: var(--tv-3); }
body.nav-fixed .section-title p { color: var(--tv-ink-500); font-size: var(--tv-text-lg); max-width: 62ch; margin-inline: auto; }
body.nav-fixed .section-title .subtitle {
    font-size: var(--tv-text-xs); font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--tv-brand-500); margin-bottom: var(--tv-2);
}

/* ==========================================================================
   4. Buttons
   `.tv-btn` is the new primitive; the vendor's `.btn-*` are aliased onto it so
   every legacy template picks up the same shape, weight and motion.
   ========================================================================== */

.tv-btn,
body.nav-fixed .btn {
    --_bg: var(--tv-brand-600);
    --_fg: #fff;
    --_bd: transparent;
    display: inline-flex; align-items: center; justify-content: center;
    gap: var(--tv-2);
    font-family: var(--tv-font-body);
    font-size: var(--tv-text-base);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.005em;
    padding: 13px 22px;
    min-height: 46px;
    border-radius: var(--tv-r-full);
    border: 1.5px solid var(--_bd);
    background: var(--_bg);
    color: var(--_fg);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: transform var(--tv-fast) var(--tv-ease),
                box-shadow var(--tv-base) var(--tv-ease),
                background-color var(--tv-fast) var(--tv-ease),
                color var(--tv-fast) var(--tv-ease),
                border-color var(--tv-fast) var(--tv-ease);
}
.tv-btn:hover,
body.nav-fixed .btn:hover { color: var(--_fg); transform: translateY(-1px); }
.tv-btn:active,
body.nav-fixed .btn:active { transform: translateY(0) scale(.985); }
.tv-btn:disabled, .tv-btn[aria-disabled="true"],
body.nav-fixed .btn:disabled {
    opacity: .5; cursor: not-allowed; transform: none; box-shadow: none;
}

/* Variants ---------------------------------------------------------------- */
.tv-btn--primary,
body.nav-fixed .btn-primary {
    --_bg: var(--tv-brand-600); --_fg: #fff;
    box-shadow: 0 6px 16px rgba(10, 79, 143, .26);
}
.tv-btn--primary:hover,
body.nav-fixed .btn-primary:hover {
    --_bg: var(--tv-brand-700);
    box-shadow: 0 10px 24px rgba(10, 79, 143, .32);
}

/* The vendor's "secondary" is the amber CTA. Amber needs dark ink to pass AA. */
.tv-btn--accent,
body.nav-fixed .btn-sec,
body.nav-fixed .btn-warning {
    --_bg: var(--tv-gold-500); --_fg: var(--tv-ink-900);
    box-shadow: 0 6px 16px rgba(245, 165, 36, .30);
}
.tv-btn--accent:hover,
body.nav-fixed .btn-sec:hover,
body.nav-fixed .btn-warning:hover {
    --_bg: var(--tv-gold-400); --_fg: var(--tv-ink-900);
    box-shadow: 0 10px 24px rgba(245, 165, 36, .38);
}

.tv-btn--ghost,
body.nav-fixed .btn-outline-primary,
body.nav-fixed .btn-white {
    --_bg: transparent; --_fg: var(--tv-brand-700); --_bd: var(--tv-line);
    box-shadow: none;
}
.tv-btn--ghost:hover,
body.nav-fixed .btn-outline-primary:hover,
body.nav-fixed .btn-white:hover {
    --_bg: var(--tv-brand-50); --_fg: var(--tv-brand-700); --_bd: var(--tv-brand-100);
}

.tv-btn--quiet {
    --_bg: var(--tv-canvas-2); --_fg: var(--tv-ink-700); --_bd: transparent;
    box-shadow: none;
}
.tv-btn--quiet:hover { --_bg: var(--tv-line); --_fg: var(--tv-ink-900); }

.tv-btn--danger,
body.nav-fixed .btn-danger {
    --_bg: var(--tv-red-500); --_fg: #fff;
    box-shadow: 0 6px 16px rgba(229, 72, 77, .24);
}
.tv-btn--danger:hover, body.nav-fixed .btn-danger:hover { --_bg: var(--tv-red-600); }

body.nav-fixed .btn-success { --_bg: var(--tv-teal-500); --_fg: #fff; }
body.nav-fixed .btn-success:hover { --_bg: var(--tv-teal-600); }
body.nav-fixed .btn-secondary { --_bg: var(--tv-ink-600); --_fg: #fff; }
body.nav-fixed .btn-outline-danger { --_bg: transparent; --_fg: var(--tv-red-500); --_bd: var(--tv-red-500); }
body.nav-fixed .btn-outline-danger:hover { --_bg: var(--tv-red-50); --_fg: var(--tv-red-600); }
body.nav-fixed .btn-light { --_bg: #fff; --_fg: var(--tv-ink-800); --_bd: var(--tv-line); }

/* Sizes ------------------------------------------------------------------- */
/* 44px, not 38px: this is the floor in WCAG 2.2 2.5.8, and `.btn-sm` is what
   the listing cards use for "View Details" and the filter trigger. */
.tv-btn--sm, body.nav-fixed .btn-sm {
    padding: 11px 16px; min-height: 44px; font-size: var(--tv-text-sm);
}
.tv-btn--lg, body.nav-fixed .btn-lg {
    padding: 16px 30px; min-height: 54px; font-size: var(--tv-text-md);
}
.tv-btn--block, body.nav-fixed .btn.w-100, body.nav-fixed .btn.d-block { width: 100%; }
.tv-btn--icon {
    padding: 0; width: 44px; min-height: 44px; border-radius: var(--tv-r-full);
}

/* The vendor decorates every .btn-primary/.btn-sec with a skewed translucent
   wedge (`:before`) that slides across on hover. Against the new flat fills it
   reads as a rendering artefact — a diagonal notch cut out of the button. */
body.nav-fixed .btn-primary::before,
body.nav-fixed .btn-dark::before,
body.nav-fixed .btn-sec::before,
body.nav-fixed .connectbtn::before { display: none; }

/* Loading state, driven by travelin.js on submit. */
.tv-btn.is-loading, body.nav-fixed .btn.is-loading {
    color: transparent !important; pointer-events: none; position: relative;
}
.tv-btn.is-loading::after, body.nav-fixed .btn.is-loading::after {
    content: ""; position: absolute; inset: 0; margin: auto;
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid currentColor; border-top-color: transparent;
    color: var(--_fg);
    animation: tv-spin .7s linear infinite;
}
@keyframes tv-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   5. Forms
   ========================================================================== */

.tv-field { display: block; margin-bottom: var(--tv-4); }
.tv-field__label,
body.nav-fixed label {
    display: block;
    font-family: var(--tv-font-body);
    font-size: var(--tv-text-sm);
    font-weight: 600;
    color: var(--tv-ink-700);
    margin-bottom: var(--tv-2);
    letter-spacing: -0.005em;
}
.tv-field__req { color: var(--tv-red-500); margin-inline-start: 2px; }

.tv-input,
body.nav-fixed .form-control,
body.nav-fixed .form-select,
body.nav-fixed select.form-control,
body.nav-fixed textarea.form-control {
    display: block; width: 100%;
    font-family: var(--tv-font-body);
    font-size: var(--tv-text-md);
    color: var(--tv-ink-900);
    background-color: var(--tv-surface);
    border: 1.5px solid var(--tv-line);
    border-radius: var(--tv-r-md);
    padding: 12px 14px;
    min-height: 50px;
    box-shadow: none;
    transition: border-color var(--tv-fast) var(--tv-ease),
                box-shadow var(--tv-fast) var(--tv-ease),
                background-color var(--tv-fast) var(--tv-ease);
}
body.nav-fixed textarea.form-control { min-height: 120px; line-height: var(--tv-leading); }

.tv-input::placeholder,
body.nav-fixed .form-control::placeholder { color: var(--tv-ink-300); }

.tv-input:hover,
body.nav-fixed .form-control:hover:not(:focus) { border-color: var(--tv-ink-200); }

.tv-input:focus,
body.nav-fixed .form-control:focus,
body.nav-fixed .form-select:focus {
    border-color: var(--tv-brand-500);
    box-shadow: var(--tv-ring);
    outline: none;
    background-color: var(--tv-surface);
}

/* Native selects keep a caret we control rather than the OS one. */
body.nav-fixed select.form-control,
body.nav-fixed .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6B80' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
html[dir="rtl"] body.nav-fixed select.form-control,
html[dir="rtl"] body.nav-fixed .form-select {
    background-position: left 14px center; padding-right: 14px; padding-left: 40px;
}

/* Field with a leading icon. The icon is anchored to the control wrapper, not
   the field: anchored to the field it dropped below the input as soon as a
   hint or an error message was rendered under it. */
.tv-field__control { position: relative; }
body.nav-fixed .tv-field--icon .tv-input,
body.nav-fixed .tv-field--icon .form-control { padding-inline-start: 44px; }
.tv-field__icon {
    position: absolute; inset-inline-start: 15px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; color: var(--tv-ink-400); pointer-events: none; z-index: 1;
}
.tv-field__control:focus-within .tv-field__icon { color: var(--tv-brand-500); }

/* Validation */
.tv-input.is-invalid,
body.nav-fixed .form-control.is-invalid,
body.nav-fixed .form-control[aria-invalid="true"] {
    border-color: var(--tv-red-500);
    background-image: none;
}
.tv-input.is-invalid:focus,
body.nav-fixed .form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(229, 72, 77, .16); }

.tv-field__error,
body.nav-fixed .invalid-feedback,
body.nav-fixed .text-danger {
    display: flex; align-items: flex-start; gap: 6px;
    font-size: var(--tv-text-sm); font-weight: 500;
    color: var(--tv-red-600); margin-top: 6px;
}
.tv-field__error svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 1px; }
.tv-field__hint { font-size: var(--tv-text-sm); color: var(--tv-ink-400); margin-top: 6px; }

/* Checkbox / radio: bigger hit area, brand fill. */
/* The control is 19px but the label row is what a thumb aims at. */
body.nav-fixed .form-check {
    padding-inline-start: 30px; margin-bottom: 0; min-height: 44px;
    display: flex; align-items: center;
}
body.nav-fixed .form-check .form-check-label { padding: 6px 0; width: 100%; }
body.nav-fixed .form-check-input {
    width: 19px; height: 19px; margin-inline-start: -30px; margin-top: 3px;
    border: 1.5px solid var(--tv-ink-200); cursor: pointer;
    transition: background-color var(--tv-fast) var(--tv-ease), border-color var(--tv-fast) var(--tv-ease);
}
body.nav-fixed .form-check-input:checked {
    background-color: var(--tv-brand-600); border-color: var(--tv-brand-600);
}
body.nav-fixed .form-check-input:focus { box-shadow: var(--tv-ring); border-color: var(--tv-brand-500); }
body.nav-fixed .form-check-label { font-size: var(--tv-text-base); color: var(--tv-ink-700); cursor: pointer; font-weight: 500; }

/* Segmented control — replaces the vendor's stack of radio "buttons".

   Two defences against clipping, because the label text is translated and we
   cannot know its width: the horizontal padding scales with the viewport so
   three pills fit unaided from 320px up, and the track itself scrolls rather
   than pushing the document if a translation is longer than any we ship.
   Before this, `.tv-seg.tripetype` measured 362px inside a 358px column and
   put a 4px horizontal scroll on the whole flight-search page, clipping
   "Multi-city" in English and "متعدد الوجهات" in Arabic. */
.tv-seg {
    display: inline-flex; padding: 4px; gap: 2px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
    overscroll-behavior-x: contain;
    background: var(--tv-canvas-2); border-radius: var(--tv-r-full);
}
.tv-seg::-webkit-scrollbar { display: none; }
.tv-seg .btn-check { position: absolute; opacity: 0; pointer-events: none; }
.tv-seg label,
.tv-seg > .tv-seg__item {
    margin: 0; padding: 9px clamp(11px, 3.2vw, 18px); min-height: 44px;
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: var(--tv-text-sm); font-weight: 600; color: var(--tv-ink-600);
    background: transparent; border: 0; border-radius: var(--tv-r-full);
    cursor: pointer; white-space: nowrap;
    transition: background-color var(--tv-fast) var(--tv-ease), color var(--tv-fast) var(--tv-ease), box-shadow var(--tv-fast) var(--tv-ease);
}
.tv-seg label:hover { color: var(--tv-ink-900); }
.tv-seg .btn-check:checked + label,
.tv-seg .tv-seg__item.is-active {
    background: var(--tv-surface); color: var(--tv-brand-700);
    box-shadow: var(--tv-shadow-sm);
}
.tv-seg .btn-check:focus-visible + label { box-shadow: var(--tv-ring); }

/* Visually hidden, still announced. This utility was referenced by markup
   before it existed, so every "screen-reader only" label was simply visible. */
.tv-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
}

/* ==========================================================================
   6. Cards
   ========================================================================== */

.tv-card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--tv-surface);
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-r-xl);
    overflow: hidden;
    transition: transform var(--tv-base) var(--tv-ease),
                box-shadow var(--tv-base) var(--tv-ease),
                border-color var(--tv-base) var(--tv-ease);
}
.tv-card--flat { box-shadow: none; }
.tv-card--raised { box-shadow: var(--tv-shadow-sm); }
.tv-card--interactive:hover {
    transform: translateY(-4px);
    box-shadow: var(--tv-shadow-lg);
    border-color: transparent;
}
.tv-card__body { padding: var(--tv-5); display: flex; flex-direction: column; flex: 1 1 auto; gap: var(--tv-2); }
.tv-card__footer {
    display: flex; align-items: center; justify-content: space-between; gap: var(--tv-3);
    padding: var(--tv-4) var(--tv-5);
    border-top: 1px solid var(--tv-line-soft);
    margin-top: auto;
}
.tv-card__title { font-size: var(--tv-text-xl); margin: 0; }
.tv-card__title a { color: inherit; }
.tv-card__title a:hover { color: var(--tv-brand-600); }

/* Media: fixed aspect so a mixed-size catalogue still lines up. */
.tv-card__media {
    position: relative; display: block;
    aspect-ratio: 4 / 3; overflow: hidden;
    background: var(--tv-canvas-2);
}
.tv-card__media img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform var(--tv-slow) var(--tv-ease);
}
.tv-card--interactive:hover .tv-card__media img { transform: scale(1.05); }
.tv-card__media--wide { aspect-ratio: 16 / 10; }
.tv-card__media--tall { aspect-ratio: 3 / 4; }

/* A soft scrim so white overlay chips stay legible on any photo. */
.tv-card__media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(10,22,38,.28) 0%, rgba(10,22,38,0) 32%, rgba(10,22,38,0) 62%, rgba(10,22,38,.34) 100%);
}
.tv-card__media--plain::after { display: none; }

/* Overlays resolve against this frame, not the whole card — as siblings of the
   media they anchored to the card box, and a bottom-aligned badge landed on
   the price row instead of on the photo. */
.tv-card__frame { position: relative; }
.tv-card__overlay {
    position: absolute; inset-inline: var(--tv-3); z-index: 2;
    display: flex; gap: var(--tv-2); flex-wrap: wrap;
}
.tv-card__overlay--top { top: var(--tv-3); }
.tv-card__overlay--bottom { bottom: var(--tv-3); align-items: flex-end; }

/* Retune the vendor's hotel / tour / blog cards so untouched pages match. */
body.nav-fixed .locwrap,
body.nav-fixed .tour-card,
body.nav-fixed .subposts,
body.nav-fixed .destibox,
body.nav-fixed .service-thumb,
body.nav-fixed .team-thumb,
body.nav-fixed .testibox {
    border-radius: var(--tv-r-xl);
    border: 1px solid var(--tv-line);
    box-shadow: var(--tv-shadow-sm);
    background: var(--tv-surface);
    transition: transform var(--tv-base) var(--tv-ease), box-shadow var(--tv-base) var(--tv-ease);
}
body.nav-fixed .locwrap:hover,
body.nav-fixed .tour-card:hover,
body.nav-fixed .subposts:hover,
body.nav-fixed .service-thumb:hover,
body.nav-fixed .team-thumb:hover {
    transform: translateY(-4px);
    box-shadow: var(--tv-shadow-lg);
}
body.nav-fixed .card {
    border-radius: var(--tv-r-lg);
    border: 1px solid var(--tv-line);
    box-shadow: var(--tv-shadow-sm);
}

/* ==========================================================================
   7. Badges, chips, ratings, price
   ========================================================================== */

.tv-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--tv-font-body);
    font-size: var(--tv-text-xs); font-weight: 700;
    letter-spacing: .01em;
    padding: 5px 11px;
    border-radius: var(--tv-r-full);
    background: var(--tv-canvas-2); color: var(--tv-ink-700);
    line-height: 1.35;
}
.tv-badge svg { width: 13px; height: 13px; }
.tv-badge--glass {
    background: rgba(255, 255, 255, .92);
    color: var(--tv-ink-900);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(10, 22, 38, .16);
}
.tv-badge--brand { background: var(--tv-brand-50); color: var(--tv-brand-700); }
.tv-badge--gold  { background: var(--tv-gold-50); color: var(--tv-gold-text); }
.tv-badge--coral { background: var(--tv-coral-solid); color: #fff; }
.tv-badge--teal  { background: var(--tv-teal-50); color: var(--tv-teal-text); }
.tv-badge--solid { background: var(--tv-brand-600); color: #fff; }
.tv-badge--dark  { background: rgba(10, 22, 38, .72); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Status pill for bookings. */
.tv-status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--tv-text-xs); font-weight: 700; padding: 5px 11px; border-radius: var(--tv-r-full); }
.tv-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tv-status--paid, .tv-status--confirmed, .tv-status--completed, .tv-status--success { background: var(--tv-teal-50); color: var(--tv-teal-text); }
.tv-status--pending, .tv-status--processing { background: var(--tv-gold-50); color: var(--tv-gold-text); }
.tv-status--cancelled, .tv-status--failed, .tv-status--declined { background: var(--tv-red-50); color: var(--tv-red-600); }
.tv-status--upcoming { background: var(--tv-brand-50); color: var(--tv-brand-700); }

/* Rating: score chip + stars. Never render a grey "0.0" — see .tv-rating--none */
.tv-rating { display: inline-flex; align-items: center; gap: var(--tv-2); font-size: var(--tv-text-sm); }
.tv-rating__score {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 26px; padding: 0 8px;
    background: var(--tv-brand-600); color: #fff;
    font-weight: 700; font-size: var(--tv-text-sm);
    border-radius: var(--tv-r-sm) var(--tv-r-sm) var(--tv-r-sm) 2px;
}
.tv-rating__stars { display: inline-flex; gap: 1px; color: var(--tv-gold-500); }
.tv-rating__stars svg { width: 14px; height: 14px; }
.tv-rating__stars .is-empty { color: var(--tv-ink-200); }
.tv-rating__count { color: var(--tv-ink-400); font-size: var(--tv-text-sm); }
.tv-rating--none { color: var(--tv-ink-400); font-size: var(--tv-text-sm); font-weight: 500; }

/* Retune the vendor's star rows (`.comprating`) that legacy pages still use. */
body.nav-fixed .comprating .fa-star { font-size: 13px; }
body.nav-fixed .comprating .text-muted { color: var(--tv-ink-200) !important; }
body.nav-fixed .comprating .text-warning { color: var(--tv-gold-500) !important; }

/* Price */
.tv-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.tv-price__from { font-size: var(--tv-text-xs); color: var(--tv-ink-400); font-weight: 500; }
.tv-price__amount {
    font-family: var(--tv-font-display);
    font-size: var(--tv-text-xl); font-weight: 800;
    color: var(--tv-ink-900); letter-spacing: -0.02em;
}
.tv-price__unit { font-size: var(--tv-text-xs); color: var(--tv-ink-400); font-weight: 500; }
.tv-price__was { font-size: var(--tv-text-sm); color: var(--tv-ink-300); text-decoration: line-through; }

/* Meta row: location, guests, duration */
.tv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tv-2) var(--tv-4); font-size: var(--tv-text-sm); color: var(--tv-ink-500); }
.tv-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.tv-meta__item svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--tv-ink-400); }

/* Save / favourite button (localStorage-backed, see travelin.js) */
.tv-save {
    position: relative; z-index: 3;
    width: 44px; height: 44px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 0; border-radius: 50%;
    color: var(--tv-ink-600); cursor: pointer;
    box-shadow: 0 2px 10px rgba(10, 22, 38, .18);
    transition: transform var(--tv-fast) var(--tv-ease), color var(--tv-fast) var(--tv-ease), background-color var(--tv-fast) var(--tv-ease);
}
.tv-save svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.tv-save:hover { transform: scale(1.09); color: var(--tv-coral-500); }
.tv-save.is-saved { color: var(--tv-coral-500); }
.tv-save.is-saved svg { fill: currentColor; stroke: currentColor; }
.tv-save.is-saved { animation: tv-pop var(--tv-base) var(--tv-ease); }
@keyframes tv-pop { 0% { transform: scale(1); } 45% { transform: scale(1.28); } 100% { transform: scale(1); } }

/* ==========================================================================
   8. Alerts
   ========================================================================== */

.tv-alert,
body.nav-fixed .alert {
    display: flex; align-items: flex-start; gap: var(--tv-3);
    padding: var(--tv-4);
    border: 1px solid var(--tv-line);
    border-inline-start: 3px solid var(--tv-brand-500);
    border-radius: var(--tv-r-md);
    background: var(--tv-surface);
    box-shadow: var(--tv-shadow-xs);
    font-size: var(--tv-text-base);
    color: var(--tv-ink-700);
    margin-bottom: var(--tv-4);
}
.tv-alert__icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }
.tv-alert__body { flex: 1 1 auto; min-width: 0; }
.tv-alert__title { font-weight: 700; color: var(--tv-ink-900); margin-bottom: 2px; }
.tv-alert--success, body.nav-fixed .alert-success { border-inline-start-color: var(--tv-teal-500); background: var(--tv-teal-50); border-color: rgba(15,168,142,.22); color: #0A6B5A; }
.tv-alert--warning, body.nav-fixed .alert-warning { border-inline-start-color: var(--tv-gold-500); background: var(--tv-gold-50); border-color: rgba(245,165,36,.26); color: #7A4F02; }
.tv-alert--danger,  body.nav-fixed .alert-danger  { border-inline-start-color: var(--tv-red-500); background: var(--tv-red-50); border-color: rgba(229,72,77,.22); color: #A32B2F; }
.tv-alert--info,    body.nav-fixed .alert-info    { border-inline-start-color: var(--tv-brand-500); background: var(--tv-brand-50); border-color: rgba(18,104,179,.20); color: var(--tv-brand-800); }
body.nav-fixed .alert .btn-close { margin-inline-start: auto; }

/* ==========================================================================
   9. Empty states and skeletons
   ========================================================================== */

.tv-empty {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: clamp(2.5rem, 6vw, 4.5rem) var(--tv-5);
    background: var(--tv-canvas);
    border: 1px dashed var(--tv-line);
    border-radius: var(--tv-r-xl);
}
.tv-empty__icon {
    width: 64px; height: 64px; margin-bottom: var(--tv-4);
    display: grid; place-items: center;
    border-radius: 50%; background: var(--tv-surface);
    color: var(--tv-brand-500); box-shadow: var(--tv-shadow-sm);
}
.tv-empty__icon svg { width: 28px; height: 28px; }
.tv-empty__title { font-size: var(--tv-text-xl); margin-bottom: var(--tv-2); }
.tv-empty h2.tv-empty__title, .tv-empty h4.tv-empty__title { font-size: var(--tv-text-xl); }
.tv-empty__text { color: var(--tv-ink-500); max-width: 46ch; margin: 0 0 var(--tv-5); }

/* Inline loading indicator for progressive loads. */
.tv-loading {
    display: flex; align-items: center; justify-content: center; gap: var(--tv-3);
    padding: var(--tv-5); margin-bottom: var(--tv-4);
    color: var(--tv-ink-500); font-size: var(--tv-text-base); font-weight: 500;
}
.tv-loading__spinner {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid var(--tv-line); border-top-color: var(--tv-brand-500);
    animation: tv-spin .7s linear infinite;
}

.tv-skeleton {
    background: linear-gradient(90deg, var(--tv-canvas-2) 25%, #F7F9FC 37%, var(--tv-canvas-2) 63%);
    background-size: 400% 100%;
    animation: tv-shimmer 1.3s ease-in-out infinite;
    border-radius: var(--tv-r-sm);
}
@keyframes tv-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ==========================================================================
   10. Header
   ========================================================================== */

body.nav-fixed .header-wrap {
    background: var(--tv-surface);
    border-bottom: 1px solid var(--tv-line);
    box-shadow: none;
    transition: box-shadow var(--tv-base) var(--tv-ease), background-color var(--tv-base) var(--tv-ease);
}
body.nav-fixed .header-wrap.is-stuck { box-shadow: var(--tv-shadow-md); }

body.nav-fixed .header-wrap .navbar-nav .nav-link {
    font-family: var(--tv-font-body);
    font-size: var(--tv-text-base);
    font-weight: 600;
    color: var(--tv-ink-700);
    padding: 10px 14px;
    border-radius: var(--tv-r-sm);
    position: relative;
    transition: color var(--tv-fast) var(--tv-ease), background-color var(--tv-fast) var(--tv-ease);
}
body.nav-fixed .header-wrap .navbar-nav .nav-link:hover { color: var(--tv-brand-600); background: var(--tv-brand-50); }

/* Current page gets an underline, not just a colour — colour alone is not a cue. */
body.nav-fixed .header-wrap .navbar-nav .nav-link.is-current { color: var(--tv-brand-700); }
body.nav-fixed .header-wrap .navbar-nav .nav-link.is-current::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
    height: 2px; border-radius: 2px; background: var(--tv-gold-500);
}

/* Cap the mark on BOTH axes. Sizing by height alone couples the header
   layout to whatever aspect ratio the uploaded logo happens to have: when the
   wordmark was cropped free of its tagline the ratio went from 3.9:1 to 5.9:1
   and the same 46px height became ~270px wide, pushing the menu button off a
   320px screen. */
body.nav-fixed .header-wrap .logo img { max-height: 42px; max-width: 200px; width: auto; height: auto; object-fit: contain; }
/* The anchor around the mark was `display:inline`, so its hit box collapsed to
   a 19px line box regardless of how tall the image was drawn. */
body.nav-fixed .header-wrap .logo > a { display: inline-flex; align-items: center; min-height: 44px; }

/* Three tracks: brand | menu | rail. The brand can no longer grow into the
   menu button, which is what made the button unreachable on a 390px screen. */
.tv-header__bar {
    display: flex; align-items: center; gap: var(--tv-4);
    min-height: var(--tv-header-h);
}
.tv-header__brand { flex: 0 1 auto; min-width: 0; }
.tv-header__brand .logo { margin: 0; }
.tv-header__nav { flex: 1 1 auto; padding: 0; min-width: 0; }
.tv-header__rail { flex: 0 0 auto; display: flex; align-items: center; gap: var(--tv-2); margin-inline-start: auto; }
/* Without this the login/register pills are the first thing flex shrinks, and
   they collapse to an empty coloured lozenge with the label clipped away. */
.tv-header__rail > * { flex: 0 0 auto; }
.tv-header__menu {
    display: flex; align-items: center; gap: 0; margin: 0; padding: 0;
    flex-wrap: nowrap;
    /* Arabic labels are longer than the English ones and overran the rail at
       1440px, painting menu text straight over the login buttons. `min-width:0`
       is what actually lets a flex item shrink below its content and hand the
       overflow to the scroller — without it `overflow-x` never engages. */
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
@media (min-width: 992px) {
    body.nav-fixed .header-wrap .navbar-collapse { min-width: 0; }
}
.tv-header__menu::-webkit-scrollbar { display: none; }
/* A hard clip at the scroll edge leaves half a glyph sitting next to the login
   buttons and reads as a rendering fault. Fade it instead. */
@media (min-width: 992px) {
    .tv-header__menu {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
    }
}
/* A wrapped "About Us" makes the whole bar two lines tall. */
body.nav-fixed .header-wrap .tv-header__menu > .nav-item > .nav-link { white-space: nowrap; }

@media (min-width: 992px) and (max-width: 1499.98px) {
    /* Eight CMS menu items plus the rail is tight right up to 1500px — at
       1440 the last label was disappearing into the scroller's fade. Buy the
       room back from padding rather than dropping items or wrapping. */
    body.nav-fixed .header-wrap .navbar-nav .nav-link { padding: 10px 9px; font-size: var(--tv-text-sm); }
    body.nav-fixed .header-wrap .logo img { max-height: 36px; max-width: 168px; }
}

/* Language switcher: a quiet control, not a Bootstrap outline button. */
body.nav-fixed .language-switcher .dropdown-toggle {
    min-height: 40px; padding: 8px 12px;
    border: 1.5px solid var(--tv-line); border-radius: var(--tv-r-full);
    background: var(--tv-surface);
    font-size: var(--tv-text-sm); font-weight: 600; color: var(--tv-ink-700);
    box-shadow: none;
}
body.nav-fixed .language-switcher .dropdown-toggle:hover { background: var(--tv-canvas); border-color: var(--tv-ink-200); }
body.nav-fixed .language-switcher .dropdown-menu {
    border: 1px solid var(--tv-line); border-radius: var(--tv-r-lg);
    box-shadow: var(--tv-shadow-lg); padding: var(--tv-2);
}
body.nav-fixed .language-switcher .dropdown-item { border-radius: var(--tv-r-sm); font-size: var(--tv-text-base); }
body.nav-fixed .language-switcher .dropdown-item.active { background: var(--tv-brand-50); color: var(--tv-brand-700); font-weight: 600; }

/* ---- Mobile drawer ------------------------------------------------------- */

.tv-drawer__head { display: none; }
.tv-drawer__actions { display: none; }

@media (max-width: 991.98px) {
    .tv-header__bar { gap: var(--tv-2); min-height: 64px; }
    .tv-header__nav { flex: 0 0 auto; }
    body.nav-fixed .header-wrap .logo img { max-height: 34px; max-width: 160px; }
    /* The full language name eats the bar; the flag carries the meaning. */
    body.nav-fixed .language-switcher .language-name { display: none; }
    body.nav-fixed .language-switcher .dropdown-toggle { padding: 8px 10px; }
    body.nav-fixed .language-switcher .dropdown-toggle::after { display: none; }
    .tv-header__login, .tv-header__register { display: none; }

    /* Bootstrap's collapse target becomes a right-hand drawer. Using the
       `.show` class it already toggles means no extra JS and no second
       state to keep in sync. */
    body.nav-fixed .header-wrap .navbar-collapse {
        position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 1070;
        width: min(86vw, 340px);
        display: flex !important; flex-direction: column;
        padding: var(--tv-4) var(--tv-5) calc(var(--tv-6) + var(--tv-safe-b));
        background: var(--tv-surface);
        box-shadow: var(--tv-shadow-xl);
        overflow-y: auto;
        transform: translateX(105%);
        visibility: hidden;
        transition: transform var(--tv-slow) var(--tv-ease-out), visibility var(--tv-slow);
    }
    html[dir="rtl"] body.nav-fixed .header-wrap .navbar-collapse { transform: translateX(-105%); }
    body.nav-fixed .header-wrap .navbar-collapse.show,
    body.nav-fixed .header-wrap .navbar-collapse.collapsing.show {
        transform: translateX(0); visibility: visible;
    }
    /* Bootstrap animates height on .collapsing; we animate transform instead. */
    body.nav-fixed .header-wrap .navbar-collapse.collapsing { height: auto !important; transition: transform var(--tv-slow) var(--tv-ease-out); }

    .tv-drawer__head {
        display: flex; align-items: center; justify-content: space-between;
        padding-bottom: var(--tv-4); margin-bottom: var(--tv-2);
        border-bottom: 1px solid var(--tv-line-soft);
    }
    .tv-drawer__title { font-family: var(--tv-font-display); font-weight: 700; font-size: var(--tv-text-lg); color: var(--tv-ink-900); }
    .tv-drawer__close {
        width: 44px; height: 44px; display: grid; place-items: center;
        border: 0; border-radius: 50%; background: var(--tv-canvas-2); color: var(--tv-ink-600); cursor: pointer;
    }
    .tv-drawer__close svg { width: 18px; height: 18px; }

    .tv-header__menu { flex-direction: column; align-items: stretch; gap: 0; }
    body.nav-fixed .header-wrap .navbar-nav .nav-link {
        padding: 13px 12px; border-radius: var(--tv-r-md);
        font-size: var(--tv-text-md);
    }
    body.nav-fixed .header-wrap .navbar-nav .nav-link.is-current::after { display: none; }
    body.nav-fixed .header-wrap .navbar-nav .nav-link.is-current { background: var(--tv-brand-50); }
    body.nav-fixed .header-wrap .navbar-nav .dropdown-menu {
        position: static !important; box-shadow: none; border: 0;
        padding-inline-start: var(--tv-4); transform: none !important;
    }

    .tv-drawer__actions {
        display: grid; gap: var(--tv-2);
        margin-top: auto; padding-top: var(--tv-5);
        border-top: 1px solid var(--tv-line-soft);
    }
}

.tv-drawer-scrim {
    position: fixed; inset: 0; z-index: 1065;
    background: var(--tv-overlay);
    opacity: 0;
    transition: opacity var(--tv-base) var(--tv-ease);
}
.tv-drawer-scrim.is-open { opacity: 1; }
body.tv-drawer-open { overflow: hidden; }

/* Matched on .header-wrap, not .navbar-light: the button now sits in the
   right-hand rail, outside the Bootstrap navbar wrapper. */
body.nav-fixed .header-wrap .navbar-toggler {
    width: 44px; height: 44px; padding: 0;
    display: none; align-items: center; justify-content: center;
    border: 1.5px solid var(--tv-line);
    border-radius: var(--tv-r-md);
    color: var(--tv-ink-800);
    background: var(--tv-surface);
    box-shadow: none;
    flex: 0 0 auto;
}
body.nav-fixed .header-wrap .navbar-toggler svg { width: 20px; height: 20px; }
body.nav-fixed .header-wrap .navbar-toggler:hover { background: var(--tv-canvas); }
@media (max-width: 991.98px) {
    body.nav-fixed .header-wrap .navbar-toggler { display: inline-flex; }
}

/* Account dropdown */
body.nav-fixed .header-wrap .dropdown-menu {
    border: 1px solid var(--tv-line);
    border-radius: var(--tv-r-lg);
    box-shadow: var(--tv-shadow-lg);
    padding: var(--tv-2);
    min-width: 232px;
}
body.nav-fixed .header-wrap .dropdown-menu .nav-link {
    display: flex; align-items: center; gap: var(--tv-3);
    padding: 10px 12px; border-radius: var(--tv-r-sm);
    font-size: var(--tv-text-base); color: var(--tv-ink-700);
}
body.nav-fixed .header-wrap .dropdown-menu .nav-link:hover { background: var(--tv-canvas); color: var(--tv-brand-700); }
body.nav-fixed .header-wrap .dropdown-menu .nav-link i { width: 18px; text-align: center; color: var(--tv-ink-400); }
body.nav-fixed .header-wrap #userdata img {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--tv-line);
}

/* ==========================================================================
   11. Page header (inner pages)
   The vendor's `.pageheader` was a flat photo strip with a giant centred h1.
   ========================================================================== */

body.nav-fixed .pageheader {
    position: relative;
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
    background-color: var(--tv-brand-900);
    background-size: cover;
    background-position: center;
    color: #fff;
    isolation: isolate;
}
body.nav-fixed .pageheader::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(115deg, rgba(5, 43, 74, .92) 0%, rgba(8, 59, 102, .72) 46%, rgba(10, 79, 143, .48) 100%);
}
/* The vendor centred the title but not the breadcrumb above it, which reads as
   a mistake. One alignment for the whole block. */
body.nav-fixed .pageheader h1 {
    color: #fff; font-size: var(--tv-h1); margin: 0;
    text-align: start;
    text-shadow: 0 2px 20px rgba(5, 43, 74, .4);
}
body.nav-fixed .pageheader p {
    color: rgba(255, 255, 255, .82); font-size: var(--tv-text-lg);
    margin: var(--tv-3) 0 0; max-width: 60ch;
    text-align: start; font-weight: 400;
}

.tv-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--tv-text-sm); margin-bottom: var(--tv-3); }
.tv-crumbs a { color: rgba(255, 255, 255, .78); font-weight: 500;
    display: inline-flex; align-items: center; min-height: 44px; }
.tv-crumbs a:hover { color: #fff; }
.tv-crumbs__sep { color: rgba(255, 255, 255, .42); }
.tv-crumbs__current { color: #fff; font-weight: 600; }
.tv-crumbs--dark a { color: var(--tv-ink-500); }
.tv-crumbs--dark a:hover { color: var(--tv-brand-600); }
.tv-crumbs--dark .tv-crumbs__current { color: var(--tv-ink-900); }
.tv-crumbs--dark .tv-crumbs__sep { color: var(--tv-ink-300); }

body.nav-fixed .innerpagewrap { padding-block: var(--tv-section-y); background: var(--tv-surface); }

/* ==========================================================================
   12. Horizontal rails — how catalogue rows behave on a phone
   Desktop: a grid. Phone: an edge-to-edge swipe rail with snap points, which
   is what a native app does and what a wrapped 2-col grid never feels like.
   ========================================================================== */

.tv-grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.tv-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tv-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tv-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tv-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tv-grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

/* A rail is a three-up grid on a desktop and a swipe strip on a phone. Left as
   `grid-auto-flow: column` at every width it puts six cards in a single 1240px
   row, 190px each, and every card title wraps to four lines. */
.tv-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--tv-5);
}
.tv-rail--4up { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 991.98px) {
    .tv-grid--3, .tv-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tv-grid--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tv-rail, .tv-rail--4up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .tv-grid--2, .tv-grid--3, .tv-grid--4 { grid-template-columns: minmax(0, 1fr); }
    /* Six across becomes two, not three: at 390px a third of the width leaves
       no room for a city name plus its listing count. */
    .tv-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tv-3); }
    .tv-grid { gap: var(--tv-4); }

    /* Rails break out of the container and scroll. */
    .tv-rail, .tv-rail--4up {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 78%;
        gap: var(--tv-3);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-inline: calc(var(--tv-gutter) * -1);
        padding-inline: var(--tv-gutter);
        padding-bottom: var(--tv-2);
    }
    .tv-rail::-webkit-scrollbar { display: none; }
    .tv-rail > * { scroll-snap-align: start; }
    .tv-rail--narrow { grid-auto-columns: 42%; }
    .tv-rail--wide { grid-auto-columns: 88%; }
}

/* ==========================================================================
   13. Bottom navigation (mobile app shell)
   Hidden on desktop, and hidden inside the SuperApp WebView where the host
   already draws its own tab bar — see travelin.js.
   ========================================================================== */

.tv-bottomnav {
    position: fixed;
    inset-inline: 0; bottom: 0; z-index: 1040;
    display: none;
    padding: 6px var(--tv-2) calc(6px + var(--tv-safe-b));
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-top: 1px solid rgba(10, 22, 38, .07);
    box-shadow: 0 -4px 24px rgba(10, 22, 38, .07);
}
/* Browsers without backdrop-filter get a solid bar rather than a see-through mess. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .tv-bottomnav { background: var(--tv-surface); }
}

.tv-bottomnav__list {
    display: grid; grid-template-columns: repeat(5, 1fr);
    align-items: stretch; gap: 2px;
    margin: 0; padding: 0; list-style: none;
    max-width: 560px; margin-inline: auto;
}
.tv-bottomnav__item { display: flex; }
.tv-bottomnav__link {
    position: relative;
    flex: 1 1 auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    padding: 6px 2px 4px;
    min-height: 50px;
    border: 0; background: none;
    font-family: var(--tv-font-body);
    font-size: 10.5px; font-weight: 600; letter-spacing: -0.01em;
    color: var(--tv-ink-400);
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color var(--tv-base) var(--tv-ease);
}
.tv-bottomnav__link:hover { color: var(--tv-ink-600); }
.tv-bottomnav__icon {
    position: relative;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    transition: transform var(--tv-base) var(--tv-ease);
}
.tv-bottomnav__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tv-bottomnav__label { display: block; line-height: 1.1; }

/* Active: brand ink, a filled icon, a lift, and a pill behind it. */
.tv-bottomnav__link.is-active { color: var(--tv-brand-600); }
.tv-bottomnav__link.is-active .tv-bottomnav__icon { transform: translateY(-1px); }
.tv-bottomnav__link.is-active .tv-bottomnav__icon::before {
    content: "";
    position: absolute; inset: -5px -12px;
    border-radius: var(--tv-r-full);
    background: var(--tv-brand-50);
    animation: tv-nav-pill var(--tv-base) var(--tv-ease);
    z-index: -1;
}
@keyframes tv-nav-pill {
    from { transform: scale(.6); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.tv-bottomnav__link:active .tv-bottomnav__icon { transform: scale(.88); }

/* Unread / saved count */
.tv-bottomnav__dot {
    position: absolute; top: -1px; inset-inline-end: -3px;
    min-width: 16px; height: 16px; padding: 0 4px;
    display: none; align-items: center; justify-content: center;
    background: var(--tv-coral-500); color: #fff;
    font-size: 9.5px; font-weight: 800; line-height: 1;
    border-radius: var(--tv-r-full);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}
.tv-bottomnav__dot.is-visible { display: flex; }

@media (max-width: 991.98px) {
    body.nav-fixed:not(.tv-embedded) .tv-bottomnav { display: block; }
    /* Reserve the bar's height so fixed CTAs and footers clear it. */
    body.nav-fixed:not(.tv-embedded) { padding-bottom: calc(var(--tv-bottomnav-h) + var(--tv-safe-b)); }
    .tv-hide-desktop { display: block; }
    .tv-only-mobile { display: block; }
    .tv-hide-mobile { display: none !important; }
}

/* ==========================================================================
   14. Sheets — Explore and Favorites open here, no route required
   ========================================================================== */

.tv-sheet {
    position: fixed; inset: 0; z-index: 1060;
    display: flex; align-items: flex-end;
    visibility: hidden;
    pointer-events: none;
}
.tv-sheet.is-open { visibility: visible; pointer-events: auto; }

.tv-sheet__scrim {
    position: absolute; inset: 0;
    background: var(--tv-overlay);
    opacity: 0;
    transition: opacity var(--tv-base) var(--tv-ease);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.tv-sheet.is-open .tv-sheet__scrim { opacity: 1; }

.tv-sheet__panel {
    position: relative;
    width: 100%; max-height: 88vh;
    display: flex; flex-direction: column;
    background: var(--tv-surface);
    border-radius: var(--tv-r-2xl) var(--tv-r-2xl) 0 0;
    box-shadow: var(--tv-shadow-xl);
    transform: translateY(100%);
    transition: transform var(--tv-slow) var(--tv-ease-out);
    padding-bottom: var(--tv-safe-b);
}
.tv-sheet.is-open .tv-sheet__panel { transform: translateY(0); }

.tv-sheet__grip {
    width: 40px; height: 4px; border-radius: 2px;
    background: var(--tv-ink-200);
    margin: 10px auto 2px;
    flex: 0 0 auto;
}
.tv-sheet__head {
    display: flex; align-items: center; justify-content: space-between; gap: var(--tv-3);
    padding: var(--tv-3) var(--tv-5) var(--tv-3);
    flex: 0 0 auto;
}
.tv-sheet__title { font-size: var(--tv-text-xl); margin: 0; }
.tv-sheet__close {
    width: 44px; height: 44px; flex: 0 0 auto;
    display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: var(--tv-canvas-2); color: var(--tv-ink-600);
    cursor: pointer;
    transition: background-color var(--tv-fast) var(--tv-ease);
}
.tv-sheet__close:hover { background: var(--tv-line); color: var(--tv-ink-900); }
.tv-sheet__close svg { width: 18px; height: 18px; }
.tv-sheet__body {
    padding: 0 var(--tv-5) var(--tv-6);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

body.tv-sheet-open { overflow: hidden; }

/* Explore tiles inside the sheet */
.tv-explore-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--tv-3); }
.tv-explore-tile {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 108px; padding: var(--tv-4);
    border-radius: var(--tv-r-lg);
    background: var(--tv-canvas); border: 1px solid var(--tv-line);
    color: var(--tv-ink-900); overflow: hidden;
    transition: transform var(--tv-fast) var(--tv-ease), box-shadow var(--tv-base) var(--tv-ease);
}
.tv-explore-tile:hover { transform: translateY(-2px); box-shadow: var(--tv-shadow-md); color: var(--tv-ink-900); }
.tv-explore-tile:active { transform: scale(.98); }
.tv-explore-tile__icon {
    width: 38px; height: 38px; margin-bottom: var(--tv-3);
    display: grid; place-items: center;
    border-radius: var(--tv-r-md);
    background: var(--tv-surface); color: var(--tv-brand-600);
    box-shadow: var(--tv-shadow-xs);
}
.tv-explore-tile__icon svg { width: 20px; height: 20px; }
.tv-explore-tile__title { font-family: var(--tv-font-display); font-weight: 700; font-size: var(--tv-text-md); }
.tv-explore-tile__sub { font-size: var(--tv-text-xs); color: var(--tv-ink-500); }

/* Destination thumbnails inside a sheet stay 4-up even on a narrow phone —
   the shared grid classes collapse to one column at this width. */
.tv-sheet-dests { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--tv-2); }
.tv-sheet-dests .tv-dest__name { font-size: 11px; line-height: 1.2; }
.tv-sheet-dests .tv-dest__body { padding: var(--tv-2) 8px; }
@media (max-width: 359.98px) { .tv-sheet-dests { grid-template-columns: repeat(3, 1fr); } }

/* Saved item row */
.tv-saved-item {
    display: flex; gap: var(--tv-3); align-items: center;
    padding: var(--tv-3) 0;
    border-bottom: 1px solid var(--tv-line-soft);
}
.tv-saved-item:last-child { border-bottom: 0; }
.tv-saved-item__img {
    width: 68px; height: 68px; flex: 0 0 auto;
    border-radius: var(--tv-r-md); object-fit: cover; background: var(--tv-canvas-2);
}
.tv-saved-item__body { flex: 1 1 auto; min-width: 0; }
.tv-saved-item__title { font-family: var(--tv-font-display); font-weight: 700; font-size: var(--tv-text-md); color: var(--tv-ink-900); display: block; }
.tv-saved-item__meta { font-size: var(--tv-text-sm); color: var(--tv-ink-500); }
.tv-saved-item__remove {
    flex: 0 0 auto; width: 34px; height: 34px;
    display: grid; place-items: center;
    border: 0; border-radius: 50%; background: transparent; color: var(--tv-ink-400);
    cursor: pointer; transition: background-color var(--tv-fast) var(--tv-ease), color var(--tv-fast) var(--tv-ease);
}
.tv-saved-item__remove:hover { background: var(--tv-red-50); color: var(--tv-red-500); }
.tv-saved-item__remove svg { width: 17px; height: 17px; }

/* ==========================================================================
   15. Toast
   ========================================================================== */

.tv-toasts {
    position: fixed; z-index: 1080;
    inset-inline: 0; bottom: calc(var(--tv-bottomnav-h) + var(--tv-safe-b) + var(--tv-4));
    display: flex; flex-direction: column; align-items: center; gap: var(--tv-2);
    pointer-events: none; padding-inline: var(--tv-4);
}
@media (min-width: 992px) { .tv-toasts { bottom: var(--tv-6); } }
/* With a sheet open the toast would land in the middle of the sheet's content;
   lift it clear of the panel instead. */
body.tv-sheet-open .tv-toasts { bottom: calc(88vh + var(--tv-3)); }
.tv-toast {
    display: flex; align-items: center; gap: var(--tv-2);
    max-width: 420px;
    padding: 11px 18px;
    background: var(--tv-ink-900); color: #fff;
    font-size: var(--tv-text-base); font-weight: 500;
    border-radius: var(--tv-r-full);
    box-shadow: var(--tv-shadow-lg);
    animation: tv-toast-in var(--tv-base) var(--tv-ease);
}
.tv-toast svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--tv-teal-500); }
.tv-toast.is-leaving { animation: tv-toast-out var(--tv-base) var(--tv-ease) forwards; }
@keyframes tv-toast-in  { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes tv-toast-out { to { opacity: 0; transform: translateY(6px) scale(.96); } }

/* ==========================================================================
   16. Footer
   ========================================================================== */

body.nav-fixed footer {
    background: var(--tv-brand-900);
    color: rgba(255, 255, 255, .70);
    padding-block: clamp(2.5rem, 5vw, 4rem) var(--tv-6);
    font-size: var(--tv-text-base);
}
body.nav-fixed footer a { color: rgba(255, 255, 255, .74); }
/* Footer link rows measured 19px tall and the social icons 40px. Padding
   rather than a fixed height, so a link that wraps to two lines grows instead
   of overlapping its neighbour. The vendor's `.quicklinks li a` outranks a
   bare `footer a`, so these have to name the same classes. */
body.nav-fixed footer .quicklinks li a,
body.nav-fixed footer .footerlinks li a,
body.nav-fixed footer ul li a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0;
}
body.nav-fixed footer a:hover { color: #fff; }
body.nav-fixed footer .footerlogo img { max-height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .95; }

body.nav-fixed footer .socialLinks { display: flex; flex-wrap: wrap; gap: var(--tv-2); }
body.nav-fixed footer .socialLinks a {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .82);
    transition: background-color var(--tv-fast) var(--tv-ease), transform var(--tv-fast) var(--tv-ease), color var(--tv-fast) var(--tv-ease);
}
body.nav-fixed footer .socialLinks a:hover {
    background: var(--tv-gold-500); color: var(--tv-ink-900);
    border-color: transparent; transform: translateY(-2px);
}

body.nav-fixed footer .quicklinks {
    display: flex; flex-wrap: wrap; gap: var(--tv-2) var(--tv-6);
    list-style: none; padding: 0;
}
body.nav-fixed footer .quicklinks a { font-weight: 500; }

body.nav-fixed footer .footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, .10);
    padding-top: var(--tv-5); margin-top: var(--tv-5);
    color: rgba(255, 255, 255, .52); font-size: var(--tv-text-sm);
}
body.nav-fixed footer .footer-copyright p { margin: 0; }

/* ==========================================================================
   17. Scroll reveal and motion
   Elements start hidden only once JS confirms it can reveal them — see the
   `tv-reveal-ready` class set by travelin.js. Without JS everything is visible.
   ========================================================================== */

.tv-reveal-ready [data-tv-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--tv-slow) var(--tv-ease-out), transform var(--tv-slow) var(--tv-ease-out);
    transition-delay: var(--tv-reveal-delay, 0ms);
}
.tv-reveal-ready [data-tv-reveal].is-revealed { opacity: 1; transform: none; }

/* Back-to-top */
.tv-totop {
    position: fixed; z-index: 1030;
    inset-inline-end: var(--tv-5);
    bottom: calc(var(--tv-bottomnav-h) + var(--tv-safe-b) + var(--tv-4));
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border: 1px solid var(--tv-line); border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: var(--tv-ink-700);
    box-shadow: var(--tv-shadow-md);
    opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: opacity var(--tv-base) var(--tv-ease), transform var(--tv-base) var(--tv-ease), color var(--tv-fast) var(--tv-ease);
    cursor: pointer;
}
.tv-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
/* A sticky action bar takes this corner. Sit above it rather than over the
   button — the back-to-top was drawing straight across "Select room". */
body.tv-has-stickybar .tv-totop {
    bottom: calc(var(--tv-bottomnav-h) + var(--tv-safe-b) + 72px + var(--tv-3));
}
body.tv-has-stickybar .tv-totop.is-visible { transform: none; }
.tv-totop:hover { color: var(--tv-brand-600); }
.tv-totop svg { width: 19px; height: 19px; }
@media (min-width: 992px) { .tv-totop { bottom: var(--tv-6); } }

@media (prefers-reduced-motion: reduce) {
    body.nav-fixed *,
    body.nav-fixed *::before,
    body.nav-fixed *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .tv-reveal-ready [data-tv-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   18. RTL
   Almost everything above uses logical properties, so this is only for the
   handful of places a transform or a fixed direction has to flip.
   ========================================================================== */

html[dir="rtl"] .tv-rail { direction: rtl; }
html[dir="rtl"] .tv-rating__score { border-radius: var(--tv-r-sm) var(--tv-r-sm) 2px var(--tv-r-sm); }
html[dir="rtl"] .tv-head__eyebrow::before { background: linear-gradient(270deg, var(--tv-gold-500), var(--tv-brand-500)); }

/* ==========================================================================
   19. Print — invoices and booking confirmations are printed constantly
   ========================================================================== */

@media print {
    .tv-bottomnav, .tv-totop, .tv-toasts, .tv-sheet,
    body.nav-fixed .header-wrap, body.nav-fixed footer,
    .tv-noprint { display: none !important; }
    body.nav-fixed { padding-bottom: 0; background: #fff; }
    .tv-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* ---- Progressive disclosure for long prose ------------------------------- */
/* Applied by travelin.js only when the block actually overflows. */
.tv-expand { position: relative; overflow: hidden; }
.tv-expand.is-clamped { max-height: var(--tv-expand-max, 520px); }
.tv-expand.is-clamped::after {
    content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 120px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--tv-surface) 88%);
    pointer-events: none;
}
.tv-expand__toggle {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: var(--tv-4); padding: 11px 20px;
    background: var(--tv-surface); color: var(--tv-brand-700);
    border: 1.5px solid var(--tv-line); border-radius: var(--tv-r-full);
    font-family: var(--tv-font-body);
    font-size: var(--tv-text-base); font-weight: 600;
    cursor: pointer;
    transition: background-color var(--tv-fast) var(--tv-ease), border-color var(--tv-fast) var(--tv-ease);
}
.tv-expand__toggle:hover { background: var(--tv-brand-50); border-color: var(--tv-brand-100); }
.tv-expand__toggle svg { width: 15px; height: 15px; transition: transform var(--tv-base) var(--tv-ease); }
.tv-expand__toggle.is-open svg { transform: rotate(180deg); }
/* On a canvas-coloured panel the fade has to match that surface, not white. */
.tv-section--canvas .tv-expand.is-clamped::after,
.tv-expand--canvas.is-clamped::after {
    background: linear-gradient(180deg, rgba(246,248,251,0) 0%, var(--tv-canvas) 88%);
}


/* Narrowest supported width: the brand yields before the controls do. */
@media (max-width: 374.98px) {
    body.nav-fixed .header-wrap .logo img { max-width: 132px; }
}


/* The locale switcher was a 37x40 button — below the 44px floor on both axes. */
body.nav-fixed .language-switcher .btn,
body.nav-fixed .language-switcher .dropdown-toggle {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
