/* ==========================================================================
   TraveloEasy — global stylesheet
   Brand: trust blue + action orange
   ========================================================================== */

:root {
  /* Brand */
  --blue-900: #0a1f44;
  --blue-800: #0d2a5c;
  --blue-700: #123a7a;
  --blue-600: #1a4ed8;
  --blue-500: #2563eb;
  --blue-400: #4f83f1;
  --blue-100: #e3ecfd;
  --blue-50:  #f2f6fe;

  --orange-600: #e2560c;
  --orange-500: #ff6b1a;
  --orange-400: #ff8b47;
  --orange-100: #ffeade;

  /* Neutrals */
  --ink:      #10192c;
  --ink-2:    #3c4a63;
  --ink-3:    #6b7891;
  --line:     #e2e7f0;
  --line-2:   #eef1f7;
  --surface:  #ffffff;
  --canvas:   #f5f7fb;

  /* Status */
  --green-600: #0f9d58;
  --green-100: #e4f6ec;
  --red-600:   #d93025;
  --red-100:   #fdeceb;
  --amber-600: #b7791f;
  --amber-100: #fdf3dc;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 25, 44, .06), 0 1px 3px rgba(16, 25, 44, .05);
  --shadow-md: 0 4px 12px rgba(16, 25, 44, .07), 0 2px 4px rgba(16, 25, 44, .04);
  --shadow-lg: 0 18px 40px rgba(10, 31, 68, .12), 0 4px 12px rgba(10, 31, 68, .06);
  --shadow-xl: 0 30px 70px rgba(10, 31, 68, .18);

  --wrap: 1180px;
}

/* ------------------------------ base ---------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }

h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--blue-900);
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.15rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 820px; }

.section { padding: 68px 0; }
.section-sm { padding: 44px 0; }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-2); margin: 0; font-size: 1.03rem; }

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: .6rem;
}

.muted { color: var(--ink-3); }
.small { font-size: .86rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.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;
}

/* ------------------------------ buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: 0 0 17px; }

.btn-primary {
  background: linear-gradient(180deg, var(--orange-500), var(--orange-600));
  color: #fff;
  box-shadow: 0 6px 16px rgba(226, 86, 12, .28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 22px rgba(226, 86, 12, .34); }

.btn-blue {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 6px 16px rgba(26, 78, 216, .24);
}
.btn-blue:hover { background: var(--blue-700); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--line);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--blue-400); color: var(--blue-700); }

.btn-outline-light {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.btn-sm { padding: 9px 16px; font-size: .87rem; }
.btn-lg { padding: 16px 30px; font-size: 1.03rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ------------------------------ header --------------------------------- */

.topbar {
  background: var(--blue-900);
  color: rgba(255, 255, 255, .82);
  font-size: .82rem;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar-links { display: flex; gap: 18px; align-items: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--blue-900); letter-spacing: -.03em; font-size: 1.24rem; }
.logo:hover { color: var(--blue-900); }
.logo-mark {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(26, 78, 216, .3);
}
.logo-mark svg { width: 21px; height: 21px; }
.logo span i { font-style: normal; color: var(--orange-500); }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-weight: 600;
  font-size: .95rem;
}
.main-nav a:hover { background: var(--blue-50); color: var(--blue-700); }
.main-nav a.active { color: var(--blue-700); background: var(--blue-100); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: flex; align-items: center; gap: 9px;
  color: var(--blue-900); font-weight: 800;
}
.header-phone:hover { color: var(--blue-900); }
.header-phone small { display: block; font-size: .68rem; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.header-phone .ico {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-100); color: var(--green-600);
  display: grid; place-items: center; flex: 0 0 36px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--blue-900); border-radius: 2px; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ------------------------------ hero ----------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 78% 8%, rgba(255, 107, 26, .22), transparent 62%),
    radial-gradient(1000px 620px at 12% 92%, rgba(37, 99, 235, .45), transparent 60%),
    linear-gradient(160deg, #123a7a 0%, #0d2a5c 45%, #0a1f44 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: #fff;
  padding: 60px 0 84px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -60px; right: -80px;
  width: 560px; height: 560px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .07) 0 1px, transparent 1px) 0 0/22px 22px;
  opacity: .8;
  pointer-events: none;
  mask-image: radial-gradient(circle at 60% 40%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000, transparent 70%);
}
.hero > .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { font-size: 1.1rem; color: rgba(255, 255, 255, .87); max-width: 52ch; margin-bottom: 1.4rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: rgba(255, 255, 255, .9); }
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges svg { width: 17px; height: 17px; color: var(--orange-400); }

