/* AeroTravel v25 — strict minimal 2026 redesign */

:root {
  --a25-bg: #f6f7f9;
  --a25-surface: #ffffff;
  --a25-ink: #111827;
  --a25-muted: #6b7280;
  --a25-soft: #e5e7eb;
  --a25-line: rgba(17,24,39,.10);
  --a25-accent: #111827;
  --a25-accent-2: #2563eb;
  --a25-radius-xl: 28px;
  --a25-radius-lg: 22px;
  --a25-radius-md: 16px;
  --a25-shadow: 0 22px 70px rgba(17, 24, 39, .08);
  --a25-shadow-soft: 0 12px 32px rgba(17, 24, 39, .06);
  --a25-max: 1180px;
}

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

html {
  background: var(--a25-bg);
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(37,99,235,.10), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(17,24,39,.08), transparent 26%),
    var(--a25-bg);
  color: var(--a25-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.a25-ready a {
  color: inherit;
}

.a25-shell {
  width: min(var(--a25-max), calc(100vw - 32px));
  margin: 0 auto;
}

/* Header */
.a25-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(246, 247, 249, .78);
  border-bottom: 1px solid rgba(17,24,39,.07);
}

.a25-header__inner {
  width: min(var(--a25-max), calc(100vw - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.a25-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--a25-ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.a25-logo::before {
  content: "✈";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-size: 17px;
  box-shadow: 0 12px 30px rgba(17,24,39,.16);
}

.a25-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.a25-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.a25-nav a:hover {
  background: #fff;
  color: #111827;
  transform: translateY(-1px);
}

/* Page layout */
.a25-page {
  width: min(var(--a25-max), calc(100vw - 32px));
  margin: 28px auto 54px;
}

.a25-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 26px;
  align-items: start;
}

.a25-main {
  min-width: 0;
  display: grid;
  gap: 24px;
}

.a25-sidebar {
  min-width: 0;
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.a25-card,
.a25-hero,
.a25-sidebar-card,
.a25-search,
.a25-ticket,
.a25-section {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--a25-line);
  border-radius: var(--a25-radius-xl);
  box-shadow: var(--a25-shadow-soft);
}

/* Hero */
.a25-hero {
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
  position: relative;
}

.a25-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(17,24,39,.06));
  pointer-events: none;
}

.a25-kicker,
.a25-eyebrow {
  margin: 0 0 12px;
  color: var(--a25-accent-2);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.a25-hero h1,
.a25-page h1 {
  margin: 0;
  max-width: 820px;
  color: var(--a25-ink);
  font-size: clamp(36px, 5vw, 64px);
  line-height: .96;
  letter-spacing: -.07em;
  font-weight: 900;
}

.a25-lead,
.a25-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--a25-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

/* Route stats */
.a25-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.a25-stat {
  padding: 16px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid rgba(17,24,39,.07);
}

.a25-stat strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--a25-ink);
}

.a25-stat span {
  display: block;
  margin-top: 6px;
  color: var(--a25-muted);
  font-size: 13px;
  font-weight: 700;
}

/* Tabs */
.a25-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.a25-tabs a,
.a25-tabs button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--a25-line);
  border-radius: 999px;
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 22px rgba(17,24,39,.04);
}

/* Search form */
.a25-search {
  padding: 18px;
}

.a25-search form,
form.a25-search-form {
  display: grid !important;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(128px, .72fr) minmax(128px, .72fr) minmax(142px, .76fr) auto !important;
  gap: 12px !important;
  align-items: end !important;
  margin: 0 !important;
}

.a25-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  min-width: 0 !important;
}

.a25-field label,
.a25-search label {
  display: block !important;
  margin: 0 !important;
  color: #6b7280 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 850 !important;
}

.a25-field input,
.a25-field select,
.a25-search input,
.a25-search select,
select.a25-passengers {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(17,24,39,.12) !important;
  border-radius: 16px !important;
  background: #f9fafb !important;
  color: #111827 !important;
  font: 700 15px/1 Inter, system-ui, sans-serif !important;
  outline: none !important;
  box-shadow: none !important;
}

