/* Shared with mobile/lib/theme/app_theme.dart. */
@font-face { font-family: "InstrumentSans"; src: url("fonts/InstrumentSans-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "InstrumentSans"; src: url("fonts/InstrumentSans-500.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "InstrumentSans"; src: url("fonts/InstrumentSans-600.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "InstrumentSans"; src: url("fonts/InstrumentSans-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("fonts/Cairo-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("fonts/Cairo-500.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("fonts/Cairo-600.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("fonts/Cairo-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrainsMono"; src: url("fonts/JetBrainsMono-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrainsMono"; src: url("fonts/JetBrainsMono-500.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrainsMono"; src: url("fonts/JetBrainsMono-600.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrainsMono"; src: url("fonts/JetBrainsMono-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --primary: #ff4f18;
  --primary-hover: #e43e0b;
  --on-primary: #ffffff;
  --primary-container: #ff4f181f;
  --on-primary-container: #0d1117;
  --secondary: #0d1117;
  --secondary-container: #e8eae5;
  --on-secondary-container: #0d1117;
  --tertiary: #0057ff;
  --tertiary-container: #0057ff1f;
  --on-tertiary-container: #0d1117;
  --ink: #0d1117;
  --muted: #5c6470;
  --paper: #f4f5f2;
  --card: #ffffff;
  --surface-container: #e8eae5;
  --surface-high: #eceee9;
  --line: #dcdfd9;
  --outline: #5c6470;
  --red: #b3261e;
  --error-container: #f9dedc;
  --on-error-container: #410e0b;
  --success: #18764b;
  --success-container: #e4f5ea;
  --on-success-container: #145c3c;
  --warning: #9a5b00;
  --warning-container: #fff1d6;
  --on-warning-container: #744400;
  --shadow-sm: none;
  --shadow-card: none;
  --shadow: none;
  --shadow-hover: 0 0 0 1px var(--primary);
  font-family: "InstrumentSans", "Cairo", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #ff5b26;
  --primary-hover: #ff7447;
  --on-primary: #ffffff;
  --primary-container: #ff5b261f;
  --on-primary-container: #f3f5f8;
  --secondary: #f3f5f8;
  --secondary-container: #1a2130;
  --on-secondary-container: #f3f5f8;
  --tertiary: #38bdf8;
  --tertiary-container: #38bdf81f;
  --on-tertiary-container: #f3f5f8;
  --ink: #f3f5f8;
  --muted: #8a95a5;
  --paper: #090c12;
  --card: #121722;
  --surface-container: #1a2130;
  --surface-high: #161c28;
  --line: #232c3d;
  --outline: #8a95a5;
  --red: #ffb4ab;
  --error-container: #601410;
  --on-error-container: #ffdad6;
  --success: #86d9ab;
  --success-container: #123729;
  --on-success-container: #b6f2cf;
  --warning: #eebf6b;
  --warning-container: #392b16;
  --on-warning-container: #ffe0a7;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme]) {
  color-scheme: dark;
  --primary: #ff5b26;
  --primary-hover: #ff7447;
  --on-primary: #ffffff;
  --primary-container: #ff5b261f;
  --on-primary-container: #f3f5f8;
  --secondary: #f3f5f8;
  --secondary-container: #1a2130;
  --on-secondary-container: #f3f5f8;
  --tertiary: #38bdf8;
  --tertiary-container: #38bdf81f;
  --on-tertiary-container: #f3f5f8;
  --ink: #f3f5f8;
  --muted: #8a95a5;
  --paper: #090c12;
  --card: #121722;
  --surface-container: #1a2130;
  --surface-high: #161c28;
  --line: #232c3d;
  --outline: #8a95a5;
  --red: #ffb4ab;
  --error-container: #601410;
  --on-error-container: #ffdad6;
  --success: #86d9ab;
  --success-container: #123729;
  --on-success-container: #b6f2cf;
  --warning: #eebf6b;
  --warning-container: #392b16;
  --on-warning-container: #ffe0a7;
}
}

/* Foundations */
* { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body { margin: 0; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button,input,select,textarea { font: inherit; }
button,a,input,select { touch-action: manipulation; }
button,.button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
::selection { background: var(--primary-container); color: var(--on-primary-container); }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Navigation */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  transition: background .2s ease, border-color .2s ease;
}
.header {
  max-width: 1320px;
  margin: auto;
  min-height: 76px;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  margin-inline-end: 10px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 30%, transparent);
}
.brand-mark .icon { width: 22px; height: 22px; }
.brand-dot { color: var(--primary); }
.header nav, .header-actions { display: flex; align-items: center; gap: 8px; }
.header nav a {
  font-size: 14px;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 12px;
  transition: all .16s ease;
}
.header nav a:hover {
  background: var(--surface-container);
  text-decoration: none;
}
.header nav a[aria-current=page] {
  color: var(--on-primary-container);
  background: var(--primary-container);
  font-weight: 700;
}
.header-actions { gap: 12px; }
.theme-control {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--surface-container);
  border: 1px solid var(--line);
  color: var(--muted);
}
html[data-theme] .theme-control { display: flex; }
.theme-control select {
  width: auto;
  min-height: 34px;
  padding: 4px 4px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.theme-control .icon { width: 17px; }
.container { max-width: 1240px; margin: auto; padding: 24px 32px 80px; min-height: 70vh; }

/* Hero Section */
.hero {
  display: block;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 32px 16px 44px;
}
.hero-home { display: grid; }
.hero:not(.hero-home) { max-width: 820px; padding: 24px 0 28px; }
.hero:not(.hero-home) h1 { font-size: clamp(34px, 4.5vw, 56px); }
.hero-copy { max-width: 660px; }
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow:before { content: ""; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; }
.hero h1 {
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -2.8px;
  margin: 18px 0 16px;
}
.hero h1 em {
  font-style: normal;
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p, .subheading {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 580px;
}
.hero-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 22px;
}

/* Search */
.search-panel {
  background: var(--card);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: border-color .2s ease;
}
.tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  flex-wrap: wrap;
}
.tabs a, .tabs strong {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: all .16s ease;
}
.tabs a:hover {
  background: var(--surface-container);
  text-decoration: none;
}
.tabs .active {
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-weight: 700;
}
.search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
}
.search-heading h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 0;
}
.search-heading .text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--surface-container);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--line);
  transition: all .16s ease;
}
.search-heading .text-button:hover {
  background: var(--primary-container);
  color: var(--on-primary-container);
  text-decoration: none;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.full { grid-column: 1 / -1; }
.grid > * { min-width: 0; }

label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.2px;
}
input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
textarea { resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--outline); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
input[type=checkbox], input[type=radio] {
  width: 19px;
  height: 19px;
  min-height: 19px;
  accent-color: var(--primary);
  flex-shrink: 0;
  border-radius: 6px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
  cursor: pointer;
}

