/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  TRIPHUNT MASTER DESIGN SYSTEM — v16 AUTHORITATIVE                     ║
   ║  This file wins ALL cascade conflicts. Injected last.                   ║
   ║  Do not edit other CSS files for these components — edit here only.     ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */

/* ─── 1. TOKENS ─────────────────────────────────────────────────────────── */
:root {
  --th-navy:     #040d1a;
  --th-ink:      #0a1628;
  --th-ink2:     #17325f;
  --th-ink3:     #4f6b93;
  --th-ink4:     #8eaad0;
  --th-blue:     #1e40ff;
  --th-blue-dk:  #1635d1;
  --th-blue-lt:  #eff6ff;
  --th-blue-md:  #dbeafe;
  --th-grn:      #059669;
  --th-grn-lt:   #ecfdf5;
  --th-ora:      #f97316;
  --th-red:      #dc2626;
  --th-white:    #ffffff;
  --th-surf:     #f8f9fb;
  --th-surf2:    #f1f4f8;
  --th-bdr:      rgba(0,0,0,.07);
  --th-bdr2:     rgba(0,0,0,.13);

  /* Semantic */
  --th-error-bg:  #dc2626;
  
  /* Legacy aliases — required by error-fares, deals, and other pages */
  --navy:    #040d1a;
  --navy2:   #0a1628;
  --navy3:   #1e2d45;
  --navy4:   #2d3f5f;
  --border:  rgba(0,0,0,.07);
  --border2: rgba(0,0,0,.14);
  --acc:     #1e40ff;
  --acc2:    #1635d1;
  --acc3:    rgba(30,64,255,.08);
  --grn:     #059669;
  --grn-lt:  #ecfdf5;
  --red:     #dc2626;
  --red-lt:  #fef2f2;
  --yel:     #d97706;
  --yel-lt:  #fffbeb;
  --bg:      #f8f9fb;
  --off:     #f1f4f8;
  --surface: #ffffff;
  --surface2:#f8f9fb;
  --txt:     #0a1628;
  --txt2:    #334155;
  --txt3:    #64748b;
  --muted:   #94a3b8;
  --r4:      4px;
  --r8:      8px;
  --r12:     12px;
  --r16:     16px;
  --r20:     20px;
  --r24:     24px;
  --r99:     9999px;
  --max:     1280px;

  /* Final missing aliases */
  --brand-dark:    #040d1a;
  --accent2:       #1635d1;
  --accent-blue:   #1e40ff;
  --card-bg:       #ffffff;
  --shadow-card:   0 2px 12px rgba(0,0,0,.06),0 1px 3px rgba(0,0,0,.04);
  --shadow-float:  0 8px 32px rgba(0,0,0,.12),0 2px 8px rgba(0,0,0,.06);
  --shadow-search: 0 20px 60px rgba(11,17,32,.35);
  --radius-lg:     20px;
  --radius-xl:     28px;
  /* Results page + general missing aliases */
  --blue:        #1e40ff;
  --blue2:       #1635d1;
  --blue-lt:     #eff6ff;
  --blue-md:     #dbeafe;
  --amber:       #d97706;
  --amber-lt:    #fffbeb;
  --s2:          #f1f4f8;
  --sh2:         0 4px 20px rgba(0,0,0,.09),0 2px 6px rgba(0,0,0,.05);
  --txt4:        #94a3b8;
  --text-primary:#0a1628;
  --text-secondary:#475569;
  --text-muted:  #94a3b8;
  --off-white:   #f8fafc;
  --accent:      #1e40ff;
  --nav-h:       60px;
  --font:        'Outfit',system-ui,sans-serif;
  --th-good-bg:   #059669;
  --th-deal-bg:   #1e40ff;
  --th-fire-bg:   #f97316;
}

/* ─── 2. FONTS ──────────────────────────────────────────────────────────── */
@keyframes th-rise    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes th-fade    { from { opacity: 0; } to { opacity: 1; } }
@keyframes th-pop     { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes th-spin    { to   { transform: rotate(360deg); } }
@keyframes th-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes th-float   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes th-pulse   { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes th-ac-in   { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes errGlow    { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.5); } 50% { box-shadow: 0 0 0 8px transparent; } }
@keyframes liveBlip   { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }

/* ─── 3. NAV — dark, sticky, never white on dark ───────────────────────── */
html body .nav,
html body nav.nav {
  background: rgba(4,13,26,.97) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  height: 60px !important;
}
html body .nav-inner {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  height: 60px !important;
}
html body .nav-logo {
  color: #ffffff !important;
  font-family: 'Fraunces', Georgia, serif !important;
  font-weight: 900 !important;
  font-size: 19px !important;
  letter-spacing: -.02em !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  margin-right: 24px !important;
}
html body .nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  flex: 1 !important;
  overflow: hidden !important;
}
html body .nav-link {
  color: rgba(255,255,255,.65) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all .15s !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}
html body .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,.08) !important;
}
html body .nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}
html body .nav-cta {
  background: var(--th-blue) !important;
  color: #ffffff !important;
  padding: 7px 16px !important;
  border-radius: 99px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all .15s !important;
}
html body .nav-cta:hover {
  background: var(--th-blue-dk) !important;
  transform: translateY(-1px) !important;
}
html body .nav-premium-pill {
  background: rgba(249,115,22,.15) !important;
  color: #fb923c !important;
  padding: 5px 12px !important;
  border-radius: 99px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 1px solid rgba(249,115,22,.25) !important;
  white-space: nowrap !important;
}
html body .nav-sign-in {
  color: rgba(255,255,255,.55) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

/* ─── 4. HERO — dark cinematic left, glass search right ────────────────── */
html body .thfx-home-hero,
html body .th-hero-strip.thfx-home-hero {
  background-color: #040d1a !important;
  background-image:
    linear-gradient(145deg,
      rgba(4,13,26,.96) 0%,
      rgba(14,23,54,.82) 48%,
      rgba(29,78,216,.22) 100%),
    url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1800&q=80&auto=format&fit=crop') !important;
  background-size: cover !important;
  background-position: center 28% !important;
  min-height: 560px !important;
  display: flex !important;
  align-items: center !important;
}
html body .thfx-home-hero .th-hero-inner,
html body .th-hero-inner {
  display: grid !important;
  grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr) !important;
  gap: 28px 36px !important;
  align-items: start !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 60px 32px !important;
  width: 100% !important;
}
@media (max-width: 1100px) {
  html body .th-hero-inner { grid-template-columns: 1fr !important; padding: 40px 20px !important; }
}

/* ── Copy column: white glass card ─── */
html body .thfx-home-copy-col {
  background: rgba(255,255,255,.95) !important;
  border: 1px solid rgba(255,255,255,.7) !important;
  border-radius: 24px !important;
  box-shadow: 0 32px 96px rgba(4,13,26,.22), 0 8px 24px rgba(4,13,26,.1) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  padding: 36px 32px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

/* ── Copy col: all text DARK — white bg context ─── */
html body .thfx-home-copy-col,
html body .thfx-home-copy-col * {
  color: var(--th-ink) !important;
}

/* ── Specific text weights within copy col ─── */
html body .thfx-home-copy-col .th-eyebrow {
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  color: var(--th-blue) !important;
  background: rgba(30,64,255,.08) !important;
  padding: 4px 12px !important;
  border-radius: 99px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 16px !important;
  width: fit-content !important;
}
html body .thfx-home-copy-col .th-hero-h1 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif !important;
  font-size: clamp(32px, 4.5vw, 58px) !important;
  font-weight: 900 !important;
  letter-spacing: -.04em !important;
  line-height: 1.05 !important;
  color: var(--th-ink) !important;
  text-shadow: none !important;
  margin: 0 0 14px !important;
}
html body .thfx-home-copy-col .th-hero-h1 em {
  color: var(--th-blue) !important;
  font-style: italic !important;
}
html body .thfx-home-copy-col .th-hero-sub {
  font-size: 15px !important;
  color: var(--th-ink3) !important;
  line-height: 1.65 !important;
  margin: 0 0 24px !important;
  text-shadow: none !important;
}

/* ─── 5. FILMSTRIP — inside white glass col, dark text cards ────────────── */
html body .thfx-home-filmstrip {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding: 2px 0 6px !important;
  margin-top: 4px !important;
}
html body .thfx-home-filmstrip::-webkit-scrollbar { display: none !important; }

