/* ==========================================================================
   EUROSTARLING ARS â€“ unified stylesheet
   Branding: Petrol Blue / Light Teal (Poppins)
   ======================================================================= */

/* -------------------- CSS Vars / Theme -------------------- */
:root {
  /* ======================================================
     DESIGN SYSTEM v2 — Eurostarling Redesign
     Petrol + Teal · Manrope + Instrument Serif + JetBrains Mono
     ====================================================== */

  /* Brand palette */
  --petrol:     #005B69;
  --petrol-700: #004a55;
  --petrol-800: #003a43;
  --petrol-900: #002b32;
  --petrol-100: #e6f3f5;
  --petrol-50:  #f3f9fa;

  --teal:       #43CCD4;
  --teal-600:   #2db4bd;
  --teal-100:   #e0f7f9;

  /* Neutral — warm-cool airline gray */
  --ink:    #0c1f24;
  --ink-2:  #2a3d42;
  --ink-3:  #5a6c72;
  --ink-4:  #8a9aa0;
  --fg-4:   var(--ink-4);
  --line:   #e3e8ea;
  --line-2: #ebeef0;
  --paper:  #ffffff;
  --canvas: #f6f3ee;
  --canvas-2: #efe9df;

  /* Semantic status */
  --ok:   #157a52;
  --warn: #b56b00;
  --err:  #b42318;
  --info: #2563eb;

  /* Type stacks — Network Carrier DNA (Inter + IBM Plex Mono)
     Inter for body, UI, headlines, display. IBM Plex Mono for operational data
     (flight numbers, airport codes, times, prices). No serif — modern carriers
     don't use editorial display serifs. */
  --sans:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* Deprecated alias — old code paths that read --serif now get the display sans.
     New code should use var(--display) directly. */
  --serif:   var(--display);

  /* Type scale — Network Carrier (denser than the editorial baseline) */
  --fs-display: 72px;   /* hero h1 */
  --fs-h1:      48px;
  --fs-h2:      40px;
  --fs-h3:      24px;
  --fs-stat:    56px;   /* stats__num, tabular */
  --fs-body:    16px;

  /* Tracking — modern carrier wants tight, precise headlines */
  --tr-display: -0.025em;
  --tr-tight:   -0.015em;
  --tr-normal:  -0.005em;
  --tr-wide:    0.08em;   /* eyebrows, kickers, mono caps */

  /* Weights — Inter exposes the full spectrum */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semi:    600;    /* default for display & headlines */
  --fw-bold:    700;
  --fw-black:   800;

  /* Radii */
  --r-1:    4px;
  --r-2:    8px;
  --r-3:    12px;
  --r-4:    16px;
  --r-full: 999px;

  /* Shadows */
  --sh-1:   0 1px 2px rgba(12,31,36,.04);
  --sh-2:   0 4px 14px -4px rgba(12,31,36,.08);
  --sh-3:   0 16px 40px -16px rgba(12,31,36,.14);
  --sh-pop: 0 24px 60px -24px rgba(12,31,36,.25);

  /* Density / spacing */
  --pad-xs:  8px;
  --pad-s:   12px;
  --pad-m:   16px;
  --pad-l:   24px;
  --pad-xl:  32px;
  --pad-2xl: 48px;
  --pad-3xl: 60px;  /* was 72px — Network Carrier density */

  /* Semantic aliases used by new es-* components */
  --fg:   var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --bg-page: var(--paper);
  --font-family: var(--sans);

  /* ======================================================
     LEGACY aliases — keep existing components working
     ====================================================== */
  --brand-h: 188;
  --brand-s: 100%;
  --brand-l: 21%;
  --brand:       var(--petrol);
  --brand-600:   var(--petrol-700);
  --brand-100:   var(--petrol-100);
  --secondary:   var(--petrol-800);
  --highlight:   var(--teal);
  --accent:      var(--teal);          /* indigo removed */
  --white:       var(--paper);
  --black:       var(--ink);
  --text:        var(--ink);
  --muted:       var(--ink-3);
  --muted-light: #C1D0D4;
  --bg:          var(--canvas);
  --surface:     var(--paper);
  --border:      var(--line);
  --ok-bg:       #e1f4ed;
  --ok-100:      #e1f4ed;
  --success:     var(--ok);
  --err-bg:      #fde9e7;
  --err-100:     #fde9e7;
  --warn-bg:     #fdf1da;
  --warning:     var(--warn);
  --info-bg:     #deeffe;
  --info-100:    #deeffe;
  --brand-dark:  var(--petrol-700);
  --bg-light:    var(--petrol-50);

  /* Spacing (old names kept) */
  --sp-xs:   4px;
  --sp-s:    8px;
  --sp-m:    12px;
  --sp-base: 16px;
  --sp-l:    24px;
  --sp-xl:   32px;
  --sp-xxl:  48px;
  --sp-huge: 64px;

  /* Border radius (old names kept) */
  --r-small: var(--r-2);
  --r-base:  var(--r-3);
  --r-large: var(--r-4);
  --r-24:    24px;
  --r-xl:    24px;

  /* Shadows (old names kept) */
  --shadow-sm:   var(--sh-1);
  --shadow-base: var(--sh-2);
  --shadow-lg:   var(--sh-3);
  --shadow-xl:   var(--sh-pop);

  /* Typography */
  --fs-12: 12px; --fs-13: 13px; --fs-14: 14px;
  --fs-16: 16px; --fs-18: 18px; --fs-28: 28px; --fs-32: 32px;
  --fs-xs: var(--fs-12); --fs-sm: var(--fs-14);
  --fs-base: var(--fs-16); --fs-lg: var(--fs-18);
  --fw-normal: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Layout */
  --brand-rgb:     0, 91, 105;
  --header-h:      80px;
  --container-max: 1280px;
  --safe-top:      env(safe-area-inset-top, 0px);
  --ring:          rgba(67,204,212,0.35);

  /* Gold (kept for premium features) */
  --gold:           #FFD700;
  --gold-light:     #FFDF33;
  --gold-dark:      #ccae00;
  --gold-rgb:       255, 215, 0;
  --gold-gradient:  linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --gold-glow:      0 0 20px rgba(255,215,0, 0.3);

  /* Teal premium aliases */
  --premium:          var(--teal);
  --premium-light:    #6de0e7;
  --premium-dark:     #2dafb6;
  --premium-rgb:      67, 204, 212;
  --premium-gradient: linear-gradient(135deg, #43CCD4 0%, #005B69 100%);
  --premium-glow:     0 0 20px rgba(67,204,212, 0.3);
  --premium-hero-w:   100%;
  --premium-hero-h:   85vh;
}

/* ============================================================
   Minimal reset — scoped globally for pax pages
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,h2,h3,h4,h5,h6,p,ul,ol,figure,blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
input, select, textarea { font: inherit; }
input[type="date"], input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="number"], select, textarea {
  appearance: none; -webkit-appearance: none;
}
/* Eurostarling Design System — Component Library
   Appended from design bundle. All es-* classes are global.
   ============================================================ */

.es-scroll { height: 100%; overflow-y: auto; overflow-x: hidden; }
.es-scroll::-webkit-scrollbar { width: 0; }

/* ============================================================
   Type primitives
   ============================================================ */
.es-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--petrol);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.es-eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  opacity: .7;
}
.es-eyebrow.center { display: inline-flex; }

.es-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.es-display em { font-style: italic; color: var(--petrol); }

.es-h1 { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1.05; letter-spacing: -0.02em; }
.es-h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: -0.015em; }
.es-h3 { font-family: var(--sans);  font-weight: 700; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.es-h4 { font-family: var(--sans);  font-weight: 700; font-size: 16px; line-height: 1.3; }

.es-lede { font-size: 18px; line-height: 1.55; color: var(--fg-2); max-width: 60ch; }
.es-body { font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.es-small { font-size: 13px; line-height: 1.5; color: var(--fg-3); }
.es-micro { font-size: 11px; line-height: 1.4; color: var(--fg-3); letter-spacing: 0.04em; }

.es-mono { font-family: var(--mono); font-feature-settings: "ss01"; }

/* Mobile sizes (when artboard width < 480 we override via class) */

/* ============================================================
   Buttons
   ============================================================ */
.es-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background .15s, color .15s, transform .15s, box-shadow .15s, border-color .15s;
  cursor: pointer;
  border: 1px solid transparent;
}
.es-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.es-btn.es-btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.es-btn.es-btn--lg { height: 52px; padding: 0 28px; font-size: 15px; }
.es-btn.es-btn--block { width: 100%; }

.es-btn--primary {
  background: var(--petrol);
  color: #fff;
}
.es-btn--primary:hover { background: var(--petrol-700); }

.es-btn--accent {
  background: var(--teal);
  color: var(--petrol-900);
}
.es-btn--accent:hover { background: var(--teal-600); }

.es-btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.es-btn--ghost:hover { background: var(--canvas); }

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

.es-btn--link {
  height: auto; padding: 0; background: none; color: var(--petrol); font-weight: 600;
  border-radius: 0;
  display: inline-flex; gap: 8px; align-items: center;
}
.es-btn--link::after {
  content: "→";
  transition: transform .2s;
}
.es-btn--link:hover::after { transform: translateX(3px); }

/* ============================================================
   Form fields
   ============================================================ */
.es-field {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
  position: relative;
  min-height: 56px;
  justify-content: center;
}
.es-field:focus-within { border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(0,91,105,0.08); }
.es-field--lg { min-height: 72px; padding: 14px 18px; }
.es-field .lab,
.es-field > label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-3);
  display: block;
}
.es-field .val {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.es-field .val.placeholder { color: var(--fg-3); font-weight: 500; }
.es-field input, .es-field select {
  border: 0; outline: 0; background: transparent;
  font-size: 16px; font-weight: 600; color: var(--fg);
  width: 100%; padding: 0;
  line-height: 1.3;
}
.es-field input::placeholder { color: var(--fg-3); font-weight: 500; }
.es-field--lg .val { font-size: 18px; }
.es-field--lg input { font-size: 18px; }
.es-field .sub {
  font-size: 12px;
  color: var(--fg-3);
}
.es-field--lg .sub { font-size: 12px; }
.es-field .sub.es-mono { font-family: var(--mono); letter-spacing: 0.04em; }
/* Pax button: align caret right, value on the left */
.es-field .val[aria-haspopup] {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; cursor: pointer;
  white-space: nowrap; overflow: hidden;
}
.es-field .val[aria-haspopup] > span:first-child {
  overflow: hidden; text-overflow: ellipsis;
}
/* Native date input — let value/placeholder sit on the same baseline as label spacing */
.es-field input[type="date"] {
  font-variant-numeric: tabular-nums;
}
/* Search cell: full-height petrol CTA with icon */
.bw-search-cell .bw-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}

.es-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--canvas);
  border-radius: var(--r-full);
}
.es-tabs button {
  height: 40px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-3);
  border-radius: var(--r-full);
  letter-spacing: 0.01em;
  transition: background .15s, color .15s;
}
.es-tabs button.active {
  background: var(--paper);
  color: var(--fg);
  box-shadow: var(--sh-1);
}
.es-tabs.es-tabs--dark { background: rgba(255,255,255,0.08); }
.es-tabs.es-tabs--dark button { color: rgba(255,255,255,0.65); }
.es-tabs.es-tabs--dark button.active { background: #fff; color: var(--petrol); }

/* ============================================================
   Header — V2 (Mega-menu trigger pattern)
   ============================================================ */
.es-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.es-header.on-dark {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}
.es-header .row {
  display: flex; align-items: center;
  height: 80px;
  padding: 0 48px;
  gap: 24px;
  position: relative;
}

.es-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans);
}
.es-logo .wm {
  font-weight: 800; letter-spacing: 0.06em;
  font-size: 16px; color: var(--ink);
  white-space: nowrap;
}
.es-header.on-dark .es-logo .wm { color: #fff; }

/* Primary nav with chevron triggers */
.es-megnav {
  display: flex;
  gap: 4px;
  margin-left: 32px;
  position: static;
}
.es-megnav-item {
  position: static;
}
.es-megnav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--fg-2);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, color .15s;
  background: transparent;
}
.es-megnav-trigger:hover,
.es-megnav-trigger.active {
  background: var(--canvas);
  color: var(--fg);
}
.es-megnav-trigger.active { font-weight: 600; }
.es-megnav-trigger svg.chev { transition: transform .2s; }
.es-megnav-item:hover .es-megnav-trigger svg.chev,
.es-megnav-item.open .es-megnav-trigger svg.chev { transform: rotate(180deg); }
.es-header.on-dark .es-megnav-trigger { color: rgba(255,255,255,0.85); }
.es-header.on-dark .es-megnav-trigger:hover,
.es-header.on-dark .es-megnav-trigger.active { background: rgba(255,255,255,0.1); color: #fff; }

/* Right utility cluster */
.es-utility {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
}
.es-icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-2);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.es-icon-btn:hover { background: var(--canvas); }
.es-header.on-dark .es-icon-btn { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.9); }
.es-header.on-dark .es-icon-btn:hover { background: rgba(255,255,255,0.1); }

/* Help link — simple text + icon, NO button styling, NO border.
   Sits in the utility cluster, links directly to /faq. */
.es-help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: var(--fw-semi);
  color: var(--fg-3);
  text-decoration: none;
  transition: color .15s ease;
  border-radius: var(--r-1);
}
.es-help-link:hover { color: var(--petrol); }
.es-help-link svg { opacity: 0.85; flex-shrink: 0; }
.es-header.on-dark .es-help-link { color: rgba(255,255,255,0.75); }
.es-header.on-dark .es-help-link:hover { color: var(--teal); }

.es-lang-mini {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 6px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--fg-2);
}
.es-lang-mini b { color: var(--fg); }
.es-header.on-dark .es-lang-mini { color: rgba(255,255,255,0.65); }
.es-header.on-dark .es-lang-mini b { color: #fff; }

.es-vrule {
  width: 1px; height: 16px;
  background: var(--line);
}
.es-header.on-dark .es-vrule { background: rgba(255,255,255,0.18); }

.es-acct-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--fg);
  border-radius: var(--r-full);
}
.es-acct-link:hover { background: var(--canvas); }
.es-header.on-dark .es-acct-link { color: #fff; }
.es-header.on-dark .es-acct-link:hover { background: rgba(255,255,255,0.1); }

/* Mobile menu trigger */
.es-mobile-burger {
  display: none;
  margin-left: auto;
  align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 600;
  color: var(--fg);
}
.es-header.on-dark .es-mobile-burger { border-color: rgba(255,255,255,0.2); color: #fff; }


/* ============================================================
   Mega-menu flyout panel
   ============================================================ */
.es-mega {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(12, 31, 36, 0.15);
  z-index: 60;
  color: var(--fg);
  /* by default hidden — shown via [data-open] OR :hover on parent .es-megnav-item */
  display: none;
}
.es-megnav-item:hover .es-mega,
.es-megnav-item.open .es-mega,
.es-mega[data-open="true"] { display: block; }

.es-mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 48px;
  display: grid;
  gap: 40px;
}
.es-mega .mega-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-3);
  margin-bottom: 16px;
}
/* Mega-col link: title + optional meta. Stacked vertically so the meta
   never collides with the title when the column is narrow. */
.es-mega .mega-col a {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 3px;
  padding: 9px 0;
  font-size: 14px; color: var(--fg-2);
  border-bottom: 1px solid var(--line-2);
  transition: color .15s;
}
.es-mega .mega-col a:hover { color: var(--petrol); }
.es-mega .mega-col a:last-child { border-bottom: 0; }
.es-mega .mega-col a .meta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
  line-height: 1.3;
}

.es-mega .mega-feature {
  background: var(--canvas);
  border-radius: var(--r-3);
  overflow: hidden;
  display: grid;
}
.es-mega .mega-feature .img {
  aspect-ratio: 16 / 10;
  background: var(--canvas-2);
  position: relative;
}
.es-mega .mega-feature .img img {
  width: 100%; height: 100%; object-fit: cover;
}
.es-mega .mega-feature .body { padding: 20px; }
.es-mega .mega-feature .lead {
  font-family: var(--serif); font-size: 22px; line-height: 1.1;
  margin-bottom: 6px;
}
.es-mega .mega-feature .sub { font-size: 12px; color: var(--fg-3); }
.es-mega .mega-feature .ctaline {
  margin-top: 12px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.es-mega .mega-feature .price { font-family: var(--serif); font-size: 24px; color: var(--petrol); }

/* Search flyout */
.es-mega.es-mega--search {
  /* narrower flyout for search popover */
}
.es-mega.es-mega--search .es-mega-inner {
  max-width: 720px;
  padding: 28px 40px;
}

/* Mobile drawer — full-screen overlay with backdrop, slide-in from right.
   position: fixed so it sits on top of the page regardless of scroll.
   The drawer panel is scrollable independently so all sections are
   reachable on short viewports. */
.es-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 43, 50, 0.55); /* Petrol-900 backdrop */
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  display: block;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.es-mobile-drawer[data-open="true"] {
  opacity: 1;
  visibility: visible;
}
/* The actual panel — slides in from the right, scrollable */
.es-mobile-drawer > .es-mobile-drawer-header,
.es-mobile-drawer > .es-mobile-drawer-tools,
.es-mobile-drawer > .es-mobile-drawer-section {
  background: var(--paper);
}
.es-mobile-drawer::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(420px, 92vw);
  background: var(--paper);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
  pointer-events: none;
}
.es-mobile-drawer[data-open="true"]::before {
  transform: translateX(0);
}
/* Group all drawer content into a slide-in column on the right */
.es-mobile-drawer > * {
  width: min(420px, 92vw);
  margin-left: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.es-mobile-drawer[data-open="true"] > * {
  transform: translateX(0);
}
/* Stagger the slide-in slightly so sections appear progressively */
.es-mobile-drawer[data-open="true"] > *:nth-child(2) { transition-delay: .03s; }
.es-mobile-drawer[data-open="true"] > *:nth-child(3) { transition-delay: .06s; }
.es-mobile-drawer[data-open="true"] > *:nth-child(4) { transition-delay: .09s; }
.es-mobile-drawer[data-open="true"] > *:nth-child(5) { transition-delay: .12s; }
.es-mobile-drawer[data-open="true"] > *:nth-child(6) { transition-delay: .15s; }
.es-mobile-drawer[data-open="true"] > *:nth-child(7) { transition-delay: .18s; }

.es-mobile-drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.es-mobile-drawer-section {
  padding: 12px 16px;
}
.es-mobile-drawer-section h5 {
  font-size: 10px; letter-spacing: 0.2em; font-weight: 700;
  text-transform: uppercase; color: var(--fg-3);
  margin-bottom: 12px;
}
.es-mobile-drawer-section a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--line-2);
  color: var(--fg);
}
.es-mobile-drawer-section a:last-child { border-bottom: 0; }
.es-mobile-drawer-section a svg { color: var(--fg-3); }

.es-mobile-drawer-tools {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 16px 16px;
}
.es-mobile-drawer-tools a {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px;
  background: var(--canvas);
  border-radius: var(--r-2);
  font-size: 13px; font-weight: 600;
}
.es-mobile-drawer-tools a span.eyebrow {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--petrol); font-weight: 700;
}

/* Mobile-nav activation — kicks in at tablet width (≤960px) so the
   mega-menu doesn't get cramped on iPad-class devices. The burger
   replaces the mega-nav and the other utility items (account, lang),
   but the burger itself MUST remain visible (it lives inside .es-utility). */
@media (max-width: 960px) {
  .es-mobile-burger { display: inline-flex; }
  .es-megnav { display: none; }
  /* Hide everything in the utility cluster EXCEPT the burger itself */
  .es-utility > :not(.es-mobile-burger) { display: none; }
}

/* Header sub-bar / breadcrumb */
.es-subbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--pad-2xl);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  gap: 16px;
}
.es-subbar .crumbs { display: flex; align-items: center; gap: 8px; color: var(--fg-3); }
.es-subbar .crumbs .sep { opacity: 0.4; }
.es-subbar .crumbs .now { color: var(--fg); font-weight: 600; }

/* ============================================================
   Cards / Surfaces
   ============================================================ */
.es-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.es-card.elev { box-shadow: var(--sh-2); }
.es-card.elev:hover { box-shadow: var(--sh-3); border-color: var(--line); }
.es-card .es-card-body { padding: var(--pad-l); }
.es-card .es-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--canvas); }
.es-card .es-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.es-card:hover .es-card-img img { transform: scale(1.04); }

/* Placeholder image */
.es-img-placeholder {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(0,91,105,0.04) 12px 24px),
    var(--canvas);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px;
  text-align: center;
}

/* Tags / Pills */
.es-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-full);
  background: var(--canvas);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.es-pill.teal  { background: var(--teal-100); color: var(--petrol-800); }
.es-pill.petrol{ background: var(--petrol-100); color: var(--petrol); }
.es-pill.ok    { background: #e1f4ed; color: var(--ok); }
.es-pill.warn  { background: #fdf1da; color: var(--warn); }
.es-pill.err   { background: #fde9e7; color: var(--err); }
.es-pill.dark  { background: var(--ink); color: #fff; }
.es-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ============================================================
   Hero — committed: H1 Editorial Poster
   ============================================================ */
.es-hero {
  position: relative;
  min-height: 720px;
  color: #fff;
  overflow: hidden;
  background: var(--petrol-900);
}
.es-hero .bg { position: absolute; inset: 0; }
.es-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.es-hero .scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,43,50,0.65) 0%,
      rgba(0,43,50,0.35) 28%,
      rgba(0,43,50,0.30) 55%,
      rgba(0,43,50,0.88) 100%),
    linear-gradient(90deg,
      rgba(0,0,0,0.30) 0%,
      rgba(0,0,0,0.12) 55%,
      rgba(0,0,0,0) 100%);
}
.es-hero .inner {
  position: relative;
  padding: 120px var(--pad-2xl) 240px;
  max-width: 1320px;
  margin: 0 auto;
}
/* Hero eyebrow — intentional special case: no dot, no stroke prefix.
   The hero is the only place where the eyebrow stands alone without a marker;
   all other sections use .es-kicker (mono caps with a dot prefix). */
.es-hero .h-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px; font-weight: var(--fw-medium); letter-spacing: var(--tr-wide);
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 32px;
}
.es-hero h1 {
  font-family: var(--display); font-weight: var(--fw-semi);
  font-size: var(--fs-display); line-height: 1.0; letter-spacing: var(--tr-display);
  color: #fff; max-width: 18ch;
  margin-bottom: 28px;
}
/* Hero italic is the brand's one signature italic — kept deliberately even
   though the rest of the system is roman. */
.es-hero h1 em { font-style: italic; font-weight: var(--fw-regular); color: var(--teal); }
.es-hero .sub {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 52ch;
  line-height: 1.5;
}

/* Live OCC badge — top-right corner, below the header */
.es-hero .live-badge {
  position: absolute;
  right: var(--pad-2xl); top: 112px;
  background: rgba(255,255,255,0.97);
  padding: 14px 18px;
  border-radius: var(--r-3);
  display: flex; gap: 14px; align-items: center;
  font-size: 13px;
  box-shadow: var(--sh-3);
  max-width: 320px;
  z-index: 2;
}
.es-hero .live-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(21,122,82,0.15);
  flex-shrink: 0;
  animation: es-pulse 2.2s ease-in-out infinite;
}
.es-hero .live-badge .copy { color: var(--ink); }
.es-hero .live-badge .copy b { font-weight: 700; font-size: 14px; display: block; margin-bottom: 2px; }
.es-hero .live-badge .copy .meta { font-family: var(--mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.1em; }

@keyframes es-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(21,122,82,0.15); }
  50% { box-shadow: 0 0 0 7px rgba(21,122,82,0.06); }
}


.es-bookwidget {
  position: relative;
  margin: -140px var(--pad-2xl) 0;
  max-width: 1280px;
  margin-left: auto; margin-right: auto;
  background: var(--paper);
  border-radius: var(--r-4);
  box-shadow: var(--sh-pop);
  padding: 28px;
  z-index: 5;
}
.es-bookwidget .row1 {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.es-bookwidget .triptoggle {
  display: inline-flex; gap: 4px;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: var(--r-full);
  font-size: 13px;
}
.es-bookwidget .triptoggle button {
  padding: 6px 14px;
  border-radius: var(--r-full);
  color: var(--fg-3); font-weight: 600;
}
.es-bookwidget .triptoggle button.active {
  background: var(--petrol);
  color: #fff;
}

.es-bookwidget .grid {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1fr 1fr 0.8fr auto;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.es-bookwidget .grid > .es-field {
  border: 0;
  border-radius: 0;
  background: var(--paper);
}
.es-bookwidget .grid > .es-field:focus-within { box-shadow: inset 0 0 0 2px var(--petrol); }

.es-bookwidget .search-cell {
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.es-bookwidget .search-cell .es-btn {
  width: 100%; height: 100%; min-height: 56px;
  border-radius: var(--r-2);
}


/* swap button between origin/destination */
.es-swap {
  position: absolute;
  z-index: 2;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-1);
}

/* ============================================================
   Quick links bar
   ============================================================ */
.es-quickbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--pad-2xl);
  display: flex; align-items: center; gap: 24px;
  font-size: 13px;
  overflow-x: auto;
}
.es-quickbar .ticker {
  display: flex; align-items: center; gap: 12px;
  flex: 1; min-width: 0;
  color: var(--fg-2);
}
.es-quickbar .ticker .lab {
  font-weight: 700; color: var(--petrol); white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px;
}
.es-quickbar .ticker .item { white-space: nowrap; }
.es-quickbar .ticker .item a { color: var(--petrol); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.es-quickbar .links { display: flex; gap: 8px; align-items: center; }
.es-quickbar .links a {
  padding: 6px 12px; border-radius: var(--r-full); font-weight: 600;
  color: var(--fg-2);
}
.es-quickbar .links a:hover { background: var(--canvas); }


/* ============================================================
   Footer
   ============================================================ */
.es-footer {
  background: var(--petrol-900);
  color: rgba(255,255,255,0.8);
  padding: 64px var(--pad-2xl) 32px;
}
/* Simple variant — used on auth pages (login, forgot/reset password) and
   error pages (404). Only the legal-strip is rendered, no mega-footer
   navigation. Tighter top/bottom padding since there's no cols block. */
.es-footer--simple {
  padding: 18px var(--pad-2xl);
}
.es-footer--simple .bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.es-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  max-width: 1280px; margin: 0 auto;
}
.es-footer .col h4 {
  font-size: 11px; letter-spacing: 0.18em; font-weight: 700;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.es-footer .col a { display: block; padding: 5px 0; font-size: 14px; color: rgba(255,255,255,0.78); }
.es-footer .col a:hover { color: var(--teal); }
.es-footer .col-brand .es-logo { color: #fff; font-size: 20px; }
.es-footer .col-brand .es-logo svg path { fill: #fff; }
.es-footer .col-brand p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.55; max-width: 32ch; margin-top: 16px; }
.es-footer .col-brand .newsletter {
  margin-top: 24px;
  display: flex; gap: 0;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  padding: 4px 4px 4px 16px;
  align-items: center;
  max-width: 320px;
}
.es-footer .col-brand .newsletter input {
  background: transparent; border: 0; outline: 0;
  color: #fff; font-size: 14px; flex: 1; padding: 8px 0;
}
.es-footer .col-brand .newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.es-footer .col-brand .newsletter button {
  height: 36px; padding: 0 16px; border-radius: var(--r-full);
  background: var(--teal); color: var(--petrol-900); font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.es-footer .bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,0.5);
}
.es-footer .bottom .legal { display: flex; gap: 20px; flex-wrap: wrap; }
.es-footer .bottom .legal a { color: rgba(255,255,255,0.5); }
.es-footer .bottom .legal a:hover { color: var(--teal); }
.es-footer .disclaimer {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px; color: rgba(255,255,255,0.3); line-height: 1.6;
}

/* ============================================================
   Layout containers
   ============================================================ */
.es-container { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad-2xl); }
/* Generic visibility helper — used by /checkin and other multi-phase pages
   that toggle between login / dashboard / success states. Without this rule
   all phases stacked vertically on top of each other. */
.hidden { display: none !important; }
.es-section { padding: var(--pad-3xl) 0; }
.es-section--tight { padding: var(--pad-2xl) 0; }

/* Default: vertical block layout, left-aligned. Eyebrow sits above headline,
   sub-text below. For horizontal layouts (e.g. headline + action button on the
   right), add the .flex modifier. */
