/* ============================================================
   TourVila — shared styles · Modern Minimal
   Clean white base, Inter type, restrained accents, airy spacing.
   Tailwind handles utilities; this refines components, type, icons, motion.
   ============================================================ */

:root {
  --saffron: #F77F00;
  --saffron-dark: #D96A00;
  --teal: #0F766E;
  --teal-dark: #0A4F49;
  --gold: #C9A227;
  --ink: #18181B;
  --ink-soft: #71717A;
  --paper: #FFFFFF;
  --mist: #F4F4F5;
  --line: #E6E6E9;
}

html { scroll-behavior: smooth; scroll-padding-top: 124px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, .font-display { font-family: 'Inter', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
h1 { letter-spacing: -0.035em; line-height: 1.05; }
h2 { letter-spacing: -0.03em; line-height: 1.12; }
p { text-wrap: pretty; }
::selection { background: rgba(247,127,0,.16); }
a { text-underline-offset: 3px; }
*:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout ---------- */
.container-tv { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 768px) { .container-tv { padding-inline: 2.25rem; } }
/* Let grid/flex children shrink below their content's intrinsic width so long text
   wraps instead of forcing horizontal page overflow on small screens. */
.container-tv.grid > * { min-width: 0; }
/* Icon+text list rows (tips, "what you'll fit in") must wrap their text rather than
   run off-screen; key-value rows (justify-between) are intentionally left un-wrapped. */
li.flex.gap-2, li.flex.gap-3 { flex-wrap: wrap; }
/* Section sub-nav: center the links when they fit, scroll gracefully (no cut) when they don't */
.jumpnav-row { justify-content: safe center; }
.jumpnav-row > a { scroll-snap-align: start; }

/* ---------- Icons (SVG injected from main.js via [data-ico]) ---------- */
.ico { display: inline-flex; align-items: center; justify-content: center; line-height: 0; vertical-align: middle; }
.ico svg { width: 1em; height: 1em; display: block; stroke-width: 1.6; }
.ico-lg svg { width: 1.4em; height: 1.4em; }
.ico-logo svg { width: 1.45rem; height: 1.45rem; }

/* ---------- Buttons (flat, refined, lightly rounded) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.4rem; border-radius: .7rem; font-weight: 600; font-size: .92rem;
  letter-spacing: -0.005em; cursor: pointer; line-height: 1; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--saffron); color: #fff; box-shadow: 0 1px 2px rgba(24,24,27,.10); }
.btn-primary:hover { background: var(--saffron-dark); box-shadow: 0 6px 18px -8px rgba(247,127,0,.6); }
.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: #000; }
.btn-outline { border: 1.5px solid rgba(255,255,255,.85); color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Eyebrow / kicker ---------- */
.kicker { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: var(--saffron); }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55; display: inline-block; }
.kicker.justify-center { justify-content: center; }
.kicker.text-gold { color: var(--gold); }

/* ---------- Cards ---------- */
.tv-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(24,24,27,.03);
  transition: transform .3s cubic-bezier(.2,.6,.2,1), box-shadow .3s ease, border-color .3s ease; }
.tv-card:hover { transform: translateY(-4px); border-color: #d9d9de;
  box-shadow: 0 2px 6px rgba(24,24,27,.05), 0 24px 48px -28px rgba(24,24,27,.32); }
.card-img { aspect-ratio: 3 / 2; width: 100%; height: auto; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.tv-card:hover .card-img { transform: scale(1.05); }

/* ---------- Navbar ---------- */
#siteHeader { padding-block: .1rem; }
#siteHeader > .container-tv { min-height: 58px; }
.nav-link { position: relative; font-weight: 500; font-size: .92rem; color: var(--ink); transition: color .2s; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -7px; height: 2px; width: 0; background: var(--saffron); transition: width .25s ease; }
.nav-link:hover { color: var(--saffron); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--saffron); }
header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--line); }
/* Transparent header over a hero: keep brand + nav legible on the image */
#siteHeader:not(.scrolled)::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 110px; background: linear-gradient(180deg, rgba(9,9,11,.38), rgba(9,9,11,0)); pointer-events: none; z-index: -1; }
#siteHeader:not(.scrolled) .tv-brand .font-display { color: #fff; }
#siteHeader:not(.scrolled) .tv-brand .text-teal { color: rgba(255,255,255,.8); }
#siteHeader:not(.scrolled) .nav-link { color: #fff; }
#siteHeader:not(.scrolled) .nav-link:hover { color: var(--saffron-light, #FF9E40); }
#siteHeader:not(.scrolled) .nav-link::after { background: #fff; }
/* Pages whose top section is light (no dark hero image) keep dark, legible header text at the top */
body.light-top #siteHeader:not(.scrolled)::before { display: none; }
body.light-top #siteHeader:not(.scrolled) .tv-brand .font-display { color: var(--ink); }
body.light-top #siteHeader:not(.scrolled) .tv-brand .text-teal { color: var(--teal); }
body.light-top #siteHeader:not(.scrolled) .nav-link { color: var(--ink); }
body.light-top #siteHeader:not(.scrolled) .nav-link:hover { color: var(--saffron); }
body.light-top #siteHeader:not(.scrolled) .nav-link::after { background: var(--saffron); }