html body .thfx-home-copy-col .thfx-film-card,
html body .thfx-home-filmstrip .thfx-film-card {
  background: rgba(30,64,255,.05) !important;
  border: 1px solid rgba(30,64,255,.14) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  min-width: 164px !important;
  max-width: 180px !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  transition: all .2s !important;
  position: relative !important;
  overflow: hidden !important;
}
html body .thfx-home-copy-col .thfx-film-card:hover,
html body .thfx-home-filmstrip .thfx-film-card:hover {
  background: rgba(30,64,255,.1) !important;
  border-color: rgba(30,64,255,.3) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(30,64,255,.14) !important;
}
html body .thfx-home-copy-col .thfx-film-kicker,
html body .thfx-home-filmstrip .thfx-film-kicker {
  font-size: 9px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .09em !important;
  color: var(--th-blue) !important;
  display: block !important;
}
html body .thfx-home-copy-col .thfx-film-card strong,
html body .thfx-home-filmstrip .thfx-film-card strong {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--th-ink) !important;
  letter-spacing: -.02em !important;
  line-height: 1.25 !important;
  display: block !important;
}
html body .thfx-home-copy-col .thfx-film-card span:not(.thfx-film-kicker),
html body .thfx-home-filmstrip .thfx-film-card span:not(.thfx-film-kicker) {
  font-size: 11px !important;
  color: var(--th-ink3) !important;
  line-height: 1.4 !important;
  display: block !important;
}

/* ─── 6. SEARCH PANEL — right side, glass card ──────────────────────────── */
html body .thfx-home-search-col .search-container,
html body .thfx-home-search-col .th-search-wrap {
  background: rgba(255,255,255,.98) !important;
  border: 1px solid rgba(255,255,255,.8) !important;
  border-radius: 24px !important;
  box-shadow: 0 32px 96px rgba(4,13,26,.28) !important;
  padding: 28px 24px !important;
  backdrop-filter: blur(20px) !important;
}

/* Search tabs */
html body .search-tabs,
html body .thfx-home-hero .search-tabs {
  display: grid !important;
  grid-template-columns: repeat(3,1fr) !important;
  gap: 6px !important;
  margin-bottom: 20px !important;
  background: var(--th-surf2) !important;
  border-radius: 12px !important;
  padding: 4px !important;
}
html body .stab {
  padding: 9px 4px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--th-ink3) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all .15s !important;
  font-family: inherit !important;
  text-align: center !important;
}
html body .stab.active,
html body .stab:hover {
  background: #fff !important;
  color: var(--th-ink) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.08) !important;
}

/* Trip type row */
html body .trip-type-row,
html body .thfx-home-hero .trip-type-row {
  display: grid !important;
  grid-template-columns: repeat(3,1fr) !important;
  gap: 6px !important;
  margin-bottom: 14px !important;
}
html body .stt-tab {
  padding: 8px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--th-ink3) !important;
  background: var(--th-surf2) !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  transition: all .15s !important;
  font-family: inherit !important;
  text-align: center !important;
}
html body .stt-tab.active {
  background: var(--th-blue-lt) !important;
  color: var(--th-blue) !important;
  border-color: rgba(30,64,255,.2) !important;
}

/* Field wraps */
html body .search-fields {
  display: grid !important;
  grid-template-columns: repeat(2,1fr) !important;
  gap: 10px !important;
}
html body .field-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
html body .field-wrap label {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .07em !important;
  color: var(--th-ink3) !important;
}
html body .search-input,
html body .field-wrap input,
html body .field-wrap select {
  padding: 12px 14px !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--th-ink) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  outline: none !important;
  transition: border-color .15s, box-shadow .15s !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
html body .search-input:focus,
html body .field-wrap input:focus,
html body .field-wrap select:focus {
  border-color: var(--th-blue) !important;
  box-shadow: 0 0 0 3px rgba(30,64,255,.1) !important;
}
html body .search-input::placeholder { color: #94a3b8 !important; }

/* Search button */
html body .btn-search,
html body #main-search-btn {
  width: 100% !important;
  padding: 15px 24px !important;
  background: linear-gradient(135deg, #1e40ff 0%, #3b5bff 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  letter-spacing: .01em !important;
  box-shadow: 0 6px 24px rgba(30,64,255,.35) !important;
  transition: all .18s !important;
  margin-top: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
html body .btn-search:hover,
html body #main-search-btn:hover {
  background: linear-gradient(135deg, #1635d1 0%, #2952ff 100%) !important;
  box-shadow: 0 10px 36px rgba(30,64,255,.45) !important;
  transform: translateY(-1px) !important;
}

/* ─── 7. AUTOCOMPLETE DROPDOWN — premium feel ───────────────────────────── */
html body .autocomplete-list {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  background: #ffffff !important;
  border: 1px solid rgba(148,163,184,.2) !important;
  border-radius: 16px !important;
  box-shadow:
    0 4px 6px rgba(0,0,0,.04),
    0 16px 48px rgba(4,13,26,.16) !important;
  padding: 6px !important;
  margin-top: 6px !important;
  max-height: 320px !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
}
html body .autocomplete-list::-webkit-scrollbar { width: 4px; }
html body .autocomplete-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

html body .autocomplete-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  color: var(--th-ink) !important;
  font-size: 13px !important;
  transition: background .1s !important;
  animation: th-ac-in .1s ease both !important;
  gap: 8px !important;
}
html body .autocomplete-item:hover { background: var(--th-blue-lt) !important; }
html body .iata-badge {
  background: var(--th-blue-lt) !important;
  color: var(--th-blue) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  letter-spacing: .04em !important;
  font-family: 'Courier New', monospace !important;
  flex-shrink: 0 !important;
}
html body .autocomplete-section-header {
  padding: 8px 12px 4px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  color: #94a3b8 !important;
}

/* ─── 8. DEAL GRID — masonry-style ─────────────────────────────────────── */
html body .th-deal-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 16px !important;
  grid-auto-rows: 1fr !important;
  align-items: stretch !important;
}
html body .th-deal-grid .thx-static-card:first-child {
  /* equal width with other cards */
}
@media (max-width: 640px) {
  html body .th-deal-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  /* first card equal width on mobile */
}

/* ─── 9. STATIC DEAL CARD — flex-column: photo top, info bottom ─────────── */
html body .thx-static-card {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .24s !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04) !important;
  isolation: isolate !important;
}
html body .thx-static-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.14) !important;
  border-color: rgba(30,64,255,.12) !important;
}

/* Photo — top of card, fixed height */
html body .thx-static-media {
  display: block !important;
  width: 100% !important;
  height: 190px !important;
  overflow: hidden !important;
  position: relative !important;
  flex-shrink: 0 !important;
  background: linear-gradient(135deg,#1e3a8a,#1e40ff) !important;
}
/* first card same height media as others */
html body .thx-static-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform .5s ease !important;
}
html body .thx-static-card:hover .thx-static-media img {
  transform: scale(1.06) !important;
}
/* Subtle bottom fade on photo */
html body .thx-static-media::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.3) 100%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Body — below photo, white bg, dark text */
html body .thx-static-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 16px 18px 18px !important;
  flex: 1 !important;
  background: #ffffff !important;
}

/* Badge row — top of body */
html body .thx-static-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
  gap: 6px !important;
}
html body .thx-static-badge {
  display: inline-block !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 3px 10px !important;
  border-radius: 99px !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  white-space: nowrap !important;
  background: var(--th-blue-lt) !important;
  color: var(--th-blue) !important;
}
html body .thx-static-badge.error-badge,
html body .thx-static-card.error .thx-static-badge {
  background: #fef2f2 !important;
  color: var(--th-red) !important;
}
html body .thx-static-verified {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
}

/* Score ring — on the photo, top right */
html body .thx-static-media .th-card-score-ring,
html body .thx-static-media [class*="score-ring"] {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 10 !important;
  width: 34px !important;
  height: 34px !important;
  background: rgba(0,0,0,.52) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.2) !important;
}