.es-section-head {
  display: block;
  margin-bottom: 40px;
}
.es-section-head .title { max-width: 60ch; }

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

.flex-row { display: flex; align-items: center; gap: var(--pad-m); }
.flex-col { display: flex; flex-direction: column; gap: var(--pad-m); }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--pad-m); }

/* ============================================================
   Destination card  (editorial v2 — full-bleed photo + CTA + AB price)
   ============================================================ */
.es-dest {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 5/6;
  background: var(--canvas);
  isolation: isolate;
  display: block;
  color: #fff;
  transition: transform .25s, box-shadow .25s;
}
.es-dest:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
}
.es-dest .ph {
  position: absolute; inset: 0;
}
.es-dest .ph img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.es-dest:hover .ph img { transform: scale(1.04); }

.es-dest .ph .es-img-placeholder {
  width: 100%; height: 100%;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(67,204,212,0.18), transparent 70%),
    linear-gradient(180deg, var(--petrol-900) 0%, var(--petrol-700) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.18);
  font-family: var(--serif);
  font-size: 80px;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.es-dest .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 35%,
    rgba(0,0,0,0.35) 65%,
    rgba(0,0,0,0.8) 100%);
}

.es-dest .badge {
  position: absolute; top: 16px; right: 16px; left: 16px;
  background: rgba(255,255,255,0.95);
  color: var(--petrol);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  max-width: max-content;
  margin-left: auto;
  backdrop-filter: blur(8px);
  line-height: 1.3;
}

.es-dest .content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
}
.es-dest .row1 {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px;
}
.es-dest .city {
  font-family: var(--serif); font-weight: 400;
  font-size: 32px; line-height: 1;
  letter-spacing: -0.015em;
  color: #fff;
}
.es-dest .iata {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.8);
  margin-top: 6px;
}
.es-dest .price {
  text-align: right;
  display: inline-flex; align-items: baseline; gap: 8px;
  white-space: nowrap;
}
.es-dest .price .from {
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
}
.es-dest .price .amt {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  color: #fff;
}

.es-dest .cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  height: 44px;
  background: var(--teal);
  color: var(--petrol-900);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.es-dest .cta:hover { background: #6ddde3; }
.es-dest:hover .cta { transform: translateY(-2px); }

/* Smaller variant for tight grids */
.es-dest.compact { aspect-ratio: 4/5; border-radius: 16px; }
.es-dest.compact .city { font-size: 26px; }
.es-dest.compact .price .amt { font-size: 24px; }
.es-dest.compact .cta { height: 38px; font-size: 12px; }


/* ============================================================
   Flight result row
   ============================================================ */
.es-flight {
  display: grid;
  grid-template-columns: 0.6fr 2fr 1fr;
  align-items: center;
  gap: var(--pad-l);
  padding: 20px var(--pad-l);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.es-flight:hover { border-color: var(--petrol); box-shadow: var(--sh-2); }
.es-flight .carrier { display: flex; align-items: center; gap: 10px; }
.es-flight .carrier .logo {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--petrol-100);
  display: inline-flex; align-items: center; justify-content: center;
}
.es-flight .carrier .meta { display: flex; flex-direction: column; }
.es-flight .carrier .meta .fn { font-weight: 700; font-size: 13px; }
.es-flight .carrier .meta .ac { font-size: 11px; color: var(--fg-3); }
.es-flight .timeline { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.es-flight .pt { text-align: center; }
.es-flight .pt .t { font-family: var(--serif); font-size: 28px; line-height: 1; }
.es-flight .pt .a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--fg-3); margin-top: 4px; }
.es-flight .line {
  height: 1px; background: var(--line); position: relative;
}
.es-flight .line::before {
  content: ""; position: absolute; left: 0; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--petrol);
}
.es-flight .line::after {
  content: "✈"; position: absolute; right: -2px; top: -10px; font-size: 14px; color: var(--petrol);
}
.es-flight .line .dur {
  position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
  font-size: 11px; color: var(--fg-3); white-space: nowrap;
  background: var(--paper); padding: 0 8px;
}
.es-flight .line .type {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  font-size: 11px; color: var(--fg-3); white-space: nowrap;
}
.es-flight .price {
  text-align: right;
}
.es-flight .price .from { font-size: 11px; color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; }
.es-flight .price .amt { font-family: var(--serif); font-size: 32px; line-height: 1; }
.es-flight .price .cab { font-size: 11px; color: var(--fg-3); margin-top: 4px; }


/* ============================================================
   Stepper
   ============================================================ */
.es-stepper {
  display: flex; gap: 0;
  align-items: center;
  font-size: 12px;
}
.es-stepper .step {
  display: flex; align-items: center; gap: 10px;
  color: var(--fg-3);
  text-decoration: none;
  cursor: pointer;
  transition: color .15s;
}
.es-stepper .step:hover { color: var(--petrol); }
.es-stepper .step:hover .num { border-color: var(--petrol); }
.es-stepper .step .num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--canvas);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
  border: 1px solid var(--line);
  transition: background .15s, border-color .15s, color .15s;
}
.es-stepper .step.done .num { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.es-stepper .step.active { color: var(--fg); font-weight: 700; }
.es-stepper .step.active .num { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.es-stepper .sep { flex: 1; height: 1px; background: var(--line); margin: 0 12px; min-width: 24px; max-width: 60px; }

/* ============================================================
   Seat map
   ============================================================ */
.es-seatmap {
  background: var(--canvas);
  border-radius: var(--r-4);
  padding: 24px;
  display: flex; flex-direction: column; align-items: center;
}
.es-seatmap .fuselage {
  width: 100%; max-width: 320px;
  background: var(--paper);
  border-radius: 120px 120px 24px 24px;
  padding: 60px 12px 24px;
  border: 1px solid var(--line);
  position: relative;
}
.es-seatmap .row {
  display: grid;
  grid-template-columns: 24px repeat(3, 1fr) 16px repeat(3, 1fr) 24px;
  gap: 4px;
  margin-bottom: 4px;
  align-items: center;
}
.es-seatmap .rownum {
  font-family: var(--mono); font-size: 10px; color: var(--fg-3); text-align: center;
}
.es-seatmap .seat {
  aspect-ratio: 1;
  border-radius: 6px 6px 4px 4px;
  background: var(--canvas);
  border: 1px solid var(--line);
  font-size: 9px; color: var(--fg-3);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.es-seatmap .seat.avail:hover { background: var(--teal-100); border-color: var(--teal); }
.es-seatmap .seat.sel { background: var(--petrol); border-color: var(--petrol); color: #fff; font-weight: 700; }
.es-seatmap .seat.occ { background: var(--ink); border-color: var(--ink); color: rgba(255,255,255,0.4); cursor: not-allowed; }
.es-seatmap .seat.prem { border-color: var(--teal); background: var(--teal-100); }
.es-seatmap .seat.exit { background: #fdf1da; border-color: var(--warn); }
.es-seatmap .aisle { background: transparent; border: 0; pointer-events: none; }

/* Two-column layout: legend on left, seat map on right (matches FlowFlight mock-up).
   JS appends the legend after the seatmap host — explicit grid columns let DOM order stay
   "map then legend" while visually placing legend left.  */
.seat-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
.seat-layout .ss-seatmap { grid-column: 2; grid-row: 1; }
.seat-layout .seat-legend { grid-column: 1; grid-row: 1; }
.seat-layout .seat-legend {
  display: flex; flex-direction: column; gap: 12px;
  font-size: 13px;
  padding: 16px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
}
.seat-layout .seat-legend-item {
  display: flex; align-items: center; gap: 10px;
  white-space: normal; line-height: 1.3;
}
.seat-layout .seat-legend-swatch {
  width: 24px; height: 24px; border-radius: 4px;
  border: 1px solid; flex-shrink: 0;
}
@media (max-width: 760px) {
  .seat-layout { grid-template-columns: 1fr; }
  .seat-layout .ss-seatmap,
  .seat-layout .seat-legend { grid-column: 1; grid-row: auto; }
}

/* ============================================================
   Seat step — tabs, passenger chips, seat grid (app_seats.js)
   ============================================================ */

/* Leg tabs */
.tabs {
  display: inline-flex;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.tabs .tab {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, color .15s;
}
.tabs .tab small {
  font-size: 11px;
  color: var(--fg-3);
  font-weight: 500;
}
.tabs .tab:hover { color: var(--petrol); }
.tabs .tab.is-active {
  background: var(--paper);
  color: var(--petrol);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.tabs .tab.is-active small { color: var(--petrol); }

.tabpanel { display: none; }
.tabpanel.is-active { display: block; }

/* Passenger chips */
.pax-select-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pax-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 14px;
  margin-right: 8px;
  margin-bottom: 8px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--canvas);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  transition: border-color .15s, background .15s, color .15s;
}
.pax-chip:hover { border-color: var(--petrol-300, var(--petrol)); }
.pax-chip.is-active {
  border-color: var(--teal);
  color: var(--petrol);
  background: var(--teal-100, #f0fdfa);
}
.pax-chip-seat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  background: var(--line);
  color: var(--fg-3);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: .04em;
}
.pax-chip-seat.has-seat { background: var(--teal); color: #fff; }
.pax-chip-seat.is-manual { background: var(--petrol); color: #fff; }
.btn-seat-reset {
  border: 0;
  background: transparent;
  padding: 0 4px;
  font-size: 14px;
  color: var(--fg-3);
  cursor: pointer;
  border-radius: 4px;
}
.btn-seat-reset:hover { color: var(--err); }

/* Cabin front-of-cabin banner */
.cabin-front-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--canvas), var(--line));
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-3);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cabin-front-banner i { color: var(--fg-3); font-size: 13px; }

/* Seat grid (rendered by app_seats.js) */
.ss-seatmap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Initial flat grid (briefly visible before enhanceSeatGrid restructures it) */
.seatgrid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), 36px);
  gap: 8px;
  align-items: center;
}

/* Enhanced layout: .seatgrid-wrap stacks .collabels + .seatgrid-body vertically.
   Both children have identical 7-column internal grids (28px rowlabel + 6×36px seats)
   so column letters align with the seat columns below them. */
.seatgrid-wrap {
  display: inline-block;
  min-width: min-content;
}
.collabels,
.seatgrid-body {
  display: grid;
  grid-template-columns: 28px repeat(var(--cols, 6), 36px);
  gap: 8px;
  align-items: center;
}
.collabels { margin-bottom: 6px; }
.collabels span {
  width: 36px;
  text-align: center;
  font-size: 12px;
  color: var(--fg-3);
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
}
.rowlabel {
  width: 28px;
  text-align: right;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--fg-3);
  align-self: center;
}
.rowlabel--exit {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 1px;
  color: #16a34a;
}
.rowlabel--exit small {
  font-size: 8px; font-weight: 700; letter-spacing: .03em; line-height: 1;
}
.rowgap {
  grid-column: 1 / -1;
  height: 12px;
}
.col-letter {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-2);
  line-height: 1;
  font-family: var(--mono);
}
.col-wma {
  font-size: 9px;
  font-weight: 600;
  color: var(--fg-3);
  letter-spacing: .04em;
  line-height: 1;
}

/* Seat cells */
.seat, .aisle {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--canvas);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--fg-3);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.aisle {
  background: transparent;
  border: 0;
  pointer-events: none;
  cursor: default;
}
.aisle::after {
  content: '';
  width: 1px; height: 55%;
  background: linear-gradient(to bottom, transparent, var(--line) 40%, var(--line) 60%, transparent);
}

/* Seat states (data-driven by app_seats.js) */
.seatgrid-body .seat--std.is-free   { background: #eff6ff; border-color: #93c5fd; }
.seatgrid-body .seat--preferred     { background: #ede9fe; border-color: #8b5cf6; }
.seatgrid-body .seat--xl            { background: #f5f3ff; border-color: #a78bfa; }
.seat--exit                         { background: #dcfce7 !important; border-color: #16a34a !important; }

.seat.is-taken {
  background: var(--line);
  border-color: var(--line);
  color: transparent;
  cursor: not-allowed;
  opacity: .65;
}
.seat.is-taken::before {
  content: '✕';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--fg-3);
  pointer-events: none;
}
.seat.is-blocked { background: var(--canvas); border-style: dashed; }
.seat.is-restricted { opacity: .2; cursor: not-allowed; }
.seat.is-selected {
  background: var(--teal-100, #ccfbf1) !important;
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 2px var(--teal) inset !important;
  color: var(--petrol);
  font-weight: 700;
}
.seat[data-price]:hover::after {
  content: attr(data-price);
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: calc(100% + 6px);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Pax-seat assignment row (below the chips) */
.pax-seat-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 10px;
  min-height: 24px;
}
.pax-seat-info {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--fg-3);
}
.pax-seat-code {
  font-weight: 700;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 10px;
  background: var(--line);
  color: var(--fg-2);
  font-family: var(--mono);
  letter-spacing: .04em;
}
.pax-seat-code.is-manual { background: var(--petrol); color: #fff; }

/* ============================================================
   Stats / metrics
   ============================================================ */
.es-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.es-stats .stat {
  background: var(--paper);
  padding: 28px 24px;
}
.es-stats .stat .v {
  font-family: var(--serif); font-size: 44px; line-height: 1;
  letter-spacing: -0.02em;
}
.es-stats .stat .v sup { font-size: 18px; vertical-align: top; opacity: 0.6; font-family: var(--sans); }
.es-stats .stat .l { font-size: 13px; color: var(--fg-3); margin-top: 8px; }

/* ============================================================
   Editorial
   ============================================================ */
.es-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.es-editorial.flip { direction: rtl; }
.es-editorial.flip > * { direction: ltr; }
.es-editorial .imgwrap { aspect-ratio: 4/5; border-radius: var(--r-4); overflow: hidden; background: var(--canvas); }
.es-editorial .imgwrap img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Deal carousel cards
   ============================================================ */
.es-dealrow {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.es-deal {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.es-deal .img { aspect-ratio: 1; background: var(--canvas); }
.es-deal .body { padding: 16px; display: flex; flex-direction: column; }
.es-deal .city { font-family: var(--serif); font-size: 22px; line-height: 1; margin-bottom: 4px; }
.es-deal .route { font-size: 12px; color: var(--fg-3); font-family: var(--mono); letter-spacing: 0.08em; }
.es-deal .price { margin-top: auto; }
.es-deal .price .from { font-size: 11px; color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; }
.es-deal .price .amt { font-family: var(--serif); font-size: 24px; }

/* ============================================================
   Aircraft / fleet card
   ============================================================ */
.es-aircraft {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 32px;
  align-items: center;
}
.es-aircraft .img { aspect-ratio: 16/9; background: var(--canvas); border-radius: var(--r-3); overflow: hidden; }
.es-aircraft .specs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.es-aircraft .specs .spec .l { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.es-aircraft .specs .spec .v { font-family: var(--serif); font-size: 24px; }

/* ============================================================
   Misc utilities
   ============================================================ */
.es-divider { height: 1px; background: var(--line); }
.es-divider-thick { height: 1px; background: var(--ink); opacity: 0.1; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.flex-1 { flex: 1; }
.mt-s { margin-top: 8px; }
.mt-m { margin-top: 16px; }
.mt-l { margin-top: 24px; }
.mt-xl { margin-top: 32px; }
.mt-2xl { margin-top: 48px; }
.mb-s { margin-bottom: 8px; }
.mb-m { margin-bottom: 16px; }
.mb-l { margin-bottom: 24px; }
.mb-xl { margin-bottom: 32px; }
.mb-2xl { margin-bottom: 48px; }
.gap-xs { gap: 4px; }
.gap-s { gap: 8px; }
.gap-m { gap: 16px; }
.gap-l { gap: 24px; }

/* Tweaks panel will set --accent-mix to scale teal usage */
.accent-light .es-eyebrow { color: var(--fg-3); }
.accent-bold .es-btn--primary { background: var(--teal); color: var(--petrol-900); }
.accent-bold .es-btn--primary:hover { background: var(--teal-600); }

/* Print-style label */
.es-label-cap {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fg-3);
}

/* OCC / monitor table */
.es-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.es-table th {
  text-align: left;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--fg-3);
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.es-table td {
  padding: 16px; border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.es-table tr:hover td { background: var(--canvas); }
.es-table td.mono { font-family: var(--mono); font-size: 12px; }

/* Pricing tiers */
.es-fare {
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 20px;
  display: flex; flex-direction: column;
  background: var(--paper);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.es-fare:hover { border-color: var(--petrol); }
.es-fare.featured { border-color: var(--petrol); box-shadow: var(--sh-2); position: relative; }
.es-fare.featured::before {
  content: attr(data-badge);
  position: absolute; top: -10px; left: 20px;
  background: var(--petrol); color: #fff;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  padding: 4px 10px; border-radius: var(--r-full);
}
.es-fare .name { font-family: var(--serif); font-size: 22px; }
.es-fare .price { font-family: var(--serif); font-size: 36px; margin: 12px 0; }
.es-fare .price sup { font-size: 14px; opacity: 0.6; font-family: var(--sans); margin-right: 8px; vertical-align: super; }
.es-fare ul { margin: 16px 0 24px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--fg-2); }
.es-fare ul li { display: flex; gap: 10px; align-items: flex-start; }
.es-fare ul li::before { content: "✓"; color: var(--petrol); font-weight: 700; }
.es-fare ul li.no { color: var(--fg-3); }
.es-fare ul li.no::before { content: "✗"; color: var(--fg-4); font-weight: 700; }
.es-fare ul li.opt { color: var(--fg-2); }
.es-fare ul li.opt::before { content: "+"; color: var(--teal); font-weight: 700; }
.es-fare.sold-out { opacity: 0.45; pointer-events: none; cursor: default; }
.es-fare.sold-out:hover { border-color: var(--line); box-shadow: none; }

/* ============================================================
   Booking flow — shared chrome
   ============================================================ */
.es-flow {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  padding: 40px 0;
}

.es-flow-sidebar {
  position: sticky;
  top: 88px;
  height: fit-content;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 24px;
}

.es-flow-stepbar {
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.es-priceline {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px;
  padding: 6px 0;
}
.es-priceline.muted { color: var(--fg-3); font-size: 13px; }
.es-priceline.total { font-size: 16px; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 8px; }
.es-priceline .v { font-family: var(--mono); font-weight: 600; }
.es-priceline.total .v { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }

/* Pax / form fields stacked */
.es-formgrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.es-formgrid .span-6 { grid-column: span 6; }
.es-formgrid .span-4 { grid-column: span 4; }
.es-formgrid .span-3 { grid-column: span 3; }
.es-formgrid .span-12 { grid-column: span 12; }

.es-formgroup {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 28px;
}
.es-formgroup + .es-formgroup { margin-top: 16px; }
.es-formgroup-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.es-formgroup-head .num {
  width: 28px; height: 28px;
  background: var(--petrol);
  color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}

/* Extra card */
.es-extra {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  align-items: center;
  transition: border-color .15s;
}
.es-extra:hover { border-color: var(--petrol); }
.es-extra.added { border-color: var(--petrol); background: var(--petrol-50); }
.es-extra .icon {
  width: 100px; height: 80px;
  background: var(--canvas);
  border-radius: var(--r-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--petrol);
}
.es-extra .title { font-weight: 700; font-size: 16px; }
.es-extra .desc { font-size: 13px; color: var(--fg-3); margin-top: 4px; }
.es-extra .right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.es-extra .price { font-family: var(--serif); font-size: 22px; }

/* Pay methods */
.es-paymethods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.es-paymethod {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--paper);
}
.es-paymethod:hover { border-color: var(--petrol); }
.es-paymethod.active { border-color: var(--petrol); background: var(--petrol-50); box-shadow: inset 0 0 0 1px var(--petrol); }
.es-paymethod .lab { font-size: 12px; font-weight: 600; }
.es-paymethod .icon { height: 28px; display: flex; align-items: center; justify-content: center; color: var(--fg); }

/* Confirmation hero */
.es-confirm-hero {
  background: linear-gradient(135deg, var(--petrol-900), var(--petrol));
  color: #fff;
  padding: 64px var(--pad-2xl);
  position: relative;
  overflow: hidden;
}
.es-confirm-hero::before {
  content: "";
  position: absolute; right: -160px; top: -160px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67,204,212,0.35) 0%, transparent 70%);
}
.es-confirm-pnr {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.24em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.es-confirm-code {
  font-family: var(--serif);
  font-size: 72px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 4px 0;
}

/* Wallet buttons */
.es-walletbtn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 20px;
  background: #000; color: #fff;
  border-radius: var(--r-2);
  font-size: 14px; font-weight: 600;
  border: 1px solid #000;
}
.es-walletbtn.google { background: #fff; color: #000; border-color: var(--line); }

/* ============================================================
   Hero variants — extra patterns for the recut
   ============================================================ */
.es-hero-v {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--paper);
}
.es-hero-v .h-eyebrow {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; color: var(--petrol);
  display: inline-flex; align-items: center; gap: 10px;
}
.es-hero-v .h-eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.es-hero-v.on-dark .h-eyebrow { color: var(--teal); }

.es-hero-v .h-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 96px;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 14ch;
}
.es-hero-v .h-title em { font-style: italic; color: var(--petrol); }
.es-hero-v.on-dark .h-title { color: #fff; }
.es-hero-v.on-dark .h-title em { color: var(--teal); }

/* Variant 1 — Editorial Poster: full-bleed photo + serif type + live badge */
.es-hero-v1 .bg img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.es-hero-v1 .scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,43,50,0.45) 0%, rgba(0,43,50,0.08) 35%, rgba(0,43,50,0.78) 100%);
}
.es-hero-v1 .live-badge {
  position: absolute; right: 48px; bottom: 48px;
  background: rgba(255,255,255,0.96);
  padding: 16px 20px;
  border-radius: var(--r-3);
  display: flex; gap: 16px; align-items: center;
  font-size: 13px;
  box-shadow: var(--sh-3);
  max-width: 360px;
}
.es-hero-v1 .live-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 4px rgba(21,122,82,0.15);
  flex-shrink: 0;
}

/* Variant 2 — Editorial Split: 55/45 cream + photo */
.es-hero-v2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--canvas);
}
.es-hero-v2 .pane {
  padding: 80px 48px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.es-hero-v2 .photo {
  position: relative;
  overflow: hidden;
}
.es-hero-v2 .photo img { width: 100%; height: 100%; object-fit: cover; }
.es-hero-v2 .photo .overlay-card {
  position: absolute; bottom: 32px; left: 32px; right: 32px;
  background: rgba(255,255,255,0.95);
  padding: 20px 24px;
  border-radius: var(--r-3);
  box-shadow: var(--sh-3);
}
.es-hero-v2 .photo .overlay-card .city { font-family: var(--serif); font-size: 26px; line-height: 1; }
.es-hero-v2 .photo .overlay-card .meta { font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.1em; margin-top: 4px; }

/* Variant 3 — Magazine Feature: massive city wordmark on photo */
.es-hero-v3 .bg img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.es-hero-v3 .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,43,50,0.55) 0%, rgba(0,43,50,0.1) 50%, rgba(0,43,50,0.6) 100%);
}
.es-hero-v3 .city-mark {
  font-family: var(--serif);
  font-size: 220px;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.es-hero-v3 .stat-strip {
  display: flex; gap: 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 24px;
  padding-top: 20px;
}
.es-hero-v3 .stat-strip .stat {
  flex: 1; padding-right: 24px;
}
.es-hero-v3 .stat-strip .stat .v { font-family: var(--serif); font-size: 28px; color: #fff; }
.es-hero-v3 .stat-strip .stat .l { font-size: 11px; color: rgba(255,255,255,0.7); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }

/* Variant 4 — Quiet Luxury: type-led on cream, small framed photo */
.es-hero-v4 {
  background: var(--canvas);
  position: relative;
}
.es-hero-v4 .body {
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}
.es-hero-v4 .photo-frame {
  width: 100%;
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow:
    0 1px 1px rgba(0,0,0,0.05),
    0 8px 32px -8px rgba(12,31,36,0.18);
}
.es-hero-v4 .photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.es-hero-v4 .photo-frame .caption {
  position: absolute; bottom: -28px; left: 0;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
}
.es-hero-v4 .compact-search {
  margin-top: 48px;
  display: flex; align-items: center; gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 6px 6px 6px 24px;
  max-width: 720px;
  box-shadow: var(--sh-2);
}
.es-hero-v4 .compact-search .cell {
  display: flex; flex-direction: column; padding: 8px 16px;
  border-right: 1px solid var(--line);
}
.es-hero-v4 .compact-search .cell:last-of-type { border-right: 0; }
.es-hero-v4 .compact-search .cell .lab { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--fg-3); }
.es-hero-v4 .compact-search .cell .val { font-size: 14px; font-weight: 600; }
.es-hero-v4 .compact-search button {
  margin-left: auto;
  height: 44px; padding: 0 22px;
  background: var(--petrol); color: #fff;
  border-radius: var(--r-full);
  font-weight: 700; font-size: 14px;
}

/* Mobile cuts */

/* ============================================================
   Account / Pulse Club — logged-in surfaces
   ============================================================ */
.es-acct-subnav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 80px; z-index: 40;
}
.es-acct-subnav .row {
  max-width: 1280px; margin: 0 auto;
  padding: 0 48px;
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto;
}
.es-acct-subnav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 18px 4px;
  margin-right: 28px;
  font-size: 14px; font-weight: 500;
  color: var(--fg-3);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.es-acct-subnav a:hover { color: var(--fg); }
.es-acct-subnav a.active {
  color: var(--fg); font-weight: 600;
  border-bottom-color: var(--petrol);
}

/* Member hero */
.es-member-hero {
  position: relative;
  background:
    radial-gradient(900px 400px at 100% -50%, rgba(67,204,212,0.18), transparent 70%),
    linear-gradient(135deg, var(--petrol-900) 0%, var(--petrol) 100%);
  color: #fff;
  padding: 48px 48px 0;
  overflow: hidden;
}
.es-member-hero .inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  padding-bottom: 32px;
}

.es-tier-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}
.es-tier-pill.silver { background: linear-gradient(135deg, #c5d3d8 0%, #8fa5ad 100%); color: var(--petrol-900); }
.es-tier-pill.gold { background: linear-gradient(135deg, #ffd87a 0%, #c99a2e 100%); color: #3a2700; }
.es-tier-pill.blue { background: rgba(255,255,255,0.15); color: #fff; }

.es-member-hero .greet-eye {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 12px;
}
.es-member-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: 56px; line-height: 1; letter-spacing: -0.02em;
  color: #fff;
}
.es-member-hero .member-meta {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; color: rgba(255,255,255,0.7);
  margin-top: 16px; text-transform: uppercase;
}

.es-miles-bigblock {
  text-align: right;
}
.es-miles-bigblock .lab {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); font-weight: 600;
}
.es-miles-bigblock .v {
  font-family: var(--serif);
  font-size: 88px; line-height: 0.95;
  color: #fff; margin: 6px 0;
  letter-spacing: -0.02em;
}
.es-miles-bigblock .sub {
  font-size: 13px; color: rgba(255,255,255,0.7);
}

/* Status bar inside member hero */
.es-member-status {
  margin-top: 8px;
  background: rgba(0,0,0,0.18);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 48px;
  margin-left: -48px; margin-right: -48px;
}
.es-member-status .inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.es-member-status .label-row {
  display: flex; justify-content: space-between; margin-bottom: 10px;
  font-size: 12px; color: rgba(255,255,255,0.75);
}
.es-member-status .label-row b { color: #fff; }
.es-member-status .bar {
  height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.12);
  position: relative; overflow: hidden;
}
.es-member-status .bar .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--teal) 0%, #6ddde3 100%);
  border-radius: 999px;
  transition: width .6s ease;
}
.es-member-status .bar .marker {
  position: absolute; top: -6px; bottom: -6px;
  width: 2px;
  background: rgba(255,255,255,0.4);
}

/* Account body grid */
.es-acct-body {
  max-width: 1280px; margin: 0 auto;
  padding: 32px 48px 64px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.es-acct-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 24px;
}
.es-acct-card.dark {
  background: var(--ink);
  color: rgba(255,255,255,0.92);
  border-color: var(--ink);
}
.es-acct-card.dark .es-eyebrow { color: var(--teal); }
.es-acct-card.dark .es-h3 { color: #fff; }
.es-acct-card.tinted {
  background: var(--petrol-50);
  border-color: var(--petrol-100);
}
.es-acct-card .card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.es-acct-card.dark .card-head a { color: var(--teal); }

/* Miles chart — 12 months bars */
.es-miles-chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  align-items: end;
  height: 140px;
  padding: 16px 0;
}
.es-miles-chart .bar {
  background: linear-gradient(180deg, var(--petrol) 0%, var(--teal) 100%);
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: opacity .15s;
}
.es-miles-chart .bar.future { background: var(--line); }
.es-miles-chart .bar.current { background: linear-gradient(180deg, var(--teal) 0%, #6ddde3 100%); }
.es-miles-chart .bar:hover { opacity: 0.85; }
.es-miles-chart .month-labels {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  font-family: var(--mono); font-size: 10px;
  color: var(--fg-3); letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 8px;
  text-align: center;
}

/* Activity row */
.es-activity-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  gap: 16px;
  padding: 14px 0;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
}
.es-activity-row:last-child { border-bottom: 0; }
.es-activity-row .ico {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--canvas);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--petrol);
}
.es-activity-row .desc { font-size: 14px; }
.es-activity-row .desc .where { font-weight: 600; }
.es-activity-row .desc .when { font-size: 12px; color: var(--fg-3); margin-top: 2px; font-family: var(--mono); letter-spacing: 0.04em; }
.es-activity-row .miles {
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  color: var(--fg);
}
.es-activity-row.spend .miles { color: var(--err); }
.es-activity-row.earn .miles { color: var(--ok); }
.es-activity-row .date {
  font-family: var(--mono); font-size: 11px; color: var(--fg-3);
  text-align: right;
}