.hero-panel {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-lg);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-panel h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.hero-panel .row { display: flex; gap: 13px; align-items: flex-start; padding: 11px 0; }
.hero-panel .row + .row { border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-panel .row svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--orange-400); margin-top: 2px; }
.hero-panel .row b { display: block; color: #fff; font-size: .95rem; }
.hero-panel .row span { font-size: .85rem; color: rgba(255, 255, 255, .74); }
.hero-panel .btn { margin-top: 18px; }

.page-hero {
  background: linear-gradient(140deg, var(--blue-800), var(--blue-600));
  color: #fff;
  padding: 52px 0;
}
.page-hero h1 { color: #fff; margin-bottom: .3rem; }
.page-hero p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 62ch; }
.crumbs { font-size: .84rem; color: rgba(255, 255, 255, .72); margin-bottom: .8rem; }
.crumbs a { color: rgba(255, 255, 255, .92); }

/* --------------------------- search widget ------------------------------ */

.search-card {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  padding: 18px;
  color: var(--ink);
}
.hero .search-card { margin-top: 34px; }
.search-shift { margin-top: -86px; position: relative; z-index: 5; }

.trip-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.trip-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-weight: 700;
  font-size: .88rem;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: .15s;
}
.trip-tab:hover { border-color: var(--blue-400); }
.trip-tab.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

.search-grid {
  display: grid;
  grid-template-columns: 1.12fr 1.12fr .92fr .92fr 1.3fr auto;
  gap: 10px;
  align-items: end;
}

.field { position: relative; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field select, .field textarea {
  font: inherit;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  min-width: 0;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.field input::placeholder { color: #9aa5ba; }
.field .hint { font-size: .76rem; color: var(--ink-3); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red-600); background: #fffafa; }
.field .err { display: none; font-size: .78rem; color: var(--red-600); font-weight: 600; }
.field.invalid .err { display: block; }

.airport-code {
  position: absolute; right: 12px; bottom: 13px;
  font-size: .72rem; font-weight: 800; color: var(--blue-600);
  background: var(--blue-50); padding: 2px 6px; border-radius: 5px;
  pointer-events: none;
}

.swap-btn {
  position: absolute;
  right: -20px;
  bottom: 8px;
  z-index: 4;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-600);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.swap-btn:hover { border-color: var(--blue-400); background: var(--blue-50); }
.swap-btn svg { width: 16px; height: 16px; }

.suggestions {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  z-index: 40;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  max-height: 288px;
  overflow-y: auto;
  margin-top: 6px;
  padding: 5px;
  display: none;
}
.suggestions.open { display: block; }
.suggestion {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.suggestion:hover, .suggestion.hl { background: var(--blue-50); }
.suggestion .code {
  font-weight: 800; font-size: .74rem; color: var(--blue-700);
  background: var(--blue-100); border-radius: 5px; padding: 3px 6px; flex: 0 0 auto;
}
.suggestion .name { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.suggestion .sub { font-size: .78rem; color: var(--ink-3); }
.suggestions .empty { padding: 14px; color: var(--ink-3); font-size: .9rem; text-align: center; }

/* passenger popover */
.pax-trigger {
  text-align: left;
  cursor: pointer;
  background: #fff;
}
.pax-panel {
  position: absolute;
  top: 100%; right: 0;
  z-index: 40;
  width: 290px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  margin-top: 6px;
  display: none;
}
.pax-panel.open { display: block; }
.pax-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; }
.pax-row + .pax-row { border-top: 1px solid var(--line-2); }
.pax-row strong { display: block; font-size: .94rem; }
.pax-row small { color: var(--ink-3); font-size: .78rem; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--blue-700);
  font-size: 1.1rem; font-weight: 700; line-height: 1; cursor: pointer;
}
.stepper button:hover:not([disabled]) { border-color: var(--blue-500); background: var(--blue-50); }
.stepper button[disabled] { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 18px; text-align: center; font-weight: 700; }

.search-extras {
  display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center;
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line-2);
  font-size: .88rem; color: var(--ink-2);
}
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--blue-600); }

/* ------------------------------ cards ---------------------------------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 20px; }

.deal-card { display: flex; flex-direction: column; }
.deal-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  display: grid; place-items: center;
  overflow: hidden;
}
/* photo layer — sits over the gradient fallback, removes itself if the
   file is missing so the gradient shows through */
