/* ==========================================================================
   Airline Reservation Help Desk — Modern Minimal (Charcoal + Indigo) theme
   Clean, self-contained stylesheet (replaces vendor widget CSS)
   ========================================================================== */

:root {
  --color-primary: #4f46e5;       /* indigo-600 — single accent */
  --color-primary-dark: #4338ca;  /* indigo-700 */
  --color-primary-darker: #3730a3; /* indigo-800 */
  --color-primary-light: #eef2ff; /* indigo-50 */
  --color-charcoal: #18181b;      /* near-black header/footer */
  --color-charcoal-2: #27272a;
  --color-accent: #4f46e5;        /* alias — single accent throughout */
  --color-accent-dark: #4338ca;

  --color-text: #18181b;
  --color-muted: #6b7280;
  --color-muted-light: #9ca3af;
  --color-border: #e5e7eb;
  --color-bg-alt: #f9fafb;
  --color-white: #ffffff;

  --header-height: 116px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.05);
  --shadow-md: 0 4px 14px rgba(24, 24, 27, 0.08);
  --shadow-lg: 0 16px 36px rgba(24, 24, 27, 0.14);
  --container-width: 1200px;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; }
button { font-family: inherit; cursor: pointer; }
.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;
}
.sr-only.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  z-index: 999; background: #fff; color: var(--color-primary-dark);
  padding: 10px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  clip: auto; margin: 0;
}