/* Quick action tiles */
.es-quick-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.es-quick-tile {
  background: var(--canvas);
  border-radius: var(--r-2);
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 6px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.es-quick-tile:hover { background: var(--petrol-50); transform: translateY(-2px); }
.es-quick-tile .ico { color: var(--petrol); margin-bottom: 4px; }
.es-quick-tile .eye {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--petrol); font-weight: 700;
}
.es-quick-tile .l { font-size: 14px; font-weight: 600; }

/* Offer card */
.es-offer {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  align-items: center;
  margin-bottom: 8px;
  transition: border-color .15s;
}
.es-offer:hover { border-color: var(--petrol); }
.es-offer .img {
  aspect-ratio: 1;
  background: var(--canvas);
  border-radius: var(--r-1);
  overflow: hidden;
}
.es-offer .img img { width: 100%; height: 100%; object-fit: cover; }
.es-offer .city { font-family: var(--serif); font-size: 18px; line-height: 1; }
.es-offer .meta { font-size: 11px; color: var(--fg-3); font-family: var(--mono); letter-spacing: 0.06em; margin-top: 4px; }
.es-offer .price { font-family: var(--serif); font-size: 18px; color: var(--petrol); margin-top: 4px; }

/* Trip card */
.es-trip-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.es-trip-card .left {
  padding: 24px;
}
.es-trip-card .right {
  background: var(--petrol-50);
  border-left: 1px dashed var(--line);
  padding: 24px 28px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  min-width: 220px;
}
.es-trip-card .countdown {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--petrol); font-weight: 700;
}
.es-trip-card .city-pair {
  font-family: var(--serif); font-size: 32px; line-height: 1;
  margin: 8px 0 4px;
}
.es-trip-card .schedule {
  display: flex; gap: 24px; align-items: center;
  margin-top: 12px;
}
.es-trip-card .schedule .time { font-family: var(--serif); font-size: 26px; line-height: 1; }
.es-trip-card .schedule .ap { font-family: var(--mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.14em; margin-top: 2px; }
.es-trip-card .schedule .arrow { color: var(--petrol); font-size: 18px; }

/* Profile field rows */
.es-profile-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: center;
}
.es-profile-row:last-child { border-bottom: 0; }
.es-profile-row .l { font-size: 13px; color: var(--fg-3); letter-spacing: 0.06em; }
.es-profile-row .v { font-size: 15px; font-weight: 500; }
.es-profile-row .edit {
  font-size: 12px; color: var(--petrol);
  font-weight: 600;
}

/* Reward redemption table */
.es-reward-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
}
.es-reward-row:last-child { border-bottom: 0; }
.es-reward-row .img {
  aspect-ratio: 1;
  background: var(--canvas);
  border-radius: var(--r-2);
  overflow: hidden;
}
.es-reward-row .name { font-family: var(--serif); font-size: 22px; line-height: 1; }
.es-reward-row .desc { font-size: 12px; color: var(--fg-3); margin-top: 4px; }
.es-reward-row .cost {
  font-family: var(--mono); font-size: 16px; font-weight: 700;
  color: var(--petrol);
}
.es-reward-row .cost .lbl { font-size: 10px; color: var(--fg-3); display: block; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-top: 2px; }

/* ============================================================
   Trip card (full / rich) — used in My Trips list
   ============================================================ */
.es-trip-card-full {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.es-trip-card-full:hover { border-color: var(--petrol); box-shadow: var(--sh-2); }

.es-trip-card-full .strip {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.es-trip-card-full .strip .meta {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.es-trip-card-full .strip .countdown {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--petrol); font-weight: 700;
}

.es-trip-card-full .body { padding: 28px; }
.es-trip-card-full .body .head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.es-trip-card-full .body .city-pair {
  font-family: var(--serif); font-weight: 400;
  font-size: 40px; line-height: 1; letter-spacing: -0.015em;
  margin: 0;
}
.es-trip-card-full .body .pax {
  font-size: 13px; color: var(--fg-3);
}

/* Legs side-by-side */
.es-trip-card-full .legs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 20px 24px;
  background: var(--canvas);
  border-radius: var(--r-2);
  margin-bottom: 20px;
}
.es-trip-card-full .leg .row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}
.es-trip-card-full .leg .time {
  font-family: var(--serif); font-size: 32px; line-height: 1;
}
.es-trip-card-full .leg .ap {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--fg-3);
  margin-top: 4px;
}
.es-trip-card-full .leg .connector {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.es-trip-card-full .leg .connector .line {
  flex: 1; height: 1px; background: var(--line); width: 100%;
}
.es-trip-card-full .leg .connector .plane {
  position: absolute; left: 50%; transform: translateX(-50%);
  background: var(--canvas); padding: 0 8px;
  color: var(--petrol); font-size: 14px;
}

.es-trip-card-full .chips {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 20px;
}

.es-trip-card-full .footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.es-trip-card-full .footer .kpi {
  display: flex; flex-direction: column; gap: 2px;
}
.es-trip-card-full .footer .kpi .l {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 600;
}
.es-trip-card-full .footer .kpi .v {
  font-family: var(--mono); font-size: 16px; font-weight: 700;
}
.es-trip-card-full .footer .actions {
  margin-left: auto; display: flex; gap: 8px; align-items: center;
}

/* ============================================================
   News ticker variants
   ============================================================ */

/* V1 — Refined single-line auto-rotate */
.es-ticker-v1 {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: stretch;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  height: 56px;
}
.es-ticker-v1 .label {
  background: var(--canvas);
  padding: 0 24px;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--petrol);
  border-right: 1px solid var(--line);
}
.es-ticker-v1 .label .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--petrol);
}
.es-ticker-v1 .item {
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px;
  font-size: 14px;
  color: var(--fg-2);
  min-width: 0;
}
.es-ticker-v1 .sev {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--canvas);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.es-ticker-v1 .sev.warn { background: #fdf1da; color: var(--warn); }
.es-ticker-v1 .sev.info { background: var(--petrol-50); color: var(--petrol); }
.es-ticker-v1 .sev.promo { background: var(--teal-100); color: var(--petrol); }
.es-ticker-v1 .text {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.es-ticker-v1 .text b { color: var(--fg); font-weight: 700; }
.es-ticker-v1 .ts {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--fg-3);
  padding: 0 16px; display: flex; align-items: center;
  border-left: 1px solid var(--line-2);
}
.es-ticker-v1 .dots {
  display: flex; gap: 6px; align-items: center;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}
.es-ticker-v1 .dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line);
  transition: background .3s, transform .3s;
  cursor: pointer;
}
.es-ticker-v1 .dots span.active { background: var(--petrol); transform: scale(1.3); }

/* V2 — Editorial poster strip (2-column hero ticker) */
.es-ticker-v2 {
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.es-ticker-v2 .inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.es-ticker-v2 .lead {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center;
}
.es-ticker-v2 .sev-tag {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  align-self: start;
  margin-top: 2px;
}
.es-ticker-v2 .sev-tag.warn { background: #fdf1da; color: var(--warn); }
.es-ticker-v2 .sev-tag.info { background: var(--petrol-50); color: var(--petrol); }
.es-ticker-v2 .sev-tag.promo { background: var(--teal-100); color: var(--petrol); }
.es-ticker-v2 .lead h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; line-height: 1.15;
}
.es-ticker-v2 .lead .ts {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--fg-3); margin-top: 6px;
}
.es-ticker-v2 .kpis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.es-ticker-v2 .kpis .kpi .l {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 600;
}
.es-ticker-v2 .kpis .kpi .v {
  font-family: var(--serif); font-size: 22px; line-height: 1;
  margin-top: 4px;
}

/* V3 — OCC live feed (dark, mono) */
.es-ticker-v3 {
  background: var(--ink);
  color: rgba(255,255,255,0.92);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.es-ticker-v3 .inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 56px;
}
.es-ticker-v3 .badge {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal); font-weight: 700;
}
.es-ticker-v3 .badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(67,204,212,0.2);
  animation: es-pulse-teal 2s ease-in-out infinite;
}
@keyframes es-pulse-teal {
  0%, 100% { box-shadow: 0 0 0 3px rgba(67,204,212,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(67,204,212,0.05); }
}
.es-ticker-v3 .stream {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--mono); font-size: 12px;
  overflow: hidden;
  min-width: 0;
}
.es-ticker-v3 .stream .row { display: flex; gap: 12px; align-items: center; opacity: 0.95; transition: opacity .4s; }
.es-ticker-v3 .stream .ts { color: rgba(255,255,255,0.5); letter-spacing: 0.06em; }
.es-ticker-v3 .stream .tag {
  font-size: 10px; padding: 2px 6px; border-radius: 3px;
  letter-spacing: 0.12em; font-weight: 700;
}
.es-ticker-v3 .stream .tag.advisory { background: rgba(245,158,11,0.18); color: #fbbf24; }
.es-ticker-v3 .stream .tag.info { background: rgba(67,204,212,0.18); color: var(--teal); }
.es-ticker-v3 .stream .tag.promo { background: rgba(16,185,129,0.18); color: #34d399; }
.es-ticker-v3 .stream .txt { color: rgba(255,255,255,0.9); white-space: nowrap; }
.es-ticker-v3 .meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* V4 — Continuous marquee */
.es-ticker-v4 {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  height: 56px;
  position: relative;
  overflow: hidden;
}
.es-ticker-v4::before, .es-ticker-v4::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px;
  z-index: 2; pointer-events: none;
}
.es-ticker-v4::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.es-ticker-v4::after  { right: 0; background: linear-gradient(-90deg, var(--paper), transparent); }
.es-ticker-v4 .label {
  position: absolute; left: 0; top: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 0 24px;
  background: var(--canvas);
  border-right: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--petrol);
  z-index: 3;
}
.es-ticker-v4 .track {
  display: flex; gap: 48px;
  height: 100%;
  align-items: center;
  padding-left: 200px;
  animation: es-marquee 40s linear infinite;
  width: max-content;
  font-size: 14px;
  color: var(--fg-2);
}
.es-ticker-v4 .track:hover { animation-play-state: paused; }
.es-ticker-v4 .track .item { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.es-ticker-v4 .track .item .sep { color: var(--line); margin: 0 8px; }
.es-ticker-v4 .track .item b { color: var(--fg); }
.es-ticker-v4 .track .item .pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; font-weight: 700;
  margin-right: 6px;
}
.es-ticker-v4 .track .item .pill.warn { background: #fdf1da; color: var(--warn); }
.es-ticker-v4 .track .item .pill.info { background: var(--petrol-50); color: var(--petrol); }
.es-ticker-v4 .track .item .pill.promo { background: var(--teal-100); color: var(--petrol); }
@keyframes es-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Top-of-page dark variant — slim utility strip, always sticky with header */
.es-ticker-v4.top {
  height: 40px;
  background: var(--ink);
  border-top: 0;
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.92);
  position: relative; z-index: 60;
}
.es-ticker-v4.top::before { background: linear-gradient(90deg, var(--ink), transparent); width: 60px; }
.es-ticker-v4.top::after  { background: linear-gradient(-90deg, var(--ink), transparent); width: 60px; }
.es-ticker-v4.top .label {
  /* Opaker Hintergrund + Fade nach rechts, damit der Marquee-Text nicht hinter dem
     Label "Live Updates" durchschimmert. */
  background: var(--ink);
  box-shadow: 12px 0 12px -6px var(--ink);
  color: var(--teal);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px; letter-spacing: 0.2em;
  padding: 0 20px;
}
.es-ticker-v4.top .label svg { color: var(--teal); }
.es-ticker-v4.top .track {
  padding-left: 180px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  animation-duration: 50s;
}
.es-ticker-v4.top .track .item b,
.es-ticker-v4.top .track .item > span:nth-child(2) { color: #fff; }
.es-ticker-v4.top .track .item .sep { color: rgba(255, 255, 255, 0.2); }
.es-ticker-v4.top .track .item .pill {
  font-size: 9px; padding: 2px 7px; letter-spacing: 0.16em;
}
.es-ticker-v4.top .track .item .pill.warn  { background: rgba(245, 158, 11, 0.2);  color: #fbbf24; }
.es-ticker-v4.top .track .item .pill.info  { background: rgba(67, 204, 212, 0.18); color: var(--teal); }
.es-ticker-v4.top .track .item .pill.promo { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.es-ticker-v4.top .track .item a { color: var(--teal); }

/* Single-item ticker: no marquee, sit statically next to the label */
.es-ticker-v4.is-single .track {
  animation: none;
  width: auto;
}
.es-ticker-v4.top.is-single::before,
.es-ticker-v4.top.is-single::after { display: none; }


/* Make the whole header (ticker + nav) stick together */
.es-header-stack { position: sticky; top: 0; z-index: 50; }

/* Mobile adaptations */


/* ============================================================
   Mobile overrides (max-width: 640px)
   ============================================================ */
@media (max-width: 640px) {
  .es-display { font-size: 38px; }
  .es-h1 { font-size: 30px; }
  .es-h2 { font-size: 26px; }
  .es-h3 { font-size: 18px; }
  .es-lede { font-size: 16px; }
  .es-header .row { height: 60px; padding: 0 16px; }
  .es-logo .wm { font-size: 14px; }
  /* Mobile nav within the 640px viewport — actual breakpoint that flips
     desktop→mobile lives in a wider media query below (960px). These rules
     here stay scoped to small-phone tweaks only. */
  .es-hero { min-height: 600px; }
  .es-hero .inner { padding: 56px 20px 380px; }
  .es-hero h1 { font-size: 48px; max-width: 14ch; }
  .es-hero .sub { font-size: 15px; }
  .es-hero .live-badge {
  position: static; max-width: none;
  margin-top: 32px;
  }
  .es-bookwidget {
  margin: -320px 16px 0;
  padding: 16px;
  border-radius: 16px;
  }
  .es-bookwidget .grid {
  grid-template-columns: 1fr 1fr;
  gap: 0;
  }
  .es-bookwidget .grid > * {
  grid-column: span 2;
  }
  .es-bookwidget .grid .row-pair { grid-column: span 1; }
  .es-quickbar { padding: 12px 16px; gap: 12px; }
  .es-quickbar .links { display: none; }
  .es-footer { padding: 40px 20px 24px; }
  .es-footer .cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .es-footer .col-brand { grid-column: span 2; }
  .es-container { padding: 0 16px; }
  .es-section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .es-dest { aspect-ratio: 5/6; }
  .es-flight {
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px;
  }
  .es-flight .price { text-align: left; display: flex; justify-content: space-between; align-items: flex-end; }
  .es-stats { grid-template-columns: 1fr 1fr; }
  .es-editorial { grid-template-columns: 1fr; gap: 24px; }
  .es-dealrow { grid-template-columns: 1fr; }
  .es-aircraft { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .es-flow { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
  .es-flow-sidebar { position: static; }
  .es-formgrid > * { grid-column: span 12 !important; }
  .es-extra { grid-template-columns: 64px 1fr; }
  .es-extra .icon { width: 64px; height: 64px; }
  .es-extra .right { grid-column: span 2; flex-direction: row; justify-content: space-between; align-items: center; }
  .es-paymethods { grid-template-columns: 1fr 1fr; }
  .es-confirm-code { font-size: 48px; }
  .es-hero-v .h-title { font-size: 44px; }
  .es-hero-v1 .live-badge {
  left: 16px; right: 16px; bottom: 24px;
  padding: 12px 14px; font-size: 12px;
  }
  .es-hero-v2 { grid-template-columns: 1fr; }
  .es-hero-v2 .pane { padding: 32px 20px; }
  .es-hero-v2 .photo { aspect-ratio: 16/10; }
  .es-hero-v3 .city-mark { font-size: 96px; }
  .es-hero-v3 .stat-strip { flex-wrap: wrap; gap: 16px; }
  .es-hero-v4 .body { grid-template-columns: 1fr; padding: 32px 20px; gap: 32px; }
  .es-hero-v4 .compact-search { flex-direction: column; padding: 16px; border-radius: var(--r-3); }
  .es-hero-v4 .compact-search .cell { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .es-hero-v4 .compact-search button { width: 100%; margin-top: 12px; }
  .es-acct-subnav .row { padding: 0 16px; }
  .es-member-hero { padding: 32px 16px 0; }
  .es-member-hero .inner { grid-template-columns: 1fr; gap: 24px; }
  .es-member-hero h1 { font-size: 36px; }
  .es-miles-bigblock { text-align: left; }
  .es-miles-bigblock .v { font-size: 52px; }
  .es-member-status { padding: 16px; margin: 0 -16px; }
  .es-member-status .inner { grid-template-columns: 1fr; gap: 12px; }
  .es-acct-body { grid-template-columns: 1fr; padding: 20px 16px 40px; gap: 16px; }
  .es-trip-card { grid-template-columns: 1fr; }
  .es-trip-card .right { border-left: 0; border-top: 1px dashed var(--line); min-width: auto; }
  .es-profile-row { grid-template-columns: 1fr auto; }
  .es-profile-row .l {
  grid-column: 1 / -1; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--fg-3);
  }
  .es-trip-card-full .legs { grid-template-columns: 1fr; gap: 20px; }
  .es-trip-card-full .footer .actions { width: 100%; margin-left: 0; }
  .es-trip-card-full .footer .actions button { flex: 1; }
  .es-ticker-v4.top { height: 36px; }
  .es-ticker-v4.top .label { padding: 0 12px; font-size: 9px; letter-spacing: 0.18em; }
  .es-ticker-v4.top .track { padding-left: 120px; font-size: 12px; }
  .es-ticker-v1 { grid-template-columns: auto 1fr; height: 48px; }
  .es-ticker-v1 .ts,
  .es-ticker-v1 .dots { display: none; }
  .es-ticker-v1 .label { padding: 0 14px; font-size: 10px; }
  .es-ticker-v1 .item { padding: 0 14px; font-size: 13px; }
  .es-ticker-v2 .inner { grid-template-columns: 1fr; padding: 0 16px; gap: 16px; }
  .es-ticker-v2 .kpis { padding-left: 0; border-left: 0; padding-top: 12px; border-top: 1px solid var(--line); }
  .es-ticker-v3 .inner { grid-template-columns: 1fr; height: auto; padding: 12px 16px; gap: 8px; }
  .es-ticker-v3 .meta { display: none; }
}

/* ─── Booking Widget: new class-name API (bw-* / __trip) ─── */
.bw-row1 {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.es-bookwidget__trip {
  display: inline-flex; gap: 4px;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: var(--r-full);
  font-size: 13px;
}
.es-bookwidget__trip button {
  padding: 6px 14px;
  border-radius: var(--r-full);
  color: var(--fg-3); font-weight: 600;
  background: transparent; border: 0; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.es-bookwidget__trip button.active {
  background: var(--petrol);
  color: #fff;
}

/* Context container — sits opposite the tabs in bw-row1 and holds either
   the trip-type toggle (Book tab) or a contextual mini-headline (Check-in,
   Manage, Status tabs). Single hook, swapped per tab via [data-bw-context]. */
.es-bookwidget__context {
  display: flex;
  align-items: center;
  min-height: 36px;
}
.bw-context-intro h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 15px; font-weight: var(--fw-semi);
  letter-spacing: var(--tr-tight);
  color: var(--ink);
}
/* Enforce hidden — .es-bookwidget__trip has display:inline-flex and
   .bw-context-intro inherits block, both of which would otherwise win
   over the bare [hidden] attribute due to equal specificity. */
.es-bookwidget__trip[hidden],
.bw-context-intro[hidden] { display: none; }

.bw-tabs { margin: 0; }

/* Filter checkboxes below the field grid (Direktflüge, Flex-Daten, Meilen) */
.bw-filters {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 18px;
  font-size: 13px; color: var(--fg-2);
}
.bw-filter {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none;
}
.bw-filter input[type="checkbox"] {
  width: 16px; height: 16px;
  margin: 0;
  accent-color: var(--petrol);
  cursor: pointer;
}
.bw-filter span { line-height: 1.2; }

/* bw-row: same grid approach as .es-bookwidget .grid but using the new name */
.bw-row {
  display: grid;
  grid-template-columns: 2.8fr 1fr 1fr 0.8fr auto;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: visible;
  align-items: stretch;
}
/* Compact variant — for auth/status forms that only have 2 inputs + CTA
   (Check-in, Manage, Flight Status). The default 5-column grid leaves
   empty cells exposed as grey lines, this collapses to a clean 3-col grid. */
.bw-row--compact {
  grid-template-columns: 1fr 1fr auto;
}
/* First-child rounding — match the container's left edge so the square
   inner cell doesn't poke a sharp corner through the rounded outer. Two
   levels are needed: the direct first child of .bw-row, and (when that's
   .bw-od) the first nested field inside .bw-od. */
.bw-row > *:first-child,
.bw-od > *:first-child {
  border-top-left-radius: var(--r-3);
  border-bottom-left-radius: var(--r-3);
}
.bw-row > .es-field,
.bw-od > .es-field {
  border: 0; border-radius: 0;
  background: var(--paper);
}
.bw-row > .es-field:focus-within,
.bw-od > .es-field:focus-within { box-shadow: inset 0 0 0 2px var(--petrol); z-index: 1; }

/* Origin/Destination sub-cell: 2-col mini-grid with floating swap button between */
.bw-od {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}
.bw-od > .es-field:first-child { border-radius: var(--r-3) 0 0 var(--r-3); }

.bw-swap {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--fg-3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: var(--sh-1);
  transition: color 0.15s, border-color 0.15s, transform 0.2s;
}
.bw-swap:hover {
  color: var(--petrol);
  border-color: var(--petrol);
  transform: translate(-50%, -50%) rotate(180deg);
}

.bw-search-cell {
  background: var(--paper);
  border-radius: 0 var(--r-3) var(--r-3) 0;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.bw-search-cell .bw-submit,
.bw-search-cell .es-btn {
  width: 100%; height: 100%; min-height: 56px;
  border-radius: var(--r-2);
  white-space: nowrap;
}

/* Flight search page variant — no hero overlap, sits in page flow */
.es-bookwidget--page .es-bookwidget__trip { margin-bottom: 20px; }
.es-bookwidget--page {
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

/* Flight search page header */
.es-fs-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 40px;
}
.es-fs-header .es-eyebrow { color: var(--teal); margin-bottom: 8px; }
.es-fs-header .es-h2 { color: var(--ink); margin-bottom: 28px; }

/* ── Destination listing (flightsearch page, below widget) ── */
.es-dest-listing {
  background: var(--canvas);
  padding: 48px 0 64px;
  border-top: 1px solid var(--line);
}
.es-dest-listing__head {
  margin-bottom: 32px;
}
.es-dest-listing__title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}
.es-dest-listing__sub {
  font-size: 12px;
  color: var(--fg-3);
  margin: 0;
  letter-spacing: .02em;
}
/* 3 equal columns */
.es-dest-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 48px;
}
.es-dest-col__head {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-bottom: 10px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}
.es-dest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding .12s;
}
.es-dest-row:hover { padding-left: 6px; }
.es-dest-row__left {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.es-dest-row__city {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .12s;
}
.es-dest-row:hover .es-dest-row__city { color: var(--petrol); }
.es-dest-row__country {
  font-size: 11px;
  color: var(--fg-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.es-dest-row__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--petrol);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .12s;
}
.es-dest-row:hover .es-dest-row__price { color: var(--teal); }
@media (max-width: 860px) {
  .es-dest-columns { grid-template-columns: 1fr 1fr; gap: 0 32px; }
}
@media (max-width: 560px) {
  .es-dest-columns { grid-template-columns: 1fr; gap: 24px 0; }
}

/* Mobile: stack bw-row */
@media (max-width: 900px) {
  .bw-row,
  .bw-row--compact {
    grid-template-columns: 1fr;
    border-radius: var(--r-3);
    overflow: hidden;
  }
  .bw-od {
    grid-template-columns: 1fr;
  }
  .bw-row > .es-field,
  .bw-od > .es-field,
  .bw-search-cell { border-radius: 0; }
  /* On mobile the swap button rotates from vertical-divider to horizontal-divider */
  .bw-swap {
    width: 36px; height: 36px;
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .bw-swap:hover {
    transform: translate(-50%, -50%) rotate(270deg);
  }
  .bw-search-cell { padding: 12px; }
  .bw-search-cell .bw-submit { min-height: 48px; }
}

/* ─── Utility: missing button variants ─── */
.es-btn--secondary {
  background: var(--canvas);
  color: var(--fg);
  border: 1px solid var(--line);
}
.es-btn--secondary:hover { background: var(--paper); border-color: var(--fg-3); }

/* ─── Alert helper ─── */
.es-alert {
  padding: 12px 16px;
  border-radius: var(--r-2);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.es-alert--info {
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
  color: var(--petrol);
}

/* ─── Search results layout ─── */
.es-search-summary-bar {
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.es-search-summary-bar .es-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.es-ssb-fields {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.es-ssb-field {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 20px;
  flex: 1;
  min-width: 0;
}
.es-ssb-field:first-child { padding-left: 0; }
.es-ssb-field__label {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.es-ssb-field__main {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}
.es-ssb-arrow { color: var(--fg-3); margin: 0 6px; }
.es-ssb-field__sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: .04em;
}
.es-ssb-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
  flex-shrink: 0;
  margin: 0 4px;
}
.es-ssb-divider--arrow {
  width: auto;
  height: auto;
  background: none;
  font-size: 14px;
  color: var(--fg-3);
  margin: 0 2px;
  padding-top: 14px; /* align with main text */
}
/* legacy classes kept for safety */
.es-search-summary__route,
.es-search-summary__date,
.es-search-summary__pax { display: flex; flex-direction: column; gap: 2px; }

/* ─── Results two-column layout ─── */
.es-results-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 64px;
  align-items: start;
}
.es-results-layout.has-sidebar {
  grid-template-columns: 240px 1fr;
}
.es-results-sidebar {
  position: sticky;
  top: 80px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 20px;
  font-size: 13px;
}
.es-results-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.es-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.es-results-toolbar .es-tabs {
  gap: 4px;
}

/* es-tab element alias (for button-per-class pattern) */
.es-tab {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-3);
  border-radius: var(--r-full);
  letter-spacing: 0.01em;
  transition: background .15s, color .15s;
  cursor: pointer;
  border: 0;
  background: transparent;
}
.es-tab.is-active,
.es-tab.active {
  background: var(--paper);
  color: var(--fg);
  box-shadow: var(--sh-1);
}

/* ─── Filter sidebar helpers ─── */
.es-filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.es-filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--fg-2);
}
.es-filter-check input[type="checkbox"] {
  accent-color: var(--petrol);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.es-filter-check:hover { color: var(--fg); }

/* ─── Date price strip ─── */
.es-date-strip {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  padding: 0 0 4px;
  scrollbar-width: none;
}
.es-date-strip::-webkit-scrollbar { display: none; }
.es-date-chip {
  flex: 1 0 80px;
  padding: 12px 10px;
  border-radius: var(--r-2);
  background: transparent;
  border: 0;
  text-align: center;
  cursor: pointer;
  transition: background .15s, color .15s;
  color: var(--fg-2);
}
.es-date-chip:hover {
  background: var(--canvas);
  color: var(--fg);
}
.es-date-chip.active {
  background: var(--petrol);
  border-radius: var(--r-2);
  color: #fff;
}
.es-date-chip .d {
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.8;
}
.es-date-chip .dt {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  margin-top: 2px;
}
.es-date-chip .p {
  font-weight: 700;
  font-size: 13px;
  margin-top: 4px;
}

/* ─── Flight result wrapper (card shell) ─── */
.es-flight-wrap {
  border-radius: var(--r-3);
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  position: relative;
  cursor: pointer;
}
.es-flight-wrap:hover {
  border-color: var(--petrol);
  box-shadow: var(--sh-2);
}
.es-flight-wrap.selected {
  border-color: var(--petrol);
  box-shadow: 0 0 0 2px var(--petrol);
  background: var(--canvas);
}
.es-flight-wrap .es-flight {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.es-flight-wrap .es-flight:hover {
  border-color: transparent;
  box-shadow: none;
}

/* Cheapest badge */
.es-flight-cheapest {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 0 0 var(--r-1) 0;
  position: absolute;
  top: 0;
  left: 0;
}
.es-flight-cheapest ~ .es-flight {
  padding-top: 28px;
}

/* Fare pills expanded section */
.es-flight-fares {
  border-top: 1px solid var(--line);
  padding: 16px;
  background: var(--canvas);
}
.es-flight-fares .fare-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 0;
}

/* ─── Responsive: collapse sidebar on narrow screens ─── */
@media (max-width: 900px) {
  .es-results-layout.has-sidebar {
    grid-template-columns: 1fr;
  }
  .es-results-sidebar {
    position: static;
    display: none;
  }
  .es-ssb-field { padding: 4px 12px; }
  .es-ssb-field__main { font-size: 17px; }
  .es-ssb-divider--arrow { padding-top: 14px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SITE-SPECIFIC ADDITIONS
   ══════════════════════════════════════════════════════════════════════════ */

/* ─── Autocomplete dropdown ─── */
.ac { position: relative; }
.ac-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  box-shadow: 0 8px 32px rgba(2,19,27,.12);
  max-height: 300px;
  overflow: auto;
  z-index: 6700;
  display: none;
}
.ac-list.open { display: block; }
.ac-item {
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover { background: var(--canvas); }
.ac-main { display: block; font-size: 14px; }

/* ─── Passenger picker popover ─── */
.popover {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 6600;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 12px 16px;
  min-width: 240px;
  box-shadow: 0 8px 32px rgba(2,19,27,.12);
}
.popover[hidden] { display: none !important; }
.popover .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.popover .qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.popover .qty button {
  width: 32px; height: 32px;
  border-radius: var(--r-1);
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg);
  transition: background .15s, border-color .15s;
}
.popover .qty button:hover { background: var(--canvas); border-color: var(--petrol); }
.popover .qty output {
  display: inline-block;
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}
.justify-end { justify-content: flex-end; }
.mt-8 { margin-top: 8px; }

/* ─── Inbound (return) section header ─── */
.es-inbound-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

/* ─── Result block (flight list container) ─── */
.result-block {
  display: flex; flex-direction: column; gap: 14px;
}

/* ─── Skeleton loader ─── */
.skeleton {
  background: var(--canvas);
  animation: es-pulse 2s infinite;
  border-radius: var(--r-2);
  min-height: 100px;
}
.skeleton-flight {
  background: var(--canvas);
  border-radius: var(--r-3);
  height: 120px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.skeleton-flight::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: es-shimmer 1.5s infinite;
}
@keyframes es-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@keyframes es-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ─── Fare pills (compact row) ─── */
.fare-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--canvas);
  border-radius: var(--r-2);
  padding: 10px 12px;
  cursor: pointer;
  transition: all .15s ease;
}
.fare-pill:hover {
  background: var(--paper);
  border-color: var(--petrol);
  box-shadow: 0 4px 12px rgba(2,6,23,.06);
}
.fare-pill.selected {
  outline: 2px solid var(--petrol);
  background: var(--petrol-50);
  border-color: var(--teal);
}
.fare-pill.disabled { opacity: .45; pointer-events: none; }
.fare-name { font-weight: 600; }
.fare-sub { font-size: .8rem; color: var(--fg-3); }
.fare-price { font-weight: 800; }
.fare-adv {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .1rem .45rem;
  border-radius: 999px;
  font-size: .75rem; font-weight: 700;
  background: var(--petrol); color: #fff;
  margin-left: .35rem;
  white-space: nowrap;
}
.fare-grid {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 6px;
}

/* ─── Fare bucket cards (expanded fare matrix) ─── */
.fare-matrix {
  display: flex;
  flex-wrap: wrap;
  background: var(--paper);
  padding: 20px;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.fare-matrix .itin-total-label { flex: 0 0 100%; }
.fare-bucket-card {
  flex: 1 1 0;
  min-width: 160px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 0;
  cursor: pointer;
  transition: all .25s ease;
  display: flex; flex-direction: column;
  text-align: center;
  min-height: 160px;
  position: relative;
  overflow: hidden;
}
.fare-bucket-card .bucket-header {
  padding: 8px;
  font-size: 0.6rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 1.2px;
  background: rgba(241,245,249,0.5);
  color: var(--fg-3);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.fare-bucket-card .bucket-body {
  padding: 14px 10px;
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: flex-start; gap: 8px;
}
.fare-bucket-card:hover:not(.sold-out):not(.selected) {
  border-color: var(--petrol);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.14);
}
.fare-bucket-card.selected {
  border-color: var(--petrol); border-width: 2px;
  background: var(--petrol-50);
  box-shadow: 0 6px 16px -4px rgba(0,91,105,.2);
}
.fare-bucket-card.selected .bucket-header {
  background: var(--petrol); color: #fff; border-bottom: none;
}
.fare-bucket-card.selected .bucket-price { color: var(--petrol); }
.fare-bucket-card.sold-out { cursor: not-allowed; opacity: 0.55; background: transparent; }
.fare-bucket-card[data-cabin="J"] .bucket-header {
  background: linear-gradient(135deg,#1e293b,#0f172a); color: #c9a227;
}
.bucket-price {
  font-size: 1.35rem; font-weight: 900; color: var(--petrol); display: block;
}
.bucket-meta { font-size: 0.7rem; color: var(--fg-3); font-weight: 700; }
.bucket-features {
  list-style: none; padding: 0; margin: 8px 0 0 0;
  display: flex; flex-direction: column; gap: 4px;
}
.bucket-features li {
  font-size: 0.65rem; color: var(--fg-3); font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.bucket-features li::before {
  content: '✓'; font-size: 0.6rem; color: var(--teal);
}
.bucket-sold-out {
  color: var(--fg-3); font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
}
.cheapest-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--teal); color: #fff;
  font-size: 0.65rem; font-weight: 900;
  padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase;
}
.urgency-badge {
  background: var(--err-bg); color: var(--err);
  font-size: 0.7rem; font-weight: 800;
  padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase; display: inline-block;
}
.stop-badge {
  display: inline-block; margin: 6px 0; padding: 4px 8px;
  border: 1px dashed var(--line);
  border-left: 3px solid var(--petrol);
  border-radius: var(--r-1);
  background: var(--canvas); color: var(--fg-2); font-size: .8rem;
}


/* ─── Utility helpers ─── */
.muted { color: var(--fg-3); }
.text-sm { font-size: 13px; }

/* ─── Missing formgrid spans ─── */
.es-formgrid > .span-5  { grid-column: span 5; }
.es-formgrid > .span-7  { grid-column: span 7; }
.es-formgrid > .span-8  { grid-column: span 8; }
.es-formgrid > .span-9  { grid-column: span 9; }
.es-formgrid > .span-10 { grid-column: span 10; }
.es-formgrid > .span-11 { grid-column: span 11; }
@media (max-width: 640px) {
  .es-formgrid > .span-5,
  .es-formgrid > .span-7,
  .es-formgrid > .span-8,
  .es-formgrid > .span-9,
  .es-formgrid > .span-10,
  .es-formgrid > .span-11 { grid-column: span 12; }
}

/* ─── Form input + label helpers ─── */
.es-input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  font-size: 14px;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--fg);
  transition: border-color .15s, box-shadow .15s;
  display: block;
}
.es-input:focus {
  outline: 0;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(0,91,105,.1);
}
.es-input::placeholder { color: var(--fg-3); }
select.es-input { cursor: pointer; }
textarea.es-input { height: auto; padding: 10px 12px; resize: vertical; }

.es-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-3);
  margin-bottom: 5px;
  letter-spacing: .01em;
}

/* BEM variant aliases for es-formgroup */
.es-formgroup__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 20px;
}
.es-formgroup__title {
  font-size: 16px; font-weight: 700; color: var(--fg);
}
.es-formgroup__sub {
  font-size: 13px; color: var(--fg-3); margin-top: 2px;
}

