@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap');

:root {
  --ink: #16213e;
  --muted: #55627a;
  --line: #dbe6f5;
  --bg: #f3f7fd;
  --card: #ffffff;
  --primary: #1e3a8a;
  --primary2: #16296b;
  --accent: #ea580c;
  --accent-hover: #c2470a;
  --green: #16865b;
  --green-bg: #e3f6ee;
  --destructive: #dc2626;
  --destructive-bg: #fdecec;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 55px rgba(20, 40, 90, 0.09);
  --shadow-sm: 0 8px 22px rgba(20, 40, 90, 0.07);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family:
    "Atkinson Hyperlegible",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ==================== HEADER ==================== */

.header {
  height: 68px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 6%;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.brand svg {
  color: var(--primary);
  width: 24px;
  height: 24px;
}

.brand span {
  color: var(--primary);
}

.footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
  overflow-x: auto;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 1px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--transition);
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a.nav-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 800;
}

.nav-soon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #aeb8ce;
  cursor: default;
  user-select: none;
  white-space: nowrap;
}

.nav-soon i {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  background: var(--bg);
  color: var(--muted);
  padding: 2px 6px;
  border-radius: 999px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 650;
  flex: none;
}

.header-link {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}

.header-link:hover {
  color: var(--primary);
}

.currency-badge {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--muted);
}

/* ==================== HERO ==================== */

.hero {
  padding: var(--space-6) 6% var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 55px;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(8,16,42,.93) 0%, rgba(8,16,42,.78) 40%, rgba(8,16,42,.4) 100%),
    url('https://upload.wikimedia.org/wikipedia/commons/b/b3/Skytail_%2821158277%29.jpeg') center/cover no-repeat;
}

.hero .eyebrow {
  color: #ffd699;
}

.hero .eyebrow::before {
  background: #ffd699;
}

.hero h1 {
  color: #fff;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.06;
  margin: 14px 0 20px;
  letter-spacing: -1.5px;
  font-weight: 800;
}

.hero h1 em {
  color: #ffd699;
  font-style: normal;
  position: relative;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, .82);
  max-width: 540px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 800;
  color: var(--primary);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

/* ==================== SEARCH CARD / PANELS ==================== */

.search-card,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-card {
  padding: 30px;
}

.tabs {
  display: flex;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 22px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
}

.tab {
  border: 0;
  background: none;
  padding: 10px 18px;
  color: var(--muted);
  font-weight: 750;
  font-size: 13.5px;
  cursor: pointer;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.tab:hover {
  color: var(--ink);
}

.tab.active {
  color: var(--card);
  background: var(--primary);
}

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

.search-grid label,
.form label,
.filters label {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--muted);
}

input,
select {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input[type="date"] {
  text-align: left;
}

input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

input:hover,
select:hover {
  border-color: #adc4e8;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(30, 58, 138, 0.14);
}

.autocomplete-field,
.date-field {
  display: block;
  position: relative;
}

.date-field input {
  padding-right: 40px;
  cursor: pointer;
  background: var(--card);
}

.date-icon {
  position: absolute;
  right: 14px;
  bottom: 13px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-height: 260px;
  overflow-y: auto;
}

.autocomplete-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
}

.autocomplete-item small {
  color: var(--muted);
  font-weight: 550;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: var(--bg);
}

.autocomplete-country {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.autocomplete-country strong {
  font-size: 14px;
}

.autocomplete-nested {
  padding-left: 32px;
}

.autocomplete-country-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.autocomplete-country .globe-icon {
  color: var(--accent, #2563eb);
  flex-shrink: 0;
}

.autocomplete-item .plane-icon {
  color: var(--muted);
  flex-shrink: 0;
  transform: rotate(45deg);
}

.autocomplete-empty {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
}

.passenger-field {
  position: relative;
}

.passenger-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.passenger-toggle:hover {
  border-color: #adc4e8;
}

.passenger-toggle svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex: none;
  transition: transform var(--transition);
}

.passenger-toggle[aria-expanded="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(30, 58, 138, 0.14);
}

.passenger-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.passenger-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 16px;
}

.passenger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.passenger-row:last-of-type {
  border-bottom: 0;
}

.passenger-row strong {
  display: block;
  font-size: 14px;
}

.passenger-row small {
  color: var(--muted);
  font-size: 12px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.stepper span {
  min-width: 18px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
}

.stepper-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--primary);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}