.media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card-hover:hover .media-img { transform: scale(1.06); }
.media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 68, .12) 0%, rgba(10, 31, 68, .18) 45%, rgba(10, 31, 68, .72) 100%);
}
.media-label {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 16px;
  text-shadow: 0 1px 12px rgba(10, 31, 68, .5);
}
.deal-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--orange-500); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-pill);
}
.deal-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.deal-route { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--blue-900); font-size: 1.02rem; }
.deal-route svg { width: 16px; height: 16px; color: var(--orange-500); flex: 0 0 16px; }
.deal-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--ink-3); }
.deal-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.price { font-size: 1.5rem; font-weight: 900; color: var(--blue-900); letter-spacing: -.03em; line-height: 1; }
.price small { font-size: .72rem; font-weight: 600; color: var(--ink-3); display: block; letter-spacing: 0; margin-top: 3px; }
.strike { text-decoration: line-through; color: var(--ink-3); font-size: .84rem; font-weight: 600; }

.feature {
  display: flex; gap: 14px; align-items: flex-start;
}
.feature .ico {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 13px;
  background: var(--blue-100); color: var(--blue-700);
  display: grid; place-items: center;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.feature p { margin: 0; color: var(--ink-2); font-size: .93rem; }

.stat-strip {
  background: var(--blue-900);
  color: #fff;
}
.stat-strip .grid { gap: 18px; }
.stat { text-align: center; padding: 8px; }
.stat b { display: block; font-size: 2rem; font-weight: 900; letter-spacing: -.03em; color: #fff; }
.stat span { font-size: .86rem; color: rgba(255, 255, 255, .72); }

.dest-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 232px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease;
}
.dest-card:hover { transform: translateY(-4px); color: #fff; }
.dest-card .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .35s ease; }
.dest-card:hover .bg { transform: scale(1.06); }
.dest-card .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.dest-card:hover .bg-img { transform: scale(1.06); }
.dest-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 68, 0) 30%, rgba(10, 31, 68, .85) 100%);
}
.dest-card .info { position: relative; z-index: 2; padding: 18px; width: 100%; }
.dest-card .info b { display: block; font-size: 1.12rem; font-weight: 800; }
.dest-card .info span { font-size: .85rem; color: rgba(255, 255, 255, .82); }
.dest-card .info .from { float: right; font-weight: 800; }

/* --------------------------- results page ------------------------------ */

.results-layout { display: grid; grid-template-columns: 268px 1fr; gap: 26px; align-items: start; }

.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; position: sticky; top: 88px; box-shadow: var(--shadow-sm);
}
.filter-group + .filter-group { border-top: 1px solid var(--line-2); margin-top: 16px; padding-top: 16px; }
.filter-group h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: .7rem; }
.filter-opt { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: .92rem; cursor: pointer; }
.filter-opt input { width: 16px; height: 16px; accent-color: var(--blue-600); }
.filter-opt .count { margin-left: auto; color: var(--ink-3); font-size: .8rem; }
input[type="range"] { width: 100%; accent-color: var(--blue-600); }

.results-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.results-bar .count { font-weight: 700; }
.sort-tabs { margin-left: auto; display: flex; gap: 4px; background: var(--canvas); padding: 4px; border-radius: var(--r-pill); }
.sort-tabs button {
  border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .84rem;
  padding: 7px 14px; border-radius: var(--r-pill); cursor: pointer; color: var(--ink-2);
}
.sort-tabs button.active { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); }