/* ─── es-paymethod label tweak ─── */
.es-paymethod__label { font-size: 13px; font-weight: 600; color: var(--fg); }

/* ─── flow-bar right gap ─── */
.flow-bar .right { gap: 14px; }

/* ─── Miscellaneous ─── */
.is-invalid.es-input { border-color: var(--err) !important; }
.field.is-invalid { border-color: var(--err) !important; }

/* ============================================================
   Home Page — Marketing Sections
   ============================================================ */

/* ─── Button variant: white outline for dark backgrounds ─── */
.es-btn--outline-white {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.es-btn--outline-white:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* ─── Section heads ─── */
.es-section-head { margin-bottom: 56px; }
.es-section-head.center { text-align: center; }
.es-section-head.center .es-section-head__title { margin-left: auto; margin-right: auto; }
.es-section-head.flex {
  display: flex; align-items: flex-end;
  justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.es-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 500; letter-spacing: var(--tr-wide);
  text-transform: uppercase; color: var(--teal-600); margin-bottom: 16px;
}
.es-kicker::before {
  content: ""; width: 6px; height: 6px;
  background: currentColor; border-radius: 50%; flex-shrink: 0;
}
.es-section--dark .es-kicker { color: var(--teal); }
.es-section-head h2 {
  font-family: var(--display); font-size: var(--fs-h2); font-weight: var(--fw-semi);
  line-height: 1.05; letter-spacing: var(--tr-tight); color: var(--ink);
  margin: 0 0 18px;
}
.es-section-head h2 em {
  font-style: normal; color: var(--teal); font-weight: var(--fw-semi);
}
.es-section--dark .es-section-head h2 { color: #fff; }
.es-section-head p {
  font-size: 17px; color: var(--fg-3); max-width: 56ch; line-height: 1.6; margin: 0;
}

/* Featured visual modifiers — place a visual element next to the headline
   block. Text always sits flush with the container's left edge so eyebrows
   align across sections. Two variants:
     .with-brand  — smaller mark (logo, ~160px) for identity statements
     .with-image  — larger photo/illustration (~540px) for operational proof
   Both stack vertically on mobile. */
.es-section-head.with-brand,
.es-section-head.with-image {
  display: grid;
  grid-template-columns: minmax(0, 56ch) 1fr;
  align-items: center;
}
.es-section-head.with-brand { gap: 96px; }
.es-section-head.with-image { gap: 64px; }

.es-section-head__brand {
  width: 160px; height: 160px;
  object-fit: contain;
  justify-self: start;
}
.es-section-head__image {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-3);
  justify-self: start;
}

/* ─── Stats strip ─── */
.es-home-stats { background: var(--petrol-900); }
.es-home-stats__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 var(--pad-2xl);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.es-stat {
  padding: 44px 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.es-stat:last-child { border-right: none; }
.es-stat__num {
  font-family: var(--display); font-size: var(--fs-stat); font-weight: var(--fw-bold);
  line-height: 1; color: #fff; letter-spacing: var(--tr-display);
  font-variant-numeric: tabular-nums slashed-zero;
}
/* Text variant for stats that hold strings instead of numbers (engine names,
   dates, labels like "DE / EN"). Smaller + tighter to avoid wrapping in the
   4-column stats grid. Used on /routes detail, /fleet detail, /faq, etc. */
.es-stat__num--text {
  font-size: 20px;
  letter-spacing: 0.01em;
}
.es-stat__sup {
  font-size: 22px; color: var(--teal); font-weight: var(--fw-semi);
  margin-left: 2px; vertical-align: 16px;
}
.es-stat__label {
  font-family: var(--mono);
  font-size: 11px; color: rgba(255,255,255,0.55);
  font-weight: 500; margin-top: 10px; letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}

/* ─── USP cards ─── */
.es-usps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.es-usp {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-3); padding: 40px 32px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.es-usp:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.es-usp__icon {
  width: 52px; height: 52px; border-radius: var(--r-3);
  background: var(--petrol-50); display: flex; align-items: center;
  justify-content: center; font-size: 22px; color: var(--petrol); margin-bottom: 24px;
}
.es-usp h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.es-usp p { font-size: 14px; line-height: 1.65; color: var(--fg-3); margin: 0; }

/* ─── Destination cards ─── */
.es-dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.es-dest-card {
  border-radius: var(--r-3); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none; color: inherit;
}
.es-dest-card:hover { transform: translateY(-6px); box-shadow: var(--sh-pop); }
.es-dest-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.es-dest-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.es-dest-card:hover .es-dest-img img { transform: scale(1.05); }
.es-dest-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(0,43,50,.88); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-full);
}
.es-dest-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.es-dest-city {
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  color: var(--ink); margin: 0 0 4px;
}
.es-dest-desc { font-size: 13px; color: var(--fg-3); margin: 0 0 20px; line-height: 1.5; }
.es-dest-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 18px; margin-top: auto;
}
.es-dest-price-lbl { font-size: 10px; color: var(--fg-3); margin-bottom: 3px; letter-spacing: .08em; text-transform: uppercase; }
.es-dest-price-val { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--ink); }

/* ─── Cabin showcase ─── */
.es-cabin-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3px; border-radius: var(--r-4); overflow: hidden;
}
.es-cabin-panel {
  position: relative; overflow: hidden; min-height: 520px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 48px; color: #fff;
}
.es-cabin-panel__bg { position: absolute; inset: 0; }
.es-cabin-panel__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.es-cabin-panel:hover .es-cabin-panel__bg img { transform: scale(1.04); }
.es-cabin-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 50%, transparent 100%);
}
.es-cabin-tag {
  position: relative; font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.es-cabin-panel h3 {
  position: relative; font-family: var(--serif); font-size: 34px;
  font-weight: 400; color: #fff; margin: 0 0 10px;
}
.es-cabin-panel__desc {
  position: relative; font-size: 14px; color: rgba(255,255,255,.72);
  line-height: 1.6; max-width: 32ch; margin: 0 0 24px;
}
.es-cabin-panel .es-btn { position: relative; }

/* ─── Loyalty / miles promo ─── */
.es-miles-promo {
  background: var(--petrol-50); border: 1px solid var(--petrol-100);
  border-radius: 32px; padding: 72px 64px;
  display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: center;
}
.es-miles-title {
  font-family: var(--serif); font-size: 44px; font-weight: 400;
  line-height: 1.05; letter-spacing: -0.02em; color: var(--petrol-900); margin: 0 0 16px;
}
.es-miles-sub { font-size: 16px; color: var(--fg-3); max-width: 50ch; line-height: 1.6; margin: 0 0 28px; }
.es-miles-perks {
  list-style: none; padding: 0; margin: 0 0 36px;
  display: flex; flex-direction: column; gap: 10px;
}
.es-miles-perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg-2); }
.es-miles-perks li i { color: var(--petrol); margin-top: 2px; flex-shrink: 0; font-size: 13px; }
.es-miles-card {
  background: linear-gradient(135deg, var(--petrol-900) 0%, var(--petrol-700) 100%);
  border-radius: 20px; padding: 28px 32px; width: 280px; color: #fff;
  box-shadow: var(--sh-pop); position: relative; overflow: hidden; flex-shrink: 0;
}
.es-miles-card::before {
  content: ""; position: absolute; right: -24px; top: -24px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(67,204,212,.18) 0%, transparent 65%);
}
.es-miles-card__tier { font-size: 10px; font-weight: 700; letter-spacing: .2em; color: var(--teal); margin-bottom: 18px; text-transform: uppercase; }
.es-miles-card__num { font-family: var(--mono); font-size: 32px; font-weight: 700; color: #fff; line-height: 1; }
.es-miles-card__lbl { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 4px; }
.es-miles-card__name { font-size: 14px; font-weight: 600; margin-top: 28px; color: rgba(255,255,255,.88); }
.es-miles-card__airline { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }

/* ─── Home CTA banner ─── */
.es-home-cta {
  background: var(--petrol-900); border-radius: 32px;
  padding: 80px; display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 80px; overflow: hidden; position: relative;
}
.es-home-cta::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(67,204,212,.10) 0%, transparent 60%);
  pointer-events: none;
}
.es-home-cta__title {
  font-family: var(--serif); font-size: 52px; font-weight: 400;
  line-height: 1.0; letter-spacing: -0.02em; color: #fff; margin: 0 0 20px;
}
.es-home-cta__title em { font-style: italic; color: var(--teal); }
.es-home-cta__sub {
  font-size: 16px; color: rgba(255,255,255,.6); max-width: 50ch; line-height: 1.6; margin: 0 0 40px;
}
.es-home-cta__stats {
  display: flex; gap: 40px; margin: 32px 0 40px; flex-wrap: wrap;
}
.es-home-cta__stat {
  display: flex; flex-direction: column; gap: 4px;
}
.es-home-cta__stat-num {
  font-family: var(--serif); font-size: 36px; font-weight: 400;
  color: #fff; line-height: 1; letter-spacing: -0.02em;
}
.es-home-cta__stat-num sup { font-size: 18px; color: var(--teal); vertical-align: top; font-family: var(--sans); }
.es-home-cta__stat-lbl {
  font-size: 12px; color: rgba(255,255,255,.45);
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.es-home-cta__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.es-home-cta__visual-icon { font-size: 180px; color: rgba(255,255,255,.04); line-height: 1; }

/* ─── About / footer text ─── */
.es-home-about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  padding: 64px 0 96px; border-top: 1px solid var(--line);
}
.es-home-about h3 {
  font-family: var(--serif); font-size: 28px; font-weight: 400;
  color: var(--ink); margin: 0 0 20px;
}
.es-home-about p { font-size: 14px; line-height: 1.7; color: var(--fg-3); margin: 0 0 12px; }
.es-home-about__note {
  padding: 18px 22px; background: var(--canvas);
  border-left: 3px solid var(--line); border-radius: 0 var(--r-2) var(--r-2) 0;
  font-size: 12px; color: var(--fg-3); line-height: 1.6; margin-top: 20px;
}

/* ─── Scroll reveal ─── */
.es-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--delay, 0s);
}
.es-reveal.is-visible { opacity: 1; transform: none; }

/* ─── Hero CTA actions ─── */
.es-hero__actions {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-top: 44px;
}
.es-hero__ghost-btn {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
}
.es-hero__ghost-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
}

/* ─── Stats strip: breathing room above ─── */
.es-home-stats { background: var(--petrol-900); margin-top: 48px; }

/* ─── USP: nth-child stagger (replaces inline transition-delay) ─── */
.es-usps .es-reveal:nth-child(2) { transition-delay: .08s; }
.es-usps .es-reveal:nth-child(3) { transition-delay: .16s; }
.es-usps .es-reveal:nth-child(4) { transition-delay: .24s; }
.es-usps .es-reveal:nth-child(5) { transition-delay: .32s; }
.es-usps .es-reveal:nth-child(6) { transition-delay: .40s; }

/* ─── USP: trio variant — 3 larger, more spacious cards ─── */
.es-usps--trio { grid-template-columns: repeat(3, 1fr); }
.es-usps--trio .es-usp { padding: 48px 40px; }
.es-usps--trio .es-usp__icon { width: 60px; height: 60px; font-size: 26px; margin-bottom: 28px; }
.es-usps--trio .es-usp h3 { font-size: 20px; margin-bottom: 14px; }
.es-usps--trio .es-usp p { font-size: 15px; line-height: 1.7; }

/* ─── USP: quad variant — 2x2 grid, same large card style as trio ─── */
.es-usps--quad { grid-template-columns: repeat(2, 1fr); }
.es-usps--quad .es-usp { padding: 48px 40px; }
.es-usps--quad .es-usp__icon { width: 60px; height: 60px; font-size: 26px; margin-bottom: 28px; }
.es-usps--quad .es-usp h3 { font-size: 20px; margin-bottom: 14px; }
.es-usps--quad .es-usp p { font-size: 15px; line-height: 1.7; }

/* ─── USP: journey variant — 4-column stepper for sequential narratives.
   Replaces icons with large numbered step markers, signals progression
   through the sequence rather than four separate categories. ─── */
.es-usps--journey { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.es-usps--journey .es-usp { padding: 36px 28px; }
.es-usps--journey .es-usp__step {
  font-family: var(--mono);
  font-size: 28px; font-weight: var(--fw-semi);
  color: var(--teal-600);
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 28px;
  font-variant-numeric: tabular-nums;
  display: block;
}
.es-usps--journey .es-usp h3 { font-size: 18px; margin-bottom: 12px; }
.es-usps--journey .es-usp p { font-size: 14px; line-height: 1.65; }
/* Hide legacy icons inside journey cards — kept in DOM so the modifier is
   a pure CSS swap, but visually replaced by the step number. */
.es-usps--journey .es-usp__icon { display: none; }

/* ─── USP: icon color variety per position ─── */
.es-usp--featured .es-usp__icon {
  background: var(--teal-100); color: var(--teal-600); font-size: 26px;
}
.es-usps .es-usp:nth-child(3) .es-usp__icon { background: var(--petrol-100); color: var(--petrol-700); }
.es-usps .es-usp:nth-child(4) .es-usp__icon { background: #fdf3e0; color: #b56b00; }
.es-usps .es-usp:nth-child(5) .es-usp__icon { background: #e6f4ee; color: #157a52; }
.es-usps .es-usp:nth-child(6) .es-usp__icon { background: var(--petrol-100); color: var(--petrol); }

/* ─── Live Operations strip ─────────────────────────────────────────────
   Dark band shown between Top Destinations and About. Combines two ideas:
   (1) "Powered by" — a Star-Alliance-style strip of supported sim platforms,
   (2) "Recent Operations" — a live feed of recently-filed PIREPs.
   Together they prove the airline is real and operational, not static. */
.es-liveops {
  background: var(--petrol-900);
  color: #fff;
  padding: var(--pad-3xl) 0;
}
.es-liveops__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 var(--pad-2xl);
}
.es-liveops__head { margin-bottom: 40px; }
.es-liveops__head .es-kicker { color: var(--teal); }
.es-liveops__head h2 {
  font-family: var(--display); font-size: var(--fs-h2); font-weight: var(--fw-semi);
  line-height: 1.05; letter-spacing: var(--tr-tight);
  color: #fff; margin: 0 0 12px;
}
.es-liveops__head p {
  font-size: 16px; color: rgba(255,255,255,0.7);
  max-width: 60ch; line-height: 1.6; margin: 0;
}

/* Powered by — supported sim platforms strip */
.es-poweredby {
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  margin-bottom: 40px;
  display: flex; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.es-poweredby__label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}
.es-poweredby__items {
  display: flex; align-items: center;
  gap: 36px; flex-wrap: wrap;
}
.es-poweredby__item {
  font-family: var(--display); font-size: 15px; font-weight: var(--fw-semi);
  color: rgba(255,255,255,0.85);
  letter-spacing: var(--tr-tight);
}

/* PIREP feed — recent accepted flights, network-status-board style */
.es-liveops__feed {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-3);
  overflow: hidden;
}
.es-liveops__row {
  background: var(--petrol-900);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}
.es-liveops__dot {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}
.es-liveops__route {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--mono);
}
.es-liveops__flightnum {
  font-size: 13px; font-weight: var(--fw-semi);
  color: var(--teal);
  letter-spacing: 0.02em;
}
.es-liveops__od {
  font-size: 13px; color: rgba(255,255,255,0.92);
  letter-spacing: 0.05em;
}
.es-liveops__pilot {
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  text-align: right;
}
.es-liveops__empty {
  padding: 40px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-family: var(--mono); font-size: 12px;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}

/* ─── Fleet Showcase ───────────────────────────────────────────────────
   Dark band shown between About and Pilot Career. Aircraft Types as cards,
   each with unit count + spec table (capacity, range, cruise). Reinforces
   "we have substance" alongside the Stats Strip. */
.es-fleet {
  background: var(--petrol-900);
  color: #fff;
  padding: var(--pad-3xl) 0;
}
.es-fleet__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 var(--pad-2xl);
}
.es-fleet__head { margin-bottom: 40px; }
.es-fleet__head .es-kicker { color: var(--teal); }
.es-fleet__head h2 {
  font-family: var(--display); font-size: var(--fs-h2); font-weight: var(--fw-semi);
  line-height: 1.05; letter-spacing: var(--tr-tight);
  color: #fff; margin: 0 0 12px;
}
.es-fleet__head p {
  font-size: 16px; color: rgba(255,255,255,0.7);
  max-width: 60ch; line-height: 1.6; margin: 0;
}
.es-fleet__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.es-fleet-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-3);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  transition: background .2s ease, border-color .2s ease;
}
.es-fleet-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}
.es-fleet-card__count {
  font-family: var(--display); font-size: 48px; font-weight: var(--fw-bold);
  line-height: 1; color: #fff;
  letter-spacing: var(--tr-display);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.es-fleet-card__count sup {
  font-size: 18px; font-weight: var(--fw-semi);
  color: var(--teal);
  margin-left: 3px;
  vertical-align: 14px;
}
.es-fleet-card__type {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: var(--tr-wide);
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.es-fleet-card__name {
  font-family: var(--display); font-size: 16px; font-weight: var(--fw-semi);
  color: #fff;
  letter-spacing: var(--tr-tight);
  margin-bottom: 20px;
  line-height: 1.2;
}
.es-fleet-card__specs {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.es-fleet-card__spec {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.03em;
}
.es-fleet-card__spec-label {
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.es-fleet-card__spec-value {
  color: #fff;
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
}

/* ─── News / Aktuelles ─────────────────────────────────────────────────
   Light section between Pilot Career and CTA. 3-card grid pulling from
   news_ticker, treated as proper editorial cards. */
.es-news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.es-news-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.es-news-card[href]:hover {
  transform: translateY(-4px);
  border-color: var(--petrol-200);
  box-shadow: var(--sh-3);
}
.es-news-card__meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.es-news-card__meta::before {
  content: ""; width: 6px; height: 6px;
  background: currentColor; border-radius: 50%; flex-shrink: 0;
}
.es-news-card__title {
  font-family: var(--display); font-size: 18px; font-weight: var(--fw-semi);
  line-height: 1.35; letter-spacing: var(--tr-tight);
  color: var(--ink);
  margin: 0 0 auto;
}
.es-news-card__more {
  margin-top: 24px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--petrol);
  font-weight: var(--fw-semi);
  display: inline-flex; align-items: center; gap: 6px;
}
.es-news-card__more::after {
  content: "→";
  font-family: var(--display);
  transition: transform .2s ease;
}
.es-news-card[href]:hover .es-news-card__more::after {
  transform: translateX(4px);
}

/* ─── Utility: margin-left 8px (replaces inline style) ─── */
.es-ml-8 { margin-left: 8px; }

/* ─── Miles card: example badge ─── */
.es-miles-card--example { position: relative; }
.es-miles-card__example-note {
  position: absolute; top: -10px; right: 16px;
  background: rgba(67,204,212,.18); color: var(--teal);
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: 3px 10px;
  border-radius: var(--r-full); border: 1px solid rgba(67,204,212,.3);
}

/* ─── Miles title: em styling ─── */
.es-miles-title em { font-style: italic; color: var(--petrol-700); }

/* ─── Kicker on dark background ─── */
.es-kicker--on-dark { color: var(--teal); }
.es-kicker--on-dark::before { background: var(--teal); }

/* ─── Auth pages (login, forgot-password, reset-password) ────────────
   2-column layout: dark brand panel on the left (pure typography +
   subtle watermark), form panel on the right. Reusable for any
   auth flow page. Each page sets its own headline/sub/eyebrow.       */
.es-login {
  display: grid;
  grid-template-columns: 5fr 7fr;
  /* Fills the rest of the viewport below the global header. Combined with
     the skip_footer flag on the controller, the page never exceeds 100vh
     on desktop → no scrollbar. */
  min-height: calc(100vh - var(--header-h, 80px));
}

/* Hard viewport-lock for auth pages. body.action-login (and friends) gets
   height:100vh + overflow:hidden so the page can NEVER exceed the viewport.
   The auth-shell then fills exactly the space between header and bottom.
   If the form content overflows on very small viewports, .es-login__form-side
   scrolls internally — the page itself never gets a scrollbar. */
body.action-login,
body.action-forgot_password,
body.action-reset_password {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.action-login > .es-header,
body.action-forgot_password > .es-header,
body.action-reset_password > .es-header {
  flex-shrink: 0;
}
body.action-login > main,
body.action-forgot_password > main,
body.action-reset_password > main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.action-login .es-login,
body.action-forgot_password .es-login,
body.action-reset_password .es-login {
  flex: 1 1 auto;
  min-height: 0;
}
/* If form is taller than viewport (small screens), let the form panel
   scroll internally — never the page. Brand panel stays fixed. */
body.action-login .es-login__form-side,
body.action-forgot_password .es-login__form-side,
body.action-reset_password .es-login__form-side {
  overflow-y: auto;
  min-height: 0;
}

/* Left brand panel — pure dark petrol, no photo */
.es-login__brand {
  position: relative;
  overflow: hidden;
  background: var(--petrol-900);
  color: #fff;
  isolation: isolate;
}
.es-login__watermark {
  position: absolute;
  top: -10%;
  right: -15%;
  width: 70%;
  max-width: 480px;
  height: auto;
  color: var(--teal);
  z-index: 0;
  pointer-events: none;
}
.es-login__brand-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  height: 100%;
  padding: 48px 52px;
}
.es-login__brand-copy {
  margin: auto 0;
  padding: 56px 0 40px;
  max-width: 38ch;
}
.es-login__headline {
  font-family: var(--display);
  font-weight: var(--fw-semi);
  font-size: 56px; line-height: 1.05; letter-spacing: var(--tr-display);
  color: #fff; margin: 24px 0 20px;
}
.es-login__headline em {
  font-style: italic;
  font-weight: var(--fw-regular);
  color: var(--teal);
}
.es-login__sub {
  font-size: 15px; color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin: 0;
}
/* Right form panel */
.es-login__form-side {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); padding: 32px;
}
.es-login__form-wrap {
  width: 100%; max-width: 400px;
  /* Keep some breathing room when form-side is scrolling internally */
  padding: 16px 0;
}
.es-login__mobile-logo {
  display: none;
  align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--ink);
  text-decoration: none; margin-bottom: 40px;
}
.es-login__form-head { margin-bottom: 32px; }
.es-login__form-head h2 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: var(--fw-semi);
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: var(--tr-tight);
}
.es-login__form-head p { font-size: 14px; color: var(--fg-3); margin: 0; }