.stepper-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--bg);
}

.stepper-btn:disabled {
  color: #c3cce0;
  cursor: not-allowed;
}

#passengerApply {
  width: 100%;
  margin-top: 6px;
}

.check {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin: 18px 0 8px;
  color: var(--muted) !important;
  font-size: 13.5px;
  cursor: pointer;
}

.check input {
  width: auto;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.radio-row {
  display: flex;
  gap: 20px;
  margin-top: 7px;
}

.radio-row .check {
  margin: 0;
}

/* ==================== BUTTONS ==================== */

.btn {
  border: 0;
  border-radius: 11px;
  padding: 12px 20px;
  font-weight: 750;
  font-size: 14.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--primary2);
}

.btn-outline {
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  width: 100%;
  padding: 15px;
  margin-top: 8px;
  font-size: 15.5px;
}

.btn-sm {
  padding: 9px 15px;
  font-size: 13px;
}

.search-card small {
  display: block;
  color: var(--muted);
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
}

/* ==================== TRUST STRIP ==================== */

.trust {
  background: var(--card);
  border-block: 1px solid var(--line);
  padding: var(--space-4) 6%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust div {
  display: flex;
  gap: 14px;
  align-items: center;
}

.trust strong {
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--bg);
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.trust strong svg {
  width: 20px;
  height: 20px;
}

.trust small,
.muted {
  color: var(--muted);
}

.trust span {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.trust small {
  display: block;
  font-weight: 500;
  margin-top: 2px;
  font-size: 12.5px;
}

/* ==================== SECTIONS ==================== */

.section,
.page {
  padding: var(--space-6) 6%;
}

.section-head {
  margin-bottom: var(--space-4);
}

.section h2,
.page h1 {
  font-size: 34px;
  letter-spacing: -1px;
  margin: 8px 0 0;
  font-weight: 800;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.route-card {
  position: relative;
  padding: 22px;
  min-height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.route-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 16, 42, .92), rgba(8, 16, 42, .1) 65%);
}

.route-card b,
.route-card span,
.route-card strong {
  position: relative;
}

.route-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.route-card b {
  font-size: 18px;
  font-weight: 800;
}

.route-card span {
  color: rgba(255, 255, 255, .82);
  font-size: 13.5px;
  margin-top: 2px;
}

.route-card strong {
  display: block;
  color: #ffd699;
  font-size: 13.5px;
  font-weight: 750;
  margin-top: 10px;
}

/* ==================== FAQ ==================== */

.faq {
  max-width: 900px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  margin: 10px 0;
  transition: border-color var(--transition);
}

.faq details[open] {
  border-color: var(--primary);
}

.faq summary {
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--primary);
  font-weight: 800;
  font-size: 18px;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 14.5px;
}

/* ==================== FOOTER ==================== */

.footer {
  background: #0f1b3d;
  color: #b9c6e6;
  padding: var(--space-5) 6%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.footer b {
  color: #fff;
  font-size: 17px;
}

.footer p {
  margin-top: 8px;
  font-size: 13.5px;
  color: #93a3c9;
}

.footer .brand {
  color: #fff;
}

.footer a {
  color: #b9c6e6;
  margin-right: 18px;
  font-size: 13.5px;
}

.footer small {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  margin-top: 8px;
  color: #7c8bb3;
  font-size: 12px;
  line-height: 1.6;
}

/* ==================== RESULTS / LISTING ==================== */

.result-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.result-top h1 {
  margin: 4px 0 0;
}

.layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  align-items: start;
}

.results-col {
  min-width: 0;
}

.filters {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: var(--radius-sm);
  height: max-content;
  position: sticky;
  top: 96px;
}

.filters b {
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink);
}

.filters label {
  display: block;
  margin-top: 20px;
}

.sortbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sortbar .muted {
  font-size: 13px;
  max-width: 480px;
}

.flight {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.flight:hover {
  border-color: #adc4e8;
  box-shadow: var(--shadow-sm);
}

.flight-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.flight h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.flight small,
.flight p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 13px;
}

.flight strong {
  font-size: 14px;
}

.price {
  font-size: 25px;
  font-weight: 800;
  text-align: right;
  color: var(--ink);
  white-space: nowrap;
}

.state-message {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}