/* Destination text — dark on white body */
html body .thx-static-routecodes {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  color: var(--th-ink) !important;
  letter-spacing: -.03em !important;
  line-height: 1.1 !important;
  display: block !important;
}
html body .thx-static-routenames {
  font-size: 12px !important;
  color: #64748b !important;
  margin-bottom: 8px !important;
  display: block !important;
}
html body .thx-static-meta {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-bottom: 10px !important;
}
html body .thx-static-meta > span {
  font-size: 11px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

/* Price plate — bottom of body, clean */
html body .thx-static-bottom {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  margin-top: auto !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(0,0,0,.06) !important;
  gap: 10px !important;
}
html body .thx-static-price {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  color: var(--th-ink) !important;
  letter-spacing: -.05em !important;
  line-height: 1 !important;
  display: block !important;
}
/* first card price same as others */
html body .thx-static-save {
  font-size: 11px !important;
  color: #059669 !important;
  font-weight: 700 !important;
  display: block !important;
  margin-top: 3px !important;
}
html body .thx-static-cta {
  display: inline-flex !important;
  align-items: center !important;
  padding: 10px 16px !important;
  background: var(--th-blue) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all .15s !important;
}
html body .thx-static-card:hover .thx-static-cta {
  background: var(--th-blue-dk) !important;
  transform: translateY(-1px) !important;
}

/* ─── 10. FLIP DEAL CARDS — dynamic from th-cards-engine.js ────────────── */
html body .th-deal-card,
html body .th-flip-card {
  border-radius: 18px !important;
  overflow: hidden !important;
  position: relative !important;
  min-height: 300px !important;
  height: 100% !important;
  cursor: pointer !important;
  background: var(--th-navy) !important;
  display: block !important;
}
html body .th-flip-inner {
  position: absolute !important;
  inset: 0 !important;
  transition: transform .55s cubic-bezier(.4,0,.2,1) !important;
  transform-style: preserve-3d !important;
}
html body .th-flip-card:hover .th-flip-inner,
html body .th-flip-card:focus-within .th-flip-inner {
  transform: rotateY(180deg) !important;
}
html body .th-flip-front,
html body .th-flip-back {
  position: absolute !important;
  inset: 0 !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}
html body .th-flip-back {
  transform: rotateY(180deg) !important;
  background: linear-gradient(145deg, #0f2040, #1e3a8a) !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}
/* Flip back text — always white on dark blue */
html body .th-flip-back * { color: rgba(255,255,255,.9) !important; }
html body .th-flip-back-dest {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #fff !important;
}
html body .th-flip-row {
  display: flex !important;
  justify-content: space-between !important;
  padding: 7px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  font-size: 13px !important;
}
html body .th-flip-label { color: rgba(255,255,255,.55) !important; }
html body .th-flip-back-btn {
  display: block !important;
  background: var(--th-blue) !important;
  color: #fff !important;
  padding: 12px !important;
  border-radius: 12px !important;
  text-align: center !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition: all .15s !important;
  margin-top: auto !important;
}
html body .th-flip-back-btn:hover { background: var(--th-blue-dk) !important; }

/* Card photo */
html body .th-card-photo {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  overflow: hidden !important;
}
html body .th-card-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}
html body .th-card-photo::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to bottom, rgba(4,13,26,0) 20%, rgba(4,13,26,.92) 100%) !important;
  z-index: 1 !important;
}
/* Fallback gradient when no photo */
html body .th-card-photo-fallback {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(160deg, #0f2040 0%, #1e3a8a 45%, #1e40ff 75%, #0ea5e9 100%) !important;
}
html body .th-card-photo-fallback-emoji {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -60%) !important;
  font-size: 64px !important;
  z-index: 2 !important;
  animation: th-float 4s ease-in-out infinite !important;
}

/* Card body — above photo gradient */
html body .th-card-top {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: 56px !important;
  z-index: 5 !important;
  display: flex !important;
  gap: 6px !important;
  flex-direction: column !important;
}
html body .th-card-body {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 5 !important;
  padding: 14px !important;
}
html body .th-card-dest {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  letter-spacing: -.03em !important;
  line-height: 1.1 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.5) !important;
  margin-bottom: 1px !important;
}
html body .th-card-country {
  font-size: 11px !important;
  color: rgba(255,255,255,.65) !important;
  margin-bottom: 6px !important;
}
html body .th-card-freshness {
  display: inline-block !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,.7) !important;
  margin-bottom: 8px !important;
}
html body .th-card-freshness.error-urgency {
  color: #fca5a5 !important;
  font-weight: 800 !important;
}

/* Price plate at bottom of card body */
html body .th-card-price-plate {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(4,13,26,.55) !important;
  backdrop-filter: blur(16px) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  gap: 8px !important;
}
html body .th-card-price {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  letter-spacing: -.06em !important;
  line-height: 1 !important;
}
html body .th-card-was {
  font-size: 13px !important;
  color: rgba(255,255,255,.45) !important;
  text-decoration: line-through !important;
  margin-right: 4px !important;
}
html body .th-card-saving {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #34d399 !important;
  background: rgba(16,185,129,.15) !important;
  padding: 2px 7px !important;
  border-radius: 99px !important;
}

/* Book now hint */
html body .th-flip-hint-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.7) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Card badges */
html body .th-card-badge {
  display: inline-block !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 99px !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  white-space: nowrap !important;
  color: #fff !important;
}
html body .th-card-badge.good    { background: rgba(30,64,255,.85) !important; backdrop-filter: blur(8px) !important; }
html body .th-card-badge.bolt    { background: rgba(249,115,22,.9) !important; }
html body .th-card-badge.fire    { background: rgba(249,115,22,.95) !important; }
html body .th-card-badge.error   { background: rgba(220,38,38,.9) !important; animation: errGlow 2s ease-in-out infinite !important; }
html body .th-card-badge.direct  { background: rgba(5,150,105,.85) !important; }

/* Score ring */
html body .th-card-score {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 5 !important;
  width: 38px !important;
  height: 38px !important;
}
html body .th-card-score-num {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #fff !important;
}

/* ─── 11. SPARKLINE ──────────────────────────────────────────────────────── */
html body .th-card-sparkline {
  margin-top: 8px !important;
  opacity: .7 !important;
  height: 28px !important;
  display: block !important;
}

/* ─── 12. SECTION TITLES ─────────────────────────────────────────────────── */
html body .th-section {
  padding: 40px 20px 0 !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
}
html body .th-section-header {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  margin-bottom: 20px !important;
  gap: 12px !important;
}
html body .th-section-title {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  color: var(--th-ink) !important;
  letter-spacing: -.04em !important;
  line-height: 1.1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
html body .th-section-sub {
  font-size: 12px !important;
  color: var(--th-ink3) !important;
  margin-top: 3px !important;
}
html body .th-section-link {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--th-blue) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
html body .th-live-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: rgba(5,150,105,.1) !important;
  color: var(--th-grn) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 99px !important;
  border: 1px solid rgba(5,150,105,.2) !important;
  letter-spacing: .04em !important;
  font-family: 'Outfit', sans-serif !important;
}
html body .th-live-pill-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: var(--th-grn) !important;
  animation: liveBlip 1.5s ease-in-out infinite !important;
  flex-shrink: 0 !important;
}

/* ─── 13. AIRPORT PILLS ──────────────────────────────────────────────────── */
html body .th-airport-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
html body .th-airport-pill {
  padding: 7px 14px !important;
  border-radius: 99px !important;
  border: 1.5px solid var(--th-bdr2) !important;
  background: #fff !important;
  color: var(--th-ink3) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all .15s !important;
  white-space: nowrap !important;
  font-family: inherit !important;
}
html body .th-airport-pill:hover {
  border-color: var(--th-blue) !important;
  color: var(--th-blue) !important;
  background: var(--th-blue-lt) !important;
}
html body .th-airport-pill.active {
  background: var(--th-blue) !important;
  border-color: var(--th-blue) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(30,64,255,.25) !important;
}

/* ─── 14. TRUST BAR ──────────────────────────────────────────────────────── */
html body .th-trust-bar {
  background: rgba(4,13,26,.97) !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  padding: 0 !important;
}
html body .th-trust-item {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,.65) !important;
  padding: 9px 20px !important;
  border-right: 1px solid rgba(255,255,255,.08) !important;
  white-space: nowrap !important;
}
html body .th-trust-item:last-child { border-right: none !important; }
html body .ti-icon { font-size: 14px !important; }