.container-page {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}
.container-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Header ---------------- */
header[role="banner"] {
  position: fixed; inset-inline: 0; top: 0; z-index: 200;
}
.topbar {
  background: var(--color-charcoal);
  color: #fff;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px; gap: 12px; font-size: 12.5px;
}
.topbar-list { display: flex; align-items: center; gap: 20px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.topbar-list li { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85); }
.topbar-list svg { color: #a5b4fc; flex-shrink: 0; }
.topbar-call {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  color: #c7d2fe; font-weight: 600; white-space: nowrap;
}
.topbar-call:hover { color: #fff; }

.mainbar {
  background: #fff; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
}
.mainbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; flex-shrink: 0; letter-spacing: -.01em; }
.logo .plane { color: var(--color-primary); }
.logo-flight { color: var(--color-text); }
.logo-desk { color: var(--color-primary); }

nav.main-nav { display: flex; }
.main-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; margin: 0; }
.main-nav > ul > li { position: relative; }
.nav-link {
  display: block; padding: 10px 14px; font-size: 14.5px; font-weight: 600;
  color: #3f3f46; border-radius: var(--radius-sm); transition: color .15s, background .15s;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--color-primary-dark); background: var(--color-bg-alt); }
.nav-link.active { color: var(--color-primary-dark); }
.nav-link.active::after {
  content: ""; display: block; height: 2px; margin-top: 4px; border-radius: 2px;
  background: var(--color-primary);
}
.nav-dropdown-btn {
  display: flex; align-items: center; gap: 4px; background: none; border: none;
  padding: 10px 14px; font-size: 14.5px; font-weight: 600; color: #3f3f46;
  border-radius: var(--radius-sm);
}
.nav-dropdown-btn:hover { color: var(--color-primary-dark); background: var(--color-bg-alt); }
.nav-dropdown-btn .chev { transition: transform .18s ease; }
.nav-dropdown-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-dropdown-btn[aria-expanded="true"] { color: var(--color-primary-dark); background: var(--color-bg-alt); }

.dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 260px; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 10px;
  display: none; z-index: 50;
}
.dropdown-panel.open { display: block; animation: dropdownIn .14s ease; }
@keyframes dropdownIn { from { opacity: 0; transform: translateX(-50%) translateY(-4px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.dropdown-panel a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 14px;
  font-weight: 500; color: #3f3f46; border-radius: var(--radius-sm);
}
.dropdown-panel a:hover { background: var(--color-bg-alt); color: var(--color-primary-dark); }
.dropdown-panel svg { color: var(--color-primary); flex-shrink: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px;
  padding: 11px 20px; transition: background .15s, box-shadow .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-accent { background: var(--color-charcoal); color: #fff; }
.btn-accent:hover { background: var(--color-charcoal-2); }
.btn-outline { background: transparent; color: var(--color-primary-dark); border: 1.5px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-bg-alt); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 15.5px; }

.menu-toggle {
  display: none; background: none; border: none; padding: 8px; border-radius: var(--radius-sm); color: #3f3f46;
}
.menu-toggle:hover { background: var(--color-bg-alt); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: var(--header-height) 0 0 0; z-index: 150;
  background: #fff; overflow-y: auto; padding: 14px 20px 40px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--color-border); }
.mobile-nav .nav-link, .mobile-nav .nav-dropdown-btn { width: 100%; padding: 14px 4px; font-size: 16px; justify-content: space-between; }
.mobile-submenu { display: none; padding: 0 4px 12px 14px; }
.mobile-submenu.open { display: block; }
.mobile-submenu a { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 14.5px; color: #3f3f46; }
.mobile-nav-call { margin-top: 20px; }

/* ---------------- Hero + Search ---------------- */



.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #1f1f3d 55%, var(--color-primary-darker) 100%);
  color: #fff; padding: 56px 0 64px; text-align: center;
  min-height: 560px; display: flex; align-items: center;
}
.hero > .container-page { width: 100%; }
@media (max-width: 640px) {
  .hero { min-height: 480px; padding: 40px 0 48px; }
}

/* Hero slideshow — rotating travel photos behind the search card, just below the header */
.hero-slideshow {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s ease, transform 8s ease;
  will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(24,24,27,.88) 0%, rgba(31,31,61,.82) 55%, rgba(55,48,163,.78) 100%);
}
.hero > .container-page { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity .3s ease; transform: none; }
}

.hero h1 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.8); max-width: 680px; margin: 0 auto 30px; line-height: 1.6; }
.hero-sub a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.hero-call { margin-top: 22px; font-size: 14px; color: rgba(255,255,255,.65); }
.hero-call a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.search-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--color-border);
  padding: 18px; max-width: 980px; margin: 0 auto; text-align: left; color: var(--color-text);
}
.trip-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.trip-tab {
  background: var(--color-bg-alt); border: 1px solid transparent; color: var(--color-primary-darker);
  font-weight: 600; font-size: 13.5px; padding: 8px 16px; border-radius: 999px;
}
.trip-tab.active { background: var(--color-primary); color: #fff; }
.trip-tab:hover:not(.active) { border-color: var(--color-primary); }

.class-select {
  margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13.5px;
}
.class-select select {
  border: 1px solid var(--color-border); border-radius: 999px; padding: 7px 14px;
  font-size: 13.5px; font-weight: 600; color: var(--color-primary-darker); background: #fff;
}
.trip-tabs-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.search-grid {
  display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr 1fr auto;
  gap: 10px; align-items: end;
}
.field { display: flex; flex-direction: column; gap: 5px; position: relative; }
.field label { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--color-muted); }
.field .input-wrap {
  display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm); padding: 10px 12px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field .input-wrap:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(79,70,229,.14); }
.field .input-wrap svg { color: var(--color-primary); flex-shrink: 0; }
.field input, .field select {
  border: none; outline: none; font-size: 14.5px; font-weight: 600; color: var(--color-text);
  width: 100%; background: transparent; font-family: inherit;
}
.field input::placeholder { color: var(--color-muted-light); font-weight: 500; }
.field small.helper { font-size: 11px; color: var(--color-muted-light); margin-top: 2px; }

.origin-dest { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; grid-column: span 2; }
.swap-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; background: var(--color-primary); color: #fff;
  border: 3px solid #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); z-index: 5; transition: transform .2s, background .15s;
}
.swap-btn:hover { background: var(--color-primary-dark); transform: translate(-50%, -50%) rotate(180deg); }