.a25-search input:focus,
.a25-search select:focus {
  border-color: rgba(37,99,235,.55) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,.10) !important;
}

.a25-search button,
.a25-search input[type="submit"],
button.a25-button {
  min-height: 48px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #111827 !important;
  color: #fff !important;
  font: 900 15px/1 Inter, system-ui, sans-serif !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 14px 30px rgba(17,24,39,.16) !important;
}

.a25-hidden {
  display: none !important;
}

/* Sections */
.a25-section {
  padding: clamp(20px, 3vw, 30px);
  overflow: hidden;
}

.a25-section h2,
.a25-section h3 {
  margin: 0 0 12px;
  color: var(--a25-ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.06;
  letter-spacing: -.055em;
}

.a25-section p {
  margin: 0 0 18px;
  color: var(--a25-muted);
}

.a25-section + .a25-section {
  margin-top: 0;
}

/* Tickets */
.a25-ticket-list {
  display: grid;
  gap: 12px;
}

.a25-ticket,
.a25-ticketish {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-items: center !important;
  padding: 16px !important;
  border-radius: 22px !important;
  border: 1px solid var(--a25-line) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.a25-ticket strong,
.a25-ticketish strong {
  font-size: 22px;
  letter-spacing: -.04em;
}

.a25-ticket a,
.a25-ticketish a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #111827;
  color: #fff !important;
  text-decoration: none;
  font-weight: 900;
}

/* Chart */
.a25-chart {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.a25-chart * {
  max-width: 100%;
}

.a25-chart svg,
.a25-chart canvas {
  max-width: 100% !important;
  height: auto !important;
}

/* Link groups / cheap route cards */
.a25-link-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.a25-link-grid a,
.a25-section > a,
.a25-sidebar-card a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 4px 6px 4px 0;
  padding: 9px 12px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid rgba(17,24,39,.08);
  color: #111827;
  text-decoration: none;
  font-weight: 750;
  font-size: 14px;
}

/* Sidebar */
.a25-sidebar-card {
  padding: 18px;
  border-radius: var(--a25-radius-lg);
  box-shadow: 0 12px 34px rgba(17,24,39,.055);
}

.a25-sidebar-card h3,
.a25-sidebar-card h2 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.a25-sidebar-card p {
  margin: 0 0 10px;
  color: var(--a25-muted);
  font-size: 14px;
}

.a25-sidebar-card a {
  margin: 4px 4px 4px 0;
  font-size: 13px;
  min-height: 34px;
}

/* Footer */
footer,
.a25-footer {
  margin-top: 54px;
  padding: 28px 0;
  border-top: 1px solid rgba(17,24,39,.08);
  color: var(--a25-muted);
}

/* Brutal cleanup of old broken visible fragments only after JS marks body */
body.a25-ready .a25-old-passenger,
body.a25-ready .a25-old-fragment {
  display: none !important;
}

/* Responsive */
@media (max-width: 1080px) {
  .a25-search form,
  form.a25-search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .a25-search button,
  .a25-search input[type="submit"] {
    grid-column: 1 / -1 !important;
  }

  .a25-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .a25-grid {
    grid-template-columns: 1fr;
  }

  .a25-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .a25-header__inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .a25-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .a25-shell,
  .a25-page,
  .a25-header__inner {
    width: calc(100vw - 24px);
  }

  .a25-page {
    margin-top: 18px;
  }

  .a25-hero {
    padding: 24px;
    border-radius: 24px;
  }

  .a25-search form,
  form.a25-search-form {
    grid-template-columns: 1fr !important;
  }

  .a25-stats,
  .a25-sidebar,
  .a25-link-grid {
    grid-template-columns: 1fr !important;
  }

  .a25-ticket,
  .a25-ticketish {
    grid-template-columns: 1fr !important;
  }

  .a25-nav a {
    min-height: 34px;
    padding: 7px 10px;
  }
}