/* ─── 15. PREDICTOR BLOCK ────────────────────────────────────────────────── */
html body #th-home-predictor {
  padding: 0 20px !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
}

/* ─── 16. EMAIL CAPTURE ──────────────────────────────────────────────────── */
html body .email-strip,
html body .email-capture,
html body [id*="ecp-email"] {
  background: linear-gradient(135deg, #040d1a 0%, #0f2040 60%, #1e3a8a 100%) !important;
  color: #fff !important;
}
html body .es-h,
html body .email-strip h2,
html body .email-strip h3 {
  color: #ffffff !important;
  font-family: 'Fraunces', Georgia, serif !important;
}
html body .es-sub,
html body .email-strip p {
  color: rgba(255,255,255,.65) !important;
}
html body .es-input {
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  color: #fff !important;
  border-radius: 10px !important;
}
html body .es-input::placeholder { color: rgba(255,255,255,.5) !important; }
html body .es-btn {
  background: var(--th-blue) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
}

/* ─── 17. FOOTER ─────────────────────────────────────────────────────────── */
html body .footer {
  background: #040d1a !important;
  color: rgba(255,255,255,.5) !important;
  border-top: 1px solid rgba(255,255,255,.06) !important;
}
html body .footer-copy {
  font-size: 12px !important;
  color: rgba(255,255,255,.4) !important;
}
html body .footer-bottom-link {
  color: rgba(255,255,255,.5) !important;
  text-decoration: none !important;
  font-size: 12px !important;
}
html body .footer-bottom-link:hover { color: #fff !important; }

/* ─── 18. PAGE HERO (SEO pages) ──────────────────────────────────────────── */
html body .page-hero {
  background: linear-gradient(145deg, rgba(4,13,26,.96) 0%, rgba(14,23,54,.88) 60%, rgba(29,78,216,.25) 100%),
    url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1400&q=80&auto=format&fit=crop') center/cover no-repeat !important;
  padding: 80px 20px 60px !important;
  text-align: center !important;
  min-height: 340px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html body .page-hero * { text-shadow: none !important; }

/* ─── 19. RESULTS PAGE BAR ───────────────────────────────────────────────── */
html body .results-bar {
  background: linear-gradient(135deg, rgba(4,13,26,.98), rgba(15,32,64,.95)) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
  padding: 0 20px !important;
  position: sticky !important;
  top: 60px !important;
  z-index: 400 !important;
}
html body .rb-inner {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 10px 0 !important;
  flex-wrap: wrap !important;
}
html body .rb-route {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}
html body .rb-arrow { color: rgba(255,255,255,.4) !important; margin: 0 6px !important; }
html body .rb-chip {
  font-size: 12px !important;
  color: rgba(255,255,255,.6) !important;
  background: rgba(255,255,255,.1) !important;
  padding: 4px 10px !important;
  border-radius: 99px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}
html body .sort-group {
  display: flex !important;
  gap: 4px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
}
html body .sort-btn {
  padding: 6px 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,.55) !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all .15s !important;
  font-family: inherit !important;
}
html body .sort-btn:hover,
html body .sort-btn.active {
  background: rgba(255,255,255,.16) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.25) !important;
}

/* ─── 20. MOBILE RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  html body .nav-links {
    display: none !important;
  }
  html body .th-section { padding: 28px 14px 0 !important; }
  html body .th-section-title { font-size: 20px !important; }
  html body .thx-static-card { min-height: 220px !important; }
  html body .th-deal-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
}
@media (max-width: 480px) {
  html body .thx-static-routenames { font-size: 17px !important; }
  html body .thx-static-price { font-size: 26px !important; }
}

/* ─── Form validation shake ─────────────────────────────────────────────── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ─── Search button spinner ──────────────────────────────────────────────── */
.search-btn-spinner {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  border: 2px solid rgba(255,255,255,.35) !important;
  border-top-color: #fff !important;
  border-radius: 50% !important;
  animation: th-spin .65s linear infinite !important;
  flex-shrink: 0 !important;
  margin-right: 8px !important;
  vertical-align: middle !important;
}

/* ─── Autocomplete keyboard focus state ────────────────────────────────── */
html body .autocomplete-item.focused {
  background: var(--th-blue-lt) !important;
  outline: 2px solid var(--th-blue) !important;
  outline-offset: -2px !important;
}
html body .autocomplete-item.focused .iata-badge {
  background: var(--th-blue) !important;
  color: #fff !important;
}

/* ─── Injected card action buttons (from site-fixes.js) ────────────── */
html body .thfx-card-actions {
  display: flex !important;
  gap: 6px !important;
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(0,0,0,.06) !important;
}
html body .thfx-mini-share {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  background: #f1f4f8 !important;
  border: none !important;
  border-radius: 99px !important;
  padding: 5px 12px !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition: all .15s !important;
}
html body .thfx-mini-share:hover {
  background: #e2e8f0 !important;
  color: #1e40ff !important;
}

/* ─── Nav scroll shadow — darkens subtly when page scrolls ─────────── */
html body .nav,
html body nav.nav,
html body #site-nav {
  transition: box-shadow .2s ease, background .2s ease !important;
}
html body .nav.scrolled,
html body nav.nav.scrolled,
html body #site-nav.scrolled {
  background: rgba(4,13,26,1) !important;
  box-shadow: 0 4px 32px rgba(0,0,0,.5) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   TOOLS PAGE — thfx-tool-panel, thfx-section-heading, etc.
   ═══════════════════════════════════════════════════════════════════════ */