.passenger-popover {
  position: absolute; top: calc(100% + 6px); left: 0; width: 280px; background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 14px; z-index: 30; display: none;
}
.passenger-popover.open { display: block; }
.pax-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.pax-row + .pax-row { border-top: 1px solid var(--color-border); }
.pax-row .pax-label { font-size: 14px; font-weight: 600; }
.pax-row .pax-hint { font-size: 11.5px; color: var(--color-muted); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--color-primary);
  background: #fff; color: var(--color-primary); font-size: 16px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.stepper button:disabled { opacity: .35; border-color: var(--color-muted-light); color: var(--color-muted-light); }
.stepper span { min-width: 16px; text-align: center; font-weight: 700; }
.passenger-popover .done-btn { margin-top: 10px; }

.search-submit-btn {
  height: 46px; padding: 0 20px; border-radius: var(--radius-sm); background: var(--color-primary);
  color: #fff; font-weight: 800; font-size: 15px; border: none; display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.search-submit-btn:hover { background: var(--color-primary-dark); }

.flexible-dates { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--color-muted); }
.flexible-dates input { accent-color: var(--color-primary); }

.search-status {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--color-bg-alt);
  border: 1px solid var(--color-border); font-size: 13.5px; color: var(--color-primary-darker);
  display: none; align-items: center; gap: 10px;
}
.search-status.show { display: flex; }
.search-status .spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--color-primary);
  border-top-color: transparent; animation: spin .7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.field-error { border-color: #e11d48 !important; }
.field-error-msg { color: #e11d48; font-size: 11.5px; margin-top: 3px; display: none; }
.field-error-msg.show { display: block; }

/* ---------------- Generic sections ---------------- */
.section { padding: 56px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title { font-size: 26px; font-weight: 800; color: var(--color-text); text-align: center; margin: 0 0 8px; letter-spacing: -.01em; }
.section-sub { text-align: center; color: var(--color-muted); font-size: 15px; max-width: 620px; margin: 0 auto 34px; }

/* Why book cards */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.stat-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.stat-num { font-size: 38px; font-weight: 900; color: var(--color-primary); margin-bottom: 6px; }
.stat-card h3 { margin: 0 0 6px; color: var(--color-text); font-size: 16px; }
.stat-card p { margin: 0; font-size: 13.5px; color: var(--color-muted); line-height: 1.5; }
/* Popular airlines — logos rendered as fixed-size brand badges so nothing stretches or distorts */
.airline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.airline-card {
  display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 20px; background: #fff; transition: box-shadow .18s, border-color .18s, transform .18s;
}
.airline-card:hover { box-shadow: var(--shadow-md); border-color: var(--airline-color, var(--color-primary)); transform: translateY(-2px); }
.airline-badge {
  width: 48px; height: 48px; border-radius: var(--radius-sm); aspect-ratio: 1 / 1;
  display: block; object-fit: contain; flex-shrink: 0; background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
}
.airline-badge-text {
  display: flex; align-items: center; justify-content: center;
  background: var(--airline-color, var(--color-primary)); color: #fff;
  font-size: 15px; font-weight: 800; letter-spacing: .02em; line-height: 1;
  border-radius: 50%;
}
.airline-info h3 { margin: 0 0 8px; font-size: 15.5px; color: var(--color-text); }
.airline-routes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.airline-routes li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--color-muted); }
.airline-routes strong { color: var(--color-primary); font-size: 13.5px; flex-shrink: 0; }
.airline-card .route-cta { margin-top: auto; display: block; font-size: 13px; font-weight: 700; color: var(--color-primary-dark); }

/* Popular routes */
.route-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.route-card {
  border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px; background: #fff;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.route-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-primary); transform: translateY(-2px); }
.route-card .route-pair { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--color-text); }
.route-card .route-pair svg { color: var(--color-primary); }
.route-card .route-cities { font-size: 12px; color: var(--color-muted); margin: 4px 0 12px; }
.route-card .route-price { display: flex; align-items: baseline; justify-content: space-between; }
.route-card .price-tag { font-size: 20px; font-weight: 800; color: var(--color-primary); }
.route-card .price-label { font-size: 11px; color: var(--color-muted-light); }
.route-card .route-cta { margin-top: 12px; display: block; text-align: center; font-size: 13px; font-weight: 700; color: var(--color-primary-dark); }

/* Price calendar (static demo) */
.calendar-wrap { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.calendar-head {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
  background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border);
}
.calendar-head strong { color: var(--color-text); font-size: 15px; }
.calendar-head .cal-nav { display: flex; gap: 8px; }
.calendar-head .cal-nav button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--color-border); background: #fff;
  display: flex; align-items: center; justify-content: center; color: var(--color-primary-dark);
}
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-grid .cal-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--color-muted); padding: 10px 0; background: #fcfcfd; }
.cal-cell {
  border-top: 1px solid var(--color-border); border-left: 1px solid var(--color-border);
  min-height: 68px; padding: 8px; font-size: 12px; position: relative; cursor: pointer; transition: background .15s;
}
.cal-cell:nth-child(7n) { border-right: 1px solid var(--color-border); }
.cal-cell:hover { background: var(--color-bg-alt); }
.cal-cell .cal-date { font-weight: 700; color: var(--color-text); }
.cal-cell .cal-price { display: block; margin-top: 16px; font-weight: 800; font-size: 13px; color: var(--color-primary); }
.cal-cell.cal-best { background: #ecfdf5; }
.cal-cell.cal-best .cal-price { color: #059669; }
.cal-cell.cal-best::after {
  content: "Best"; position: absolute; top: 6px; right: 6px; font-size: 9px; font-weight: 800;
  color: #059669; background: #d1fae5; padding: 2px 6px; border-radius: 999px;
}
.cal-cell.cal-empty { background: #fafafa; cursor: default; }

/* Flight schedule table */
.schedule-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
table.schedule-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.schedule-table thead th {
  background: var(--color-charcoal); color: #fff; text-align: left; font-size: 12px; text-transform: uppercase;
  letter-spacing: .03em; padding: 12px 16px; font-weight: 700;
}
.schedule-table tbody td { padding: 14px 16px; font-size: 13.5px; border-top: 1px solid var(--color-border); }
.schedule-table tbody tr:hover { background: var(--color-bg-alt); }
.airline-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--color-text); }
.airline-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.badge-nonstop { background: #ecfdf5; color: #059669; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge-stop { background: #fff7ed; color: #c2410c; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.schedule-price { font-weight: 800; color: var(--color-primary); }
.schedule-select-btn {
  background: var(--color-primary); color: #fff; border: none; padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 12.5px; font-weight: 700;
}
.schedule-select-btn:hover { background: var(--color-primary-dark); }

/* Destinations grid — real photo backgrounds */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.dest-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden; height: 150px; color: #fff;
  display: flex; align-items: flex-end; padding: 14px; font-weight: 700; font-size: 14px;
  background-image: var(--dest-img); background-size: cover; background-position: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.dest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.dest-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,20,.05) 0%, rgba(17,17,20,.35) 55%, rgba(17,17,20,.85) 100%);
}
.dest-card span { position: relative; z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.dest-card small { position: relative; z-index: 1; display: block; font-weight: 600; font-size: 11.5px; opacity: .92; margin-top: 2px; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 24px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--color-primary);
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.step h3 { margin: 0 0 4px; color: var(--color-text); font-size: 15.5px; }
.step p { margin: 0; color: var(--color-muted); font-size: 14px; line-height: 1.55; }
.pro-tip { margin-top: 30px; padding: 16px; background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: 13.5px; color: var(--color-muted); }
.pro-tip strong { color: var(--color-text); }

/* Explore pills */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill {
  display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--color-bg-alt);
  color: #3f3f46; font-size: 13.5px; font-weight: 600; border: 1px solid var(--color-border);
}
.pill:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.disclosure-note { font-size: 12px; color: var(--color-muted-light); }
.disclosure-note a { text-decoration: underline; }