.flight-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.flight-card:hover { border-color: var(--blue-400); box-shadow: var(--shadow-md); }
.flight-main { display: grid; grid-template-columns: 1fr 200px; gap: 0; }
.flight-legs { padding: 18px 20px; }
.leg { display: grid; grid-template-columns: 158px 1fr auto; gap: 16px; align-items: center; }
.leg + .leg { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.airline { display: flex; align-items: center; gap: 10px; min-width: 0; }
.airline-logo {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .78rem;
  letter-spacing: -.02em;
}
.airline b { display: block; font-size: .82rem; line-height: 1.2; }
.airline small { color: var(--ink-3); font-size: .74rem; }
.leg-times { display: flex; align-items: center; gap: 14px; }
.leg-point b { display: block; font-size: 1.22rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.leg-point span { font-size: .8rem; color: var(--ink-3); }
.leg-line { flex: 1; text-align: center; min-width: 90px; }
.leg-line .dur { font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.leg-line .bar { position: relative; height: 2px; background: var(--line); margin: 7px 0; border-radius: 2px; }
.leg-line .bar::before, .leg-line .bar::after {
  content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue-500);
}
.leg-line .bar::before { left: 0; }
.leg-line .bar::after { right: 0; }
.leg-line .stops { font-size: .78rem; font-weight: 700; color: var(--green-600); }
.leg-line .stops.has { color: var(--amber-600); }
.leg-line .dot {
  position: absolute; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber-600);
}

.flight-price {
  border-left: 1px dashed var(--line);
  background: var(--blue-50);
  padding: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; text-align: center;
}
.flight-price .per { font-size: .74rem; color: var(--ink-3); }

.flight-extra {
  border-top: 1px solid var(--line-2);
  padding: 10px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  font-size: .8rem; color: var(--ink-3);
}
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--canvas); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: var(--r-pill); font-size: .76rem; font-weight: 600; color: var(--ink-2);
}
.chip.good { background: var(--green-100); border-color: transparent; color: var(--green-600); }
.chip.warn { background: var(--amber-100); border-color: transparent; color: var(--amber-600); }
.link-btn {
  margin-left: auto; background: none; border: 0; font: inherit; font-weight: 700; font-size: .84rem;
  color: var(--blue-600); cursor: pointer; padding: 4px;
}

.itinerary { display: none; padding: 4px 20px 18px; background: var(--blue-50); border-top: 1px solid var(--line-2); }
.itinerary.open { display: block; }
.iti-leg { padding: 14px 0; }
.iti-leg + .iti-leg { border-top: 1px solid var(--line); }
.iti-title { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: 10px; }
.iti-seg { display: grid; grid-template-columns: 72px 1fr; gap: 14px; font-size: .88rem; }
.iti-seg + .iti-seg { margin-top: 4px; }
.iti-seg .time { font-weight: 700; }
.iti-stop {
  margin: 8px 0 8px 86px; font-size: .82rem; color: var(--amber-600); font-weight: 600;
  background: var(--amber-100); display: inline-block; padding: 3px 10px; border-radius: var(--r-pill);
}

.empty-state {
  background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg);
  padding: 50px 24px; text-align: center; color: var(--ink-2);
}
.empty-state svg { width: 46px; height: 46px; color: var(--blue-400); margin: 0 auto 12px; }