html body .thfx-tools-page-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
  padding-top: 20px !important;
}
@media (max-width: 768px) {
  html body .thfx-tools-page-grid { grid-template-columns: 1fr !important; }
}
html body .thfx-tool-panel {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.07) !important;
  border-radius: 20px !important;
  padding: 28px !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.06) !important;
}
html body .thfx-tools-kicker {
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  color: var(--th-blue) !important;
  background: rgba(30,64,255,.08) !important;
  padding: 3px 10px !important;
  border-radius: 99px !important;
  display: inline-block !important;
  margin-bottom: 12px !important;
}
html body .thfx-section-heading {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: clamp(20px, 3vw, 26px) !important;
  font-weight: 900 !important;
  letter-spacing: -.03em !important;
  color: var(--th-ink) !important;
  margin: 0 0 10px !important;
  line-height: 1.15 !important;
}
html body .thfx-section-copy {
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.6 !important;
  margin-bottom: 18px !important;
}
html body .thfx-form-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 4px !important;
}
html body .thfx-form-grid label {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  color: #94a3b8 !important;
  display: block !important;
  margin-bottom: 5px !important;
}
html body .thfx-input,
html body .thfx-select,
html body .thfx-number {
  width: 100% !important;
  padding: 10px 12px !important;
  border: 1.5px solid rgba(0,0,0,.1) !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  background: #fff !important;
  color: #0a1628 !important;
  transition: border-color .15s !important;
}
html body .thfx-input:focus,
html body .thfx-select:focus,
html body .thfx-number:focus {
  outline: none !important;
  border-color: var(--th-blue) !important;
  box-shadow: 0 0 0 3px rgba(30,64,255,.1) !important;
}
html body .thfx-tool-button {
  padding: 11px 24px !important;
  background: var(--th-blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition: all .15s !important;
}
html body .thfx-tool-button:hover {
  background: var(--th-blue2) !important;
  transform: translateY(-1px) !important;
}
html body .thfx-result-shell {
  margin-top: 16px !important;
  background: #f8f9fb !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  min-height: 60px !important;
}
html body .thfx-empty-note {
  font-size: 13px !important;
  color: #94a3b8 !important;
  text-align: center !important;
  padding: 8px 0 !important;
}
/* Tools hero kicker */
html body .tools-kicker {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.6) !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  margin-bottom: 8px !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE FIXES — comprehensive responsive fixes
   ═══════════════════════════════════════════════════════════════════════ */

/* Nav — mobile: hide links, show only logo + CTAs */
@media (max-width: 768px) {
  html body .nav-links { display: none !important; }
  html body .nav-sign-in { display: none !important; }
  html body .nav-inner {
    padding: 0 14px !important;
    gap: 8px !important;
  }
  html body .nav-cta {
    font-size: 12px !important;
    padding: 7px 14px !important;
  }
  html body .nav-premium-pill {
    display: none !important;
  }

  /* Hero — stack single column */
  html body .th-hero-inner {
    grid-template-columns: 1fr !important;
    padding: 24px 16px 32px !important;
    gap: 16px !important;
  }
  html body .thfx-home-copy-col {
    padding: 24px 20px !important;
    border-radius: 18px !important;
  }
  html body .thfx-home-copy-col .th-hero-h1 {
    font-size: clamp(28px, 8vw, 40px) !important;
  }
  html body .thfx-home-search-shell {
    border-radius: 18px !important;
    padding: 18px 16px !important;
  }

  /* Search form — single column on mobile */
  html body .search-fields,
  html body .pkg-search-fields {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  html body .field-wrap {
    padding: 10px 12px !important;
  }

  /* Deal grid — single column on mobile */
  html body .th-deal-grid,
  html body .deals-grid,
  html body .trending-grid,
  html body .thfx-fare-grid,
  html body .thfx-trending-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Static cards — full width on mobile */
  html body .thx-static-card {
    min-height: 0 !important;
  }
  html body .thx-static-media {
    height: 160px !important;
  }

  /* Section headings smaller */
  html body .th-section-title,
  html body .section-title-h2 {
    font-size: clamp(22px, 6vw, 28px) !important;
  }

  /* Trust bar — wrap */
  html body .th-trust-bar .th-trust-items {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* Ticker — hide on very small screens */
  html body .th-ticker-bar {
    display: none !important;
  }

  /* HIW steps — single column */
  html body .th-hiw-steps {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Email capture */
  html body .ecp-form {
    flex-direction: column !important;
  }
  html body .ecp-input {
    width: 100% !important;
    border-radius: 10px !important;
  }
  html body .ecp-btn {
    width: 100% !important;
    border-radius: 10px !important;
  }

  /* Footer grid — single column */
  html body .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* Compare, inspire, cards strip — scroll horizontally */
  html body .th-explore-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Upsell page */
  html body .upsell-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  /* Extreme small screens */
  html body .thfx-home-copy-col .th-hero-h1 {
    font-size: clamp(24px, 7vw, 32px) !important;
  }
  html body .th-trust-items {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 4px !important;
  }
  html body .th-deal-grid {
    grid-template-columns: 1fr !important;
  }
  html body .thx-static-media {
    height: 140px !important;
  }
}

/* ─── Badge readability on photo cards ─────────────────────────── */
html body .th-card-top {
  right: 52px !important;
}
/* Score ring — only on cards wide enough to show it cleanly */
@media (max-width: 320px) {
  html body .thx-static-media .th-card-score-ring,
  html body .thx-static-media [class*="score-ring"] {
    display: none !important;
  }
}
/* Ensure badges have readable backdrop */
html body .th-card-badge {
  text-shadow: none !important;
  backdrop-filter: blur(4px) !important;
}


/* Mobile nav toggle fallback */
@media (max-width: 768px) {
  #nav-mobile-toggle { display: flex !important; align-items: center !important; }
  nav.mob-open .nav-links {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(4,13,26,.98) !important;
    backdrop-filter: blur(20px) !important;
    padding: 12px 20px 20px !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    z-index: 998 !important;
    gap: 2px !important;
  }
  nav.mob-open .nav-links a {
    display: block !important;
    padding: 13px 10px !important;
    font-size: 15px !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
    color: rgba(255,255,255,.8) !important;
  }
  nav.mob-open .nav-links a:last-child { border-bottom: none !important; }
  nav.mob-open #nav-mobile-toggle { content: '✕' !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   PAGE-SPECIFIC MOBILE FIXES
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Deals page ────────────────────────────────────────────────── */
  html body .deals-layout,
  html body .deals-main {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
  }
  html body .deals-controls {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  html body .origin-filter-bar {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 4px !important;
  }

  /* ── Inspire page ──────────────────────────────────────────────── */
  html body .inspire-grid,
  html body .destinations-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  html body .inspire-hero,
  html body .thfx-inspire-hero {
    padding: 32px 16px 24px !important;
  }

  /* ── Compare page ──────────────────────────────────────────────── */
  html body .compare-layout,
  html body .compare-grid {
    grid-template-columns: 1fr !important;
  }
  html body .compare-col {
    min-width: 0 !important;
  }

  /* ── Premium page ──────────────────────────────────────────────── */
  html body .pricing-grid,
  html body .plans-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  html body .pricing-card {
    max-width: 400px !important;
    margin: 0 auto !important;
  }
  html body .perks-grid,
  html body .features-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── Price calendar ────────────────────────────────────────────── */
  html body .cal-wrap {
    overflow-x: auto !important;
  }
  html body .date-grid {
    min-width: 500px !important;
  }
  html body .search-bar {
    flex-direction: column !important;
  }

  /* ── Weekend breaks ────────────────────────────────────────────── */
  html body .deals-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  html body .controls-inner {
    gap: 6px !important;
  }
  html body .origin-tab {
    font-size: 11px !important;
    padding: 5px 10px !important;
  }

  /* ── About page ────────────────────────────────────────────────── */
  html body .founder-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  html body .hiw-steps {
    grid-template-columns: 1fr !important;
  }
  html body .about-stats-row {
    gap: 24px !important;
  }

  /* ── Tools page ────────────────────────────────────────────────── */
  html body .tools-hero {
    grid-template-columns: 1fr !important;
  }
  html body .thfx-tools-page-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── Upsell page ───────────────────────────────────────────────── */
  html body .upsell-header {
    flex-direction: column !important;
    text-align: center !important;
  }
  html body .aff-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── Account dashboard ─────────────────────────────────────────── */
  html body .dash-grid,
  html body .alerts-grid {
    grid-template-columns: 1fr !important;
  }
  html body .dash-header {
    flex-direction: column !important;
    text-align: center !important;
  }

  /* ── Baggage calculator ────────────────────────────────────────── */
  html body .airline-select {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  html body .bag-options {
    grid-template-columns: 1fr !important;
  }

  /* ── Group flights ─────────────────────────────────────────────── */
  html body .field-row {
    grid-template-columns: 1fr !important;
  }
  html body .tip-row {
    grid-template-columns: 1fr !important;
  }

  /* ── General: section padding reduction ────────────────────────── */
  html body .section,
  html body .page-wrap,
  html body .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SHARED CONSISTENCY LAYER — card grids, equal heights, states
   ═══════════════════════════════════════════════════════════════ */

/* Screen-reader only utility */
.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-to-content link */
.skip-link {
  position: absolute; top: -100%; left: 8px; z-index: 10000;
  background: var(--th-blue, #1e40ff); color: #fff;
  padding: 8px 16px; border-radius: 0 0 8px 8px; font-weight: 700;
  text-decoration: none; font-size: 14px;
}
.skip-link:focus { top: 0; }

/* Equal-height grid — children stretch to row height */
html body .th-grid-equal,
html body .th-deal-grid,
html body .thfx-fare-grid,
html body .weekend-grid,
html body .dest-grid {
  align-items: stretch !important;
}
html body .th-grid-equal > *,
html body .th-deal-grid > *,
html body .thfx-fare-grid > *,
html body .weekend-grid > *,
html body .dest-grid > * {
  display: flex !important;
  flex-direction: column !important;
}

/* Consistent card CTA always at bottom */
html body .thx-static-card,
html body .th-deal-card,
html body .th-card,
html body .deal-card,
html body .fare-card,
html body .trend-card-v2 {
  display: flex !important;
  flex-direction: column !important;
}
html body .thx-static-body,
html body .th-card-body,
html body .deal-body,
html body .fare-inner {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}
html body .thx-static-bottom,
html body .th-card-foot,
html body .deal-cta-row,
html body .fare-actions {
  margin-top: auto !important;
}

/* Consistent image aspect ratio across card types */
html body .thx-static-media,
html body .th-card-img,
html body .deal-img-wrap,
html body .trend-card-img-header {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  flex-shrink: 0 !important;
}

/* Prevent text overflow in cards */
html body .thx-static-routenames,
html body .th-card-dest,
html body .deal-dest-name,
html body .tc2-dest,
html body .fare-route {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 100% !important;
}

/* Loading skeleton animation */
html body .th-skel {
  background: linear-gradient(90deg, #e8edf4 25%, #f4f7fc 50%, #e8edf4 75%) !important;
  background-size: 200% 100% !important;
  animation: thSkShimmer 1.4s ease-in-out infinite !important;
}

/* Empty / error state shared style */
html body .th-empty-state {
  text-align: center !important;
  padding: 48px 20px !important;
  color: #94a3b8 !important;
}
html body .th-empty-state .th-empty-icon {
  font-size: 40px !important;
  margin-bottom: 12px !important;
  display: block !important;
}
html body .th-empty-state p {
  font-size: 14px !important;
  line-height: 1.6 !important;
  max-width: 320px !important;
  margin: 0 auto !important;
}

/* Consistent section vertical rhythm */
html body .th-section {
  padding: 40px 0 !important;
}
html body .th-section + .th-section {
  padding-top: 0 !important;
}

/* Consistent form elements */
html body input[type="text"],
html body input[type="email"],
html body input[type="date"],
html body input[type="number"],
html body select,
html body textarea {
  font-family: inherit !important;
}

/* Focus ring — consistent across pages */
html body a:focus-visible,
html body button:focus-visible,
html body input:focus-visible,
html body select:focus-visible {
  outline: 2px solid var(--th-blue, #1e40ff) !important;
  outline-offset: 2px !important;
  border-radius: 4px !important;
}

/* Prevent horizontal overflow sitewide */
html body { overflow-x: hidden !important; }
html body .container,
html body .th-hero-inner,
html body .page-wrap,
html body .main-wrap {
  max-width: min(var(--max, 1280px), 100vw - 32px) !important;
  box-sizing: border-box !important;
}
/* ═══════════════════════════════════════════════════════════════════════
   VISUAL POLISH PASS — spacing, rhythm, consistency, mobile
   Applied via th_master.css — wins over all page-level styles
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS — single source of truth ────────────────────────── */
:root {
  --r-sm:  8px;    /* form inputs, chips, badges */
  --r-md:  12px;   /* inner card elements */
  --r-lg:  16px;   /* cards */
  --r-xl:  20px;   /* modals, large panels */
  --r-pill: 9999px;

  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 40px;
  --sp-2xl:64px;

  --hero-pt: clamp(40px, 6vw, 72px);
  --hero-pb: clamp(28px, 4vw, 52px);
  --hero-px: clamp(16px, 3vw, 24px);

  --section-gap: clamp(40px, 5vw, 64px);

  --card-pad: 18px;
  --card-radius: var(--r-lg);
  --card-shadow: 0 1px 3px rgba(10,22,40,.06), 0 4px 16px rgba(10,22,40,.06);
  --card-shadow-hover: 0 8px 32px rgba(10,22,40,.13);

  --btn-h: 44px;
  --btn-pad: 0 20px;
  --btn-radius: var(--r-sm);
  --btn-font: 14px;
  --btn-weight: 700;

  --input-h: 44px;
  --input-pad: 10px 14px;
  --input-radius: var(--r-sm);
  --input-border: rgba(0,0,0,.12);
}

/* ── 2. HERO SECTION — consistent vertical rhythm ─────────────────────── */
/* All non-home hero sections get normalised padding */
html body .page-hero,
html body .ef-hero,
html body .wknd-hero,
html body .deals-hero,
html body .prem-hero,
html body .about-hero,
html body .inspire-hero,
html body .share-hero,
html body .cal-hero,
html body .hero:not(#hero-section):not(.thfx-home-hero) {
  padding-top:    var(--hero-pt) !important;
  padding-bottom: var(--hero-pb) !important;
  padding-left:   var(--hero-px) !important;
  padding-right:  var(--hero-px) !important;
}

/* Cap about hero specifically — 120px was excessive */
html body .about-hero { max-padding-top: none; }
html body .about-hero-inner {
  max-width: 900px !important;
  margin: 0 auto !important;
}

/* Hero H1 — consistent size scale */
html body .page-hero h1,
html body .ef-hero h1,
html body .deals-hero h1,
html body .wknd-hero h1,
html body .prem-hero h1 {
  font-size: clamp(28px, 5vw, 52px) !important;
  letter-spacing: -.04em !important;
  line-height: 1.1 !important;
}

/* Hero sub copy — consistent */
html body .page-hero .hero-sub,
html body .ef-hero .hero-sub,
html body .deals-hero .hero-sub,
html body .wknd-hero .hero-sub,
html body .hero-sub {
  font-size: clamp(14px, 2vw, 16px) !important;
  max-width: 540px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  line-height: 1.65 !important;
}

/* ── 3. SECTION SPACING — consistent rhythm ────────────────────────────── */
html body .th-section,
html body .page-section,
html body .content-section {
  padding-top:    var(--section-gap) !important;
  padding-bottom: var(--section-gap) !important;
}

html body .page-wrap {
  padding-left:  var(--hero-px) !important;
  padding-right: var(--hero-px) !important;
  padding-top:   var(--sp-xl) !important;
}

/* Section header — title + link row */
html body .th-section-header {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-bottom: 20px !important;
}
html body .th-section-title {
  font-size: clamp(18px, 3vw, 22px) !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
}
html body .th-section-link {
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

/* ── 4. CARDS — universal padding + radius tokens ─────────────────────── */
/* Static deal cards */
html body .thx-static-body {
  padding: var(--card-pad) !important;
}
html body .thx-static-card {
  border-radius: var(--card-radius) !important;
  box-shadow: var(--card-shadow) !important;
  transition: transform .22s ease, box-shadow .22s ease !important;
}
html body .thx-static-card:hover {
  box-shadow: var(--card-shadow-hover) !important;
}

/* Error fare cards */
html body .fare-card {
  border-radius: var(--card-radius) !important;
  box-shadow: var(--card-shadow) !important;
}
html body .fare-card .fare-inner {
  padding: var(--card-pad) !important;
}
html body .fare-card .fare-actions {
  padding: 0 var(--card-pad) var(--card-pad) !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

/* Trending cards */
html body .trend-card-v2 {
  border-radius: var(--card-radius) !important;
  box-shadow: var(--card-shadow) !important;
}
html body .trend-card-v2 > :not(.thfx-card-media) {
  padding: var(--card-pad) !important;
}

/* Deal cards (live-loaded th-deal-card) */
html body .th-deal-card {
  border-radius: var(--card-radius) !important;
}

/* ── 5. GRIDS — consistent gaps, better wrapping ──────────────────────── */
html body .th-deal-grid,
html body .deals-grid,
html body .trending-grid,
html body .thfx-fare-grid,
html body .weekend-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: var(--sp-md) !important;
}

/* ── 6. BUTTONS — consistent height + padding ─────────────────────────── */
html body .btn-search,
html body .btn-primary,
html body .th-card-btn,
html body .thfx-pill-btn,
html body .book-btn,
html body .thx-static-cta {
  min-height: var(--btn-h) !important;
  padding: var(--btn-pad) !important;
  border-radius: var(--btn-radius) !important;
  font-size: var(--btn-font) !important;
  font-weight: var(--btn-weight) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

/* CTA buttons inside cards stay compact */
html body .thx-static-cta {
  min-height: 36px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
}

html body .btn-book-fare {
  min-height: var(--btn-h) !important;
  padding: var(--btn-pad) !important;
  border-radius: var(--btn-radius) !important;
  font-size: var(--btn-font) !important;
  font-weight: var(--btn-weight) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
}

/* ── 7. FORM INPUTS — consistent height ───────────────────────────────── */
html body .search-input,
html body .thfx-input,
html body .thfx-select,
html body .thfx-number,
html body .field-in,
html body .ecp-input {
  height: var(--input-h) !important;
  min-height: var(--input-h) !important;
  padding: var(--input-pad) !important;
  border-radius: var(--input-radius) !important;
  border: 1.5px solid var(--input-border) !important;
  font-size: 14px !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  width: 100% !important;
  background: #fff !important;
}
html body .search-input:focus,
html body .thfx-input:focus,
html body .thfx-select:focus {
  border-color: var(--th-blue, #1e40ff) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(30,64,255,.1) !important;
}

/* ── 8. EMPTY & LOADING STATES ────────────────────────────────────────── */
html body .th-empty-state {
  grid-column: 1 / -1 !important;
  text-align: center !important;
  padding: 56px 20px !important;
  color: #94a3b8 !important;
}
html body .th-empty-state .th-empty-icon {
  font-size: 44px !important;
  display: block !important;
  margin-bottom: 14px !important;
}
html body .th-empty-state h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  margin-bottom: 6px !important;
}
html body .th-empty-state p {
  font-size: 14px !important;
  line-height: 1.6 !important;
  max-width: 320px !important;
  margin: 0 auto 16px !important;
}

/* Skeleton loader — used while data fetches */
html body .th-skel,
html body .fc-skeleton,
html body .skel-card {
  background: linear-gradient(90deg,#e8edf4 25%,#f4f7fc 50%,#e8edf4 75%) !important;
  background-size: 200% 100% !important;
  animation: thSkShimmer 1.4s ease-in-out infinite !important;
  border-radius: var(--r-md) !important;
}

/* ── 9. TYPOGRAPHY RHYTHM ─────────────────────────────────────────────── */
/* Badges — consistent pill style */
html body .th-card-badge,
html body .fare-tag,
html body .meta-chip,
html body .deal-tag,
html body .tc-badge {
  font-size: 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  padding: 3px 9px !important;
  border-radius: var(--r-pill) !important;
  white-space: nowrap !important;
}

/* Price figures — all Fraunces */
html body .thx-static-price,
html body .th-card-price,
html body .fare-price-now,
html body .tc2-price {
  font-family: 'Fraunces', Georgia, serif !important;
  letter-spacing: -.04em !important;
  line-height: 1 !important;
}

/* ── 10. MOBILE GRID COLLAPSE ─────────────────────────────────────────── */
@media (max-width: 640px) {
  html body .th-deal-grid,
  html body .deals-grid,
  html body .thfx-fare-grid,
  html body .weekend-grid,
  html body .trending-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Hero padding tighter on phones */
  html body .page-hero,
  html body .ef-hero,
  html body .wknd-hero,
  html body .deals-hero,
  html body .hero:not(#hero-section):not(.thfx-home-hero) {
    padding-top: 32px !important;
    padding-bottom: 24px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Cards: tighter padding on phones */
  html body .thx-static-body,
  html body .fare-inner,
  html body .trend-card-v2 > :not(.thfx-card-media) {
    padding: 14px !important;
  }

  /* Section gap tighter on phones */
  html body .th-section,
  html body .page-section {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  /* Fare actions stack vertically */
  html body .fare-actions {
    flex-direction: column !important;
  }
  html body .btn-book-fare,
  html body .btn-sec {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Section header — title only, link on new line */
  html body .th-section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }
}

/* ── 11. TABLET GRID (2-col) ──────────────────────────────────────────── */
@media (min-width: 641px) and (max-width: 900px) {
  html body .th-deal-grid,
  html body .deals-grid,
  html body .thfx-fare-grid,
  html body .weekend-grid,
  html body .trending-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── 12. PAGE-SPECIFIC FIXES ──────────────────────────────────────────── */

/* premium.html — too much bottom padding on hero, pricing cards uneven */
html body .pricing-card {
  border-radius: var(--r-xl) !important;
  display: flex !important;
  flex-direction: column !important;
}
html body .plan-cta {
  margin-top: auto !important;
}

/* compare.html — table wraps gracefully on mobile */
@media (max-width: 700px) {
  html body #compareTable,
  html body .compare-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* price-calendar.html — calendar grid wraps on phone */
@media (max-width: 500px) {
  html body #calGrid {
    grid-template-columns: repeat(7, 1fr) !important;
    font-size: 11px !important;
  }
  html body .cal-cell {
    padding: 3px 2px !important;
    min-height: 40px !important;
  }
}

/* results.html — filter sidebar collapses */
@media (max-width: 860px) {
  html body .results-layout {
    grid-template-columns: 1fr !important;
  }
  html body .results-sidebar {
    display: none !important;
  }
  html body .results-sidebar.open {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 500 !important;
    overflow-y: auto !important;
    background: #fff !important;
    padding: 20px !important;
  }
}

/* share.html — share buttons row wraps cleanly */
html body .share-cta {
  flex-wrap: wrap !important;
  gap: 10px !important;
}
html body .btn-book-this,
html body .btn-share {
  flex: 1 !important;
  min-width: 140px !important;
}

/* account.html — auth form max-width consistent */
html body .auth-wrap {
  max-width: 440px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
}

/* 404.html — centered, comfortable */
html body .notfound-wrap {
  min-height: 60vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 48px 20px !important;
}
html body .notfound-actions {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  margin-top: 24px !important;
}

/* packing-list.html — checklist items consistent */
html body .pack-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  border-radius: var(--r-md) !important;
  transition: background .12s !important;
}
html body .pack-item:hover {
  background: rgba(30,64,255,.04) !important;
}

/* baggage-calculator.html — result panel clean */
html body .result-panel {
  border-radius: var(--r-xl) !important;
}

/* tools.html — tool panels consistent */
html body .thfx-tool-panel {
  border-radius: var(--r-xl) !important;
}

/* ── 13. PROSE PAGES — privacy / terms / cookies / accessibility ───────── */
html body .prose-page,
html body .legal-content,
html body .policy-body {
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: var(--sp-xl) var(--hero-px) !important;
  line-height: 1.75 !important;
}
html body .prose-page h1,
html body .legal-content h1 {
  font-size: clamp(24px, 4vw, 36px) !important;
  margin-bottom: 24px !important;
}
html body .prose-page h2,
html body .legal-content h2 {
  font-size: clamp(18px, 2.5vw, 22px) !important;
  margin-top: 40px !important;
  margin-bottom: 12px !important;
}
html body .prose-page p,
html body .legal-content p {
  margin-bottom: 16px !important;
  color: #334155 !important;
}

/* ── UTILITY CLASSES extracted from repeated inline styles ──────── */

/* "Any" date button inside field-wrap */
html body .field-anytime-btn {
  position: absolute !important;
  right: 6px !important; top: 50% !important; margin-top: 5px !important;
  transform: translateY(-50%) !important;
  background: var(--th-surf2, #e8edf4) !important;
  border: 1px solid var(--th-border2, rgba(0,0,0,.12)) !important;
  cursor: pointer !important;
  font-size: 9px !important; font-weight: 700 !important;
  color: var(--th-blue, #1e40ff) !important;
  padding: 3px 7px !important;
  border-radius: var(--r-pill) !important;
  transition: all .15s !important; white-space: nowrap !important;
}
html body .field-anytime-btn:hover {
  background: var(--th-blue, #1e40ff) !important;
  color: #fff !important;
}

/* Dark-mode toggle button */
html body .th-dark-toggle {
  width: 34px !important; height: 34px !important;
  border-radius: 50% !important;
  background: var(--th-surf, #f5f6f8) !important;
  border: 1.5px solid var(--th-border, rgba(0,0,0,.08)) !important;
  font-size: 16px !important; cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important; justify-content: center !important;
  transition: background .15s !important;
}

/* NL search bar */
html body #nl-search-bar {
  background: var(--th-surf, #f8fafc) !important;
  border-bottom: 1px solid var(--th-border, #e2e8f0) !important;
  padding: 14px clamp(16px,3vw,20px) !important;
}

/* Trustpilot bar */
html body .th-trust-bar {
  padding: 12px clamp(16px,3vw,20px) !important;
}

/* ── PROSE LAYOUT for legal/info pages ──────────────────────────── */
html body .legal-body,
html body .policy-content,
html body .terms-body,
html body .cookies-body,
html body .accessibility-body {
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 40px clamp(16px,3vw,24px) 80px !important;
}
html body .legal-body h1,
html body .policy-content h1 {
  font-size: clamp(24px,4vw,36px) !important;
  margin-bottom: 8px !important;
}
html body .legal-body h2,
html body .policy-content h2 {
  margin-top: 36px !important;
  margin-bottom: 10px !important;
  font-size: clamp(17px,2.5vw,20px) !important;
}
html body .legal-body p,
html body .policy-content p,
html body .legal-body li {
  color: #334155 !important;
  line-height: 1.75 !important;
  margin-bottom: 12px !important;
  font-size: 15px !important;
}
html body .legal-body a,
html body .policy-content a {
  color: var(--th-blue, #1e40ff) !important;
  text-decoration: underline !important;
}
/* ═══════════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE FIXES — all core pages
   Targets every page's specific layout issues at 390-768px
   ═══════════════════════════════════════════════════════════════ */

/* Global: prevent horizontal scroll on all pages */
html { overflow-x: hidden !important; }
html body { overflow-x: hidden !important; max-width: 100vw !important; }

/* ── TRENDING page — 300px min-col overflows phones ────────────── */
html body .trending-grid,
html body .trend-cards-wrap,
html body .thfx-trending-grid,
html body [class*="trending-grid"] {
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)) !important;
}

/* ── DEALS page ─────────────────────────────────────────────────── */
html body .deals-grid,
html body .th-deals-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)) !important;
}

/* ── ERROR FARES page ───────────────────────────────────────────── */
html body .fares-grid,
html body .fare-grid,
html body #fares-list {
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)) !important;
}

/* ── COMPARE page — table must scroll on mobile ─────────────────── */
html body .compare-wrap,
html body .compare-table-container {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
html body .compare-table,
html body table.compare-table {
  min-width: 560px !important;
}

/* ── UPSELL page — sections stack ──────────────────────────────── */
@media (max-width: 640px) {
  html body .upsell-grid,
  html body .upsell-sections,
  html body .aff-grid {
    grid-template-columns: 1fr !important;
  }
  html body .aff-hero {
    flex-direction: column !important;
  }
}

/* ── ACCOUNT page — auth form padded correctly ──────────────────── */
@media (max-width: 480px) {
  html body .auth-wrap {
    padding: 0 12px !important;
  }
  html body .field-input,
  html body .btn-auth {
    font-size: 16px !important; /* prevents iOS zoom */
  }
}

/* ── PREMIUM page — pricing cards stack on phone ────────────────── */
@media (max-width: 600px) {
  html body .pricing-cards {
    grid-template-columns: 1fr !important;
  }
  html body .pricing-card {
    max-width: 440px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
  html body .prem-hero {
    padding-top: 40px !important;
    padding-bottom: 32px !important;
  }
  html body .prem-features-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── DEALS + ERROR FARES hero strip ─────────────────────────────── */
@media (max-width: 640px) {
  html body .deals-hero,
  html body .ef-hero {
    padding: 28px 16px 20px !important;
  }
  html body .hero-stats {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start !important;
  }
  html body .origin-tabs,
  html body .filter-tabs {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    padding-bottom: 4px !important;
    scrollbar-width: none !important;
  }
  html body .origin-tab,
  html body .th-airport-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
}

/* ── WEEKEND page ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  html body .page-wrap {
    padding: 16px 14px 40px !important;
  }
  html body .controls-inner {
    gap: 8px !important;
    padding: 10px 14px !important;
  }
  html body .weekend-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
    scrollbar-width: none !important;
  }
  html body .week-tab { flex-shrink: 0 !important; }
}

/* ── TRENDING page mobile ───────────────────────────────────────── */
@media (max-width: 640px) {
  html body .trending-header,
  html body .trending-controls {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  html body .sort-row,
  html body .filter-row {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }
}

/* ── PRICE CALENDAR mobile ──────────────────────────────────────── */
@media (max-width: 580px) {
  html body #calGrid {
    font-size: 10px !important;
    gap: 2px !important;
  }
  html body .cal-cell {
    min-height: 38px !important;
    padding: 2px 1px !important;
    font-size: 10px !important;
  }
  html body .cal-cell .cal-price {
    font-size: 9px !important;
  }
  html body .cal-search-bar {
    flex-direction: column !important;
  }
  html body .cal-search-bar .field-g {
    width: 100% !important;
  }
}

/* ── RESULTS page ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  html body .sort-row {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 4px !important;
  }
  html body .sort-btn { flex-shrink: 0 !important; }
  
  html body .fc {
    flex-direction: column !important;
  }
  html body .fc-img {
    width: 100% !important;
    height: 160px !important;
    border-radius: 12px 12px 0 0 !important;
  }
  html body .fc-price-col {
    padding: 12px !important;
    border-top: 1px solid rgba(0,0,0,.06) !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  html body .book-btn {
    padding: 10px 18px !important;
    font-size: 14px !important;
  }
}

/* ── SHARE page mobile ──────────────────────────────────────────── */
@media (max-width: 480px) {
  html body .share-hero {
    padding: 24px 14px 32px !important;
  }
  html body .share-card {
    padding: 24px 18px !important;
    border-radius: 18px !important;
  }
  html body .share-price {
    font-size: clamp(48px, 15vw, 80px) !important;
  }
  html body .btn-book-this,
  html body .btn-share {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ── DEAL page mobile ───────────────────────────────────────────── */
@media (max-width: 640px) {
  html body .deal-hero-photo {
    height: 220px !important;
  }
  html body .deal-meta-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  html body .deal-actions {
    flex-direction: column !important;
  }
  html body .btn-book-fare,
  html body .deal-cta-btn {
    width: 100% !important;
  }
}

/* ── NAV: universal dark nav fixes on mobile ────────────────────── */
@media (max-width: 768px) {
  html body .nav-inner,
  html body .nav {
    padding: 0 14px !important;
    height: 52px !important;
  }
  html body .nav-links { display: none !important; }
  html body .nav-right {
    gap: 8px !important;
    margin-left: auto !important;
  }
  html body .nav-sign-in { display: none !important; }
  html body .nav-premium-pill { display: none !important; }
  html body .nav-cta {
    font-size: 12px !important;
    padding: 7px 12px !important;
    white-space: nowrap !important;
  }
}

/* ── BODY padding-top for fixed nav ────────────────────────────── */
html body {
  padding-top: 0 !important; /* nav is sticky not fixed on most pages */
}

/* ── HERO sections: universal mobile padding ────────────────────── */
@media (max-width: 480px) {
  html body .page-hero,
  html body .ef-hero,
  html body .deals-hero,
  html body .wknd-hero,
  html body .hero:not(#hero-section):not(.thfx-home-hero) {
    padding: 24px 14px 18px !important;
  }
  html body .page-hero h1,
  html body .ef-hero h1,
  html body .deals-hero h1 {
    font-size: clamp(22px, 7vw, 32px) !important;
  }
  html body .hero-sub {
    font-size: 13px !important;
  }
}

/* ── CARDS: touch targets 44px minimum ─────────────────────────── */
html body .swipe-btn,
html body .sort-btn,
html body .origin-tab,
html body .th-airport-pill,
html body .fr-btn,
html body .or-btn,
html body .stab {
  min-height: 36px !important;
  min-width: 36px !important;
}

/* ── FORMS: prevent iOS zoom (font-size >= 16px on inputs) ─────── */
@media (max-width: 768px) {
  html body input[type="text"],
  html body input[type="email"],
  html body input[type="date"],
  html body input[type="number"],
  html body input[type="tel"],
  html body select,
  html body textarea {
    font-size: 16px !important;
  }
}

/* ── GROUP FLIGHTS mobile ───────────────────────────────────────── */
@media (max-width: 640px) {
  html body .field-row {
    grid-template-columns: 1fr !important;
  }
  html body .pax-counter {
    justify-content: flex-start !important;
  }
}

/* ── BAGGAGE CALCULATOR mobile ──────────────────────────────────── */
@media (max-width: 640px) {
  html body .airline-select {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  }
  html body .bag-options {
    grid-template-columns: 1fr !important;
  }
  html body .result-panel {
    padding: 18px 16px !important;
  }
  html body .result-total {
    font-size: clamp(40px, 12vw, 72px) !important;
  }
}

/* ── TOOLS page mobile ──────────────────────────────────────────── */
@media (max-width: 640px) {
  html body .thfx-tools-page-grid {
    grid-template-columns: 1fr !important;
  }
  html body .thfx-form-grid {
    grid-template-columns: 1fr !important;
  }
  html body .tools-hero {
    grid-template-columns: 1fr !important;
  }
}

/* ── INSPIRE page mobile ────────────────────────────────────────── */
@media (max-width: 640px) {
  html body .inspire-results-grid,
  html body #resultsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  html body .result-card {
    min-height: 160px !important;
  }
  html body .filter-bar {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
}

/* ── 404 page ───────────────────────────────────────────────────── */
@media (max-width: 480px) {
  html body .notfound-h1 {
    font-size: clamp(28px, 8vw, 40px) !important;
  }
  html body .notfound-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  html body .btn-home,
  html body .btn-deals {
    text-align: center !important;
    justify-content: center !important;
  }
}