/* ---------------- Footer ---------------- */
footer[role="contentinfo"] { background: var(--color-charcoal); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0; }
.footer-brand h2 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,.6); line-height: 1.6; margin: 0 0 20px; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-contact li, .footer-contact a { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.75); }
.footer-contact svg { flex-shrink: 0; margin-top: 2px; color: #a5b4fc; }
.footer-contact a:hover { color: #fff; }

.footer-col h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; color: #fff; font-weight: 800;
  position: relative; padding-bottom: 10px;
}
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--color-primary); border-radius: 2px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: #fff; }
.footer-col svg { color: rgba(255,255,255,.3); flex-shrink: 0; }

.why-us-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 16px; }
.why-us-item { display: flex; gap: 12px; align-items: flex-start; }
.why-us-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--color-primary);
  display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 3px 10px rgba(79,70,229,.35);
}
.why-us-item p { margin: 0; font-size: 13.5px; font-weight: 700; color: #fff; }
.why-us-item span { display: block; margin-top: 2px; font-size: 12px; color: rgba(255,255,255,.55); font-weight: 400; }

.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-disclaimer p {
  max-width: 760px; margin: 0 auto; text-align: center;
  font-size: 11.5px; line-height: 1.6; color: rgba(255,255,255,.45);
}


.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.2); }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0;
  font-size: 11.5px; color: rgba(255,255,255,.45); flex-wrap: wrap;
}
.footer-bottom-inner p { margin: 0; }
.footer-bottom-inner a { text-decoration: underline; color: rgba(255,255,255,.6); }
.footer-bottom-inner a:hover { color: #fff; }
.footer-legal { text-align: right; }

/* ---------------- Chat bubble ---------------- */
.chat-hint {
  position: fixed; bottom: 96px; right: 20px; z-index: 90; max-width: 220px; background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px; border-bottom-right-radius: 4px; padding: 12px 16px; box-shadow: var(--shadow-lg);
}
.chat-hint p { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--color-text); }
.chat-hint button.ask-btn { margin-top: 4px; background: none; border: none; padding: 0; color: var(--color-primary-dark); font-weight: 700; font-size: 12.5px; }
.chat-hint .dismiss { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: #e2e8f0; border: none; display: flex; align-items: center; justify-content: center; color: #64748b; }
.chat-fab {
  position: fixed; bottom: 20px; right: 20px; z-index: 100; width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-primary); color: #fff; border: none; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s;
}
.chat-fab:hover { background: var(--color-primary-dark); transform: scale(1.05); }