/* Inline alert/notice — used for errors and success messages */
.es-login__error,
.es-login__success {
  display: flex; align-items: flex-start; gap: 10px;
  border-radius: var(--r-2); padding: 12px 16px;
  font-size: 14px; line-height: 1.5; margin-bottom: 24px;
  border: 1px solid transparent;
}
.es-login__error {
  background: var(--err-bg, #fef2f2);
  border-color: rgba(180,35,24,.2);
  color: var(--err, #991b1b);
}
.es-login__success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.es-login__error i,
.es-login__success i { flex-shrink: 0; margin-top: 2px; }

.es-login__fields { display: flex; flex-direction: column; gap: 20px; }
.es-login__field { display: flex; flex-direction: column; gap: 6px; }
.es-login__field-head {
  display: flex; align-items: center; justify-content: space-between;
}
.es-login__forgot {
  font-size: 12px; color: var(--fg-3); text-decoration: none;
}
.es-login__forgot:hover { color: var(--petrol); }

.es-input--lg {
  height: 52px; font-size: 15px; padding: 0 14px; border-radius: var(--r-3);
}
.es-login__pw-wrap { position: relative; }
.es-login__pw-wrap .es-input { padding-right: 48px; }
.es-login__pw-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer;
  color: var(--fg-3); font-size: 14px; padding: 4px;
  line-height: 1;
}
.es-login__pw-toggle:hover { color: var(--petrol); }

.es-login__submit {
  width: 100%; justify-content: center;
  margin-top: 4px; height: 52px; font-size: 15px;
  display: flex; align-items: center; gap: 10px;
}

.es-login__divider {
  display: flex; align-items: center; gap: 16px;
  margin: 28px 0;
  color: var(--fg-4); font-size: 12px;
}
.es-login__divider::before,
.es-login__divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

.es-login__alt { text-align: center; }
.es-login__alt-text { font-size: 13px; color: var(--fg-3); margin: 0 0 12px; }
.es-login__alt .es-btn {
  width: 100%; justify-content: center;
  display: flex; align-items: center; gap: 10px;
}

/* Form-side back-to-login link (used on forgot/reset pages) */
.es-login__backlink {
  text-align: center;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}
.es-login__backlink a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-3);
}
.es-login__backlink a:hover { color: var(--petrol); }

/* Legal-strip inside the form panel — auth pages don't render the global
   footer (skip_footer), so the required legal links live here instead.
   Sachlich, dezent, sits at the bottom with tight margin since the form
   panel is viewport-locked and space is precious. */
.es-login__legal {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.es-login__legal a {
  color: var(--fg-3);
  text-decoration: none;
  transition: color .15s;
}
.es-login__legal a:hover { color: var(--petrol); }
.es-login__legal__sep {
  color: var(--fg-4);
  opacity: 0.4;
}

@media (max-width: 900px) {
  .es-login { grid-template-columns: 1fr; }
  .es-login__brand { display: none; }
  .es-login__mobile-logo { display: flex; }
  .es-login__form-side { padding: 40px 20px; align-items: flex-start; }
  .es-login__form-wrap { max-width: 100%; }
}

/* ─── Catalog hero (compact, info-dense, no photo) ───────────────────
   Used on /destinations as the page entry. Reusable on any catalog-
   style page (network overview, fleet listing, topic index) where
   a full photo hero would compete with the actual content below.
   Structure: 2-col head (text + side-action) + dark stats strip flush
   to the bottom. ────────────────────────────────────────────────── */
.es-catalog-hero {
  padding: 64px 0 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.es-catalog-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 56ch) 1fr;
  gap: 56px;
  align-items: end;
  padding-bottom: 48px;
}
/* When no aside is rendered (e.g. authenticated user — info moved to the
   global avatar dropdown in the header), let the head span full width. */
.es-catalog-hero__inner:not(:has(.es-catalog-hero__side)) {
  grid-template-columns: 1fr;
}
.es-catalog-hero__head .es-kicker { margin-bottom: 16px; }
.es-catalog-hero__head h1 {
  font-family: var(--display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-semi);
  line-height: 1.05;
  letter-spacing: var(--tr-tight);
  color: var(--ink);
  margin: 0 0 20px;
}
.es-catalog-hero__head h1 .t-accent { color: var(--teal); }
.es-catalog-hero__head h1 .t-accent--mono {
  font-family: var(--mono);
  letter-spacing: 0.05em;
  font-weight: 500;
}
.es-catalog-hero__sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-3);
  max-width: 56ch;
  margin: 0;
}
.es-catalog-hero__side {
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: 480px;
}
.es-catalog-hero__stats {
  background: var(--petrol-900);
  color: #fff;
}
.es-catalog-hero__stats .es-home-stats__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad-2xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.es-catalog-hero__stats .es-stat {
  padding: 32px 28px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.es-catalog-hero__stats .es-stat:last-child { border-right: none; }
.es-catalog-hero__stats .es-stat__num {
  font-family: var(--display);
  font-size: 44px;
  font-weight: var(--fw-bold);
  line-height: 1;
  color: #fff;
  letter-spacing: var(--tr-display);
  font-variant-numeric: tabular-nums slashed-zero;
}
.es-catalog-hero__stats .es-stat__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .es-catalog-hero__inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .es-catalog-hero__side { max-width: none; justify-self: stretch; }
  .es-catalog-hero__stats .es-home-stats__inner { grid-template-columns: repeat(2, 1fr); }
  .es-catalog-hero__stats .es-stat { padding: 24px 20px; }
  .es-catalog-hero__stats .es-stat:nth-child(2) { border-right: none; }
  .es-catalog-hero__stats .es-stat:nth-child(1),
  .es-catalog-hero__stats .es-stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
}
@media (max-width: 600px) {
  .es-catalog-hero { padding-top: 40px; }
  .es-catalog-hero__head h1 { font-size: 36px; }
  .es-catalog-hero__stats .es-stat__num { font-size: 32px; }
}

/* Text-variant override for stats inside the catalog-hero stats strip.
   Wins over `.es-catalog-hero__stats .es-stat__num { font-size: 44px }`
   thanks to equal specificity (0,2,0) + later source order. Needed for
   non-numeric stats like dates ("2026-05-17"), engine names, or "DE / EN". */
.es-catalog-hero__stats .es-stat__num--text,
.es-stat__num.es-stat__num--text {
  font-size: 20px;
  letter-spacing: 0.01em;
}
@media (max-width: 600px) {
  .es-catalog-hero__stats .es-stat__num--text,
  .es-stat__num.es-stat__num--text { font-size: 16px; }
}

/* ─── Insert band (dark rhythm-breaker between long content blocks) ─
   Use to break monotony on long card-listing pages with a hub fact,
   ops detail, or seasonal callout. Pair with .es-kicker--on-dark. */
.es-insert-band {
  background: var(--petrol-900);
  color: #fff;
  padding: var(--pad-3xl) 0;
  margin: 32px 0;
}
.es-insert-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 60ch) 1fr;
  gap: 56px;
  align-items: center;
}
.es-insert-band__h {
  font-family: var(--display);
  font-size: 32px;
  font-weight: var(--fw-semi);
  line-height: 1.1;
  letter-spacing: var(--tr-tight);
  color: #fff;
  margin: 12px 0 16px;
}
.es-insert-band__p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 56ch;
  margin: 0;
}
.es-insert-band__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.es-insert-band__fact-num {
  font-family: var(--display);
  font-size: 48px;
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--teal);
  letter-spacing: var(--tr-display);
  font-variant-numeric: tabular-nums slashed-zero;
}
.es-insert-band__fact-lbl {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  margin-top: 10px;
}
@media (max-width: 960px) {
  .es-insert-band__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── Search-input bar (reusable single-line search) ──────────────── */
.es-search {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 0 18px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.es-search:focus-within {
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px var(--ring);
}
.es-search > .fa-magnifying-glass { color: var(--fg-3); font-size: 15px; flex-shrink: 0; }
.es-search__input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  padding: 16px 0; min-width: 0;
}
.es-search__input::placeholder { color: var(--fg-4); }
.es-search__clear {
  background: none; border: 0; cursor: pointer;
  color: var(--fg-3); padding: 4px; border-radius: var(--r-1);
}
.es-search__clear:hover { color: var(--ink); }

/* ─── Community trust strip ─── */
.es-community-strip {
  background: var(--canvas); border: 1px solid var(--line);
  border-radius: var(--r-3); padding: 0; margin: 0 0 var(--pad-3xl);
  overflow: hidden;
}
.es-community-strip__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.es-community-item {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 28px; font-size: 14px; font-weight: 600; color: var(--fg-2);
  border-right: 1px solid var(--line);
}
.es-community-item:last-child { border-right: none; }
.es-community-item i {
  font-size: 20px; color: var(--petrol); flex-shrink: 0; width: 24px; text-align: center;
}

/* ─── Home responsive ─── */
@media (max-width: 1024px) {
  .es-home-stats__inner { grid-template-columns: repeat(2, 1fr); }
  .es-dest-grid { grid-template-columns: repeat(2, 1fr); }
  .es-usps,
  .es-usps--journey { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .es-usps--journey .es-usp { padding: 32px 28px; }
  .es-cabin-split { grid-template-columns: 1fr; }
  .es-cabin-panel { min-height: 360px; }
  .es-miles-promo { grid-template-columns: 1fr; gap: 48px; padding: 48px; }
  .es-home-cta { grid-template-columns: 1fr; gap: 40px; padding: 48px; }
  .es-home-cta__visual-icon { display: none; }
  .es-section-head h2 { font-size: 38px; }
  .es-section-head.with-brand,
  .es-section-head.with-image { grid-template-columns: 1fr; gap: 32px; }
  .es-section-head__brand { width: 96px; height: 96px; }
  .es-section-head__image { max-width: 100%; }
  .es-stat__num { font-size: 40px; }
  .es-liveops__feed { grid-template-columns: 1fr; }
  .es-fleet__grid { grid-template-columns: repeat(2, 1fr); }
  .es-news-grid { grid-template-columns: repeat(2, 1fr); }
  .es-liveops__head h2,
  .es-fleet__head h2 { font-size: 32px; }
  .es-fleet-card__count { font-size: 40px; }
  .es-community-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .es-community-item:nth-child(2) { border-right: none; }
  .es-community-item:nth-child(3) { border-right: 1px solid var(--line); }
  .es-community-item:nth-child(3),
  .es-community-item:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .es-dest-grid { grid-template-columns: 1fr; }
  .es-usps { grid-template-columns: 1fr; }
  .es-home-cta { padding: 32px; }
  .es-home-cta__title { font-size: 36px; }
  .es-section-head h2 { font-size: 32px; }
  .es-miles-promo { padding: 32px 24px; }
  .es-miles-card { width: 100%; box-sizing: border-box; }
  .es-stat { padding: 28px 20px; }
  .es-stat__num { font-size: 32px; }
  .es-community-strip__inner { grid-template-columns: 1fr; }
  .es-community-item { border-right: none; border-bottom: 1px solid var(--line); }
  .es-community-item:last-child { border-bottom: none; }
  .es-hero__actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .es-fleet__grid { grid-template-columns: 1fr; }
  .es-news-grid { grid-template-columns: 1fr; }
  .es-liveops__row { grid-template-columns: auto 1fr; gap: 12px; }
  .es-liveops__pilot { grid-column: 2; text-align: left; }
  .es-poweredby { gap: 16px; }
  .es-poweredby__items { gap: 20px; }
}

/* =========================================================================
   HOME REFRESH — added components (stats note, route badges,
   USP metric, audience divider, miles-card bottom, quotes, network strip,
   newsletter)
   ========================================================================= */

/* Fare tier grid ----------------------------------------------------------- */
.es-fare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}
.es-fare-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 28px 24px 24px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.es-fare-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.es-fare-card--highlight {
  border-color: var(--petrol);
  box-shadow: 0 0 0 1px var(--petrol);
}
.es-fare-card--business {
  border-color: var(--teal);
  background: linear-gradient(160deg, var(--petrol-900, #0d2c32) 0%, var(--petrol, #1a5c68) 100%);
  color: #fff;
}
.es-fare-card__badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--petrol); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.es-fare-card__name {
  font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.2;
}
.es-fare-card--business .es-fare-card__name { color: #fff; }
.es-fare-card__cabin {
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-3); margin-top: -12px;
}
.es-fare-card--business .es-fare-card__cabin { color: rgba(255,255,255,.55); }
.es-fare-card__items {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.es-fare-card__items li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; line-height: 1.4;
}
.es-fare-card__items li i { margin-top: 2px; flex-shrink: 0; font-size: 12px; }
.es-fare-card__items li.yes { color: var(--ink); }
.es-fare-card__items li.no  { color: var(--fg-3); }
.es-fare-card__items li.yes i { color: var(--teal); }
.es-fare-card__items li.no  i { color: var(--line-strong, #ccc); }
.es-fare-card--business .es-fare-card__items li.yes { color: rgba(255,255,255,.9); }
.es-fare-card--business .es-fare-card__items li.no  { color: rgba(255,255,255,.35); }
.es-fare-card--business .es-fare-card__items li.yes i { color: var(--teal-300, #7de0e5); }
.es-fare-card--business .es-fare-card__items li.no  i { color: rgba(255,255,255,.2); }
@media (max-width: 900px) {
  .es-fare-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .es-fare-grid { grid-template-columns: 1fr; }
}

/* Stats source note -------------------------------------------------------- */
.es-home-stats__note {
  text-align: center;
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.45);
  padding: 0 20px 24px;
  margin-top: -8px;
}

/* Section-head sub copy ---------------------------------------------------- */
.es-section-head__sub {
  margin-top: 8px;
  max-width: 60ch;
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.6;
}

/* Destination card — extra hooks ------------------------------------------ */
.es-mr-6 { margin-right: 6px; }
.es-dest-meta-tag {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  border-radius: 999px; backdrop-filter: blur(6px);
}
.es-dest-img { position: relative; }
.es-dest-price-foot {
  font-size: 10.5px; color: var(--fg-3); margin-top: 2px;
  letter-spacing: .04em;
}
.es-dest-badge i { margin-right: 6px; }

/* USP — metric numbers ----------------------------------------------------- */
.es-section--usps {
  background: linear-gradient(180deg, transparent 0%, var(--canvas) 100%);
}
.es-usp { position: relative; overflow: hidden; }
.es-usp__metric {
  position: absolute; right: 24px; top: 18px;
  font-family: var(--serif, Georgia, serif);
  font-size: 56px; line-height: 1; font-weight: 700;
  color: var(--petrol-100, #e6eef0);
  opacity: .55;
  pointer-events: none;
  user-select: none;
}
.es-usp__metric sup {
  font-size: 22px; vertical-align: top; margin-left: 2px;
  color: var(--teal, #2bbfc6);
  opacity: .9;
}
.es-usp--featured .es-usp__metric {
  color: var(--petrol-700, #194a52);
  opacity: .12;
  font-size: 72px;
}

/* Audience divider --------------------------------------------------------- */
.es-audience-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0 8px;
  padding: 0 4px;
}
.es-audience-divider__line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
}
.es-audience-divider__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--fg-3);
  padding: 6px 14px;
  background: var(--canvas); border: 1px solid var(--line);
  border-radius: 999px;
}
.es-audience-divider__label i { color: var(--teal, #2bbfc6); }

/* Miles card — bottom row -------------------------------------------------- */
.es-miles-card__bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-top: 28px;
}
.es-miles-card__bottom .es-miles-card__name { margin-top: 0; }
.es-miles-card__since {
  text-align: right;
  display: flex; flex-direction: column; gap: 2px;
}
.es-miles-card__since-lbl {
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.es-miles-card__since-val {
  font-family: var(--mono, monospace);
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.85);
}

/* Pilot quotes ------------------------------------------------------------- */
.es-quotes {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 8px;
}
.es-quote {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
}
.es-quote:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3, 0 8px 24px rgba(0,0,0,.08));
}
.es-quote::before {
  content: "\201C";
  position: absolute; top: 8px; left: 18px;
  font-family: var(--serif, Georgia, serif);
  font-size: 72px; line-height: 1;
  color: var(--teal, #2bbfc6);
  opacity: .22;
  pointer-events: none;
}
.es-quote blockquote {
  margin: 0;
  font-size: 15px; line-height: 1.7;
  color: var(--ink);
  font-style: italic;
}
.es-quote figcaption {
  display: flex; flex-direction: column; gap: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.es-quote__name {
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.es-quote__role {
  font-size: 11.5px; letter-spacing: .04em;
  color: var(--fg-3);
  font-family: var(--mono, monospace);
}

/* Network compatibility strip --------------------------------------------- */
.es-network-strip {
  margin-top: 40px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  justify-content: center;
  padding: 20px 24px;
  background: var(--canvas);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.es-network-strip__lbl {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--fg-3);
}
.es-network-strip__items {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.es-network-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ink);
  letter-spacing: .02em;
}
.es-network-pill i { color: var(--petrol, #2b6c75); font-size: 11px; }

/* Newsletter --------------------------------------------------------------- */
.es-newsletter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, var(--petrol, #2b6c75) 0%, var(--petrol-900, #0e2e34) 100%);
  border-radius: 24px;
  padding: 56px 64px;
  color: #fff;
}
.es-newsletter .es-kicker {
  color: var(--teal, #6ddde3);
}
.es-newsletter__title {
  font-size: 40px; line-height: 1.1; margin: 12px 0 16px;
  color: #fff;
}
.es-newsletter__sub {
  margin: 0;
  font-size: 15px; line-height: 1.65;
  color: rgba(255,255,255,.78);
  max-width: 42ch;
}
.es-newsletter__form {
  display: grid; grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 12px;
}
.es-newsletter__field {
  display: flex; flex-direction: column; gap: 6px;
}
.es-newsletter__label-text {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.65); font-weight: 700;
}
.es-newsletter__form input[type="email"] {
  height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 15px;
}
.es-newsletter__form input[type="email"]::placeholder { color: rgba(255,255,255,.45); }
.es-newsletter__form input[type="email"]:focus {
  outline: none;
  border-color: var(--teal, #6ddde3);
  background: rgba(255,255,255,.14);
}
.es-newsletter__form button[type="submit"] {
  align-self: end;
  height: 52px;
}
.es-newsletter__consent {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; color: rgba(255,255,255,.7);
  line-height: 1.5;
}
.es-newsletter__consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--teal, #6ddde3);
}
.es-newsletter__consent a {
  color: var(--teal, #6ddde3);
  text-decoration: underline;
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 960px) {
  .es-quotes { grid-template-columns: 1fr; }
  .es-newsletter { grid-template-columns: 1fr; padding: 40px 32px; gap: 32px; }
  .es-newsletter__title { font-size: 32px; }
  .es-usp__metric { font-size: 44px; right: 18px; top: 14px; }
  .es-usp--featured .es-usp__metric { font-size: 56px; }
}
@media (max-width: 640px) {
  .es-network-strip { padding: 16px; }
  .es-newsletter__form { grid-template-columns: 1fr; }
  .es-newsletter__form button[type="submit"] { width: 100%; }
  .es-miles-card__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .es-miles-card__since { text-align: left; }
  .es-audience-divider__label { font-size: 10px; padding: 5px 10px; }
}

/* ═════════════════════════════════════════════════════════════════════
   /manage — Booking management components (es-bk-*)
   ──────────────────────────────────────────────────────────────────────
   Rendered by app_manage.js (v17+). All visual styling lives here so
   the JS doesn't carry inline styles.
   ═════════════════════════════════════════════════════════════════════ */

/* ── Loading + empty states ──────────────────────────────────────── */
.es-bk-loading {
  padding: 32px 24px;
  text-align: center;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  color: var(--fg-3);
  font-size: 14px;
}
.es-bk-loading i { color: var(--teal-600); margin-right: 8px; }
.es-bk-empty {
  padding: 48px 24px;
  text-align: center;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  color: var(--fg-3);
  font-size: 14px;
}
.es-bk-empty--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.es-bk-form-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--r-2);
  color: #991b1b;
  font-size: 13px;
  grid-column: 1 / -1;
}

/* ── Hub list section ────────────────────────────────────────────── */
.es-bk-list-section { margin-bottom: 36px; }
.es-bk-list-section .es-kicker { margin-bottom: 14px; }
.es-bk-list {
  display: grid;
  /* Maximal 2 Spalten — gibt jeder Card genug Breite für Route +
     Footer-Pillen (Tarif + Check-in-State + Details) ohne Wrap.
     Auf engen Screens (≤640px) wechselt das Grid auf 1 Spalte. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 640px) {
  .es-bk-list { grid-template-columns: 1fr; }
}

/* ── Booking summary card (hub list) ─────────────────────────────── */
.es-bk-summary {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.es-bk-summary:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-pop);
  border-color: var(--petrol-100);
}
.es-bk-summary:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 2px;
}
.es-bk-summary--error { border-color: #fecaca; }
.es-bk-summary__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.es-bk-summary__head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.es-bk-summary__cal { color: var(--fg-3); font-size: 12px; }
.es-bk-summary__date { font-size: 13px; font-weight: var(--fw-semi); color: var(--ink); }
.es-bk-summary__type {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: var(--r-full);
}
.es-bk-summary__status {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: var(--fw-semi);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}
/* Status nur zeigen wenn er NICHT der Default ist. CONFIRMED/TICKETED
   ist der Erwartungswert für jede sichtbare Buchung und doppelt sich
   visuell mit dem grünen Border-Akzent / der "Eingecheckt"-Pille. */
.es-bk-summary__status[data-status-key="CONFIRMED"],
.es-bk-summary__status[data-status-key="TICKETED"]  { display: none; }
.es-bk-summary__status[data-status-key="CANCELLED"] { color: #ef4444; }
.es-bk-summary__status[data-status-key="NO-SHOW"]   { color: #f97316; }
.es-bk-summary__status[data-status-key="PENDING"]   { color: #f59e0b; }
.es-bk-summary__status[data-status-key="VOID"]      { color: var(--fg-3); }

.es-bk-summary__body { padding: 24px 20px; }
.es-bk-summary__route {
  display: flex;
  align-items: center;
  gap: 16px;
}
.es-bk-summary__loc { flex-shrink: 0; }
.es-bk-summary__loc--right { text-align: right; }
.es-bk-summary__code {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  font-weight: var(--fw-bold);
  color: var(--ink);
  letter-spacing: var(--tr-tight);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.es-bk-summary__time {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-3);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.es-bk-summary__line {
  flex: 1;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}
.es-bk-summary__line::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px dashed var(--line);
  z-index: 0;
}
.es-bk-summary__duration,
.es-bk-summary__stops {
  position: relative;
  z-index: 1;
  background: var(--paper);
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  font-weight: 500;
}
.es-bk-summary__stops { color: var(--fg-4); font-size: 10px; }

.es-bk-summary__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--canvas);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.es-bk-summary__pnr {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
}
.es-bk-summary__pnr strong {
  color: var(--ink);
  font-weight: var(--fw-semi);
  letter-spacing: 0.04em;
  margin-left: 4px;
}
/* Tarif-Pille direkt neben der PNR. Sehr dezent damit sie sich
   neben dem Status-Badge oben nicht doppelt anfühlt. */
.es-bk-summary__fare {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 3px 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
}
.es-bk-summary__fare:empty { display: none; }

/* Check-in-Slot ist standardmäßig leer; hydrateBookingCards füllt ihn
   mit einem <a class="es-bk-summary__checkin-btn"> wenn check-in offen. */
.es-bk-summary__checkin-slot { display: inline-flex; }
.es-bk-summary__checkin-slot:empty { display: none; }
.es-bk-summary__checkin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--petrol);
  color: white;
  border-radius: var(--r-full);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tr-wide);
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.es-bk-summary__checkin-btn:hover {
  background: var(--petrol-900);
  transform: translateY(-1px);
}
.es-bk-summary__checkin-btn i { font-size: 10px; }

/* Pill-Varianten für den Slot ohne Action — "Eingecheckt" und
   "Check-in öffnet in Xh". Visuell zurückhaltender als der primäre
   Check-in-Button, damit sie nicht mit "Details →" konkurrieren. */
.es-bk-summary__checkin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-full);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tr-wide);
  text-decoration: none;
}
.es-bk-summary__checkin-pill i { font-size: 10px; }
.es-bk-summary__checkin-pill--done {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
  transition: background .15s ease;
}
.es-bk-summary__checkin-pill--done:hover { background: rgba(16, 185, 129, 0.18); }
.es-bk-summary__checkin-pill--soon {
  background: var(--paper);
  color: var(--fg-3);
  border: 1px dashed var(--line);
}

/* "Nächster Flug" Highlight — die chronologisch früheste upcoming
   Card bekommt einen teal-Akzent links und einen subtilen Glow.
   Setzt sich farblich gegen die anderen Cards ab ohne Marketing-y
   zu wirken. */
.es-bk-summary.is-next {
  border-left: 3px solid var(--teal);
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.08), 0 6px 18px -10px rgba(20, 184, 166, 0.25);
}
.es-bk-summary__next-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--teal-600);
  padding: 3px 9px;
  background: rgba(20, 184, 166, 0.10);
  border-radius: var(--r-full);
  margin-right: 6px;
}
.es-bk-summary__next-label i { font-size: 9px; }
.es-bk-summary.is-next .es-bk-summary__head {
  flex-wrap: wrap;
  gap: 10px;
}

.es-bk-summary__details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto; /* push to right edge of footer */
  font-family: var(--mono);
  font-size: 11px;
  font-weight: var(--fw-semi);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--petrol);
}
.es-bk-summary:hover .es-bk-summary__details i { transform: translateX(3px); }
.es-bk-summary__details i { transition: transform .15s ease; font-size: 10px; }