/* Modern Action Buttons */
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--primary);
  color: var(--on-primary);
  border: 1px solid transparent;
  padding: 13px 24px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  min-height: 48px;
  text-decoration: none;
  box-shadow: none;
  transition: all .16s cubic-bezier(0.16, 1, 0.3, 1);
}
.button:hover, button:hover {
  transform: translateY(-1px);
  box-shadow: none;
  text-decoration: none;
}
.button:active, button:active {
  transform: translateY(0);
}
.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--line);
  box-shadow: none;
}
.secondary:hover {
  background: var(--surface-container);
  color: var(--primary);
  border-color: var(--outline);
  box-shadow: none;
  transform: none;
}
.small { padding: 9px 16px; min-height: 40px; font-size: 13px; }
.text-button {
  background: none;
  border: 0;
  color: var(--primary);
  padding: 8px 6px;
  min-height: 40px;
  box-shadow: none;
}
.text-button:hover {
  background: none;
  box-shadow: none;
  text-decoration: underline;
  transform: none;
}
button:disabled { opacity: .6; cursor: wait; }
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.muted, small { color: var(--muted); line-height: 1.6; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
}
.demo {
  background: var(--primary-container);
  color: var(--on-primary-container);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  padding: 16px 20px;
  border-radius: 16px;
  margin: 16px 0;
  line-height: 1.6;
  font-size: 13px;
}
.notice {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 12px 0;
  border: 1px solid var(--line);
}
.validation-summary-valid { display: none; }
.validation-summary-errors, .error {
  background: var(--error-container);
  color: var(--on-error-container);
  padding: 16px 20px;
  border-radius: 16px;
  margin: 14px 0;
  line-height: 1.65;
  border: 1px solid color-mix(in srgb, var(--red) 30%, transparent);
}
.validation-summary-errors ul { margin: 0; padding-inline-start: 20px; }
.field-validation-error { color: var(--red); font-size: 12px; font-weight: 600; }
.input-validation-error { border-color: var(--red); }