.skeleton { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 14px; }
.sk-line { height: 13px; border-radius: 6px; background: linear-gradient(90deg, var(--line-2) 25%, #f8fafc 50%, var(--line-2) 75%); background-size: 200% 100%; animation: shimmer 1.1s infinite; margin-bottom: 11px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* --------------------------- booking flow ------------------------------ */

.steps { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.step { display: flex; align-items: center; gap: 9px; font-size: .88rem; font-weight: 700; color: var(--ink-3); }
.step i {
  font-style: normal; width: 26px; height: 26px; border-radius: 50%;
  background: var(--line-2); color: var(--ink-3); display: grid; place-items: center; font-size: .8rem;
}
.step.active { color: var(--blue-700); }
.step.active i { background: var(--blue-600); color: #fff; }
.step.done { color: var(--green-600); }
.step.done i { background: var(--green-600); color: #fff; }
.step-sep { width: 26px; height: 1px; background: var(--line); }

.booking-layout { display: grid; grid-template-columns: 1fr 348px; gap: 24px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 18px; }
.panel h3 { margin-bottom: 4px; }
.panel .panel-sub { color: var(--ink-3); font-size: .88rem; margin-bottom: 18px; }

.summary { position: sticky; top: 88px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .92rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 900; font-size: 1.15rem; color: var(--blue-900); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }

.pax-block + .pax-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.pax-block h4 { font-size: .95rem; margin-bottom: 12px; color: var(--blue-700); }

.notice {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--r-md); padding: 13px 15px; font-size: .87rem; color: var(--ink-2);
}
.notice svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--blue-600); margin-top: 2px; }
.notice.warn { background: var(--amber-100); border-color: #f3e2bb; }
.notice.warn svg { color: var(--amber-600); }

.confirm-hero { text-align: center; padding: 34px 24px; }
.confirm-hero .tick {
  width: 74px; height: 74px; border-radius: 50%; background: var(--green-100); color: var(--green-600);
  display: grid; place-items: center; margin: 0 auto 16px;
}
.confirm-hero .tick svg { width: 36px; height: 36px; }
.pnr {
  display: inline-block; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.5rem; font-weight: 800; letter-spacing: .18em;
  background: var(--blue-900); color: #fff; padding: 10px 20px; border-radius: var(--r-md);
}

/* --------------------------- misc content ------------------------------ */

.accordion { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; overflow: hidden; }
.accordion summary {
  padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--blue-900);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.3rem; color: var(--blue-600); font-weight: 400; }
.accordion[open] summary::after { content: "\2212"; }
.accordion .acc-body { padding: 0 18px 18px; color: var(--ink-2); font-size: .95rem; }

.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal h3 { font-size: 1.02rem; margin-top: 1.4rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal .panel { padding: 34px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
th { background: var(--blue-50); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
tr:last-child td { border-bottom: 0; }

.cta-band {
  background: linear-gradient(130deg, var(--blue-800), var(--blue-600));
  color: #fff; border-radius: var(--r-xl); padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; }

/* ------------------------------ footer --------------------------------- */

.site-footer { background: var(--blue-900); color: rgba(255, 255, 255, .72); padding: 56px 0 0; margin-top: 10px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, .72); font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; max-width: 34ch; }
.footer-contact { display: grid; gap: 10px; font-size: .92rem; margin-top: 16px; }
.footer-contact div { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 3px; color: var(--orange-400); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .09);
  display: grid; place-items: center; color: #fff;
}
.socials a:hover { background: var(--orange-500); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom {
  margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .84rem;
}
.disclosure {
  background: rgba(0, 0, 0, .22); font-size: .8rem; line-height: 1.6;
  padding: 18px 0; color: rgba(255, 255, 255, .58);
}

/* ===================== flight help: sticky CTA + popup ==================== */

.help-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.help-fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  font: inherit;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, var(--orange-500), var(--orange-600));
  padding: 13px 20px 13px 14px;
  border-radius: var(--r-pill);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(226, 86, 12, .38);
  transition: transform .16s ease, box-shadow .16s ease;
}
.help-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(226, 86, 12, .46); }
.help-fab .fab-ico {
  position: relative;
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  display: grid; place-items: center;
}
.help-fab svg { width: 19px; height: 19px; }
.help-fab .fab-ico::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5);
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(.8); opacity: .9; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
.help-fab .fab-text { text-align: left; line-height: 1.15; }
.help-fab .fab-text small { display: block; font-size: .68rem; font-weight: 600; opacity: .85; }

/* quick help panel anchored to the launcher */
.help-panel {
  width: 336px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(.94) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
}
.help-panel.open { transform: none; opacity: 1; pointer-events: auto; }

.help-panel-head {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #fff;
  padding: 18px 18px 16px;
  position: relative;
}
.help-panel-head b { display: block; font-size: 1.02rem; }
.help-panel-head span { font-size: .84rem; color: rgba(255, 255, 255, .78); }
.help-close {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .16); color: #fff;
  cursor: pointer; display: grid; place-items: center; font-size: 1rem; line-height: 1;
}
.help-close:hover { background: rgba(255, 255, 255, .28); }

.help-topics { padding: 8px; }
.help-topic {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  padding: 11px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--ink);
}
.help-topic:hover, .help-topic.active { background: var(--blue-50); border-color: var(--blue-100); }
.help-topic .t-ico {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
}
.help-topic .t-ico svg { width: 19px; height: 19px; }
.help-topic b { display: block; font-size: .94rem; }
.help-topic small { color: var(--ink-3); font-size: .8rem; }
.help-topic .arrow { margin-left: auto; color: var(--blue-500); font-weight: 800; }

.help-detail { display: none; padding: 4px 16px 16px; }
.help-detail.open { display: block; }
.help-detail p { font-size: .88rem; color: var(--ink-2); margin-bottom: 12px; }
.help-detail .btn { width: 100%; margin-bottom: 8px; }

.help-panel-foot {
  border-top: 1px solid var(--line-2);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; color: var(--ink-3);
  background: var(--canvas);
}
.help-panel-foot .dot-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); flex: 0 0 8px;
  box-shadow: 0 0 0 3px var(--green-100);
}

/* mobile sticky action bar */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 140;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 10px;
  box-shadow: 0 -6px 22px rgba(10, 31, 68, .1);
}
.mobile-bar .btn { flex: 1; padding: 13px 12px; font-size: .93rem; }