/* ── Booking detail head ─────────────────────────────────────────── */
.es-bk-detailhead {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 28px 32px;
}
.es-bk-detailhead__pnrrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}
.es-bk-detailhead__pnrbox { display: flex; flex-direction: column; gap: 4px; }
.es-bk-detailhead__pnrlabel {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}
.es-bk-detailhead__pnrcode {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: var(--fw-bold);
  color: var(--petrol-900);
  letter-spacing: 0.06em;
  line-height: 1;
}
.es-bk-detailhead__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: var(--fw-semi);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: var(--r-full);
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.es-bk-detailhead__status[data-status-key="CANCELLED"] { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.es-bk-detailhead__status[data-status-key="NO-SHOW"]   { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.es-bk-detailhead__status[data-status-key="PENDING"]   { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.es-bk-detailhead__status[data-status-key="VOID"]      { background: var(--canvas); color: var(--fg-3); border-color: var(--line); }
.es-bk-detailhead__statusdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: es-bk-dot-pulse 2s ease-in-out infinite;
}
.es-bk-detailhead__status[data-status-key="VOID"] .es-bk-detailhead__statusdot,
.es-bk-detailhead__status[data-status-key="CANCELLED"] .es-bk-detailhead__statusdot { animation: none; }
@keyframes es-bk-dot-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.es-bk-detailhead__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.es-bk-detailhead__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: var(--canvas);
  border: 1px solid var(--line);
  color: var(--fg-3);
}
.es-bk-detailhead__tag i { font-size: 9px; }
.es-bk-detailhead__tag--ok { color: var(--teal-600); background: var(--teal-100); border-color: var(--teal); }
.es-bk-detailhead__tag--no { color: var(--fg-3); }

.es-bk-detailhead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.es-bk-detailhead__metaitem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-3);
}
.es-bk-detailhead__metaitem i { color: var(--teal-600); }

/* ── Flight segment card ─────────────────────────────────────────── */
.es-bk-flight {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  margin-bottom: 14px;
}
.es-bk-flight:last-child { margin-bottom: 0; }
.es-bk-flight--cancelled { border-color: #fecaca; opacity: 0.85; }
.es-bk-flight--cancelled .es-bk-flight__body { opacity: 0.55; }

.es-bk-flight__disruption {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.es-bk-flight__disruption i { font-size: 18px; flex-shrink: 0; }
.es-bk-flight__disruption--danger {
  background: #fef2f2;
  color: #991b1b;
  border-bottom: 1px solid #fecaca;
}
.es-bk-flight__disruption--warning {
  background: #fffbeb;
  color: #92400e;
  border-bottom: 1px solid #fde68a;
}
.es-bk-flight__disruption-title { font-weight: var(--fw-semi); font-size: 14px; }
.es-bk-flight__disruption-detail { font-size: 12px; opacity: 0.9; margin-top: 2px; }

.es-bk-flight__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.es-bk-flight__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}
.es-bk-flight__date i { color: var(--teal-600); }
.es-bk-flight__number {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: var(--fw-semi);
  color: var(--petrol-900);
  letter-spacing: 0.04em;
}

.es-bk-flight__body { padding: 24px; }
.es-bk-flight__main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
}
.es-bk-flight__loc--right { text-align: right; }
.es-bk-flight__code {
  font-family: var(--display);
  font-size: 28px;
  font-weight: var(--fw-bold);
  color: var(--ink);
  letter-spacing: var(--tr-tight);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.es-bk-flight__time {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: var(--fw-semi);
  color: var(--ink);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.es-bk-flight__path { text-align: center; min-width: 160px; }
.es-bk-flight__duration {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  font-weight: 500;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.es-bk-flight__pathline {
  height: 2px;
  background: var(--line);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.es-bk-flight__pathline i {
  background: var(--paper);
  padding: 0 8px;
  color: var(--teal-600);
  font-size: 13px;
}
.es-bk-flight__direct {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 4px;
}

.es-bk-flight__details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--fg-3);
}
.es-bk-flight__detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.es-bk-flight__detail i { color: var(--teal-600); font-size: 12px; }
.es-bk-flight__detail strong {
  color: var(--ink);
  font-weight: var(--fw-semi);
  margin-left: 2px;
}
.es-bk-flight__detail--right { margin-left: auto; }

/* ── Passenger list ──────────────────────────────────────────────── */
.es-bk-paxlist { display: grid; gap: 12px; }
.es-bk-paxrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 18px 20px;
  gap: 24px;
  flex-wrap: wrap;
}
.es-bk-paxrow__main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
  flex: 1;
}
.es-bk-paxrow__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--canvas);
  color: var(--fg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.es-bk-paxrow__name {
  font-family: var(--display);
  font-size: 15px;
  font-weight: var(--fw-semi);
  color: var(--ink);
  letter-spacing: var(--tr-tight);
}
.es-bk-paxrow__type {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 2px;
}
.es-bk-paxrow__segs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.es-bk-paxrow__seg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  white-space: nowrap;
}
.es-bk-paxrow__route {
  font-family: var(--mono);
  color: var(--fg-3);
  font-size: 11px;
}
.es-bk-paxrow__seat {
  font-weight: var(--fw-semi);
  color: var(--ink);
  font-size: 12px;
}
.es-bk-paxrow__chkin {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-full);
  background: var(--canvas);
  color: var(--fg-3);
  border: 1px solid var(--line);
}
.es-bk-paxrow__chkin[data-status-key="BOARDED"],
.es-bk-paxrow__chkin[data-status-key="CHECKED_IN"] {
  background: #ecfdf5; color: #065f46; border-color: #a7f3d0;
}
.es-bk-paxrow__chkin[data-status-key="OPEN"],
.es-bk-paxrow__chkin[data-status-key="BOARDING_OPEN"] {
  background: var(--teal-100); color: var(--petrol); border-color: var(--teal);
}
.es-bk-paxrow__chkin[data-status-key="CLOSED"],
.es-bk-paxrow__chkin[data-status-key="NO_SHOW"] {
  background: #fef2f2; color: #991b1b; border-color: #fecaca;
}
.es-bk-paxrow__chkin[data-status-key="CHECKIN_REVERSED"] {
  background: #fff7ed; color: #9a3412; border-color: #fed7aa;
}

/* Pencil button for inline seat change inside the pax-card.
   Sits between the seat label and the check-in status pill. */
.es-bk-paxrow__seat-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--paper);
  color: var(--fg-3);
  cursor: pointer;
  font-size: 10px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.es-bk-paxrow__seat-edit:hover {
  border-color: var(--petrol);
  color: var(--petrol);
  background: var(--canvas);
}
.es-bk-paxrow__seat-edit:active { transform: translateY(1px); }

/* Inline Quick-Check-in button — same pill shape as the status badge but
   clearly actionable. Inherits typographic scale from .es-bk-paxrow__chkin. */
.es-bk-paxrow__chkin-btn {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--teal-100, #ccfbf1);
  color: var(--petrol, #0f766e);
  border: 1px solid var(--teal, #5eead4);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.es-bk-paxrow__chkin-btn:hover:not(:disabled) {
  background: var(--teal, #5eead4);
  border-color: var(--petrol, #0f766e);
}
.es-bk-paxrow__chkin-btn:active:not(:disabled) { transform: translateY(1px); }
.es-bk-paxrow__chkin-btn:disabled,
.es-bk-paxrow__chkin-btn.is-loading {
  opacity: 0.65;
  cursor: progress;
}

/* Done-state link: visually identical to the CHECKED_IN pill but clickable
   to download the boarding pass. */
.es-bk-paxrow__chkin--done {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.es-bk-paxrow__chkin--done:hover {
  filter: brightness(0.96);
}

/* Inline error message below the row when quick-checkin fails. */
.es-bk-paxrow__chkin-err {
  display: block;
  width: 100%;
  font-size: 11px;
  color: #991b1b;
  margin-top: 4px;
  font-family: var(--sans, inherit);
}

/* ── Ancillaries grid ────────────────────────────────────────────── */
.es-bk-ancillaries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.es-bk-ancil {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
}
.es-bk-ancil__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-2);
  background: var(--teal-100);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.es-bk-ancil__body { flex: 1; min-width: 0; }
.es-bk-ancil__name {
  font-size: 14px;
  font-weight: var(--fw-semi);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.es-bk-ancil__meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 2px;
}

/* ── Options grid (check-in / change / refund / extras) ─────────── */
/* ── Booking-Detail Action Cards (.es-bk-opt) ────────────────────────
   Compact navigation cards — each action (Check-in, Umbuchen, Stornieren,
   Zusatzoptionen) is a single clickable card that leads to its dedicated
   subpage. Detailed status / chips / segment lists live on those subpages.
   The card shows just: icon + title + 1-line summary + arrow. */
.es-bk-opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.es-bk-opt {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.es-bk-opt:hover {
  border-color: var(--petrol-100);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -10px rgba(11, 71, 89, 0.25);
}
.es-bk-opt:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Head row: icon + title + arrow */
.es-bk-opt__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.es-bk-opt__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-2);
  background: var(--teal-100);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.es-bk-opt__head h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: var(--fw-semi);
  color: var(--ink);
  letter-spacing: var(--tr-tight);
  flex: 1;
}
.es-bk-opt__arrow {
  color: var(--petrol);
  font-size: 12px;
  opacity: 0.55;
  transition: transform .15s ease, opacity .15s ease;
  flex-shrink: 0;
}
.es-bk-opt:hover .es-bk-opt__arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* 1-line summary text */
.es-bk-opt__summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fg-3);
  padding-left: 48px;  /* aligns with the title (after the icon) */
}

/* ── Variants ──────────────────────────────────────────────────────── */
/* Primary: Check-in when at least one segment is ready to check in */
.es-bk-opt--primary {
  border-color: var(--teal);
  background: linear-gradient(180deg, rgba(67, 204, 212, 0.06) 0%, var(--paper) 80%);
}
.es-bk-opt--primary .es-bk-opt__icon {
  background: var(--teal);
  color: var(--petrol-900);
}
.es-bk-opt--primary .es-bk-opt__arrow { opacity: 1; color: var(--teal-600); }

/* Danger: enabled Storno (action is destructive but available) */
.es-bk-opt--danger { border-color: #fecaca; }
.es-bk-opt--danger:hover { border-color: #ef4444; }
.es-bk-opt--danger .es-bk-opt__icon { background: #fef2f2; color: #991b1b; }
.es-bk-opt--danger .es-bk-opt__arrow { color: #991b1b; }

/* Disabled: lock-icon variant. Visually muted but STAYS clickable
   when it has an href — the linked subpage explains why the action
   isn't possible. The lock-icon (in place of the arrow) signals
   "gated — click to learn more". */
.es-bk-opt--disabled {
  background: var(--canvas);
}
.es-bk-opt--disabled:hover {
  /* Toned-down hover — opens info, not the action */
  transform: none;
  box-shadow: none;
  border-color: var(--line);
  background: var(--paper);
}
.es-bk-opt--disabled .es-bk-opt__icon {
  background: var(--paper);
  color: var(--fg-3);
  border: 1px solid var(--line);
}
.es-bk-opt--disabled .es-bk-opt__head h4 { color: var(--fg-3); }
.es-bk-opt--disabled .es-bk-opt__arrow   { color: var(--fg-3); opacity: 0.55; }
.es-bk-opt--disabled:hover .es-bk-opt__arrow { opacity: 0.85; }


/* ── Rebook wizard ───────────────────────────────────────────────── */
.es-bk-rebook {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 32px;
  max-width: 820px;
  margin: 0 auto;
}
.es-bk-rebook__back { margin-bottom: 16px; }
.es-bk-rebook__title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: var(--fw-semi);
  color: var(--ink);
  letter-spacing: var(--tr-tight);
  margin: 0 0 18px;
}
.es-bk-rebook__current {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 16px 20px;
  margin-bottom: 18px;
}
.es-bk-rebook__current-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 6px;
}
.es-bk-rebook__current-flight {
  font-family: var(--display);
  font-size: 16px;
  font-weight: var(--fw-semi);
  color: var(--ink);
  letter-spacing: var(--tr-tight);
}
.es-bk-rebook__current-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 4px;
}
.es-bk-rebook__daterow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.es-bk-rebook__datelabel {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}
.es-bk-rebook__dateinput {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  min-width: 160px;
}
.es-bk-rebook__dateinput:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px var(--ring);
}
.es-bk-rebook__loading,
.es-bk-rebook__empty {
  text-align: center;
  padding: 36px 24px;
  background: var(--canvas);
  border: 1px dashed var(--line);
  border-radius: var(--r-3);
  color: var(--fg-3);
  font-size: 14px;
}
.es-bk-rebook__loading i, .es-bk-rebook__empty i { color: var(--teal-600); }
.es-bk-rebook__error {
  padding: 14px 18px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--r-2);
  color: #991b1b;
  font-size: 13px;
}
.es-bk-rebook__sameday {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-100);
  color: var(--petrol);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: var(--fw-semi);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--teal);
  margin-bottom: 14px;
}
.es-bk-rebook__feenote {
  padding: 12px 16px;
  background: var(--petrol-50);
  border: 1px solid var(--petrol-100);
  border-left: 3px solid var(--petrol);
  border-radius: var(--r-2);
  font-size: 13px;
  color: var(--petrol-900);
  margin-bottom: 14px;
}
.es-bk-rebook__feenote i { margin-right: 6px; color: var(--petrol); }
.es-bk-rebook__count {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
}

.es-bk-rebook__list { display: flex; flex-direction: column; gap: 10px; }
.es-bk-rebook__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  transition: border-color .15s ease;
}
.es-bk-rebook__row:hover { border-color: var(--petrol-100); }
.es-bk-rebook__rowinfo { min-width: 0; }
.es-bk-rebook__rowtop {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.es-bk-rebook__rowflight {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: var(--fw-semi);
  color: var(--petrol-900);
}
.es-bk-rebook__rowroute {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  padding: 3px 9px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  color: var(--fg-3);
}
.es-bk-rebook__rowsched {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.es-bk-rebook__rowside--right { text-align: right; }
.es-bk-rebook__rowtime {
  font-family: var(--display);
  font-size: 22px;
  font-weight: var(--fw-semi);
  color: var(--ink);
  letter-spacing: var(--tr-tight);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.es-bk-rebook__rowicao {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 4px;
}
.es-bk-rebook__rowmid { text-align: center; }
.es-bk-rebook__rowdur { font-family: var(--mono); font-size: 10px; color: var(--fg-3); margin-bottom: 3px; }
.es-bk-rebook__rowline { height: 1px; background: var(--line); position: relative; }
.es-bk-rebook__rowline i {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  padding: 0 4px;
  color: var(--teal-600);
  font-size: 11px;
}
.es-bk-rebook__rowdirect {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--fg-4);
  margin-top: 3px;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}
.es-bk-rebook__rowmeta { margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.es-bk-rebook__rowmeta.is-low { color: #ef4444; font-weight: var(--fw-semi); }
.es-bk-rebook__price { text-align: right; min-width: 100px; }
.es-bk-rebook__priceval {
  font-family: var(--display);
  font-size: 16px;
  font-weight: var(--fw-semi);
  color: var(--ink);
  letter-spacing: var(--tr-tight);
  font-variant-numeric: tabular-nums;
}
.es-bk-rebook__priceval--free { color: #10b981; }
.es-bk-rebook__pricesub { font-family: var(--mono); font-size: 10px; color: var(--fg-4); margin-top: 2px; }

.es-bk-rebook__compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 22px;
  margin-bottom: 16px;
}
.es-bk-rebook__compare-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 6px;
}
.es-bk-rebook__compare-col--new .es-bk-rebook__compare-label { color: var(--teal-600); font-weight: var(--fw-semi); }
.es-bk-rebook__compare-flight {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: var(--fw-semi);
  color: var(--petrol-900);
  margin-bottom: 6px;
}
.es-bk-rebook__compare-time {
  font-family: var(--display);
  font-size: 26px;
  font-weight: var(--fw-bold);
  color: var(--ink);
  letter-spacing: var(--tr-tight);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.es-bk-rebook__compare-time--old { color: var(--fg-3); }
.es-bk-rebook__compare-date { font-family: var(--mono); font-size: 11px; color: var(--fg-3); margin-top: 6px; }
.es-bk-rebook__compare-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.es-bk-rebook__fees {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  margin-bottom: 16px;
}
.es-bk-rebook__fees-head {
  padding: 12px 18px;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: var(--fw-semi);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--fg-3);
}
.es-bk-rebook__fees-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  font-size: 14px;
  color: var(--fg-2);
  border-bottom: 1px solid var(--line);
}
.es-bk-rebook__fees-row:last-child { border-bottom: 0; }
.es-bk-rebook__fees-row--total {
  background: var(--canvas);
  font-weight: var(--fw-semi);
  font-size: 15px;
  color: var(--ink);
}
.es-bk-rebook__fees-val { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: var(--fw-semi); }
.es-bk-rebook__confirm { width: 100%; justify-content: center; margin-bottom: 10px; }
.es-bk-rebook__pickanother { width: 100%; justify-content: center; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .es-bk-flight__main { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .es-bk-flight__loc--right { text-align: center; }
  .es-bk-paxrow__segs { align-items: flex-start; }
  .es-bk-rebook__compare { grid-template-columns: 1fr; gap: 12px; }
  .es-bk-rebook__compare-arrow { transform: rotate(90deg); margin: 0 auto; }
  .es-bk-rebook__row { grid-template-columns: 1fr; gap: 12px; }
  .es-bk-rebook__price { text-align: left; }
  .es-bk-opt__segrow { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 600px) {
  .es-bk-detailhead { padding: 22px 20px; }
  .es-bk-detailhead__pnrcode { font-size: 22px; }
  .es-bk-flight__body { padding: 18px; }
  .es-bk-flight__code { font-size: 24px; }
  .es-bk-flight__time { font-size: 18px; }
  .es-bk-rebook { padding: 22px 16px; }
  .es-bk-rebook__title { font-size: 20px; }
}


/* ═══════════════════════════════════════════════════════════════
   /manage hub + /dashboard — shared styles
   Extracted from inline <style> block in views/pax/myaccount/manage.php
   so both /manage and /dashboard pick up the same DNA.
   ═══════════════════════════════════════════════════════════════ */
/* ── /manage — Network-Carrier DNA ───────────────────────────────── */

/* Hero side (user info / login CTA) */
.es-manage-aside {
    align-self: end;
    justify-self: end;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-left: 1px solid var(--line);
    padding-left: 32px;
}
.es-manage-aside__user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
}
.es-manage-aside__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--petrol-900);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--display);
    font-size: 18px;
    font-weight: var(--fw-bold);
    flex-shrink: 0;
}
.es-manage-aside__user-info { min-width: 0; flex: 1; }
.es-manage-aside__name {
    font-family: var(--display);
    font-size: 14px;
    font-weight: var(--fw-semi);
    color: var(--ink);
    letter-spacing: var(--tr-tight);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.es-manage-aside__email {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--fg-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.es-manage-aside__logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--fg-3);
}
.es-manage-aside__logout:hover { color: var(--petrol); }
.es-manage-aside__logout i { font-size: 10px; }
.es-manage-aside__hint {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--fg-3);
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
}

/* Section-head subtitle helper */
.es-section-head__sub {
    font-size: 16px; line-height: 1.65; color: var(--fg-3);
    max-width: 60ch; margin: 12px 0 0;
}

/* Empty state */
.es-manage-empty {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    padding: 60px 32px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.es-manage-empty__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--r-3);
    background: var(--teal-100);
    color: var(--teal-600);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.es-manage-empty h2 {
    font-family: var(--display);
    font-size: 22px;
    font-weight: var(--fw-semi);
    color: var(--ink);
    letter-spacing: var(--tr-tight);
    margin: 0 0 12px;
}
.es-manage-empty p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--fg-3);
    margin: 0 0 24px;
}

/* ── Hub: Bookings list container (JS populates) ──────────────── */
.es-manage-bookings {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
    min-height: 120px;
}
/* Style the JS-rendered booking-cards so they fit DNA */
.es-manage-bookings .stack { margin-bottom: 32px; }
.es-manage-bookings .section-title {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--fg-3);
    margin: 0 0 16px;
}
.es-manage-bookings .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}
.es-manage-bookings .notice {
    padding: 28px;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    color: var(--fg-3);
    text-align: center;
    font-size: 14px;
}
.es-manage-bookings .notice.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* ── Hub: Quick-action cards ───────────────────────────────────── */
.es-manage-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 32px;
}
.es-manage-quick__card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    padding: 24px 24px 22px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.es-manage-quick__card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-pop);
    border-color: var(--petrol-100);
}
.es-manage-quick__card--accent {
    background: var(--petrol-900);
    border-color: var(--petrol-900);
    color: #fff;
}
.es-manage-quick__card--accent:hover {
    background: var(--petrol-700, var(--petrol));
    border-color: var(--petrol-700, var(--petrol));
}
.es-manage-quick__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-2);
    background: var(--teal-100);
    color: var(--teal-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.es-manage-quick__card--accent .es-manage-quick__icon {
    background: rgba(67, 204, 212, 0.18);
    color: var(--teal);
}
.es-manage-quick__card h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 16px;
    font-weight: var(--fw-semi);
    letter-spacing: var(--tr-tight);
}
.es-manage-quick__card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--fg-3);
    flex: 1;
}
.es-manage-quick__card--accent p { color: rgba(255,255,255,0.7); }
.es-manage-quick__arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    color: var(--petrol);
    font-size: 12px;
    opacity: 0.6;
    transition: transform .15s ease, opacity .15s ease;
}
.es-manage-quick__card:hover .es-manage-quick__arrow { transform: translateX(4px); opacity: 1; }
.es-manage-quick__card--accent .es-manage-quick__arrow { color: var(--teal); }

/* ── PNR Import Form ────────────────────────────────────────────── */
.es-manage-pnr-import {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    padding: 32px;
    margin-top: 32px;
}
.es-manage-pnr-import__head h3 {
    margin: 0 0 6px;
    font-family: var(--display);
    font-size: 18px;
    font-weight: var(--fw-semi);
    color: var(--ink);
    letter-spacing: var(--tr-tight);
}
.es-manage-pnr-import__head p {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--fg-3);
}
.es-manage-pnr-import__form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}
.es-manage-pnr-import__field { display: flex; flex-direction: column; gap: 6px; }
.es-manage-pnr-import__field label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--fg-3);
}
.es-manage-pnr-import__input {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-2);
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink);
    background: var(--paper);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.es-manage-pnr-import__input:focus {
    outline: none;
    border-color: var(--petrol);
    box-shadow: 0 0 0 3px var(--ring);
}
#mpnr { text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--mono); }
.es-manage-pnr-import__btn { white-space: nowrap; }

@media (max-width: 720px) {
    .es-manage-pnr-import__form { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────────
   /checkin — Web Check-in (ES-Design re-skin, May 2026)
   Reuses .es-manage-pnr-import for the login form. Below: dashboard
   segments, document collection, finalize and success states, plus
   a tightened seatmap modal that doesn't depend on legacy styles.css.
   ────────────────────────────────────────────────────────────────── */

/* ── Login modifier ── */
.es-ci-login { margin-top: 0; }
.es-ci-login-error {
  margin-top: 16px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--r-2);
  color: #991b1b;
  font-size: 13px;
  font-weight: 600;
}

/* ── Dashboard header ── */
.es-ci-logout {
  margin-left: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: var(--tr-wide);
  font-family: var(--mono);
  background: none;
  border: 0;
  padding: 0;
  color: var(--fg-3);
  cursor: pointer;
}
.es-ci-logout:hover { color: var(--ink); }

/* ── Segment cards ── */
.es-ci-segments {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.es-ci-empty {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--r-2);
  padding: 32px;
  text-align: center;
  color: var(--fg-3);
  font-size: 14px;
}

/* ── Flight-Picker (Logged-In Check-in Landing) ────────────────────
   Liste mit anklickbaren Flug-Cards für alle Flüge, die der
   eingeloggte User aktuell einchecken kann. Jeder Card ist ein
   <a> der direkt nach /checkin?pnr=X&last_name=Y navigiert und
   damit den bestehenden Auto-Login-Pfad triggert. */
.es-ci-picker {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.es-ci-picker__card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 6px 24px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.es-ci-picker__card:hover {
  border-color: var(--petrol);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -10px rgba(0,0,0,0.12);
}
.es-ci-picker__card-head {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.es-ci-picker__pnr {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-wide);
  color: var(--fg-3);
}
.es-ci-picker__pill {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tr-wide);
  padding: 3px 9px;
  background: var(--teal-100);
  color: var(--petrol-900);
  border-radius: var(--r-full);
}
.es-ci-picker__route {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.15;
  color: var(--ink);
}
.es-ci-picker__arrow {
  color: var(--fg-3);
  font-weight: 300;
  margin: 0 6px;
}
.es-ci-picker__meta {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  font-size: 13px;
  color: var(--fg-3);
}
.es-ci-picker__cta {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--petrol);
  color: white;
  border-radius: var(--r-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .15s ease;
}
.es-ci-picker__card:hover .es-ci-picker__cta {
  background: var(--petrol-900);
}

/* Manuelle PNR-Eingabe (für fremde Buchungen) — collapsible Hint */
.es-ci-picker__manual {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--canvas);
  border: 1px dashed var(--line);
  border-radius: var(--r-2);
}
.es-ci-picker__manual > summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-wide);
  color: var(--fg-3);
  list-style: none;
}
.es-ci-picker__manual > summary::-webkit-details-marker { display: none; }
.es-ci-picker__manual > summary i { transition: transform .15s ease; }
.es-ci-picker__manual[open] > summary i { transform: rotate(180deg); }
.es-ci-picker__manual-hint {
  margin: 12px 0;
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .es-ci-picker__card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 8px;
  }
  .es-ci-picker__cta {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
    justify-content: center;
  }
}

.es-ci-seg {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.es-ci-seg__alert {
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  padding: 14px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.es-ci-seg__alert i { color: #dc2626; font-size: 18px; margin-top: 2px; }
.es-ci-seg__alert-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tr-wide);
  color: #991b1b;
}
.es-ci-seg__alert p { margin: 4px 0 0; font-size: 13px; color: #7f1d1d; }

.es-ci-seg__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.es-ci-seg__head.is-disrupted .es-ci-seg__flt { color: #dc2626; }
.es-ci-seg__route {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: var(--fw-semi);
  color: var(--ink);
}
.es-ci-seg__flt { font-weight: 700; }
.es-ci-seg__sep { color: var(--line); }
.es-ci-seg__pair { display: flex; align-items: center; gap: 6px; }
.es-ci-seg__iata { letter-spacing: 0.05em; }
.es-ci-seg__pair i { color: var(--fg-3); font-size: 11px; }
.es-ci-seg__time {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-3);
  font-family: var(--mono);
}

.es-ci-seg__pax {
  list-style: none;
  padding: 0;
  margin: 0;
}
.es-ci-pax {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.es-ci-pax:last-child { border-bottom: 0; }

.es-ci-pax__check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 6px;
  cursor: pointer;
  accent-color: var(--petrol);
}
.es-ci-pax__check--done,
.es-ci-pax__check--idle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
}
.es-ci-pax__check--done {
  background: #16a34a;
  color: #fff;
  cursor: default;
}
.es-ci-pax__check--idle {
  background: transparent;
  cursor: default;
}

.es-ci-pax__main { flex: 1; min-width: 0; }
.es-ci-pax__name {
  font-size: 15px;
  font-weight: var(--fw-semi);
  color: var(--ink);
}
.es-ci-pax__meta {
  margin-top: 4px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--fg-3);
}
.es-ci-pax__type { font-weight: 500; }
.es-ci-pax__seat i { margin-right: 5px; color: var(--line); }
.es-ci-pax__seat.has-seat i { color: var(--petrol); }