/* ---------- Pricing tier highlight ---------- */
/* overflow:visible so the "Most Popular" badge (which sits above the top edge) isn't clipped by the card's overflow-hidden; margin-top gives it room within the grid */
.tier-popular { position: relative; overflow: visible !important; margin-top: 14px; border: 1.5px solid var(--saffron); box-shadow: 0 20px 44px -26px rgba(247,127,0,.35); }
.tier-popular::before { content: "Most Popular"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: var(--saffron); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .08em; padding: .28rem 1rem; border-radius: 9999px; text-transform: uppercase; white-space: nowrap; box-shadow: 0 4px 10px -3px rgba(247,127,0,.5); }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font-weight: 600; color: var(--ink);
  width: 100%; text-align: left; background: transparent; border: 0; font-family: inherit; font-size: 1rem; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--ink-soft); }
.faq-item.open .faq-a { max-height: 460px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .3s ease; flex: 0 0 auto; color: var(--saffron); font-size: 1.5rem; line-height: 1; font-weight: 300; }

/* ---------- Scroll reveal ---------- */
/* Only hide for animation when JS is present; if JS fails, content stays visible (never blank) */
.tv-js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Top accent (hairline) ---------- */
.accent-bar { height: 3px; background: var(--saffron); }

/* ---------- Itinerary timeline ---------- */
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before { content: ""; position: absolute; left: .58rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--line); }
.timeline-day { position: relative; padding-bottom: 1.5rem; }
.timeline-day::before { content: ""; position: absolute; left: -2.2rem; top: .25rem; width: 13px; height: 13px; border-radius: 9999px;
  background: #fff; border: 3px solid var(--saffron); box-shadow: 0 0 0 4px rgba(247,127,0,.1); }

/* ---------- Cost calculator rows ---------- */
.calc-row { transition: opacity .2s ease; }
.calc-amount::-webkit-outer-spin-button, .calc-amount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-amount { -moz-appearance: textfield; }

/* ---------- Modal (retained for compatibility) ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(9,9,11,.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 60; padding: 1rem; }
.modal-backdrop.open { display: flex; }
.modal-card { background: #fff; border-radius: 1.25rem; max-width: 520px; width: 100%; max-height: 92vh; overflow-y: auto; animation: pop .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Mobile menu ---------- */
#mobileMenu { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
#mobileMenu.open { max-height: 560px; }

/* ---------- Utility ---------- */
.text-shadow { text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.no-scroll { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: .75rem; top: .6rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: .6rem; font-weight: 600; font-size: .9rem; transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: none; outline: 2px solid var(--saffron); }

/* ============================================================
   LIVE WIDGETS (live.js) — currency · weather · holidays · compare
   ============================================================ */

/* ---- Shared controls (steppers / segmented) ---- */
.tv-step { display: inline-flex; align-items: center; gap: .25rem; border: 1px solid var(--line); border-radius: .7rem; padding: .2rem; background: #fff; }
.tv-step button { width: 2rem; height: 2rem; border-radius: .5rem; font-size: 1.15rem; line-height: 1; color: var(--ink); background: var(--mist); border: 0; cursor: pointer; transition: background .15s, color .15s; }
.tv-step button:hover { background: var(--saffron); color: #fff; }
.tv-step-val { min-width: 3.4rem; text-align: center; font-size: .9rem; color: var(--ink); }
.tv-step-val b { font-weight: 700; }
.tv-seg { display: inline-flex; border: 1px solid var(--line); border-radius: .7rem; overflow: hidden; background: #fff; }
.tv-seg button { padding: .5rem .85rem; font-size: .82rem; font-weight: 600; color: var(--ink-soft); background: #fff; border: 0; cursor: pointer; transition: background .15s, color .15s; }
.tv-seg button + button { border-left: 1px solid var(--line); }
.tv-seg button.on { background: var(--saffron); color: #fff; }

/* ---- Currency switcher (floating) ---- */
.tv-cur-switch { position: fixed; left: 1rem; bottom: 1rem; z-index: 55; display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 9999px; padding: .5rem .9rem;
  box-shadow: 0 6px 24px -10px rgba(24,24,27,.4); backdrop-filter: saturate(150%) blur(8px); font-size: .82rem; color: var(--ink); max-width: calc(100vw - 2rem); }
.tv-cur-switch > svg { width: 1.05rem; height: 1.05rem; color: var(--saffron); flex: 0 0 auto; }
.tv-cur-lab { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-soft); white-space: nowrap; }
.tv-cur-switch select { font-weight: 700; color: var(--ink); background: var(--mist); border: 1px solid var(--line); border-radius: .55rem; padding: .25rem .5rem; cursor: pointer; outline: none; }
.tv-cur-switch select:focus { border-color: var(--saffron); }
.tv-cur-note { color: var(--ink-soft); font-size: .7rem; white-space: nowrap; border-left: 1px solid var(--line); padding-left: .6rem; }
@media (max-width: 640px) { .tv-cur-note { display: none; } .tv-cur-switch { padding: .45rem .7rem; } }

/* ---- Weather ---- */
.tv-wx { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(24,24,27,.03); }
.tv-wx-load { padding: 1.5rem; text-align: center; color: var(--ink-soft); font-size: .9rem; }
.tv-wx-head { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between;
  padding: 1.15rem 1.35rem; background: linear-gradient(120deg, rgba(247,127,0,.07), rgba(15,118,110,.06)); border-bottom: 1px solid var(--line); }
.tv-wx-now { display: flex; align-items: center; gap: .85rem; }
.tv-wx-ni { color: var(--saffron); } .tv-wx-svg { width: 2.6rem; height: 2.6rem; display: block; }
.tv-wx-day .tv-wx-svg { width: 1.7rem; height: 1.7rem; color: var(--ink-soft); }
.tv-wx-temp { font-family: 'Inter', sans-serif; font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.tv-wx-cond { font-size: .82rem; color: var(--ink-soft); margin-top: .2rem; }
.tv-wx-meta { display: flex; flex-direction: column; gap: .2rem; font-size: .78rem; color: var(--ink-soft); text-align: right; }
.tv-wx-live { display: inline-flex; align-items: center; gap: .35rem; color: var(--teal); font-weight: 600; }
.tv-wx-live i { width: .5rem; height: .5rem; border-radius: 9999px; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.6); animation: tvpulse 1.8s infinite; }
@keyframes tvpulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5);} 70% { box-shadow: 0 0 0 6px rgba(22,163,74,0);} 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0);} }
.tv-wx-days { display: grid; grid-template-columns: repeat(5, 1fr); }
.tv-wx-day { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .9rem .4rem; text-align: center; }
.tv-wx-day + .tv-wx-day { border-left: 1px solid var(--line); }
.tv-wx-dn { font-size: .72rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.tv-wx-hl { font-size: .8rem; color: var(--ink-soft); } .tv-wx-hl b { color: var(--ink); font-weight: 700; }
.tv-wx-aqi { align-self: flex-end; display: inline-flex; align-items: center; font-weight: 700; font-size: .72rem; color: #fff; background: var(--c, #16a34a); padding: .12rem .55rem; border-radius: 9999px; }
.tv-wx-sun { color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .tv-wx-live i { animation: none; } }

/* ---- Holidays / long weekends ---- */
.tv-hol-load { padding: 1rem; color: var(--ink-soft); font-size: .9rem; }
.tv-hol-item { display: flex; align-items: center; gap: .9rem; padding: .8rem .25rem; border-bottom: 1px solid var(--line); }
.tv-hol-item:last-child { border-bottom: 0; }
.tv-hol-date { flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: .7rem; background: var(--mist); display: grid; place-items: center; line-height: 1; }
.tv-hol-d { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.tv-hol-m { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--saffron); }
.tv-hol-body { flex: 1; min-width: 0; }
.tv-hol-name { font-weight: 600; color: var(--ink); font-size: .92rem; }
.tv-hol-sub { font-size: .76rem; color: var(--ink-soft); }
.tv-hol-badge { flex: 0 0 auto; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .28rem .6rem; border-radius: 9999px; background: var(--mist); color: var(--ink-soft); }
.tv-hol-badge.is-lw { background: rgba(247,127,0,.12); color: var(--saffron-dark); }
.tv-hol-check { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: 0 .25rem .9rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.tv-hol-clbl { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.tv-hol-inputs { display: inline-flex; align-items: center; gap: .4rem; }
.tv-hol-to { font-size: .8rem; color: var(--ink-soft); }
.tv-hol-check input[type="date"] { font: inherit; font-size: .82rem; color: var(--ink); background: var(--mist); border: 1px solid var(--line); border-radius: .5rem; padding: .3rem .5rem; outline: none; }
.tv-hol-check input[type="date"]:focus { border-color: var(--saffron); }
.tv-hol-empty { padding: 1rem .25rem; font-size: .86rem; color: var(--ink-soft); }

/* ---- Compare tool ---- */
.tv-cmp { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow, 0 2px 6px rgba(24,24,27,.05), 0 24px 48px -30px rgba(24,24,27,.3)); }
@media (min-width: 900px) { .tv-cmp { grid-template-columns: 1.05fr .95fr; } }
.tv-cmp-controls { padding: 1.6rem 1.7rem; display: grid; gap: 1.15rem; align-content: start; }
.tv-cmp-field { display: flex; flex-direction: column; gap: .45rem; }
.tv-cmp-field > label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.tv-cmp-selwrap select { width: 100%; font-size: 1rem; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: .7rem; padding: .65rem .8rem; cursor: pointer; outline: none; }
.tv-cmp-selwrap select:focus { border-color: var(--saffron); }
.tv-cmp-out { padding: 1.6rem 1.7rem; background: linear-gradient(160deg, #fff, var(--mist)); border-top: 1px solid var(--line); display: flex; flex-direction: column; }
@media (min-width: 900px) { .tv-cmp-out { border-top: 0; border-left: 1px solid var(--line); } }
.tv-cmp-prices { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: flex-end; }
.tv-cmp-lbl { display: block; font-size: .74rem; color: var(--ink-soft); margin-bottom: .15rem; }
.tv-cmp-amt { font-family: 'Inter', sans-serif; font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; color: var(--saffron); line-height: 1; }
.tv-cmp-amt2 { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.tv-cmp-note { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--ink-soft); }
.tv-cmp-book { margin-top: 1.1rem; }
.tv-cmp-booklbl { display: block; font-size: .74rem; color: var(--ink-soft); margin-bottom: .5rem; }
.tv-cmp-links { display: flex; flex-direction: column; }
.tv-cmp-grouplbl { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: .55rem 0 .4rem; }
.tv-cmp-grouplbl:first-child { margin-top: 0; }
.tv-cmp-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.tv-cmp-link { font-size: .78rem; font-weight: 600; padding: .45rem .8rem; border-radius: 9999px; border: 1px solid var(--line); color: var(--ink); background: #fff; transition: border-color .15s, color .15s, background .15s; }
.tv-cmp-link:hover { border-color: var(--saffron); color: var(--saffron); }
.tv-cmp-disc { margin-top: 1.1rem; font-size: .72rem; color: var(--ink-soft); line-height: 1.55; }

/* ---- Trip-length table (every length, auto-priced) ---- */
.tv-len-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(24,24,27,.03); }
.tv-len-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 460px; }
.tv-len-tbl thead th { text-align: left; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--ink); padding: .7rem 1rem; }
.tv-len-tbl tbody td { padding: .7rem 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); vertical-align: middle; }
.tv-len-tbl tbody tr:nth-child(even) td { background: var(--mist); }
.tv-len-d b { color: var(--ink); font-weight: 700; font-size: 1rem; }
.tv-len-p { color: var(--saffron); font-weight: 700; white-space: nowrap; }
.tv-len-g { color: var(--ink); }

/* ---- Add-to-trip button ---- */
.tv-add-trip { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; }
.tv-add-trip.in-trip { background: var(--teal) !important; color: #fff !important; border-color: var(--teal) !important; }
/* On a hero (over a photo) the confirmed state stays in the white/outline palette instead of jumping to teal */
.btn-outline.tv-add-trip.in-trip { background: rgba(255,255,255,.18) !important; color: #fff !important; border-color: #fff !important; }

/* ---- Trip bucket: floating button ---- */
.tv-trip-btn { position: fixed; right: 1rem; bottom: 1rem; z-index: 56; display: inline-flex; align-items: center; gap: .5rem;
  background: var(--ink); color: #fff; border: 0; border-radius: 9999px; padding: .65rem 1.05rem; cursor: pointer;
  box-shadow: 0 8px 26px -8px rgba(24,24,27,.6); font-size: .9rem; font-weight: 600; transition: transform .15s, background .15s; }
.tv-trip-btn:hover { transform: translateY(-2px); background: #000; }
.tv-trip-btn > svg { width: 1.2rem; height: 1.2rem; }
.tv-trip-count { background: var(--saffron); color: #fff; font-size: .72rem; font-weight: 800; min-width: 1.3rem; height: 1.3rem; padding: 0 .35rem; border-radius: 9999px; display: inline-grid; place-items: center; }
@media (max-width: 640px) { .tv-trip-lbl { display: none; } .tv-trip-btn { padding: .7rem; } }

/* ---- Trip bucket: drawer ---- */
.tv-drawer { position: fixed; inset: 0; z-index: 70; display: none; }
.tv-drawer.open { display: block; }
.tv-drawer-back { position: absolute; inset: 0; background: rgba(9,9,11,.5); backdrop-filter: blur(3px); animation: tvfade .2s ease; }
.tv-drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: 400px; max-width: 92vw; background: #fff; display: flex; flex-direction: column;
  box-shadow: -20px 0 50px -20px rgba(24,24,27,.5); animation: tvslide .28s cubic-bezier(.2,.7,.2,1); }
@keyframes tvfade { from { opacity: 0; } } @keyframes tvslide { from { transform: translateX(100%); } }
.tv-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.tv-drawer-head h3 { font-family: 'Inter', sans-serif; font-size: 1.25rem; font-weight: 700; }
.tv-drawer-x { font-size: 1.7rem; line-height: 1; color: var(--ink-soft); background: 0; border: 0; cursor: pointer; }
.tv-drawer-x:hover { color: var(--saffron); }
.tv-drawer-body { padding: 1.1rem 1.3rem; overflow-y: auto; flex: 1; }
.tv-trip-empty { color: var(--ink-soft); font-size: .92rem; line-height: 1.6; }
.tv-trip-cta, .tv-trip-open { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--saffron); }
.tv-trip-row { display: flex; align-items: center; gap: .6rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.tv-trip-rinfo { flex: 1; min-width: 0; }
.tv-trip-name { display: block; font-weight: 600; color: var(--ink); }
.tv-trip-rsub { font-size: .76rem; color: var(--ink-soft); }
.tv-step-sm button { width: 1.6rem; height: 1.6rem; font-size: 1rem; }
.tv-step-sm .tv-step-val { min-width: 1.6rem; font-size: .82rem; }
.tv-trip-rm { width: 1.7rem; height: 1.7rem; border-radius: .5rem; border: 0; background: var(--mist); color: var(--ink-soft); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.tv-trip-rm:hover { background: #fde7e7; color: #dc2626; }
.tv-trip-tot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.tv-trip-totr { text-align: right; }
.tv-trip-totlbl { display: block; font-size: .72rem; color: var(--ink-soft); }
.tv-trip-totbig { font-size: 1.4rem; font-weight: 800; }
.tv-trip-totbig2 { font-size: 1.4rem; font-weight: 800; color: var(--saffron); }
.tv-trip-note { font-size: .72rem; color: var(--ink-soft); margin-top: .8rem; line-height: 1.5; }
.tv-trip-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.tv-trip-open { margin-top: 0; background: var(--saffron); color: #fff; padding: .6rem 1rem; border-radius: .7rem; }
.tv-trip-open:hover { background: var(--saffron-dark); }
.tv-trip-share, .tv-trip-clear { padding: .6rem 1rem; border-radius: .7rem; font-weight: 600; font-size: .9rem; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.tv-trip-share:hover { border-color: var(--saffron); color: var(--saffron); }
.tv-trip-clear { color: var(--ink-soft); } .tv-trip-clear:hover { color: #dc2626; border-color: #f0c0c0; }

/* ---- Toast ---- */
.tv-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); z-index: 90; background: var(--ink); color: #fff;
  padding: .7rem 1.2rem; border-radius: 9999px; font-size: .88rem; font-weight: 600; opacity: 0; transition: opacity .25s, transform .25s; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.tv-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Trip plan / itinerary page (trip.html) ---- */
.tv-tp-empty { text-align: center; padding: 3rem 1rem; }
/* controls: comfort tier + travelers + tier description */
.tv-tp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.4rem; box-shadow: 0 1px 2px rgba(24,24,27,.04); }
.tv-tp-ctl { display: flex; flex-direction: column; gap: .4rem; }
.tv-tp-ctllbl { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }
.tv-tp-tierdesc { flex: 1; min-width: 12rem; font-size: .82rem; color: var(--ink-soft); align-self: center; }
/* summary bar */
.tv-tp-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.5rem; box-shadow: 0 1px 2px rgba(24,24,27,.04); }
.tv-tp-scell { text-align: center; } .tv-tp-scell + .tv-tp-scell { border-left: 1px solid var(--line); }
.tv-tp-slbl { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: .2rem; }
.tv-tp-slbl em { text-transform: none; letter-spacing: 0; font-style: normal; opacity: .8; }
.tv-tp-sval { font-family: 'Inter', sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; display: block; }
.tv-tp-cost { color: var(--saffron); }
.tv-tp-h2 { font-family: 'Inter', sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 2rem 0 1rem; }
/* itinerary legs */
.tv-tp-legs { display: flex; flex-direction: column; }
.tv-tp-leg { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(24,24,27,.03); overflow: hidden; }
.tv-tp-lhead { display: flex; gap: 1rem; padding: 1.25rem 1.35rem; }
.tv-tp-daybadge { flex: 0 0 auto; align-self: flex-start; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: .4rem .7rem; border-radius: 9999px; white-space: nowrap; }
.tv-tp-lmain { flex: 1; min-width: 0; }
.tv-tp-city { font-family: 'Inter', sans-serif; font-size: 1.25rem; font-weight: 700; }
.tv-tp-days { font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.tv-tp-blurb { font-size: .9rem; color: var(--ink); opacity: .8; margin-top: .25rem; }
.tv-tp-do { margin-top: .7rem; }
.tv-tp-dolbl { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: .3rem; }
.tv-tp-dolist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .28rem; }
.tv-tp-dolist li { position: relative; padding-left: 1.15rem; font-size: .9rem; color: var(--ink); }
.tv-tp-dolist li::before { content: ""; position: absolute; left: 0; top: .5em; width: .45rem; height: .45rem; border-radius: 9999px; background: var(--saffron); }
.tv-tp-lsub { font-size: .82rem; color: var(--ink-soft); margin-top: .7rem; }
.tv-tp-lsub a { color: var(--teal); font-weight: 600; }
.tv-tp-lsub a:hover { color: var(--saffron); }
.tv-tp-lcost { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; min-width: 8rem; }
.tv-tp-lprice { font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--saffron); white-space: nowrap; }
.tv-tp-lper { font-size: .72rem; color: var(--ink-soft); }
.tv-tp-rm { margin-top: .5rem; background: 0; border: 0; color: var(--ink-soft); font-size: .8rem; cursor: pointer; }
.tv-tp-rm:hover { color: #dc2626; }
.tv-tp-hop { text-align: center; font-size: .78rem; color: var(--ink-soft); padding: .5rem 0; }
/* cost breakdown (expandable) */
.tv-tp-bd { border-top: 1px solid var(--line); background: var(--mist); }
.tv-tp-bd summary { cursor: pointer; padding: .8rem 1.35rem; font-size: .85rem; font-weight: 600; color: var(--teal); list-style: none; }
.tv-tp-bd summary::-webkit-details-marker { display: none; }
.tv-tp-bd summary::before { content: "▸ "; }
.tv-tp-bd[open] summary::before { content: "▾ "; }
.tv-tp-bdrows { padding: 0 1.35rem .4rem; }
.tv-tp-bdrow { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px dashed var(--line); font-size: .86rem; color: var(--ink-soft); }
.tv-tp-bdrow em { font-style: normal; opacity: .7; font-size: .92em; }
.tv-tp-bdamt { font-weight: 600; color: var(--ink); white-space: nowrap; }
.tv-tp-bdtot { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; margin-top: .2rem; border-top: 2px solid var(--ink); font-weight: 800; color: var(--ink); }
.tv-tp-bdgrp { color: var(--ink-soft); border-top: 1px dashed var(--line); }
.tv-tp-bdnote { font-size: .74rem; color: var(--ink-soft); padding: .4rem 1.35rem 1rem; line-height: 1.55; }
.tv-tp-note { font-size: .78rem; color: var(--ink-soft); margin-top: 1.4rem; line-height: 1.65; }
.tv-tp-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
@media (min-width: 561px) { .tv-tp-legs { gap: 0; } .tv-tp-leg { border-radius: 0; border-top: 0; } .tv-tp-leg:first-child { border-radius: 16px 16px 0 0; border-top: 1px solid var(--line); } .tv-tp-leg:last-of-type { border-radius: 0 0 16px 16px; } .tv-tp-hop { background: var(--mist); border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
@media (max-width: 720px) { .tv-tp-summary { grid-template-columns: repeat(2, 1fr); } .tv-tp-scell:nth-child(3) { border-left: 0; } .tv-tp-scell { border-top: 0 !important; } .tv-tp-scell:nth-child(n+3) { border-top: 1px solid var(--line) !important; padding-top: .9rem; } }
@media (max-width: 560px) { .tv-tp-legs { gap: .8rem; } .tv-tp-lhead { flex-wrap: wrap; } .tv-tp-lcost { text-align: left; align-items: flex-start; flex-direction: row; gap: .6rem; align-items: baseline; width: 100%; margin-top: .3rem; } }

/* ---- Print: clean itinerary, hide chrome ---- */
/* ---- Scroll-to-top (sits above the My Trip button) ---- */
.tv-totop { position: fixed; right: 1rem; bottom: 4.9rem; z-index: 54; width: 2.6rem; height: 2.6rem; border-radius: 9999px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 6px 20px -6px rgba(24,24,27,.45); cursor: pointer;
  display: grid; place-items: center; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s, background .15s, color .15s; }
.tv-totop.show { opacity: 1; transform: none; pointer-events: auto; }
.tv-totop svg { width: 1.15rem; height: 1.15rem; }
.tv-totop:hover { background: var(--saffron); color: #fff; border-color: var(--saffron); }

/* ---- Cookie consent banner ---- */
.tv-cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80; max-width: 60rem; margin: 0 auto;
  background: var(--ink); color: #fff; border-radius: 14px; padding: .9rem 1.1rem; box-shadow: 0 12px 44px -12px rgba(0,0,0,.55);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1.2rem; font-size: .85rem;
  opacity: 0; transform: translateY(20px); transition: opacity .3s ease, transform .3s ease; }
.tv-cookie.show { opacity: 1; transform: none; }
.tv-cookie-txt { flex: 1; min-width: 15rem; line-height: 1.5; }
.tv-cookie a { color: var(--saffron-light, #FF9E40); text-underline-offset: 2px; }
.tv-cookie-btns { display: flex; gap: .5rem; flex-shrink: 0; }
.tv-cookie-accept { background: var(--saffron); color: #fff; border: 0; padding: .5rem 1.2rem; border-radius: .6rem; font-weight: 700; cursor: pointer; }
.tv-cookie-accept:hover { background: var(--saffron-dark); }
.tv-cookie-decline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); padding: .5rem 1rem; border-radius: .6rem; font-weight: 600; cursor: pointer; }
.tv-cookie-decline:hover { background: rgba(255,255,255,.1); }

@media print {
  .tv-cur-switch, .tv-trip-btn, .tv-drawer, .tv-toast, .tv-totop, .tv-cookie, #siteHeader, footer, .accent-bar { display: none !important; }
  body { background: #fff; }
  .tv-tp-actions { display: none !important; }
}

/* On phones the two fixed widgets sit in the bottom corners — give the footer
   extra bottom room so its links never hide beneath them. */
@media (max-width: 640px) { footer { padding-bottom: 4.5rem; } }