/* Discovery & Destination Cards */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 44px 0 22px;
}
.section-heading h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.6px;
  margin: 0;
}
.destinations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.destination {
  overflow: hidden;
  border-radius: 16px;
  min-height: 185px;
  padding: 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(145deg, var(--primary-container), color-mix(in srgb, var(--primary) 24%, transparent));
  color: var(--on-primary-container);
  border: 1px solid var(--line);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.destination:after {
  content: "";
  position: absolute;
  inset-inline-end: -25px;
  top: -35px;
  width: 190px;
  height: 190px;
  border: 24px solid color-mix(in srgb, currentColor 8%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.destination:nth-child(2) {
  background: linear-gradient(145deg, var(--secondary-container), color-mix(in srgb, var(--secondary) 24%, transparent));
  color: var(--on-secondary-container);
}
.destination:nth-child(3) {
  background: linear-gradient(145deg, var(--surface-high), color-mix(in srgb, var(--line) 40%, transparent));
  color: var(--ink);
}
.destination strong { font-size: 28px; font-weight: 700; z-index: 1; letter-spacing: -.5px; }
.destination small { z-index: 1; color: inherit; font-weight: 500; }
.destination:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
  margin-top: 48px;
}
.features div {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.features h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.features p { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 0; }

.footer {
  max-width: 1176px;
  border-top: 1px solid var(--line);
  margin: auto;
  padding: 32px 0 44px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}
.footer > span { margin-inline-start: auto; }

.page-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.2px;
  margin: 28px 0 12px;
  line-height: 1.15;
}

/* Card Hierarchy */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 16px;
  margin: 20px 0;
  box-shadow: var(--shadow-card);
}
.card h2 { font-size: 21px; font-weight: 700; letter-spacing: -.4px; margin-top: 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cards .card { margin: 0; }
.art {
  height: 140px;
  display: grid;
  place-items: center;
  background: var(--primary-container);
  color: var(--on-primary-container);
  border-radius: 18px;
  font-size: 64px;
  margin-bottom: 22px;
}

/* Modern Flight Result Card */
.flight-card {
  box-shadow: var(--shadow-card);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.flight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
}
.flight-head, .flight-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.airline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
}
.airline-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: .5px;
}
.flight-route {
  display: grid;
  grid-template-columns: 1fr .85fr 1fr;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
}
.flight-route > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.flight-route > div:last-child { text-align: end; }
.flight-route strong {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.6px;
  line-height: 1.1;
}
.flight-route span { font-size: 13px; font-weight: 600; color: var(--ink); }
.flight-route small { font-size: 12px; color: var(--muted); }
.flight-duration {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.flight-duration span { font-size: 12px; font-weight: 600; color: var(--muted); }
.flight-duration small {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-container);
  font-weight: 700;
  font-size: 11px;
}
.route-line {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 24px;
  color: var(--primary);
}
.route-line:before {
  content: "";
  position: absolute;
  inset-inline: 4px;
  border-bottom: 2px dashed var(--line);
}
.route-line .icon {
  z-index: 1;
  background: var(--card);
  transform: rotate(45deg);
  padding: 0 4px;
}
.flight-meta { font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.fare-footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.7px;
  color: var(--primary);
  line-height: 1.1;
}
.results { max-width: 900px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}
.sticky { position: sticky; top: 100px; }
.narrow { max-width: 540px; margin: 40px auto; }
.narrow h1 { font-size: 32px; letter-spacing: -1px; line-height: 1.2; }
.stack { display: grid; gap: 20px; }
.stack .button { width: 100%; }