/* ---------------- Simple content pages ---------------- */
.page-hero { background: linear-gradient(135deg, var(--color-charcoal), var(--color-primary-darker)); color: #fff; padding: 46px 0; text-align: center; }
.page-hero h1 { margin: 0 0 8px; font-size: 30px; font-weight: 800; }
.page-hero p { margin: 0; color: rgba(255,255,255,.7); }
.prose { padding: 46px 0 70px; }
.prose h2 { color: var(--color-text); font-size: 20px; margin: 32px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #3f3f46; line-height: 1.75; font-size: 15px; }
.prose p a, .prose li a { color: var(--color-primary-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose ul { color: #3f3f46; line-height: 1.75; font-size: 15px; padding-left: 20px; }
.breadcrumb { font-size: 13px; color: var(--color-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--color-primary-dark); font-weight: 600; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .origin-dest { grid-column: span 2; }
  .route-grid { grid-template-columns: repeat(2, 1fr); }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  nav.main-nav, .header-actions .btn-primary { display: none; }
  .menu-toggle { display: inline-flex; }
  .topbar-list li:nth-child(3) { display: none; }
  .stat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-height: 108px; }
  .search-grid { grid-template-columns: 1fr; }
  .origin-dest { grid-template-columns: 1fr; grid-column: span 1; }
  .swap-btn { top: 100%; left: 50%; transform: translate(-50%, -50%) rotate(90deg); }
  .swap-btn:hover { transform: translate(-50%, -50%) rotate(270deg); }
  .class-select { margin-left: 0; }
  .route-grid, .dest-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 40px 0; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-legal { text-align: center; }
  .hero { padding: 40px 0 48px; }
  .search-card { padding: 14px; }
}