.spinner {
  width: 26px;
  height: 26px;
  margin: 0 auto 14px;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.spinner-lg {
  width: 36px;
  height: 36px;
  border-width: 3.5px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.state-message a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

/* ==================== PRICE CALENDAR ==================== */

.price-calendar-wrap {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.price-calendar-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  padding: 2px 0 24px;
  flex: none;
}

.price-calendar {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  height: 125px;
}

.calendar-bar {
  flex: 0 0 auto;
  width: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
  cursor: default;
}

.calendar-bar .bar {
  width: 100%;
  min-height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--line);
  transition: background var(--transition);
}

.calendar-bar.cheapest .bar {
  background: var(--green);
}

.calendar-bar.selected .bar {
  background: var(--accent);
}

.calendar-bar .bar-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.2;
  white-space: nowrap;
}

.calendar-bar .bar-date b {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink);
}

.calendar-bar .bar-date i {
  font-style: normal;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--muted);
}

.calendar-bar.selected .bar-date b,
.calendar-bar.cheapest .bar-date b {
  color: var(--ink);
}

/* ==================== RESULTS TABLE + FILTERS ==================== */

.table-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.results-table {
  min-width: 620px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table th {
  text-align: left;
  padding: 13px 18px;
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--line);
}

.results-table th small {
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0;
}

.results-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  vertical-align: middle;
}

.results-table tr:last-child td {
  border-bottom: 0;
}

.results-table tbody tr:hover td {
  background: var(--bg);
}

.results-table tr.row-selected td {
  background: var(--green-bg);
}

.leg-heading {
  margin: 28px 0 14px;
  font-size: 16px;
}

.leg-heading:first-child {
  margin-top: 0;
}

.leg-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--green-bg);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-bottom: 20px;
  animation: leg-summary-in var(--transition);
}

.leg-summary[hidden] {
  display: none;
}

@keyframes leg-summary-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.leg-summary-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leg-summary-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  flex: none;
}

.leg-summary-check svg {
  width: 14px;
  height: 14px;
}

.leg-summary-info strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}

.leg-summary-info span {
  font-size: 12.5px;
  color: var(--muted);
}

.seat-leg {
  margin-bottom: 20px;
}

.seat-leg:last-child {
  margin-bottom: 0;
}

.provider-cell {
  font-weight: 750;
  color: var(--ink);
}

.stops-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.price-cell {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group-title {
  display: block;
  margin-top: 20px;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* ==================== FARE PACKAGES ==================== */

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 110px;
}

.package-card {
  position: relative;
  display: block;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  cursor: pointer;
  background: var(--card);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.package-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.package-card.selected,
.package-card:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, .12);
}

.package-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.package-card-head b {
  font-size: 15px;
}

.package-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

.package-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12.5px;
}

.package-features li {
  color: var(--ink);
}

.package-features li.excluded {
  color: #b6c0d6;
}

/* ==================== STICKY PRICE BAR ==================== */

.sticky-bar {
  position: sticky;
  bottom: 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(20, 40, 90, .1);
  padding: 16px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 5;
}

.sticky-bar strong {
  display: block;
  font-size: 22px;
}

.sticky-bar .btn {
  width: auto;
  min-width: 200px;
}

/* ==================== SEAT MAP ==================== */

.seat-map {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  max-width: 380px;
  margin: 24px auto 0;
}

.seat-row-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.seat {
  border: 1.5px solid var(--line);
  border-radius: 8px 8px 3px 3px;
  background: var(--card);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.seat:hover:not(.seat-occupied):not(.seat-selected) {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.seat-selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.seat-occupied {
  background: var(--bg);
  color: #b9c6e6;
  border-style: dashed;
  cursor: not-allowed;
}

.seat-aisle {
  visibility: hidden;
}

.seat-legend {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--muted);
}

.seat-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.seat-legend i {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  display: inline-block;
  border: 1.5px solid var(--line);
  background: var(--card);
}

.seat-legend .lg-selected {
  background: var(--primary);
  border-color: var(--primary);
}

.seat-legend .lg-occupied {
  background: var(--bg);
  border-style: dashed;
}

/* ==================== BOOKING STEPS ==================== */

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.steps span {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 750;
}

.steps .active {
  background: #dbe6ff;
  color: var(--primary);
}

.steps .done {
  background: var(--green-bg);
  color: var(--green);
}

.narrow {
  max-width: 950px;
  margin: auto;
}

.form {
  padding: 30px;
  position: relative;
}

.processing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .95);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 24px;
  z-index: 8;
}

.processing-overlay[hidden] {
  display: none;
}