.es-ci-pax__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.es-ci-pax__seat-btn { padding: 0 10px; height: 32px; }
.es-ci-pax__status {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tr-wide);
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--canvas);
  color: var(--fg-3);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.es-ci-pax__status[data-status-key="CHECKED_IN"] {
  background: #ecfdf5; color: #065f46; border-color: #a7f3d0;
}
.es-ci-pax__status[data-status-key="OPEN"] {
  background: var(--teal-100, #ccfbf1);
  color: var(--petrol, #0f766e);
  border-color: var(--teal, #5eead4);
}
.es-ci-pax__status[data-status-key="CHECKIN_REVERSED"] {
  background: #fff7ed; color: #9a3412; border-color: #fed7aa;
}
.es-ci-pax__status[data-status-key="CLOSED"] {
  background: #fef2f2; color: #991b1b; border-color: #fecaca;
}

.es-ci-segments__existing {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

/* ── Document collection ── */
.es-ci-docs {
  margin-top: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.es-ci-docs__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--petrol, #003038);
  color: #fff;
}
.es-ci-docs__head i { font-size: 20px; opacity: 0.9; }
.es-ci-docs__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: var(--fw-semi);
}
.es-ci-docs__head p {
  margin: 2px 0 0;
  font-size: 12px;
  opacity: 0.8;
}
.es-ci-docs__forms {
  padding: 20px 24px;
  display: grid;
  gap: 16px;
}
.es-ci-docs__actions {
  padding: 0 24px 24px;
  text-align: right;
}

.es-ci-doc {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 18px;
}
.es-ci-doc__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: var(--fw-semi);
  color: var(--ink);
  margin-bottom: 14px;
}
.es-ci-doc__head i { color: var(--fg-3); }

.es-ci-doc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Shared form-field tokens ──────────────────────────────────────
   Visuelle Basis für beide Doc/APIS-Forms (checkin.php nutzt
   .es-ci-doc__field/input, manage.php nutzt .es-apis-form__field +
   native input/select). Padding, Labels, Focus-Ring und is-invalid
   leben hier zentral, damit beide Forms identisch aussehen. */
.es-ci-doc__field,
.es-apis-form__field { display: flex; flex-direction: column; gap: 6px; }

.es-ci-doc__field label,
.es-apis-form__field label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tr-wide);
  color: var(--fg-3);
}

.es-ci-doc__input,
.es-apis-form__field input,
.es-apis-form__field select {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  font-family: var(--sans);
  font-size: 14px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  font-variant-numeric: tabular-nums;
}

.es-ci-doc__input:focus,
.es-apis-form__field input:focus,
.es-apis-form__field select:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px var(--ring);
}

.es-ci-doc__input.is-invalid,
.es-apis-form__field input.is-invalid,
.es-apis-form__field select.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
@media (max-width: 640px) {
  .es-ci-doc__grid { grid-template-columns: 1fr; }
}

/* ── Finalize block ── */
.es-ci-finalize {
  margin-top: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 36px 24px;
  text-align: center;
}
.es-ci-finalize__icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: #f0fdf4;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.es-ci-finalize h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: var(--fw-semi);
  color: var(--ink);
}
.es-ci-finalize p {
  margin: 0 auto 24px;
  max-width: 50ch;
  font-size: 14px;
  color: var(--fg-3);
}

/* ── Success ── */
.es-ci-success {
  max-width: 560px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 48px 32px 40px;
  text-align: center;
}
.es-ci-success__icon {
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  border: 6px solid #dcfce7;
}
.es-ci-success h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: var(--fw-semi);
  color: var(--ink);
}
.es-ci-success__lead {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--fg-3);
}
.es-ci-success__sub {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--fg-4, #94a3b8);
}
.es-ci-success__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}
.es-ci-success__footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-3);
}

/* ── Seatmap modal (re-skin, avoids legacy styles.css dependency) ── */
.es-ci-seatmap-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.es-ci-seatmap-modal.active { display: flex; }

.es-ci-seatmap {
  background: var(--paper);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  border-radius: var(--r-3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
/* Inner padding for the seatgrid wrapper inside the modal */
.es-ci-seatmap__wrap { display: inline-block; padding: 8px 0; }
.es-ci-seatmap__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--petrol, #003038);
  color: #fff;
}
.es-ci-seatmap__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: var(--fw-semi);
}
.es-ci-seatmap__head h3 i { margin-right: 8px; opacity: 0.85; }
.es-ci-seatmap__close {
  background: rgba(255,255,255,0.15);
  border: 0;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: var(--r-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.es-ci-seatmap__close:hover { background: rgba(255,255,255,0.25); }

.es-ci-seatmap__body {
  flex: 1;
  overflow: auto;
  padding: 20px;
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.es-ci-seatmap__loading {
  padding: 40px;
  text-align: center;
  color: var(--petrol);
  font-size: 28px;
}

.es-ci-seatmap__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.es-ci-seatmap__lead { color: var(--fg-3); font-size: 13px; }
.es-ci-seatmap__pick {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--petrol);
  font-size: 18px;
  margin-left: 6px;
}

/* Seat cells inside the /checkin modal reuse the booking-flow .seat /
   .seatgrid-body / .collabels / .rowlabel classes that already live in
   this stylesheet (around line 1437). No additional rules needed here.
   The wrapper's max-width is bumped above to accommodate 8-col widebody
   layouts. */


/* ── Booking Detail: shell containers (JS populates inside) ─────────
   Transparent layout wrappers — the JS-rendered children already have
   their own card styling. The previous bk-head container was removed
   because PNR + status are in the H1 and the policy tags were redundant
   with the action cards below. Booking date + contact email moved to
   .es-bk-hero-meta in the hero (see further down).
   ----- */
.es-manage-bk-head__skel {
    height: 96px;
    background: linear-gradient(90deg, var(--canvas) 0%, var(--canvas-2, #eef3f5) 50%, var(--canvas) 100%);
    background-size: 200% 100%;
    animation: es-skel 1.5s linear infinite;
    border-radius: var(--r-2);
}
@keyframes es-skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.es-manage-bk-head[aria-busy="false"] .es-manage-bk-head__skel { display: none; }

.es-manage-bk-section { margin-top: 40px; }
.es-manage-bk-flights, .es-manage-bk-pax, .es-manage-bk-options {
    margin-top: 24px;
    /* No background/border/padding — children carry their own styling. */
}

/* ── Miles dashboard ────────────────────────────────────────────── */
.es-miles-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    padding: 36px 36px 28px;
    margin-top: 32px;
    position: relative;
    overflow: hidden;
}
.es-miles-card::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 200px; height: 200px;
    background: radial-gradient(circle at top right, rgba(67, 204, 212, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.es-miles-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    position: relative;
}
.es-miles-card__balance {
    font-family: var(--display);
    font-size: 48px;
    font-weight: var(--fw-bold);
    line-height: 1;
    color: var(--ink);
    letter-spacing: var(--tr-display);
    font-variant-numeric: tabular-nums slashed-zero;
    margin-top: 12px;
}
.es-miles-card__balance span {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-3);
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: var(--tr-wide);
}
.es-miles-card__tier {
    text-align: right;
    background: var(--petrol-900);
    color: #fff;
    padding: 14px 20px;
    border-radius: var(--r-3);
}
.es-miles-card__tier-name {
    font-family: var(--display);
    font-size: 22px;
    font-weight: var(--fw-bold);
    letter-spacing: var(--tr-tight);
}
.es-miles-card__tier-mult {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--teal);
    margin-top: 4px;
}
.es-miles-card__progress { position: relative; }
.es-miles-card__progress-head {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--fg-3);
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.es-miles-card__progress-head strong { color: var(--teal-600); font-weight: var(--fw-semi); }
.es-miles-card__progress-bar {
    height: 8px;
    background: var(--canvas);
    border-radius: var(--r-full);
    overflow: hidden;
}
.es-miles-card__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal-600), var(--teal));
    border-radius: var(--r-full);
    transition: width .6s cubic-bezier(0.4, 0, 0.2, 1);
}
.es-miles-card__progress-foot {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--fg-3);
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
}
.es-miles-card__topnote {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--teal-100);
    border: 1px solid var(--teal);
    border-radius: var(--r-full);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: var(--fw-semi);
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--teal-600);
}
.es-miles-card__ffn {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.es-miles-card__ffn-lbl {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--fg-3);
}
.es-miles-card__ffn-val {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: var(--fw-semi);
    color: var(--petrol-900);
    letter-spacing: 0.04em;
}

/* Tier comparison */
.es-miles-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.es-miles-tier {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    padding: 22px 20px;
    transition: all .15s ease;
}
.es-miles-tier.is-reached { border-color: var(--teal); }
.es-miles-tier.is-current {
    background: var(--petrol-900);
    color: #fff;
    border-color: var(--petrol-900);
}
.es-miles-tier__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.es-miles-tier__name {
    font-family: var(--display);
    font-size: 18px;
    font-weight: var(--fw-semi);
    letter-spacing: var(--tr-tight);
}
.es-miles-tier__badge {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    background: var(--teal);
    color: var(--petrol-900);
    padding: 3px 9px;
    border-radius: var(--r-full);
}
.es-miles-tier__badge--reached {
    background: var(--teal-100);
    color: var(--teal-600);
    border: 1px solid var(--teal);
}
.es-miles-tier__threshold {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: var(--fw-semi);
    color: var(--teal-600);
    font-variant-numeric: tabular-nums slashed-zero;
}
.es-miles-tier.is-current .es-miles-tier__threshold { color: var(--teal); }
.es-miles-tier__mult {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--fg-3);
    margin-top: 4px;
}
.es-miles-tier.is-current .es-miles-tier__mult { color: rgba(255,255,255,0.6); }

/* Transactions */
.es-miles-tx {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    overflow: hidden;
}
.es-miles-tx__row {
    display: grid;
    grid-template-columns: 130px 1fr auto auto;
    gap: 24px;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.es-miles-tx__row:last-child { border-bottom: none; }
.es-miles-tx__row:hover { background: var(--canvas); }
.es-miles-tx__type {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--r-full);
    background: var(--canvas);
    color: var(--fg-3);
    text-align: center;
}
.es-miles-tx__type--earn   { background: #ecfdf5; color: #065f46; }
.es-miles-tx__type--redeem { background: #fef2f2; color: #991b1b; }
.es-miles-tx__type--adjust { background: var(--teal-100); color: var(--teal-600); }
.es-miles-tx__ref { font-size: 14px; color: var(--ink); }
.es-miles-tx__ref-id { font-family: var(--mono); font-size: 11px; color: var(--fg-3); margin-left: 6px; }
.es-miles-tx__date {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg-3);
    font-variant-numeric: tabular-nums;
}
.es-miles-tx__amount {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: var(--fw-bold);
    color: var(--ink);
    font-variant-numeric: tabular-nums slashed-zero;
}
.es-miles-empty {
    padding: 60px 24px;
    text-align: center;
    color: var(--fg-3);
    font-size: 14px;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    margin-top: 24px;
}

/* (CSS-Shim für app_manage.js entfernt — JS rendert jetzt DNA-Klassen direkt,
   alle Styles dafür leben in es-design.css unter .es-bk-*.) */

/* ── Check-in CTA banner ─────────────────────────────────────────── */
.es-manage-checkin-cta {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.es-manage-checkin-cta__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--r-3);
    background: var(--teal-100);
    color: var(--teal-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.es-manage-checkin-cta__body { flex: 1; min-width: 240px; }
.es-manage-checkin-cta__body h3 {
    margin: 0 0 6px;
    font-family: var(--display);
    font-size: 18px;
    font-weight: var(--fw-semi);
    color: var(--ink);
    letter-spacing: var(--tr-tight);
}
.es-manage-checkin-cta__body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--fg-3);
    max-width: 60ch;
}

/* ── APIS Editor ─────────────────────────────────────────────────── */
.es-apis-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}
.es-apis-pax {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    overflow: hidden;
    transition: border-color .15s ease;
}
.es-apis-pax[open] { border-color: var(--petrol-100); }
.es-apis-pax__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    cursor: pointer;
    list-style: none;
    transition: background .15s ease;
}
.es-apis-pax__head::-webkit-details-marker { display: none; }
.es-apis-pax__head:hover { background: var(--canvas); }
.es-apis-pax__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--canvas);
    color: var(--fg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.es-apis-pax__info { flex: 1; min-width: 0; }
.es-apis-pax__name {
    font-family: var(--display);
    font-size: 15px;
    font-weight: var(--fw-semi);
    color: var(--ink);
    letter-spacing: var(--tr-tight);
}
.es-apis-pax__status { margin-top: 4px; }
.es-apis-pax__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: var(--r-full);
    background: var(--canvas);
    color: var(--fg-3);
    border: 1px solid var(--line);
}
.es-apis-pax__badge i { font-size: 9px; }
.es-apis-pax__badge--ok {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}
.es-apis-pax__badge--empty {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}
.es-apis-pax__toggle {
    color: var(--fg-3);
    transition: transform .25s ease;
    flex-shrink: 0;
}
.es-apis-pax[open] .es-apis-pax__toggle { transform: rotate(180deg); }

/* Wrapper-Styling — context-specific, sitzt im .es-pax-card__body.
   Field/Label/Input-Tokens kommen aus dem shared Block oben
   (.es-ci-doc/.es-apis-form vereinheitlicht). */
.es-apis-form {
    padding: 24px 28px 24px;
    border-top: 1px solid var(--line);
    background: var(--canvas);
}
.es-apis-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.es-apis-form__field--wide { grid-column: 1 / -1; max-width: 380px; }
.es-apis-form__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.es-apis-form__status {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
}
.es-apis-form__status.is-ok { color: #065f46; }
.es-apis-form__status.is-err { color: #991b1b; }
.es-apis-form__status.is-loading { color: var(--fg-3); }

/* APIS disclaimer footer */
.es-apis-disclaimer {
    margin-top: 24px;
    padding: 14px 20px;
    background: var(--petrol-50);
    border: 1px solid var(--petrol-100);
    border-left: 3px solid var(--petrol);
    border-radius: var(--r-2);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.es-apis-disclaimer i { color: var(--petrol); font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.es-apis-disclaimer p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--fg-3);
}

/* ── Profile Mode ────────────────────────────────────────────────── */
.es-profile-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    padding: 32px;
    margin-top: 32px;
}
.es-profile-card__head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.es-profile-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--petrol-900);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-size: 24px;
    font-weight: var(--fw-bold);
    flex-shrink: 0;
}
.es-profile-card__id { flex: 1; min-width: 0; }
.es-profile-card__name {
    font-family: var(--display);
    font-size: 22px;
    font-weight: var(--fw-semi);
    color: var(--ink);
    letter-spacing: var(--tr-tight);
}
.es-profile-card__email {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg-3);
    margin-top: 4px;
    word-break: break-word;
}
.es-profile-card__badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--teal-600);
    background: var(--teal-100);
    border: 1px solid var(--teal);
    padding: 5px 11px;
    border-radius: var(--r-full);
}
.es-profile-card__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.es-profile-card__field { display: flex; flex-direction: column; gap: 4px; }
.es-profile-card__field label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--fg-3);
}
.es-profile-card__field span {
    font-size: 14px;
    color: var(--ink);
    font-weight: var(--fw-semi);
}

.es-profile-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.es-profile-action {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: all .15s ease;
}
.es-profile-action:hover {
    border-color: var(--petrol-100);
    background: var(--canvas);
    transform: translateY(-2px);
}
.es-profile-action--danger:hover {
    border-color: #fecaca;
    background: #fef2f2;
}
.es-profile-action__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-2);
    background: var(--canvas);
    color: var(--petrol);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.es-profile-action--danger .es-profile-action__icon { color: #991b1b; background: #fef2f2; }
.es-profile-action__body { flex: 1; min-width: 0; }
.es-profile-action__body h3 {
    margin: 0 0 4px;
    font-family: var(--display);
    font-size: 15px;
    font-weight: var(--fw-semi);
    color: var(--ink);
    letter-spacing: var(--tr-tight);
}
.es-profile-action__body p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--fg-3);
}
.es-profile-action__arrow { color: var(--petrol); opacity: 0.5; transition: opacity .15s ease, transform .15s ease; flex-shrink: 0; }
.es-profile-action:hover .es-profile-action__arrow { opacity: 1; transform: translateX(3px); }

.es-profile-apis-note {
    background: var(--canvas);
    border: 1px solid var(--line);
    border-left: 3px solid var(--teal-600);
    border-radius: var(--r-3);
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 24px;
}
.es-profile-apis-note__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-2);
    background: var(--teal-100);
    color: var(--teal-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.es-profile-apis-note__body h3 {
    margin: 0 0 8px;
    font-family: var(--display);
    font-size: 16px;
    font-weight: var(--fw-semi);
    color: var(--ink);
    letter-spacing: var(--tr-tight);
}
.es-profile-apis-note__body p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--fg-2);
}
.es-profile-apis-note__body p:last-child { margin-bottom: 0; }
.es-profile-apis-note__body a {
    color: var(--petrol);
    text-decoration: underline;
    text-decoration-color: var(--petrol-100);
    text-underline-offset: 3px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .es-manage-aside {
        border-left: 0;
        padding-left: 0;
        max-width: none;
        justify-self: stretch;
    }
    .es-miles-card__head { flex-direction: column; align-items: stretch; }
    .es-miles-card__tier { text-align: left; }
    .es-miles-tx__row { grid-template-columns: auto 1fr auto; row-gap: 8px; }
    .es-miles-tx__date { grid-column: 1 / -1; padding-top: 4px; border-top: 1px dashed var(--line); }
}
@media (max-width: 600px) {
    .es-miles-card { padding: 24px; }
    .es-miles-card__balance { font-size: 36px; }
}


/* ═══════════════════════════════════════════════════════════════
   /dashboard — 2-column grid (bookings + sticky Quick-Access sidebar)
   Added 2026-05-17 for the dashboard UX refresh.
   ═══════════════════════════════════════════════════════════════ */

/* Aside link group (Profile / Admin / Logout stacked) */
.es-manage-aside__links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.es-manage-aside__logout--admin { color: var(--petrol); }

/* Main grid: 2 columns on desktop, stacks on mobile */
.es-dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    margin-top: 56px;
    margin-bottom: 80px;
    align-items: start;
}
.es-dash-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sticky sidebar */
.es-dash-side {
    position: relative;
}
.es-dash-side__sticky {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.es-dash-side__kicker {
    margin: 0 0 6px;
}

/* Compact card variant for the sidebar — the same .es-manage-quick__card
   from /manage hub, but tightened up since the sidebar is narrower */
.es-dash-side .es-manage-quick__card {
    padding: 18px 18px 16px;
    gap: 8px;
}
.es-dash-side .es-manage-quick__icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
}
.es-dash-side .es-manage-quick__card h3 { font-size: 14px; }
.es-dash-side .es-manage-quick__card p  { font-size: 12px; line-height: 1.45; }
.es-dash-side .es-manage-quick__arrow   { bottom: 16px; right: 18px; font-size: 11px; }

/* Travel-history CTA below the upcoming bookings */
.es-dash-history {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
    margin-top: 8px;
}
.es-dash-history:hover {
    border-color: var(--petrol-100);
    background: var(--canvas);
    transform: translateY(-1px);
}
.es-dash-history__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-2);
    background: var(--canvas);
    color: var(--fg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.es-dash-history__body { flex: 1; min-width: 0; }
.es-dash-history__body h3 {
    margin: 0 0 4px;
    font-family: var(--display);
    font-size: 15px;
    font-weight: var(--fw-semi);
    color: var(--ink);
    letter-spacing: var(--tr-tight);
}
.es-dash-history__body p {
    margin: 0;
    font-size: 13px;
    color: var(--fg-3);
}
.es-dash-history__arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--petrol);
    flex-shrink: 0;
}
.es-dash-history:hover .es-dash-history__arrow i { transform: translateX(3px); }
.es-dash-history__arrow i { transition: transform .15s ease; }

/* ── Tablet & below: stack, sidebar becomes a compact action-strip on top ── */
@media (max-width: 960px) {
    .es-dash-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 40px;
    }
    .es-dash-side { order: -1; }       /* sidebar floats above the bookings */
    .es-dash-side__sticky {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }
    .es-dash-side__kicker {
        grid-column: 1 / -1;
    }
    /* Compact horizontal cards in the action-strip */
    .es-dash-side .es-manage-quick__card {
        padding: 14px 16px;
    }
    .es-dash-side .es-manage-quick__card p { display: none; } /* tagline hidden in strip */
    .es-dash-side .es-manage-quick__arrow   { display: none; }
}

@media (max-width: 600px) {
    .es-dash-history { flex-wrap: wrap; }
    .es-dash-history__body { flex-basis: 100%; }
    .es-dash-history__arrow { margin-left: auto; }
}


/* ═══════════════════════════════════════════════════════════════
   /dashboard v2 — personalization
   Countdown Card, Disruption Banner, Year Stats Strip
   ═══════════════════════════════════════════════════════════════ */

/* ── Stats-Bar Card ──────────────────────────────────────────────
   Ersetzt den früheren dark-petrol `.es-catalog-hero__stats`-Band
   der zwischen Hero und Content saß. Lebt jetzt als eigenständige
   Card direkt unter dem Hero (nur im Dashboard — in /manage Hub
   wurde der Stats-Block ganz entfernt, dort übernehmen die
   Buchungs-Cards den Job). */
.es-dash-statsbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    overflow: hidden;
}
.es-dash-statsbar__item {
    padding: 22px 28px;
    border-right: 1px solid var(--line);
}
.es-dash-statsbar__item:last-child { border-right: none; }
.es-dash-statsbar__num {
    font-family: var(--display);
    font-size: 32px;
    font-weight: var(--fw-semi);
    line-height: 1;
    color: var(--ink);
    letter-spacing: var(--tr-display);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums slashed-zero;
}
.es-dash-statsbar__label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--fg-3);
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
}
.es-dash-statsbar__sub {
    color: var(--teal-600);
    margin-left: 4px;
    font-weight: 600;
}

@media (max-width: 720px) {
    .es-dash-statsbar { grid-template-columns: repeat(2, 1fr); }
    .es-dash-statsbar__item { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .es-dash-statsbar__item:nth-child(2n) { border-right: none; }
    .es-dash-statsbar__item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ── Countdown Card inside the hero head ─────────────────────────── */
.es-dash-countdown {
    margin-top: 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal-600);
    border-radius: var(--r-3);
    padding: 22px 28px 24px;
    max-width: 620px;
    box-shadow: var(--sh-pop, 0 8px 24px -12px rgba(11, 71, 89, 0.18));
}
.es-dash-countdown__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.es-dash-countdown__date {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg-3);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums slashed-zero;
}
.es-dash-countdown__route {
    font-family: var(--display);
    font-size: 32px;
    font-weight: var(--fw-bold);
    color: var(--ink);
    letter-spacing: var(--tr-display);
    line-height: 1.1;
    margin-bottom: 14px;
}
.es-dash-countdown__tick {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: var(--fw-semi);
    color: var(--petrol-900);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums slashed-zero;
    padding: 12px 0;
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.es-dash-countdown__tick strong {
    font-size: 22px;
    font-weight: var(--fw-bold);
    color: var(--ink);
}
.es-dash-countdown__tick.is-departed {
    color: var(--fg-3);
    font-style: italic;
}
.es-dash-countdown__tick.is-departed i { color: var(--teal-600); }
.es-dash-countdown__suffix {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--fg-3);
    margin-left: auto;
}
.es-dash-countdown__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* CTA placeholder when user has no upcoming flight */
.es-dash-cta-empty { margin-top: 20px; }

/* ── Disruption banner ───────────────────────────────────────────── */
.es-dash-disruption {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 32px;
    padding: 20px 24px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #d97706;
    border-radius: var(--r-3);
}
.es-dash-disruption__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-2);
    background: #fde68a;
    color: #92400e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.es-dash-disruption__body { flex: 1; min-width: 0; }
.es-dash-disruption__kicker {
    color: #92400e;
    margin-bottom: 10px;
}
.es-dash-disruption__kicker::before { background: #d97706; }
.es-dash-disruption__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.es-dash-disruption__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #fde68a;
    border-radius: var(--r-2);
    text-decoration: none;
    color: var(--ink);
    transition: background .15s ease, transform .15s ease;
    flex-wrap: wrap;
}
.es-dash-disruption__row:hover {
    background: #fff;
    transform: translateX(2px);
}
.es-dash-disruption__route {
    font-family: var(--display);
    font-size: 15px;
    font-weight: var(--fw-semi);
    letter-spacing: var(--tr-tight);
    min-width: 140px;
}
.es-dash-disruption__date {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg-3);
    font-variant-numeric: tabular-nums slashed-zero;
    min-width: 130px;
}
.es-dash-disruption__tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}
.es-dash-disruption__tag {
    display: inline-flex;
    align-items: center;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: var(--r-full);
    background: #fde68a;
    color: #92400e;
}
.es-dash-disruption__row i {
    color: #92400e;
    transition: transform .15s ease;
}
.es-dash-disruption__row:hover i { transform: translateX(3px); }

/* ── Year-to-date stats strip ────────────────────────────────────── */
.es-dash-yearstrip {
    margin-top: 32px;
    padding: 24px 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 28px;
    align-items: center;
}
.es-dash-yearstrip__head { display: flex; flex-direction: column; gap: 6px; }
.es-dash-yearstrip__lead {
    font-family: var(--display);
    font-size: 18px;
    font-weight: var(--fw-semi);
    color: var(--ink);
    letter-spacing: var(--tr-tight);
    line-height: 1.3;
}
.es-dash-yearstrip__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 22px;
}
.es-dash-yearstat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.es-dash-yearstat--wide { min-width: 0; }
.es-dash-yearstat__num {
    font-family: var(--display);
    font-size: 26px;
    font-weight: var(--fw-bold);
    color: var(--ink);
    letter-spacing: var(--tr-display);
    line-height: 1;
    font-variant-numeric: tabular-nums slashed-zero;
}
.es-dash-yearstat__num span {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--fg-3);
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: var(--tr-wide);
}
.es-dash-yearstat__city {
    font-family: var(--display);
    font-size: 13px;
    font-weight: var(--fw-semi);
    color: var(--fg-2);
    letter-spacing: var(--tr-tight);
    margin-left: 8px;
    text-transform: none;
}
.es-dash-yearstat__lbl {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--fg-3);
}

/* ── Small button variants used by the Countdown Card ────────────── */
.es-btn--sm {
    padding: 8px 14px;
    font-size: 13px;
    gap: 6px;
}
.es-btn--ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}
.es-btn--ghost:hover {
    border-color: var(--petrol-100);
    background: var(--canvas);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .es-dash-countdown__route { font-size: 26px; }
    .es-dash-countdown__tick { font-size: 16px; }
    .es-dash-countdown__tick strong { font-size: 19px; }

    .es-dash-yearstrip {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .es-dash-yearstrip__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 600px) {
    .es-dash-countdown { padding: 18px 20px; }
    .es-dash-countdown__route { font-size: 22px; }
    .es-dash-countdown__tick { font-size: 14px; }
    .es-dash-countdown__tick strong { font-size: 16px; }
    .es-dash-countdown__suffix { width: 100%; text-align: left; margin-left: 0; margin-top: 2px; }
    .es-dash-yearstat__num { font-size: 22px; }
    .es-dash-disruption { flex-wrap: wrap; }
    .es-dash-disruption__route { min-width: 0; flex: 1; }
}


/* (Removed: .es-manage-bc and .es-faq-article-nav__back--home — superseded
   by .es-account-nav below, which is now the single source of truth for
   the My-Account sub-page breadcrumbs.) */


/* ═══════════════════════════════════════════════════════════════
   /dashboard + /manage sub-pages — unified Sub-Nav Breadcrumb
   Single visual style across My-Account hierarchy. Replaces the
   ad-hoc .es-faq-article-nav__back and .es-manage-bc usages.
   ═══════════════════════════════════════════════════════════════ */
.es-account-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    flex-wrap: wrap;
}
/* "← Dashboard" anchor — pill with subtle border */
.es-account-nav__home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fg-3);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    background: var(--paper);
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.es-account-nav__home:hover {
    color: var(--petrol);
    border-color: var(--petrol-100);
    background: var(--canvas);
}
.es-account-nav__home i { font-size: 10px; }
/* Intermediate crumb (clickable parent) */
.es-account-nav__crumb {
    color: var(--fg-3);
    text-decoration: none;
    transition: color .15s ease;
}
.es-account-nav__crumb:hover { color: var(--petrol); }
/* Current page label (non-clickable) */
.es-account-nav__here {
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.es-account-nav__here::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
}
.es-account-nav__sep {
    color: var(--fg-3);
    opacity: 0.4;
}


/* ═══════════════════════════════════════════════════════════════
   Account Sub-Navigation — horizontal Tab-Bar
   Sitzt am Ende der `.es-catalog-hero` Section (bottom-of-hero
   Pattern, "Notion-style"). Inaktive Tabs sind reine Links; der
   aktive Tab kann optional einen Sub-Pfad bekommen
   (Buchungen / PNR CR3RSA / Umbuchen — siehe Crumbs-Param im
   `account_subnav.php` Partial).
   ═══════════════════════════════════════════════════════════════ */