details {
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
  margin-top: 22px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  min-height: 28px;
  color: var(--ink);
}
details[open] > summary { margin-bottom: 16px; }
fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  background: var(--card);
}
legend {
  font-weight: 700;
  font-size: 14px;
  padding: 0 10px;
  color: var(--primary);
}
.inline-form { display: inline-flex; gap: 12px; align-items: center; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 16px 12px; text-align: start; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; font-weight: 700; }
.skip { position: fixed; top: -100px; padding: 15px; background: var(--card); z-index: 50; }
.skip:focus { top: 8px; inset-inline-start: 8px; }
.empty {
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  margin: 24px 0;
  color: var(--muted);
  background: var(--card);
}
.badge-icon { font-size: 42px; }

/* Flexible Dates Calendar Strip */
.calendar {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  margin-top: 18px;
  padding: 6px 2px 14px;
}
.calendar a {
  min-width: 114px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  background: var(--card);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: all .16s ease;
}
.calendar a:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  text-decoration: none;
}
.calendar strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.calendar .selected {
  background: var(--primary-container);
  color: var(--on-primary-container);
  border-color: var(--primary);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 20%, transparent);
}
.calendar .selected strong { color: var(--primary); }

/* Booking Steps Bar */
.booking-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 18px 24px;
  margin: 0 0 24px;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.booking-steps li { display: flex; align-items: center; gap: 10px; }
.booking-steps span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-container);
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
}
.booking-steps [aria-current=step] {
  color: var(--primary);
  font-weight: 700;
}
.booking-steps [aria-current=step] span {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent);
}

/* Submission Indicator */
form[aria-busy=true] button[type=submit], form[aria-busy=true] button:not([type]) {
  cursor: progress;
  opacity: .75;
}
form[aria-busy=true] button[data-submitting]:before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* RTL Adjustments */
[dir=rtl] .hero h1, [dir=rtl] .page-title, [dir=rtl] .eyebrow { letter-spacing: 0; }
[dir=rtl] .route-line .icon { transform: rotate(-135deg); }
[dir=rtl] .journey-plane { transform: rotate(-12deg); }

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; }
}

/* Responsive layouts */
@media(max-width:1050px) {
  .header { gap: 16px; padding: 14px 24px; flex-wrap: wrap; }
  .header nav { order: 3; width: 100%; justify-content: center; }
  .header-wrap { position: static; }
  .sticky { top: 24px; }
  .footer { margin-inline: 24px; }
  .hero { gap: 24px; }
  .header-actions { margin-inline-start: auto; }
}

@media(max-width:900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { flex-wrap: wrap; }
  .footer > span { margin: 0; }
  .hero { grid-template-columns: 1fr .7fr; padding-inline: 0; }
  .hero h1 { font-size: 54px; }
  .journey-art { height: 260px; }
  .orbit-three { inset-inline: 65px; }
  .journey-label { font-size: 11px; bottom: 20px; }
  .journey-plane { top: 60px; }
}