.processing-overlay .spinner {
  margin: 0 0 10px;
}

.processing-overlay strong {
  font-size: 15.5px;
}

.processing-overlay small {
  color: var(--muted);
  font-size: 12.5px;
}

.form h3 {
  margin-top: 0;
  font-size: 19px;
}

.field {
  margin-bottom: 16px;
}

/* ==================== KART ÖNİZLEME (FLIP CARD) ==================== */

.card-preview-scene {
  perspective: 1400px;
  margin-bottom: 26px;
}

.card-preview {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1.586;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.card-preview.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 20px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary2) 55%, #0a1638 100%);
  box-shadow: 0 18px 40px rgba(10, 22, 56, 0.35);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-face::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -30%;
  width: 70%;
  height: 220%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 65%);
  pointer-events: none;
}

.card-front {
  justify-content: space-between;
}

.card-preview-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-chip {
  width: 40px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f1d998, #b8934a);
  position: relative;
}

.card-chip::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(10, 22, 56, 0.35);
  border-radius: 3px;
}

.card-brand {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #fff;
  opacity: 0.95;
  min-height: 19px;
}

.card-preview-number {
  font-family: "Courier New", monospace;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.card-preview-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.card-preview-bottom small {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 3px;
}

.card-preview-bottom span {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.card-preview-bottom div:last-child span {
  font-family: "Courier New", monospace;
}

.card-back {
  transform: rotateY(180deg);
  padding: 0;
}

.card-stripe {
  width: 100%;
  height: 42px;
  background: #0a1638;
  margin-top: 22px;
}

.card-back-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 20px 22px 0;
}

.card-signature {
  flex: 1;
  height: 32px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0.65) 4px,
    rgba(255, 255, 255, 0.5) 4px,
    rgba(255, 255, 255, 0.5) 8px
  );
}

.card-cvv-box {
  background: #fff;
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 4px;
  min-width: 46px;
  text-align: center;
}

.card-brand-back {
  margin: 16px 22px 0;
  text-align: right;
}

/* ==================== İKONLU INPUT ALANLARI ==================== */

.field-icon {
  position: relative;
}