.es-account-subnav {
    border-top: 1px solid var(--line);
    background: var(--paper);
}
.es-account-subnav__inner {
    display: flex;
    align-items: stretch;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.es-account-subnav__inner::-webkit-scrollbar { height: 4px; }
.es-account-subnav__inner::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

.es-account-subnav__tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--fg-3);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.es-account-subnav__tab:hover {
    color: var(--ink);
}
.es-account-subnav__tab.is-active {
    color: var(--ink);
    border-bottom-color: var(--teal);
}
.es-account-subnav__tab i {
    font-size: 13px;
    opacity: 0.75;
    transition: opacity .15s ease;
}
.es-account-subnav__tab.is-active i,
.es-account-subnav__tab:hover i { opacity: 1; }

/* ── Active Tab mit Sub-Pfad (Crumbs) ────────────────────────────
   Wird gerendert wenn der Caller `$account_subnav_crumbs` setzt —
   etwa "Buchungen / PNR CR3RSA" im Booking-Detail. Der Container
   ersetzt das einfache <a> durch eine Inline-Pfad-Struktur. */
.es-account-subnav__tab--with-path {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 2px solid var(--teal);
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
}
.es-account-subnav__tab-root {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    transition: opacity .15s ease;
}
.es-account-subnav__tab-root i { font-size: 13px; opacity: 1; }
.es-account-subnav__tab-root:hover { opacity: 0.7; }

.es-account-subnav__tab-sep {
    color: var(--fg-3);
    opacity: 0.45;
    font-weight: 400;
}
.es-account-subnav__tab-crumb {
    color: var(--fg-3);
    text-decoration: none;
    transition: color .15s ease;
    white-space: nowrap;
}
.es-account-subnav__tab-crumb:hover { color: var(--ink); }
.es-account-subnav__tab-crumb.is-current { color: var(--ink); cursor: default; }

@media (max-width: 640px) {
    .es-account-subnav__tab,
    .es-account-subnav__tab--with-path {
        padding: 14px 14px;
        gap: 8px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   Article-Nav Helper Pill (also used by /faq, see views/pax/faq.php)
   Globally defined here so /manage booking-detail can re-use the
   "Hilfe"-pill without duplicating the styles inline.
   ═══════════════════════════════════════════════════════════════ */
.es-faq-article-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.es-faq-article-nav__home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--fg-3);
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    background: var(--paper);
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.es-faq-article-nav__home:hover {
    color: var(--petrol);
    border-color: var(--petrol-100);
    background: var(--canvas);
}
.es-faq-article-nav__home i { font-size: 11px; }

@media (max-width: 600px) {
    .es-faq-article-nav { flex-direction: column; align-items: stretch; gap: 10px; }
    .es-faq-article-nav__home { justify-content: center; }
}


/* ═══════════════════════════════════════════════════════════════
   /manage?pnr=… (Booking Detail) — Top-Action-Bar layout
   The 3 booking-actions live above the flight segments as a 3-column
   grid (familiar airline-UX pattern). No sidebar.
   ═══════════════════════════════════════════════════════════════ */

/* Inline section-head with help-pill on the right */
.es-section-head--inline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Help-Pill next to the "Buchung verändern" heading. Solid border to
   match the other pills on the page (account-nav, toolbar, status). */
.es-bk-actions__help {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--fg-3);
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    background: var(--paper);
    transition: color .15s ease, border-color .15s ease, background .15s ease;
    flex-shrink: 0;
}
.es-bk-actions__help:hover {
    color: var(--petrol);
    border-color: var(--petrol-100);
    background: var(--canvas);
}

/* ═══════════════════════════════════════════════════════════════
   /manage?pnr=… (Booking Detail) — 2-col grid + sticky Action-Sidebar
   With the compact nav-cards (each ~75px tall) a vertical sticky panel
   is the natural fit — users see actions while scrolling through pax
   and APIS forms below. Cards stack 1-col inside the narrow sidebar.
   ═══════════════════════════════════════════════════════════════ */
.es-bk-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    margin-top: 8px;
    margin-bottom: 60px;
    align-items: start;
}
.es-bk-main { min-width: 0; }
.es-bk-side { position: relative; }
.es-bk-side__sticky {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* "Buchung verändern" section inside the aside */
.es-bk-side .es-bk-actions    { margin: 0; }
.es-bk-side .es-bk-opt-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}
.es-bk-side .es-section-head--compact      { margin-bottom: 12px; }
.es-bk-side .es-section-head--compact h2   { font-size: 18px; margin: 0; }

/* Help-pill at the bottom of the sidebar */
.es-bk-side .es-bk-actions__help {
    justify-content: center;
    margin-top: 8px;
}

/* ── Tablet & below: stack, sidebar floats above main ──────────────── */
@media (max-width: 960px) {
    .es-bk-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .es-bk-side { order: -1; }
    .es-bk-side__sticky { position: static; }
    /* On wider mobile, cards can sit side-by-side again */
    .es-bk-side .es-bk-opt-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* (Legacy "Compact mode for action cards inside the dark band" overrides
   removed — the .es-bk-opt cards are now compact nav-cards by default,
   defined in the .es-bk-opt block earlier in this stylesheet. The
   .es-bk-actions wrapper just provides the grouped-panel framing.) */

/* ═══════════════════════════════════════════════════════════════
   Merged Pax+APIS card  —  one <details> per passenger
   Summary shows: avatar, name, type, [segments slot filled by JS],
   APIS-status badge, chevron. Body holds the APIS form.
   ═══════════════════════════════════════════════════════════════ */
.es-apis-list--merged {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.es-pax-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    transition: border-color .15s ease, box-shadow .15s ease;
    overflow: hidden;
}
.es-pax-card[open] { border-color: var(--petrol-100); }

.es-pax-card__summary {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    transition: background .15s ease;
}
.es-pax-card__summary::-webkit-details-marker { display: none; }
.es-pax-card__summary:hover { background: var(--canvas); }

.es-pax-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--canvas);
    color: var(--fg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.es-pax-card__main {
    flex: 1;
    min-width: 0;
}

/* Top row: name + type on the left, badge + chevron on the right */
.es-pax-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.es-pax-card__id { min-width: 0; }
.es-pax-card__name {
    font-family: var(--display);
    font-size: 16px;
    font-weight: var(--fw-semi);
    color: var(--ink);
    letter-spacing: var(--tr-tight);
}
.es-pax-card__type {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--fg-3);
    margin-top: 2px;
}

.es-pax-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
/* APIS status indicator — a compact pill with a coloured dot. Conveys
   state at a glance without looking like an actionable CTA (which the
   old "APIS HINTERLEGEN" badge did). */
.es-pax-card__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: var(--r-full);
    border: 1px solid var(--line);
    background: var(--canvas);
}
.es-pax-card__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fg-3);
    flex-shrink: 0;
}
.es-pax-card__status--ok    { color: #065f46; border-color: #a7f3d0; background: #ecfdf5; }
.es-pax-card__status--ok    .es-pax-card__status-dot { background: #10b981; }
.es-pax-card__status--empty { color: #92400e; border-color: #fde68a; background: #fffbeb; }
.es-pax-card__status--empty .es-pax-card__status-dot { background: #d97706; }

/* Chevron toggle — now a real button-like target. The browser clicks
   the surrounding <summary> too so this just provides the visual hint. */
.es-pax-card__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--fg-3);
    font-size: 12px;
    cursor: pointer;
    transition: transform .25s ease, border-color .15s ease, background .15s ease, color .15s ease;
    padding: 0;
}
.es-pax-card__summary:hover .es-pax-card__toggle {
    border-color: var(--petrol-100);
    background: var(--canvas);
    color: var(--petrol);
}
.es-pax-card[open] .es-pax-card__toggle {
    transform: rotate(180deg);
    border-color: var(--petrol-100);
    background: var(--canvas);
    color: var(--petrol);
}

/* Per-segment slot — placeholder skeleton while loading, then JS-filled */
.es-pax-card__segs {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}
.es-pax-card__segs-skel {
    height: 18px;
    background: linear-gradient(90deg, var(--canvas) 0%, #eef3f5 50%, var(--canvas) 100%);
    background-size: 200% 100%;
    animation: es-skel 1.5s linear infinite;
    border-radius: var(--r-2);
    max-width: 280px;
}
/* When JS has injected content, the skeleton's gone (we replaceChildren) */
/* The default .es-bk-paxrow__segs uses align-items: flex-end (right-aligned)
   because it lived in a horizontal-flex layout. Inside the merged pax-card
   we want left-aligned segments that occupy the full width with a clean
   3-column grid per row (route | seat | check-in status). */
.es-pax-card__segs > .es-bk-paxrow__segs {
    align-items: stretch;
    gap: 8px;
}
.es-pax-card__segs .es-bk-paxrow__seg {
    display: grid;
    grid-template-columns: minmax(90px, auto) minmax(70px, auto) 1fr;
    align-items: center;
    gap: 14px;
}
.es-pax-card__segs .es-bk-paxrow__chkin {
    justify-self: end;          /* push the status pill to the right edge */
    white-space: nowrap;
}

@media (max-width: 600px) {
    .es-pax-card__segs .es-bk-paxrow__seg {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "route  chkin"
            "seat   chkin";
        row-gap: 4px;
    }
    .es-pax-card__segs .es-bk-paxrow__route { grid-area: route; }
    .es-pax-card__segs .es-bk-paxrow__seat  { grid-area: seat;  }
    .es-pax-card__segs .es-bk-paxrow__chkin { grid-area: chkin; align-self: center; }
}

/* Body (APIS form) — fades in via [open] state */
.es-pax-card__body {
    padding: 0 22px 22px;
    border-top: 1px solid var(--line);
    background: var(--canvas);
}
.es-pax-card__body > .es-apis-form { padding-top: 20px; }

/* Responsive: stack head row on narrow screens */
@media (max-width: 720px) {
    .es-pax-card__summary { padding: 16px 18px; gap: 12px; }
    .es-pax-card__avatar { width: 36px; height: 36px; font-size: 14px; }
    .es-pax-card__body { padding: 0 18px 18px; }
}


/* ═══════════════════════════════════════════════════════════════
   Booking Detail — Cleanup-Pass
   ───────────────────────────────────────────────────────────────
   1) Sub-section H2 kleiner (vorher var(--fs-h2) ≈ 36-44px)
   2) PNR-Card "UMBUCHBAR/STORNIERBAR"-Tags ausblenden — redundant zur
      Sidebar, wo "Umbuchen" als CTA-Status (aktiv/disabled) dasselbe sagt
   3) Sidebar: erste Action-Card (Check-in) als primary hervorheben,
      Rest bleibt als secondary
   ═══════════════════════════════════════════════════════════════ */

/* 1) Compact section-heads + tighter rhythm inside booking detail */
.es-manage-bk-section { margin-top: 28px; }    /* was 40px */
.es-manage-bk-section .es-section-head { margin-bottom: 18px; }
.es-manage-bk-section .es-section-head h2 {
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 4px;
}
.es-manage-bk-section .es-section-head__sub {
    font-size: 13px;
    line-height: 1.55;
    margin-top: 6px;
    max-width: 60ch;
}

/* Slim booking hero title — "Buchung <PNR>" with status badge inline */
.es-bk-hero-title {
    /* `display: flex` (not inline-flex!) so the H1 forces its own line
       beneath the breadcrumb pill instead of sitting beside it. Internal
       flex keeps the "Buchung <PNR> [Status]" badges aligned. */
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--display);
    font-weight: var(--fw-bold);
    color: var(--ink);
    letter-spacing: var(--tr-display);
    line-height: 1.1;
    margin: 0;
}
.es-bk-hero-title__pnr {
    font-family: var(--mono);
    font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
    color: var(--petrol-900);
}
.es-bk-hero-title__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--teal);
    border-radius: var(--r-full);
    background: var(--teal-100);
    color: var(--teal-600);
    align-self: center;
}
.es-bk-hero-title__status[data-status-key="CANCELED"],
.es-bk-hero-title__status[data-status-key="VOIDED"] {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Meta-row: booking-date + contact (left) and utility toolbar (right).
   Sits below the booking H1 in the hero head. */
.es-bk-hero-metarow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}
.es-bk-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 0;
}
.es-bk-hero-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg-3);
    font-variant-numeric: tabular-nums;
}
.es-bk-hero-meta__item i {
    color: var(--teal-600);
    font-size: 11px;
}

/* The APIS-Editor block now lives inside the merged Pax section. Add a
   subtle dashed separator between the JS-rendered pax overview (#bk-pax)
   and the collapsible APIS forms below. */
.es-apis-list--in-pax {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px dashed var(--line);
}

/* Sidebar section-head: even tighter */
.es-bk-side__sticky .es-section-head--compact h2 {
    font-size: 18px;
}

/* 2) Hide redundant policy tags on the PNR head card when shown alongside
      the action-sidebar (their info — changeable/refundable — is already
      conveyed by the sidebar's Umbuchen/Stornieren CTAs and their states). */
.es-bk-grid .es-bk-detailhead__tags { display: none; }
/* If the same booking-detail is shown without the sidebar (legacy single-
   column fallback), we keep the tags visible. The .es-bk-grid scope keeps
   the override surgical. */

/* 3) Primary vs. secondary differentiation in the action sidebar.
      The first .es-bk-opt rendered by app_manage.js is always the Check-in
      card. Give it a subtle Teal lift; keep Umbuchen / Extras flat. */
.es-bk-side .es-bk-opt:first-child {
    border-color: var(--teal);
    box-shadow: 0 4px 16px -8px rgba(67, 204, 212, 0.35);
    background: linear-gradient(180deg, rgba(67, 204, 212, 0.04) 0%, var(--paper) 60%);
}
.es-bk-side .es-bk-opt:first-child .es-bk-opt__head > i {
    background: var(--teal);
    color: var(--petrol-900);
}
.es-bk-side .es-bk-opt:first-child .es-bk-opt__head h4 {
    color: var(--petrol-900);
}
/* Secondary cards (Umbuchen, Zusatzoptionen) — subtler treatment */
.es-bk-side .es-bk-opt:not(:first-child):not(.es-bk-opt--danger) {
    background: var(--canvas);
    border-color: transparent;
}
.es-bk-side .es-bk-opt:not(:first-child):not(.es-bk-opt--danger) .es-bk-opt__head > i {
    background: var(--paper);
    color: var(--fg-3);
}


/* ── Booking-Detail Toolbar (Print + PDF Download) ──────────────────
   Small ghost-pill row right above the PNR head. Ported from the
   legacy manage_booking.php so users can still export the itinerary. */
.es-bk-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
/* When the toolbar lives inside the hero metarow, drop its own margin */
.es-bk-hero-metarow .es-bk-toolbar {
    margin: 0;
}
.es-bk-toolbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--fg-3);
    text-decoration: none;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    padding: 7px 14px;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.es-bk-toolbar__btn:hover {
    color: var(--petrol);
    border-color: var(--petrol-100);
    background: var(--canvas);
}
.es-bk-toolbar__btn i { font-size: 11px; }

@media (max-width: 600px) {
    .es-bk-toolbar { justify-content: stretch; }
    .es-bk-toolbar__btn { flex: 1; justify-content: center; }
}

/* Print stylesheet — hide non-essential UI so the printed booking is
   clean. Keep flight cards, pax info, booking head. Hide sidebar/nav. */
@media print {
    .es-catalog-hero,
    .es-bk-side,
    .es-bk-toolbar,
    .es-faq-article-nav,
    .es-account-nav,
    .es-manage-aside,
    .es-checkin-cta,
    nav, header, footer {
        display: none !important;
    }
    .es-bk-grid {
        display: block !important;
    }
    .es-manage-bk-section { page-break-inside: avoid; margin-top: 24px; }
    body { background: #fff !important; }
}


/* ═══════════════════════════════════════════════════════════════
   Global User-Menu (Avatar Dropdown in the header)
   Replaces the per-page .es-manage-aside that used to sit in the
   hero of every My-Account page. Single source of truth in the
   shared navigation partial.
   ═══════════════════════════════════════════════════════════════ */
.es-user-menu {
    position: relative;
    display: inline-block;
}

.es-user-menu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    background: var(--paper);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink);
    line-height: 1;
    transition: border-color .15s ease, background .15s ease;
}
.es-user-menu__trigger:hover,
.es-user-menu.is-open .es-user-menu__trigger {
    border-color: var(--petrol-100);
    background: var(--canvas);
}

.es-user-menu__avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--petrol-900);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-size: 12px;
    font-weight: var(--fw-bold);
    flex-shrink: 0;
}

.es-user-menu__name {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.es-user-menu__chev {
    font-size: 9px;
    color: var(--fg-3);
    transition: transform .2s ease;
}
.es-user-menu.is-open .es-user-menu__chev {
    transform: rotate(180deg);
}

/* Dropdown panel */
.es-user-menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    box-shadow: 0 12px 32px -12px rgba(11, 71, 89, 0.25),
                0 2px 6px -2px rgba(11, 71, 89, 0.10);
    padding: 6px;
    z-index: 1000;
}
.es-user-menu__panel[hidden] { display: none; }

.es-user-menu__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 14px;
}
.es-user-menu__avatar--lg {
    width: 40px;
    height: 40px;
    font-size: 16px;
}
.es-user-menu__id { min-width: 0; flex: 1; }
.es-user-menu__name-lg {
    font-family: var(--display);
    font-size: 14px;
    font-weight: var(--fw-semi);
    color: var(--ink);
    letter-spacing: var(--tr-tight);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.es-user-menu__email {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--fg-3);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.es-user-menu__sep {
    height: 1px;
    background: var(--line);
    margin: 4px 8px;
}

.es-user-menu__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--r-2);
    transition: background .15s ease, color .15s ease;
}
.es-user-menu__link i {
    width: 16px;
    color: var(--fg-3);
    font-size: 13px;
    text-align: center;
}
.es-user-menu__link:hover {
    background: var(--canvas);
    color: var(--petrol);
}
.es-user-menu__link:hover i { color: var(--petrol); }
.es-user-menu__link--crew    { color: var(--teal-600); }
.es-user-menu__link--crew i  { color: var(--teal-600); }
.es-user-menu__link--admin   { color: var(--petrol); }
.es-user-menu__link--admin i { color: var(--petrol); }

/* On narrow viewports, hide the name on the trigger (only avatar + chevron) */
@media (max-width: 720px) {
    .es-user-menu__name { display: none; }
    .es-user-menu__trigger { padding-right: 8px; }
    .es-user-menu__panel { min-width: 240px; }
}


/* ── Subpage placeholder (rebook/cancel/extras scaffolded views) ────
   While the dedicated subpage features are being built, these URLs
   render a clean placeholder that directs the user back to the
   booking-detail page where the inline UX still works. */
.es-subpage-placeholder {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
    border-radius: var(--r-3);
    margin-top: 24px;
}
.es-subpage-placeholder__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--r-3);
    background: var(--teal-100);
    color: var(--teal-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.es-subpage-placeholder__body { flex: 1; min-width: 0; }
.es-subpage-placeholder__body h2 {
    font-family: var(--display);
    font-size: 22px;
    font-weight: var(--fw-semi);
    color: var(--ink);
    letter-spacing: var(--tr-tight);
    margin: 4px 0 12px;
}
.es-subpage-placeholder__body p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--fg-3);
    margin: 0 0 20px;
    max-width: 64ch;
}

@media (max-width: 600px) {
    .es-subpage-placeholder { flex-direction: column; padding: 22px; }
}


/* ═══════════════════════════════════════════════════════════════
   Rebook & Cancel subpages
   ═══════════════════════════════════════════════════════════════ */

/* ── Rebook host: server-rendered shell, JS fills it ────────────── */
.es-bk-rebook-host {
    margin-top: 24px;
}
.es-bk-rebook-host__skel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 80px 32px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    font-family: var(--mono);
    font-size: 13px;
    color: var(--fg-3);
}
.es-bk-rebook-host__skel i { color: var(--teal); }

.es-bk-rebook__noscript {
    margin-top: 16px;
    padding: 16px 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--r-2);
    color: #92400e;
    font-size: 13px;
}
.es-bk-rebook__noscript a { color: var(--petrol); text-decoration: underline; margin-left: 8px; }

/* ── Cancel confirmation page (server-rendered) ─────────────────── */
.es-bk-cancel {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header with warning icon + heading */
.es-bk-cancel__head {
    display: flex;
    gap: 20px;
    padding: 24px 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid #ef4444;
    border-radius: var(--r-3);
    align-items: flex-start;
}
.es-bk-cancel[data-can-cancel="0"] .es-bk-cancel__head {
    border-left-color: var(--line);
    background: var(--canvas);
}
.es-bk-cancel__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--r-3);
    background: #fef2f2;
    color: #991b1b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.es-bk-cancel[data-can-cancel="0"] .es-bk-cancel__icon {
    background: var(--paper);
    color: var(--fg-3);
    border: 1px solid var(--line);
}
.es-bk-cancel__head-body { flex: 1; min-width: 0; }
.es-bk-cancel__head-body h2 {
    margin: 6px 0 10px;
    font-family: var(--display);
    font-size: 26px;
    font-weight: var(--fw-semi);
    color: var(--ink);
    letter-spacing: var(--tr-tight);
}
.es-bk-cancel__head-body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--fg-3);
    max-width: 64ch;
}

/* Booking summary (what gets canceled) */
.es-bk-cancel__summary {
    padding: 22px 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
}
.es-bk-cancel__summary .es-kicker { margin-bottom: 14px; }
.es-bk-cancel__seglist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.es-bk-cancel__seglist li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px dashed var(--line);
}
.es-bk-cancel__seglist li:first-child { border-top: 0; }
.es-bk-cancel__seg-route {
    font-family: var(--display);
    font-size: 15px;
    font-weight: var(--fw-semi);
    color: var(--ink);
    letter-spacing: var(--tr-tight);
}
.es-bk-cancel__seg-date {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg-3);
}

/* Policy details */
.es-bk-cancel__policy {
    padding: 22px 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
}
.es-bk-cancel__policy .es-kicker { margin-bottom: 14px; }
.es-bk-cancel__policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}
.es-bk-cancel__policy-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.es-bk-cancel__policy-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: var(--fg-3);
}
.es-bk-cancel__policy-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: var(--fw-semi);
    color: var(--ink);
}

/* Action buttons */
.es-bk-cancel__actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 8px;
}
.es-btn--danger {
    background: #ef4444;
    color: #fff;
    border: 1px solid #ef4444;
}
.es-btn--danger:hover:not(:disabled) {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.es-bk-cancel__status {
    margin: 0;
    min-height: 20px;
    font-family: var(--mono);
    font-size: 13px;
}
.es-bk-cancel__status.is-loading { color: var(--fg-3); }
.es-bk-cancel__status.is-ok      { color: #065f46; }
.es-bk-cancel__status.is-err     { color: #991b1b; }

@media (max-width: 600px) {
    .es-bk-cancel__head { flex-direction: column; padding: 20px; }
    .es-bk-cancel__summary,
    .es-bk-cancel__policy { padding: 18px; }
    .es-bk-cancel__actions { flex-direction: column-reverse; }
    .es-bk-cancel__actions .es-btn { width: 100%; justify-content: center; }
}


/* ── Rebook segment-picker (?view=rebook ohne explicit instance) ───── */
.es-bk-rebook-picker {
    margin-top: 24px;
    padding: 28px 32px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
}
.es-bk-rebook-picker h2 {
    margin: 6px 0 10px;
    font-family: var(--display);
    font-size: 22px;
    font-weight: var(--fw-semi);
    color: var(--ink);
    letter-spacing: var(--tr-tight);
}
.es-bk-rebook-picker__sub {
    margin: 0 0 22px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--fg-3);
    max-width: 64ch;
}
.es-bk-rebook-picker__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.es-bk-rebook-picker__row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.es-bk-rebook-picker__row--active:hover {
    border-color: var(--petrol-100);
    background: var(--canvas);
    transform: translateY(-1px);
}
/* Non-rebookable rows (fare-blocked OR window-expired) — non-clickable,
   muted. Distinct sub-styles by reason so users can tell apart at a glance:
     --blocked: lock-icon, fare-restriction (permanent)
     --expired: clock-icon, time-window passed (was once possible) */
.es-bk-rebook-picker__row--blocked,
.es-bk-rebook-picker__row--expired {
    opacity: 0.7;
    background: var(--canvas);
    cursor: not-allowed;
}
.es-bk-rebook-picker__row--blocked .es-bk-rebook-picker__route,
.es-bk-rebook-picker__row--expired .es-bk-rebook-picker__route {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--fg-3);
}
/* Expired window gets an amber-tinted terms message to convey "was
   possible, deadline passed" — distinct from grey fare-block. */
.es-bk-rebook-picker__row--expired .es-bk-rebook-picker__terms {
    color: #b45309;
}
.es-bk-rebook-picker__row--expired .es-bk-rebook-picker__arrow {
    color: #b45309;
    opacity: 0.8;
}

.es-bk-rebook-picker__main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.es-bk-rebook-picker__route {
    font-family: var(--display);
    font-size: 15px;
    font-weight: var(--fw-semi);
    color: var(--ink);
    letter-spacing: var(--tr-tight);
}
.es-bk-rebook-picker__date {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--fg-3);
}

/* Per-row meta column: fare-code chip + terms one-liner */
.es-bk-rebook-picker__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.es-bk-rebook-picker__fare {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: var(--r-full);
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--fg-3);
}
.es-bk-rebook-picker__row--blocked .es-bk-rebook-picker__fare {
    background: var(--canvas);
}
.es-bk-rebook-picker__terms {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--fg-3);
    white-space: nowrap;
}
.es-bk-rebook-picker__row--active .es-bk-rebook-picker__terms { color: var(--petrol); }

.es-bk-rebook-picker__arrow {
    color: var(--petrol);
    font-size: 12px;
    opacity: 0.6;
    transition: transform .15s ease, opacity .15s ease;
}
.es-bk-rebook-picker__row--active:hover .es-bk-rebook-picker__arrow {
    opacity: 1;
    transform: translateX(3px);
}
.es-bk-rebook-picker__row--blocked .es-bk-rebook-picker__arrow {
    color: var(--fg-3);
    opacity: 0.6;
}

/* Mixed-fare amber footnote */
.es-bk-rebook-picker__footnote {
    margin: 16px 0 0;
    padding: 12px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 3px solid #d97706;
    border-radius: var(--r-2);
    font-size: 12px;
    line-height: 1.55;
    color: #92400e;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.es-bk-rebook-picker__footnote i { font-size: 13px; margin-top: 1px; flex-shrink: 0; }

@media (max-width: 600px) {
    .es-bk-rebook-picker { padding: 20px; }
    .es-bk-rebook-picker__row {
        grid-template-columns: 1fr auto;
        gap: 12px;
        align-items: start;
    }
    .es-bk-rebook-picker__meta { grid-column: 1 / -1; align-items: flex-start; }
    .es-bk-rebook-picker__arrow { grid-row: 1; }
    .es-bk-rebook-picker__route { grid-area: auto; }
    .es-bk-rebook-picker__date  { grid-area: auto; }
}


/* ── Rebook wizard: sequence-constraint note + filtered-out hint ───── */
.es-bk-rebook__seqnote {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0 16px;
    padding: 10px 14px;
    background: var(--teal-100);
    border: 1px solid var(--teal);
    border-left: 3px solid var(--teal-600);
    border-radius: var(--r-2);
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.55;
    color: var(--teal-600);
}
.es-bk-rebook__seqnote i { font-size: 12px; margin-top: 1px; flex-shrink: 0; }

.es-bk-rebook__filtered-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: -4px 0 10px;
    padding: 6px 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--r-2);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: var(--tr-wide);
    text-transform: uppercase;
    color: #92400e;
}
.es-bk-rebook__filtered-note i { font-size: 10px; }

/* Check-in reversal warning — heavier than filtered-note because it's a
   real impact on the user (boarding pass voiding). Amber-on-amber to match
   "warning" semantics, with body-cased text rather than ALL CAPS. */
.es-bk-rebook__ci-warn {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    padding: 12px 14px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-left: 3px solid #d97706;
    border-radius: var(--r-2);
    font-size: 13px;
    line-height: 1.5;
    color: #78350f;
}
.es-bk-rebook__ci-warn i {
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
    color: #d97706;
}