@media(max-width:600px) {
  .header { gap: 12px; padding: 14px 16px; }
  .brand { font-size: 22px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; margin-inline-end: 6px; }
  .header nav { justify-content: space-between; gap: 0; }
  .header nav a { padding: 8px 10px; font-size: 12px; }
  .header-actions { gap: 8px; }
  .header-actions .theme-control .icon { display: none; }
  .header-actions .button { padding: 8px 12px; font-size: 12px; min-height: 40px; }
  .header-actions .text-button { font-size: 12px; padding: 4px; min-height: 40px; }
  .theme-control select { font-size: 12px; max-width: 74px; min-height: 30px; }

  .container { padding: 16px 14px 48px; }
  .hero { display: block; padding: 16px 4px 24px; }
  .hero h1 { font-size: 44px; letter-spacing: -1.8px; }
  .hero p { font-size: 15px; margin-bottom: 0; }
  .hero-caption { margin-top: 16px; }
  .journey-art { display: none; }

  .search-panel { padding: 20px 16px; border-radius: 16px; }
  .search-heading { align-items: flex-start; }
  .search-heading h2 { font-size: 18px; }
  .search-heading .text-button { font-size: 11px; padding: 6px 10px; min-height: 32px; }
  .search-heading .icon { width: 16px; flex-basis: 16px; }

  .grid, .grid.two, .grid.three, .cards, .destinations, .features { grid-template-columns: 1fr; }
  .grid { gap: 14px; }
  .tabs { gap: 4px; }
  .tabs a, .tabs strong { padding: 8px 10px; font-size: 12px; gap: 5px; }
  .tabs .tag { font-size: 9px; padding: 2px 6px; }
  .tabs .icon { width: 16px; flex-basis: 16px; }
  .destination { min-height: 150px; }

  input, select, textarea { font-size: 16px; }
  .flight-route { gap: 8px; margin: 18px 0; }
  .flight-route strong { font-size: 22px; }
  .flight-route span { font-size: 12px; }
  .flight-route small { font-size: 11px; }
  .card { padding: 20px 16px; border-radius: 16px; }
  .page-title { font-size: 28px; }
  .actions > .button, .actions > button { width: 100%; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .section-heading h2 { font-size: 22px; }
  .section-heading .muted { font-size: 13px; }
  .footer { gap: 12px; margin-inline: 16px; }
  .footer p { width: 100%; margin: 0; }
  .inline-form { flex-wrap: wrap; }
  fieldset { padding: 18px 14px; }
  .booking-steps { gap: 8px; font-size: 11px; padding: 14px 16px; }
  .booking-steps span { width: 22px; height: 22px; }
}

@media(max-width:380px) {
  .header-actions { gap: 4px; }
  .header-actions .button { padding-inline: 8px; }
  .brand-mark { display: none; }
  .tabs { gap: 2px; }
  .tabs .icon { display: none; }
  .search-panel { padding: 16px 12px; }
}

/* Mobile app visual language, adapted to wide and narrow browser layouts. */
[lang=ar] { font-family: "Cairo", sans-serif; }
[lang=ar] h1, [lang=ar] h2, [lang=ar] h3 { letter-spacing: 0; line-height: 1.6; }
.brand, .eyebrow, .airport-card input, .price, .flight-route strong, .airline-badge {
  font-family: "JetBrainsMono", "Cairo", monospace;
}
.brand { font-size: 15px; letter-spacing: 1.5px; gap: 10px; font-weight: 600; }
.brand-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.brand-edition { color: var(--muted); }
.header nav a[aria-current=page] { color: var(--primary); }
.header-actions .text-button { padding-inline: 14px; border-radius: 12px; background: var(--surface-container); color: var(--ink); }
.hero-home { display: block; padding: 36px 0 28px; }
.hero-home .hero-copy { max-width: 820px; }
.hero-home h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -1.5px; margin: 12px 0; font-weight: 700; }
.hero-home p { font-size: 15px; margin: 0; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 1.4px; }
.eyebrow:before { width: 6px; height: 6px; border-radius: 50%; }
.search-panel { background: transparent; padding: 0; border: 0; box-shadow: none; }
.tabs { background: var(--surface-container); border: 1px solid var(--line); padding: 5px; border-radius: 16px; gap: 4px; }
.tabs a, .tabs strong { flex: 1; justify-content: center; color: var(--muted); }
.tabs .active { background: var(--card); color: var(--ink); }
.search-heading h2 { font-size: 16px; }
.search-heading .text-button { background: var(--primary); color: var(--on-primary); border: 0; border-radius: 12px; }
.search-heading .text-button:hover { background: var(--primary-hover); color: var(--on-primary); }
.route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.airport-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; color: var(--muted); }
.airport-card > span { display: flex; align-items: center; justify-content: space-between; }
.airport-card .icon { width: 16px; height: 16px; }
.airport-card input { padding: 0; border: 0; min-height: 55px; background: transparent; font-size: 34px; font-weight: 700; letter-spacing: -1px; }
.airport-card:first-child input { color: var(--primary); }
.airport-card:focus-within { border-color: var(--primary); }
.airport-card input:focus { box-shadow: none; outline: 2px solid var(--primary); outline-offset: 3px; }
input, select, textarea { background: var(--card); border-radius: 16px; min-height: 52px; }
label { color: var(--muted); font-weight: 500; }
.check { color: var(--ink); }
.button, button { min-height: 52px; }
.button:hover, button:hover { transform: none; }
.secondary, .secondary:hover { color: var(--ink); }
.search-panel form > .actions { border-top: 1px solid var(--line); padding-top: 20px; }
.search-panel button[type=submit] { min-width: 260px; }
.calendar .selected { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: none; }
.calendar .selected strong { color: var(--primary); }
.booking-steps [aria-current=step] { color: var(--primary); }
.flight-duration small, .tag { border-radius: 8px; }
.fare-footer { border-top-style: dashed; }
.destination, .destination:nth-child(2), .destination:nth-child(3) { color: #fff; background-color: #121722; background-size: cover; background-position: center; min-height: 200px; }
.destination:nth-child(1) { background-image: linear-gradient(180deg, #090c1210, #090c12dd), url('destinations/DXB.jpg'); }
.destination:nth-child(2) { background-image: linear-gradient(180deg, #090c1210, #090c12dd), url('destinations/CDG.jpg'); }
.destination:nth-child(3) { background-image: linear-gradient(180deg, #090c1210, #090c12dd), url('destinations/LHR.jpg'); }
.destination:after { content: none; }
.destination strong { font-size: 24px; }
.bottom-nav { display: none; }
@media (max-width: 600px) {
  .header { padding: 16px; gap: 12px; }
  .header .brand { font-size: 12px; gap: 6px; }
  .header nav, .header-actions > .button { display: none; }
  .header-actions { gap: 6px; }
  .theme-control { padding: 3px 5px; }
  .header-actions .text-button { padding-inline: 10px; }
  .container { padding: 12px 16px 104px; }
  .hero-home { padding: 18px 0 24px; }
  .hero-home h1 { font-size: 30px; letter-spacing: -1px; }
  .hero-home p { font-size: 13px; }
  .search-panel { padding: 0; }
  .tabs a, .tabs strong { padding: 10px 6px; font-size: 12px; }
  .tabs .tag { display: none; }
  .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .airport-card { grid-column: 1 / -1; padding: 14px 18px; }
  .airport-card input { font-size: 30px; min-height: 48px; }
  .route-grid > label:not(.airport-card) { font-size: 11px; }
  .route-grid input[type=date] { padding-inline: 8px; min-width: 0; font-size: 13px; }
  .search-panel button[type=submit] { min-width: 0; width: 100%; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line); padding: 10px 12px max(12px, env(safe-area-inset-bottom)); justify-content: space-around; border-radius: 20px 20px 0 0; }
  .bottom-nav a { display: grid; justify-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--muted); min-width: 64px; }
  .bottom-nav .icon { box-sizing: content-box; padding: 5px 16px; border-radius: 20px; }
  .bottom-nav a[aria-current=page] { color: var(--primary); }
  .bottom-nav a[aria-current=page] .icon { background: var(--primary-container); }
  .footer { padding-bottom: 110px; }
}