.field-input-icon {
  position: absolute;
  left: 14px;
  bottom: 13px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.field-icon input {
  padding-left: 42px;
}

.payment-trust {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.payment-trust svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  color: var(--green);
}

.payment-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.summary {
  padding: 26px;
  height: max-content;
  position: sticky;
  top: 96px;
}

.summary h3 {
  margin-top: 0;
  font-size: 17px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.summary-row.total {
  font-size: 20px;
  border-bottom: 0;
  font-weight: 800;
  padding-top: 18px;
}

.secure {
  font-weight: 700;
  color: var(--green);
  font-size: 13px;
  margin-top: 16px;
}

/* ==================== SUCCESS / CONFIRMATION ==================== */

.success {
  text-align: center;
  padding: var(--space-6) var(--space-4);
}

.success h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.success-icon {
  margin: 0 auto 22px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  font-size: 32px;
  display: grid;
  place-items: center;
}

.otp-icon {
  margin: 0 auto 22px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.otp-icon svg {
  width: 28px;
  height: 28px;
}

.otp-input {
  display: block;
  width: 220px;
  margin: 22px auto 6px;
  padding: 14px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.otp-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(30, 58, 138, 0.14);
}

.otp-error {
  color: var(--destructive);
  font-size: 12.5px;
  font-weight: 650;
  margin: 4px 0 18px;
}

#otpForm .btn {
  margin-top: 4px;
  min-width: 200px;
}

#otpForm small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}

.pnr-box {
  margin: 26px auto;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  max-width: 260px;
}

.pnr-box small,
.pnr-box strong {
  display: block;
}

.pnr-box small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pnr-box strong {
  font-size: 32px;
  letter-spacing: 5px;
  color: var(--primary);
  margin-top: 6px;
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
  flex-wrap: wrap;
}

.lookup {
  padding: var(--space-6) 20px;
  max-width: 560px;
  margin: auto;
}

/* ==================== ACCOUNT / DASHBOARD ==================== */

.dashboard {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}

.side {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  height: max-content;
}

.side a,
.side b {
  display: block;
  padding: 12px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
}

.side a:hover {
  background: var(--bg);
}

.side .selected {
  background: #dbe6ff;
  color: var(--primary);
  font-weight: 750;
}

.booking {
  padding: 22px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.badge.gray {
  background: var(--bg);
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 25px 0;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.stat small,
.stat span {
  display: block;
  color: var(--muted);
}

.stat strong {
  font-size: 27px;
  display: block;
  margin: 8px 0;
}

.table-wrap {
  padding: 20px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.legal {
  max-width: 850px;
}

.legal h2 {
  margin-top: 35px;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {

  .layout {
    grid-template-columns: 220px 1fr;
  }

  .payment-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {

  .header {
    padding: 0 4%;
    height: auto;
    min-height: 68px;
  }

  .main-nav .nav-soon,
  .header-actions .header-link {
    display: none;
  }

  .main-nav {
    gap: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: var(--space-4) 4%;
  }

  .search-grid,
  .form-grid,
  .payment-grid,
  .layout,
  .dashboard,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .sticky-bar {
    padding: 12px 4%;
    gap: 12px;
  }

  .sticky-bar strong {
    font-size: 17px;
  }

  .sticky-bar .btn {
    min-width: 0;
    padding: 0 16px;
    font-size: 13.5px;
  }

  .results-table {
    min-width: 560px;
  }

  .filters {
    position: static;
  }

  .flight {
    grid-template-columns: 1fr;
  }

  .flight-main {
    grid-template-columns: 1fr 1fr;
  }

  .price {
    text-align: left;
  }

  .trust,
  .cards,
  .stats {
    grid-template-columns: 1fr;
  }

  .section,
  .page {
    padding: var(--space-4) 4%;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .result-top {
    align-items: start;
    gap: 12px;
    flex-direction: column;
  }

  .actions {
    flex-direction: column;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .steps {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .side {
    display: flex;
    overflow: auto;
  }

  .side a,
  .side b {
    white-space: nowrap;
  }

  .booking {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }

  .summary {
    position: static;
  }
}

@media (max-width: 700px) {

  .table-card {
    overflow-x: visible;
    background: none;
    border: none;
    box-shadow: none;
  }

  .results-table {
    min-width: 0;
  }

  .results-table thead {
    display: none;
  }

  .results-table,
  .results-table tbody,
  .results-table tr,
  .results-table td {
    display: block;
    width: 100%;
  }

  .results-table tr {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 14px 16px;
    margin-bottom: 12px;
  }

  .results-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 0;
  }

  .results-table td::before {
    content: attr(data-label);
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--muted);
  }

  .results-table td.price-cell {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
    font-size: 19px;
  }

  .results-table td:last-child {
    justify-content: flex-end;
    padding-top: 10px;
  }

  .results-table td:last-child .btn {
    width: 100%;
    text-align: center;
  }

  .results-table td[colspan] {
    display: block;
    padding: 0;
  }
}

@media (max-width: 480px) {

  .search-card,
  .form {
    padding: 20px;
  }

  .package-card {
    padding: 14px;
  }

  .hero p {
    font-size: 15.5px;
  }

  .route-card {
    min-height: unset;
  }

  .brand {
    font-size: 17px;
    gap: 6px;
  }

  .brand svg {
    width: 20px;
    height: 20px;
  }

  .header-actions .currency-badge {
    display: none;
  }

  .main-nav {
    gap: 10px;
  }

  .price-calendar-wrap {
    flex-direction: column;
    gap: 8px;
  }

  .price-calendar-axis {
    flex-direction: row;
    justify-content: space-between;
    padding: 0;
  }

  .steps {
    gap: 6px;
  }

  .steps span {
    padding: 7px 10px;
    font-size: 11.5px;
  }
}

/* ==================== FLATPICKR (TAKVİM) ==================== */

.flatpickr-calendar {
  font: inherit;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  z-index: 9999;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
  border-bottom-color: var(--line);
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month,
.flatpickr-current-month input.cur-year {
  color: var(--ink);
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: var(--muted);
  fill: var(--muted);
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  color: var(--primary);
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: var(--primary);
}

span.flatpickr-weekday {
  color: var(--muted);
  font-weight: 750;
}

.flatpickr-day {
  color: var(--ink);
  border-radius: 8px;
}

.flatpickr-day.today {
  border-color: var(--primary);
}

.flatpickr-day:hover,
.flatpickr-day.today:hover {
  background: var(--bg);
  border-color: var(--bg);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: #c3cce0;
}

.flatpickr-day.nextMonthDay,
.flatpickr-day.prevMonthDay {
  color: #c3cce0;
}