/* ------------------------------- modal ---------------------------------- */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 31, 68, .62);
  backdrop-filter: blur(3px);
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  overflow-y: auto;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal {
  width: 100%;
  max-width: 660px;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(16px) scale(.98);
  transition: transform .22s cubic-bezier(.2, .9, .3, 1.1);
  margin: auto;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
}
.modal .modal-body { overflow-y: auto; }
.modal .modal-head, .modal .modal-foot { flex: 0 0 auto; }
.modal-backdrop.open .modal { transform: none; }

.modal-head {
  position: relative;
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(255, 107, 26, .3), transparent 60%),
    linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #fff;
  padding: 30px 32px 26px;
}
.modal-head h2 { color: #fff; font-size: 1.5rem; margin-bottom: .3rem; }
.modal-head p { color: rgba(255, 255, 255, .82); margin: 0; font-size: .95rem; max-width: 46ch; }
.modal-head .help-close { top: 16px; right: 16px; width: 32px; height: 32px; }

.modal-body { padding: 24px 32px 28px; }

.help-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.help-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.help-card:hover { border-color: var(--blue-400); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.help-card.active { border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100); }
.help-card .t-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; margin-bottom: 10px; }
.help-card .t-ico svg { width: 19px; height: 19px; }
.help-card b { display: block; font-size: .96rem; margin-bottom: 2px; }
.help-card small { color: var(--ink-3); font-size: .82rem; line-height: 1.4; display: block; }

.modal-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.call-block {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-md);
  padding: 18px;
  text-align: center;
}
.call-block .num {
  display: block; font-size: 1.35rem; font-weight: 900; color: var(--blue-900);
  letter-spacing: -.02em; margin: 6px 0 10px;
}
.modal-foot {
  border-top: 1px solid var(--line-2);
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--canvas);
  font-size: .82rem; color: var(--ink-3);
}
.modal-foot button {
  background: none; border: 0; font: inherit; color: var(--ink-3);
  text-decoration: underline; cursor: pointer; padding: 4px;
}
.modal-foot button:hover { color: var(--ink); }

body.modal-open { overflow: hidden; }

@media (max-width: 700px) {
  .help-cards { grid-template-columns: 1fr; }
  .modal-split { grid-template-columns: 1fr; }
  .modal-head { padding: 24px 20px 20px; }
  .modal-body { padding: 20px; }
  .modal-foot { padding: 12px 20px; }
}

@media (max-width: 620px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 74px; }
  .help-dock { right: 14px; bottom: 84px; }
  .help-fab .fab-text { display: none; }
  .help-fab { padding: 12px; border-radius: 50%; }
  .help-panel { position: fixed; right: 14px; left: 14px; bottom: 150px; width: auto; }
}

@media print {
  .help-dock, .mobile-bar, .modal-backdrop { display: none !important; }
  body { padding-bottom: 0 !important; }
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 120%);
  background: var(--blue-900); color: #fff; padding: 13px 22px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg); font-weight: 600; font-size: .92rem; z-index: 200;
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.2); max-width: 90vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* ----------------------------- responsive ------------------------------ */

@media (max-width: 1080px) {
  .search-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .search-grid .field-pax { grid-column: span 2; }
  .search-grid .field-submit { grid-column: span 2; }
  .results-layout { grid-template-columns: 236px 1fr; }
  .booking-layout { grid-template-columns: 1fr 300px; }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px; gap: 2px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: var(--r-sm); }
  .nav-toggle { display: grid; }
  .site-header .wrap { position: relative; }
  .header-cta .btn { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .results-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .booking-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .flight-main { grid-template-columns: 1fr; }
  .flight-price { border-left: 0; border-top: 1px dashed var(--line); flex-direction: row; justify-content: space-between; }
  .flight-price .btn { flex: 0 0 auto; }
}

@media (max-width: 620px) {
  .section { padding: 46px 0; }
  .hero { padding: 40px 0 96px; }
  .search-grid { grid-template-columns: 1fr; }
  .search-grid .field-pax, .search-grid .field-submit { grid-column: auto; }
  .swap-btn { right: 10px; bottom: -20px; transform: rotate(90deg); }
  .field-to { margin-top: 12px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .leg { grid-template-columns: 1fr; gap: 10px; }
  .topbar-links { display: none; }
  .cta-band { padding: 28px; }
  .legal .panel { padding: 22px; }
  .stat b { font-size: 1.6rem; }
  .header-phone > span:not(.ico) { display: none; }
  .site-header .wrap { gap: 12px; min-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .topbar, .site-footer, .btn, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
