@font-face {
  /* Arrows (← → ↗ …) and ✓, which Alyamama does not draw: a 3 KB cut of Noto Sans Math (OFL),
     under the same family name so no text ever falls back to a system font (5 Nov 2026). */
  font-family: 'Alyamama';
  font-style: normal;
  font-weight: 300 900;
  font-display: block;
  src: url(../assets/fonts/asfour-arrows.woff2) format('woff2');
  unicode-range: U+2190-2199, U+2713;
}

@font-face {
  font-family: 'Alyamama';
  font-style: normal;
  font-weight: 300 900;
  font-display: block;
  src: url(../assets/fonts/alyamama-arabic-variable.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'Alyamama';
  font-style: normal;
  font-weight: 300 900;
  font-display: block;
  src: url(../assets/fonts/alyamama-latin-variable.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Alyamama';
  font-style: normal;
  font-weight: 300 900;
  font-display: block;
  src: url(../assets/fonts/alyamama-latin-ext-variable.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0;
}

/* English site font (8 Nov 2026, Ibrahim): Bricolage Grotesque, variable (weight 200-800 + optical size),
   self-hosted from @fontsource-variable/bricolage-grotesque 5.2.8 (OFL, see BricolageGrotesque-OFL.txt).
   Used only on <html lang="en">; Arabic letters and the arrows still come from Alyamama. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../assets/fonts/bricolage-grotesque-latin-variable.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../assets/fonts/bricolage-grotesque-latin-ext-variable.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}




    :root {
      /* Brand colours (off-white #fffffa + pure black #000000 + deep teal) */
      --cream: #fffffa;
      --brown: #000000;
      --teal: #0E363E;
      --sage-teal: #79908C; /* decoration only: NEVER use for text */
      /* Tints made from #fffffa, #000000, and #0E363E */
      --teal-04: #F5F7F4;
      --teal-08: #EBF0EC;
      --teal-15: #D8E0DC;
      --teal-25: #BDD0CA;
      --brown-80: #333333;
      /* Derived helper tokens */
      --teal-hover: #32545B; /* 85% teal + 15% off-white */
      --teal-04-glass: rgba(245, 247, 244, 0.78);
      --card-shadow: 0 8px 24px rgba(14, 54, 62, 0.08);
      --card-shadow-lg: 0 12px 32px rgba(14, 54, 62, 0.14);
      --radius-pill: 999px;
      --space-1: 8px;
      --space-2: 16px;
      --space-3: 24px;
      --space-4: 32px;
      --space-5: 48px;
      --space-6: 64px;
      --space-7: 96px;
      --card-gap: 20px;

      /* moved here from the "local polish system" block (5 Nov) */
      --font-ui: "Alyamama", Tahoma, Arial, sans-serif;
      --font-data: "Alyamama", Tahoma, Arial, sans-serif;
      --text-caption: .8rem;
      --text-small: .875rem;
      --text-body: 1rem;
      --text-button: .94rem;
      --text-section: clamp(1.45rem, 2.4vw, 1.9rem);
      --text-hero: clamp(2rem, 4.4vw, 3.45rem);
      --radius-control: 8px;
      --radius-badge: 4px;
      --radius-card: 16px;
      --height-control: 48px;
      --border-control: 1px solid var(--teal-15);
      --shadow-tool: 0 16px 48px -20px rgba(14,54,62,.28), 0 2px 6px rgba(14,54,62,.04);
      --shadow-content: 0 4px 16px rgba(14,54,62,.04);
      --bird-pattern-tile: url("../assets/img/bird-pattern.svg");
      --arrow-red: var(--teal);
      /* booking buttons (5 Nov): blue, so booking stands out from every other button */
      --book-blue: #1659C7;
      --book-blue-hover: #0F4AA8;
      --book-blue-04: #F1F6FE;
      --book-blue-20: #C9DAF6;
      /* Results + flight popup (UI polish pass, 8 Nov 2026; docs/ui/DESIGN-RULES.md) */
      --text-strong: var(--brown);          /* 21:1 on white */
      --text-muted: var(--brown-80);        /* #333 = 12.6:1 on white, 11.7:1 on --teal-04 */
      --surface: #fff;
      --surface-muted: var(--teal-04);
      --line: var(--teal-15);
      --line-strong: var(--teal-25);
      --backdrop: rgba(6, 26, 30, .55);
      --tap-min: 44px;                      /* every tap target in results and the popup */
      --space-half: 4px;
      --space-1-5: 12px;
      --text-meta: .74rem;                  /* smallest text in results: 12.6 px */
      --radius-chip: 6px;
      --radius-row: 12px;                   /* popup rows: legs, booking options */
      --radius-result: 14px;                /* result card */
      --radius-sheet: 16px;                 /* popup */
      --shadow-result: 0 1px 2px rgba(14, 54, 62, .06), 0 4px 16px rgba(14, 54, 62, .07);
      --shadow-result-hover: 0 2px 4px rgba(14, 54, 62, .08), 0 10px 26px rgba(14, 54, 62, .12);
      --shadow-sheet: 0 24px 60px rgba(6, 26, 30, .35);
      --ease-out: cubic-bezier(.23, 1, .32, 1); /* strong ease-out for every entrance */
      --dur-press: 120ms;                   /* press / hover feedback */
      --dur-exit: 150ms;                    /* exits are faster than entrances */
      --dur-enter: 220ms;                   /* popup, result cards appearing */
      --stagger-step: 30ms;                 /* result cards, max 8 steps */
      /* Focus (9 Nov 2026, docs/ui/DESIGN-RULES.md §5): one ring for the whole site, keyboard only.
         Mouse and touch show the control's own selected/open state instead (border, --teal-04 fill). */
      --focus-ring-width: 2px;
      --focus-ring-color: var(--teal);      /* 13:1 on white and --cream, 12:1 on --teal-04 */
      --focus-ring-offset: 0px;             /* on the control's own edge, same radius, no gap */
      --focus-ring-offset-filled: 2px;      /* dark filled buttons: a 2 px gap so the ring shows */
      --focus-ring: 0 0 0 var(--focus-ring-width) var(--focus-ring-color); /* box-shadow form (cards, SVG shapes) */
    }
    @media (min-width: 768px) {
      :root {
        --card-gap: 24px;
      }
    }
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    html {
      font-family: "Alyamama", Tahoma, Arial, sans-serif;
      font-size: 17px;
      font-weight: 400;
      line-height: 1.8;
      color: var(--brown);
      background-color: var(--cream);
      scroll-behavior: smooth;
    }
    body {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      background-color: var(--cream);
      color: var(--brown);
      line-height: 1.8;
      overflow-x: hidden;
      font-family: "Alyamama", Tahoma, Arial, sans-serif;
      position: relative;
    }
    h1, h2, h3, h4, button, input, select {
      font-family: "Alyamama", Tahoma, Arial, sans-serif;
    }
    h1, h2, h3, h4 {
      line-height: 1.35;
      font-weight: 800;
      color: var(--brown);
    }
    a {
      color: var(--teal);
      text-decoration: none;
    }
    a:hover {
      color: var(--teal-hover);
    }
    /* Focus: the one site-wide rule lives near the end of the polish block (search "Focus, one rule"). */
    .ltr-num, bdi {
      direction: ltr;
      unicode-bidi: isolate;
      display: inline-block;
      font-variant-numeric: tabular-nums;
    }
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
    }
    .is-hidden {
      display: none !important;
    }
    .container {
      width: 100%;
      max-width: 1180px;
      margin-inline: auto;
      padding-inline: var(--space-2);
    }
    @media (min-width: 768px) {
      .container {
        padding-inline: var(--space-4);
      }
    }
    /* Small Airport Code Badge: perfectly centred, tabular-nums */
    .code-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background-color: var(--teal-08);
      border: 1px solid var(--teal-15);
      color: var(--brown);
      font-weight: 800;
      font-size: 0.78rem;
      line-height: 1;
      padding-block: 5px;
      padding-inline: 7px;
      border-radius: 6px;
      margin-inline-start: 4px;
      flex-shrink: 0;
      font-variant-numeric: tabular-nums;
    }
    /* Header & Scroll Shrink */
    .site-header {
      background-color: rgba(255, 255, 250, 0.86);
      backdrop-filter: blur(8px);
      border-block-end: 1px solid transparent;
      position: sticky;
      inset-block-start: 0;
      z-index: 50;
      transition: background-color 0.2s ease, border-color 0.2s ease;
    }
    .site-header.is-scrolled {
      background-color: var(--cream);
      border-block-end-color: var(--teal-15);
      box-shadow: var(--card-shadow);
    }
    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 60px;
      padding-block: 6px;
      gap: var(--space-1);
      transition: min-height 0.2s ease, padding-block 0.2s ease;
    }
    .site-header.is-scrolled .header-inner {
      min-height: 52px;
      padding-block: 4px;
    }
    .brand-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--brown);
      padding-block: 2px;
      flex-shrink: 0;
    }
    .brand-logo-img {
      height: 42px;
      width: auto;
      max-width: 165px;
      object-fit: contain;
      display: block;
      border-radius: 8px;
      transition: height 0.22s ease, transform 0.22s ease;
    }
    @media (min-width: 768px) {
      .brand-logo-img {
        height: 46px;
      }
    }
    .site-header.is-scrolled .brand-logo-img {
      height: 38px;
    }
    .main-nav {
      display: none;
      align-items: center;
      gap: 4px;
    }
    .nav-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      line-height: 1;
      padding-block: 11px;
      padding-inline: 13px;
      border-radius: var(--radius-pill);
      color: var(--brown);
      font-weight: 600;
      font-size: 0.92rem;
      transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    }
    .nav-link:hover {
      background-color: var(--teal-08);
      color: var(--teal);
    }
    .nav-link.active {
      background-color: var(--teal-08);
      color: var(--teal);
      font-weight: 800;
    }
    .header-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }
    /* Currency Switcher: custom chevron 8px next to text, width: fit-content, appearance: none, centred */
    .currency-select {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: fit-content;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      line-height: 1;
      padding-block: 11px;
      padding-inline: 12px 28px;
      border-radius: var(--radius-pill);
      border: 1px solid var(--teal-15);
      background-color: var(--teal-08);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 10px center;
      background-size: 12px 12px;
      color: var(--brown);
      font-weight: 800;
      font-size: 0.86rem;
      font-variant-numeric: tabular-nums;
      cursor: pointer;
    }
    .currency-select:hover {
      border-color: var(--teal);
    }
    .header-saved-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      line-height: 1;
      padding-block: 9px;
      padding-inline: 12px;
      border-radius: var(--radius-pill);
      border: 1px solid var(--teal-15);
      background-color: var(--cream);
      color: var(--teal);
      font-weight: 700;
      font-size: 0.88rem;
      cursor: pointer;
      transition: background-color 0.15s ease, transform 0.15s ease;
    }
    .header-saved-btn:hover {
      background-color: var(--teal-08);
    }
    /* Counter circle: fixed equal width and height, perfectly centred number */
    .saved-count-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      padding: 0;
      border-radius: 50%;
      background-color: var(--teal);
      color: var(--cream);
      font-size: 0.78rem;
      font-weight: 800;
      line-height: 1;
      font-variant-numeric: tabular-nums;
      flex-shrink: 0;
    }
    .signin-header-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      line-height: 1;
      padding-block: 11px;
      padding-inline: 13px;
      border-radius: var(--radius-pill);
      border: 1px solid var(--teal);
      background-color: var(--cream);
      color: var(--teal);
      font-weight: 700;
      font-size: 0.88rem;
      cursor: pointer;
      transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    }
    .signin-header-btn:hover {
      background-color: var(--teal);
      color: var(--cream);
    }
    .header-btn-label-desktop {
      display: none;
    }
    @media (min-width: 640px) {
      .header-btn-label-desktop {
        display: inline;
      }
    }
    .whatsapp-header-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      line-height: 1;
      padding-block: 11px;
      padding-inline: 12px;
      border-radius: var(--radius-pill);
      border: 1px solid var(--teal);
      background-color: var(--cream);
      color: var(--teal);
      font-weight: 700;
      font-size: 0.88rem;
      transition: background-color 0.15s ease, color 0.15s ease;
    }
    .whatsapp-header-btn:hover {
      background-color: var(--teal);
      color: var(--cream);
    }
    .whatsapp-label-desktop {
      display: none;
    }
    .menu-toggle-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      padding: 0;
      line-height: 1;
      border-radius: var(--radius-card);
      border: 1px solid var(--teal-15);
      background-color: var(--cream);
      color: var(--brown);
      cursor: pointer;
    }
    .mobile-nav {
      display: none;
      flex-direction: column;
      gap: 6px;
      padding-block: var(--space-2);
      padding-inline: var(--space-2);
      background-color: var(--teal-04);
      border-block-start: 1px solid var(--teal-15);
    }
    .mobile-nav.open {
      display: flex;
    }
    .mobile-nav .nav-link {
      justify-content: flex-start;
    }
    .mobile-nav-divider {
      height: 1px;
      background-color: var(--teal-15);
      margin-block: 6px;
    }
    @media (min-width: 980px) {
      .main-nav {
        display: flex;
      }
      .menu-toggle-btn {
        display: none;
      }
      .mobile-nav.open {
        display: none;
      }
      .whatsapp-label-desktop {
        display: inline;
      }
    }
    /* Main & Views */
    main {
      flex: 1;
      position: relative;
      z-index: 1;
    }
    .view-section {
      display: none;
      opacity: 0;
    }
    .view-section.active {
      display: block;
      animation: viewFade 0.22s ease forwards;
    }
    @keyframes viewFade {
      from { opacity: 0; transform: translateY(4px); }
      to { opacity: 1; transform: none; }
    }
    /* Section 3: Scroll Animations & Button/Card Press + Hover Lift */
    .reveal-on-scroll {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.45s ease-out, transform 0.45s ease-out;
      transition-delay: var(--stagger-delay, 0ms);
    }
    .reveal-on-scroll.is-visible {
      opacity: 1;
      transform: none;
    }
    .btn-primary,
    .btn-secondary,
    .pill-tab,
    .header-saved-btn,
    .signin-header-btn,
    .bookmark-btn,
    .route-card,
    .flight-card,
    .deal-card,
    .why-card,
    .info-card {
      transition: transform 0.16s ease-out, opacity 0.16s ease-out, background-color 0.15s ease, border-color 0.15s ease;
    }
    .btn-primary:active:not(:disabled),
    .btn-secondary:active:not(:disabled),
    .pill-tab:active:not(:disabled),
    .header-saved-btn:active,
    .signin-header-btn:active,
    .bookmark-btn:active,
    .route-card:active,
    .deal-card:active {
      transform: scale(0.98);
    }
    @media (hover: hover) {
      .btn-primary:hover:not(:disabled),
      .btn-secondary:hover:not(:disabled),
      .header-saved-btn:hover,
      .signin-header-btn:hover,
      .route-card:hover,
      .flight-card:hover,
      .deal-card:hover,
      .why-card:hover,
      .info-card:hover {
        transform: translateY(-2px);
      }
      .btn-primary:active:not(:disabled),
      .btn-secondary:active:not(:disabled),
      .route-card:active,
      .flight-card:active,
      .deal-card:active {
        transform: scale(0.98);
      }
    }
    @media (prefers-reduced-motion: reduce) {
      .view-section.active {
        animation: none;
        opacity: 1;
      }
      .reveal-on-scroll,
      .reveal-on-scroll.is-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
      }
      .btn-primary,
      .btn-secondary,
      .pill-tab,
      .header-saved-btn,
      .signin-header-btn,
      .bookmark-btn,
      .route-card,
      .flight-card,
      .deal-card,
      .why-card,
      .info-card,
      .brand-logo-img {
        transition: none !important;
        transform: none !important;
      }
      html {
        scroll-behavior: auto;
      }
      .spinner {
        animation: none;
      }
    }
    /* Hero Band (ultra-compact on mobile & desktop so search bar is immediately accessible without scrolling) */
    .hero-band {
      position: relative;
      background-color: var(--teal-04-glass);
      padding-block: 10px 16px;
      border-block-end: 1px solid var(--teal-15);
      overflow: visible;
    }
    @media (min-width: 860px) {
      .hero-band {
        padding-block: 12px 20px;
      }
    }
    .hero-content {
      position: relative;
      z-index: 2;
    }
    .hero-header-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 6px;
      align-items: center;
      margin-block-end: 8px;
    }
    @media (min-width: 860px) {
      .hero-header-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
        gap: 16px;
        margin-block-end: 10px;
      }
    }
    .hero-copy-col {
      min-width: 0;
      position: relative;
      z-index: 4;
    }
    .hero-top-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-block-end: 0;
    }
    .hero-heading-wrap {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 2px;
    }
    .greeting-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background-color: var(--teal-08);
      border: 1px solid var(--teal-15);
      color: var(--brown);
      font-weight: 700;
      font-size: 0.84rem;
      line-height: 1;
      padding-block: 7px;
      padding-inline: 12px;
      border-radius: var(--radius-pill);
    }
    .hero-title {
      font-family: "Alyamama", Tahoma, Arial, sans-serif;
      margin: 0;
      color: var(--brown);
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 2px;
      line-height: 1.25;
    }
    .hero-line-welcome {
      display: block;
      font-family: "Alyamama", Tahoma, Arial, sans-serif;
      font-weight: 500;
      font-size: clamp(1.25rem, 2.2vw, 1.65rem);
      color: var(--brown);
      letter-spacing: normal;
    }
    .hero-line-main {
      display: block;
      font-family: "Alyamama", Tahoma, Arial, sans-serif;
      font-weight: 700;
      font-size: clamp(1.65rem, 3.1vw, 2.35rem);
      color: var(--brown);
      letter-spacing: normal;
    }
    /* Layered Hero Illustration (compact height so mobile users reach the search bar without scrolling) */
    .hero-illustration {
      position: relative;
      width: 100%;
      height: 112px;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      pointer-events: none;
      user-select: none;
      z-index: 1;
      overflow: visible;
    }
    @media (min-width: 860px) {
      .hero-illustration {
        height: 148px;
      }
    }
    .hero-illustration img.has-cream-bg {
      mix-blend-mode: multiply;
    }
    /* Cloud layer behind family: slow soft breathing wobble (scale 1 to 1.04, a few px drift, +-1deg, 7s ease-in-out infinite) */
    .hero-cloud-layer {
      position: absolute;
      inset-block-end: 12px;
      inset-inline-start: 50%;
      width: clamp(155px, 54%, 250px);
      height: auto;
      z-index: 1;
      opacity: 0.94;
      will-change: transform;
      animation: heroCloudBreathe 7s ease-in-out infinite;
    }
    @keyframes heroCloudBreathe {
      0%, 100% {
        transform: translate3d(50%, 0, 0) scale(1) rotate(-0.8deg);
      }
      50% {
        transform: translate3d(calc(50% + 4px), -4px, 0) scale(1.04) rotate(1deg);
      }
    }
    /* Soft ground shadow ellipse under family's feet (#0E363E at ~18% opacity) */
    .hero-ground-shadow {
      position: absolute;
      inset-block-end: 3px;
      inset-inline-start: 50%;
      transform: translateX(50%);
      width: clamp(160px, 60%, 260px);
      height: 16px;
      border-radius: 50%;
      background-color: rgba(14, 54, 62, 0.18);
      filter: blur(7px);
      z-index: 2;
    }
    /* Static family layer with subtle CSS drop-shadow */
    .hero-family-img {
      position: relative;
      z-index: 3;
      height: 104px;
      width: auto;
      max-width: 100%;
      object-fit: contain;
      display: block;
      filter: drop-shadow(0 5px 9px rgba(14, 54, 62, 0.12));
    }
    @media (min-width: 860px) {
      .hero-family-img {
        height: 138px;
      }
    }
    /* Pause animations when hero is off-screen */
    .hero-illustration.is-offscreen .hero-cloud-layer {
      animation-play-state: paused !important;
      will-change: auto !important;
    }
    @media (prefers-reduced-motion: reduce) {
      .hero-cloud-layer {
        animation: none !important;
        will-change: auto !important;
      }
      .hero-cloud-layer {
        transform: translate3d(50%, 0, 0) scale(1);
      }
    }
    /* Solid Cream Search Card with Full City Names & Single Date Button */
    .search-card {
      background-color: var(--cream);
      border: 1px solid var(--teal-15);
      border-radius: var(--radius-card);
      padding: 16px 18px;
      box-shadow: var(--card-shadow);
      max-width: 100%;
    }
    @media (min-width: 768px) {
      .search-card {
        padding: 18px 22px;
      }
    }
    .search-card-top {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-block-end: 14px;
    }
    .trip-type-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .pill-tab {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      padding-block: 11px;
      padding-inline: 16px;
      border-radius: var(--radius-pill);
      border: 1px solid var(--teal-15);
      background-color: var(--teal-08);
      color: var(--brown);
      font-weight: 700;
      font-size: 0.9rem;
      cursor: pointer;
    }
    .pill-tab:hover {
      border-color: var(--teal);
    }
    .pill-tab.active {
      background-color: var(--teal);
      border-color: var(--teal);
      color: var(--cream);
      font-weight: 800;
    }
    .search-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 12px;
      align-items: end;
      position: relative;
      min-width: 0;
    }
    .search-grid > * {
      min-width: 0;
    }
    .route-pair-wrap {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
      align-items: center;
      min-width: 0;
      position: relative;
    }
    .route-pair-wrap > * {
      min-width: 0;
    }
    /* Integrated Circular Swap Button overlapping From/To fields */
    .swap-btn {
      width: 66px;
      height: 66px;
      padding: 0;
      line-height: 1;
      border-radius: 50%;
      /* 54px teal circle; the 6px card-colour ring cuts into both fields. */
      border: 6px solid var(--cream);
      background-color: var(--teal);
      color: var(--cream);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 3px 10px rgba(14, 54, 62, 0.18);
      transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
      justify-self: center;
      position: absolute;
      left: calc(50% - 33px);
      top: calc((100% + 0.84rem * 1.2 + 6px) / 2 - 33px);
      margin: 0;
      z-index: 5;
      flex-shrink: 0;
    }
    .swap-btn svg {
      color: var(--cream);
      stroke: var(--cream);
      transform: rotate(calc(var(--swap-spin, 0deg) + 90deg));
      transition: transform 0.52s cubic-bezier(0.34, 1.56, 0.64, 1);
      will-change: transform;
    }
    .swap-btn.is-spinning svg {
      transform: rotate(calc(var(--swap-spin, 0deg) + 450deg));
    }
    .swap-btn:hover {
      background-color: var(--teal-hover);
      box-shadow: 0 5px 14px rgba(14, 54, 62, 0.26);
    }
    .swap-btn:active {
      transform: scale(0.94);
    }
    .arrow-accent {
      color: var(--arrow-red);
      font-weight: 800;
      display: inline-block;
    }
    .search-submit-btn {
      width: 100%;
    }
    @media (min-width: 640px) {
      .search-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
      }
      .route-pair-wrap {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
        gap: 0;
        align-items: end;
      }
      .swap-btn {
        justify-self: center;
        top: auto;
        bottom: -10px;
        margin: 0;
      }
      #from-field-group { grid-column: 1; }
      #to-field-group { grid-column: 3; }
      .swap-btn svg {
        transform: rotate(var(--swap-spin, 0deg));
      }
      .swap-btn.is-spinning svg {
        transform: rotate(calc(var(--swap-spin, 0deg) + 360deg));
      }
      .search-submit-btn {
        grid-column: 1 / -1;
        width: 100%;
      }
    }
    @media (min-width: 1100px) {
      .search-grid {
        grid-template-columns: minmax(440px, 2.8fr) minmax(130px, 0.9fr) minmax(130px, 0.9fr) minmax(140px, 0.95fr) auto;
        gap: 10px;
      }
      .route-pair-wrap {
        grid-column: auto;
        grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
      }
      .search-submit-btn {
        grid-column: auto;
        width: auto;
      }
    }
    .field-group {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 6px;
      min-width: 0;
    }
    .field-label-row {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 6px;
      min-width: 0;
    }
    .field-label {
      font-size: 0.84rem;
      font-weight: 700;
      line-height: 1.2;
      color: var(--brown);
      white-space: nowrap;
    }
    .field-control {
      width: 100%;
      min-width: 0;
      min-height: 46px;
      padding-block: 10px;
      padding-inline: 12px;
      border-radius: var(--radius-card);
      border: 1px solid var(--teal-15);
      background-color: var(--teal-08);
      color: var(--brown);
      font-size: 0.94rem;
      font-weight: 700;
      line-height: 1.2;
      text-align: start;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      cursor: pointer;
    }
    .field-control:hover:not(:disabled) {
      border-color: var(--teal);
    }
    .field-control:disabled {
      opacity: 0.55;
      border-color: var(--teal-25);
      cursor: not-allowed;
    }
    /* Full city names: NEVER truncate with ellipsis */
    .field-value-full {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      white-space: nowrap;
      flex: 1;
    }
    .city-name-text {
      white-space: nowrap;
      font-weight: 700;
    }
    .field-chevron {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--brown-80);
      font-size: 0.82rem;
      line-height: 1;
      flex-shrink: 0;
    }
    /* Date Trigger Button (single centered DD/MM/YYYY display + hidden native date input) */
    .date-picker-btn {
      justify-content: space-between;
      font-variant-numeric: tabular-nums;
    }
    .date-btn-text {
      font-weight: 700;
      font-size: 0.94rem;
      line-height: 1;
      font-variant-numeric: tabular-nums;
      color: var(--brown);
    }
    .date-btn-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--teal);
      flex-shrink: 0;
    }
    .sr-only-date-input {
      position: absolute;
      inset-block-end: 0;
      inset-inline-start: 0;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
      border: 0;
      padding: 0;
      margin: 0;
    }
    .search-error-msg {
      margin-block-start: 12px;
      padding-block: 10px;
      padding-inline: 14px;
      border-radius: var(--radius-card);
      background-color: var(--teal-08);
      border: 2px solid var(--teal);
      color: var(--brown);
      font-size: 0.9rem;
      font-weight: 700;
    }
    /* Dropdown panels */
    .dropdown-panel {
      display: none;
      position: absolute;
      inset-block-start: calc(100% + 6px);
      inset-inline-start: 0;
      width: 100%;
      min-width: min(270px, calc(100vw - 32px));
      max-width: calc(100vw - 32px);
      max-height: 310px;
      overflow-y: auto;
      background-color: var(--cream);
      border: 1px solid var(--teal-15);
      border-radius: var(--radius-card);
      z-index: 60;
      padding: var(--space-1);
      box-shadow: var(--card-shadow-lg);
    }
    .dropdown-panel.open {
      display: block;
    }
    .airport-option {
      width: 100%;
      min-height: 46px;
      padding-block: 8px;
      padding-inline: 10px;
      border: none;
      background: transparent;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      color: var(--brown);
      font-size: 0.92rem;
      cursor: pointer;
      text-align: start;
    }
    .airport-option:hover,
    .airport-option.selected,
    .airport-option.kb-focus {
      background-color: var(--teal-08);
      font-weight: 700;
    }
    .airport-option-start {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      flex-wrap: wrap;
    }
    .pax-dropdown-note {
      padding: 6px 10px 8px;
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--brown-80);
      border-block-end: 1px solid var(--teal-15);
      font-variant-numeric: tabular-nums;
    }
    .pax-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-block: 12px;
      padding-inline: 6px;
      border-block-end: 1px solid var(--teal-15);
    }
    .pax-row:last-of-type {
      border-block-end: none;
      padding-block-end: 6px;
    }
    .pax-info-title {
      font-weight: 700;
      font-size: 0.92rem;
      color: var(--brown);
    }
    .pax-info-sub {
      font-size: 0.78rem;
      color: var(--brown-80);
      font-variant-numeric: tabular-nums;
    }
    .stepper-controls {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .stepper-btn {
      width: 38px;
      height: 38px;
      padding: 0;
      line-height: 1;
      border-radius: 50%;
      border: 1px solid var(--teal-15);
      background-color: var(--teal-08);
      color: var(--brown);
      font-size: 1.15rem;
      font-weight: 800;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .stepper-btn:hover:not(:disabled) {
      background-color: var(--teal);
      color: var(--cream);
    }
    .stepper-btn:disabled {
      opacity: 0.4;
      border-color: var(--teal-25);
      cursor: not-allowed;
    }
    .stepper-val {
      min-width: 22px;
      text-align: center;
      font-weight: 800;
      font-size: 1rem;
      line-height: 1;
      color: var(--brown);
      font-variant-numeric: tabular-nums;
    }
    .btn-primary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      line-height: 1;
      padding-block: 14px;
      padding-inline: 22px;
      border-radius: var(--radius-pill);
      border: none;
      background-color: var(--teal);
      color: var(--cream);
      font-size: 0.98rem;
      font-weight: 700;
      cursor: pointer;
      white-space: nowrap;
    }
    .btn-primary:hover:not(:disabled) {
      background-color: var(--teal-hover);
      color: var(--cream);
    }
    .btn-primary:disabled {
      opacity: 0.7;
      background-color: var(--teal-25);
      color: var(--brown);
      cursor: wait;
    }
    .btn-secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      line-height: 1;
      padding-block: 12px;
      padding-inline: 16px;
      border-radius: var(--radius-pill);
      border: 1px solid var(--teal-15);
      background-color: var(--cream);
      color: var(--brown);
      font-size: 0.92rem;
      font-weight: 700;
      cursor: pointer;
    }
    .btn-secondary:hover {
      background-color: var(--teal-08);
      border-color: var(--teal);
      color: var(--teal);
    }
    .family-hint {
      font-size: 0.85rem;
      color: var(--brown-80);
      font-weight: 600;
    }
    /* Sections: balanced vertical spacing */
    .section-block {
      padding-block: 44px;
      background-color: transparent;
    }
    .section-block.section-alt {
      background-color: var(--teal-04-glass);
      border-block-start: 1px solid var(--teal-15);
      border-block-end: 1px solid var(--teal-15);
    }
    @media (min-width: 768px) {
      .section-block {
        padding-block: 56px;
      }
    }
    .section-header {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      justify-content: space-between;
      gap: var(--space-2);
      margin-block-end: 24px;
    }
    .section-title {
      font-size: 1.45rem;
      margin-block-end: 4px;
    }
    .section-desc {
      color: var(--brown-80);
      font-size: 0.95rem;
    }
    /* Bullet lists inside cards */
    .card-bullets {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-block-start: 4px;
    }
    .card-bullets li {
      position: relative;
      padding-inline-start: 18px;
      font-size: 0.94rem;
      color: var(--brown);
    }
    .card-bullets li::before {
      content: "•";
      position: absolute;
      inset-inline-start: 2px;
      color: var(--teal);
      font-weight: 800;
    }
    /* Popular Routes Bento Grid */
    .trip-filter-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .routes-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--card-gap);
    }
    @media (min-width: 640px) {
      .routes-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (min-width: 1024px) {
      .routes-grid {
        grid-template-columns: repeat(12, 1fr);
      }
      .route-card.span-6 {
        grid-column: span 6;
      }
      .route-card.span-4 {
        grid-column: span 4;
      }
    }
    .route-card {
      position: relative;
      background-color: var(--cream);
      border: 1px solid var(--teal-15);
      border-radius: var(--radius-card);
      box-shadow: var(--card-shadow);
      overflow: hidden;
      text-align: start;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 0;
    }
    .route-card:hover {
      border-color: var(--teal);
    }
    .route-card-main-btn {
      width: 100%;
      border: none;
      background: transparent;
      text-align: start;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      flex: 1;
      padding: 0;
      color: inherit;
    }
    .route-landmark-banner {
      width: 100%;
      aspect-ratio: 16 / 10;
      background-color: var(--teal-08);
      border-start-start-radius: 12px;
      border-start-end-radius: 12px;
      border-block-end: 1px solid var(--teal-15);
      position: relative;
      overflow: hidden;
    }
    .route-landmark-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-start-start-radius: 12px;
      border-start-end-radius: 12px;
      display: block;
      position: relative;
      z-index: 1;
      transition: transform 0.35s ease;
    }
    .route-landmark-banner::after {
      content: "";
      position: absolute;
      inset-block: 0;
      inset-inline: 0;
      background: linear-gradient(to top, rgba(14, 54, 62, 0.35) 0%, rgba(14, 54, 62, 0) 58%);
      pointer-events: none;
      z-index: 2;
    }
    @media (hover: hover) {
      .route-card:hover .route-landmark-img {
        transform: scale(1.04);
      }
    }
    .route-photo-fallback {
      position: absolute;
      inset-block: 0;
      inset-inline: 0;
      background-color: var(--teal-08);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 16px;
      text-align: center;
      z-index: 0;
    }
    .route-fallback-city {
      font-size: 1.55rem;
      font-weight: 800;
      color: var(--brown);
      line-height: 1.25;
    }
    .route-photo-credit {
      position: absolute;
      inset-block-end: 8px;
      inset-inline-end: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--brown-80);
      background-color: rgba(255, 255, 250, 0.88);
      padding-block: 4px;
      padding-inline: 8px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 600;
      line-height: 1;
      z-index: 3;
      pointer-events: none;
    }
    .route-tag-overlay {
      position: absolute;
      inset-block-start: 10px;
      inset-inline-start: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background-color: var(--teal);
      color: var(--cream);
      font-size: 0.78rem;
      font-weight: 800;
      line-height: 1;
      padding-block: 6px;
      padding-inline: 11px;
      border-radius: var(--radius-pill);
      z-index: 3;
    }
    /* Heart / Bookmark Button on Route & Flight Cards */
    .bookmark-btn {
      width: 40px;
      height: 40px;
      padding: 0;
      line-height: 1;
      border-radius: 50%;
      border: 1px solid var(--teal-15);
      background-color: var(--cream);
      color: var(--teal);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: var(--card-shadow);
      z-index: 4;
      flex-shrink: 0;
    }
    .bookmark-btn:hover {
      background-color: var(--teal-08);
      border-color: var(--teal);
    }
    .bookmark-btn.is-saved {
      background-color: var(--teal);
      border-color: var(--teal);
      color: var(--cream);
    }
    .route-card .bookmark-btn {
      position: absolute;
      inset-block-start: 10px;
      inset-inline-end: 10px;
    }
    .route-body {
      padding: var(--card-gap);
      display: flex;
      flex-direction: column;
      gap: 16px;
      flex: 1;
      justify-content: space-between;
      width: 100%;
    }
    .route-cities {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      font-weight: 800;
      font-size: 1.08rem;
      color: var(--brown);
    }
    .route-codes {
      font-size: 0.88rem;
      color: var(--brown-80);
      font-weight: 600;
      margin-block-start: 6px;
    }
    .route-price-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-block-start: 1px solid var(--teal-15);
      padding-block-start: 14px;
    }
    .price-highlight {
      font-size: 1.25rem;
      font-weight: 800;
      color: var(--teal);
      font-variant-numeric: tabular-nums;
    }
    /* Dark Teal Band Near Bottom ("أسعار تبدأ من"): 56px top and bottom padding */
    .missed-deals-band {
      background-color: var(--teal);
      color: var(--cream);
      padding-block: 56px;
      border-block-start: 4px solid var(--sage-teal);
    }
    .missed-deals-header {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-block-end: 24px;
    }
    .missed-deals-band .greeting-pill {
      background-color: rgba(255, 255, 250, 0.14);
      border-color: rgba(255, 255, 250, 0.28);
      color: var(--cream);
    }
    .missed-deals-title {
      color: var(--cream);
      font-size: 1.45rem;
      margin-block-start: 6px;
    }
    .missed-deals-sub {
      color: var(--teal-08);
      font-size: 0.92rem;
    }
    .deals-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--card-gap);
    }
    @media (min-width: 768px) {
      .deals-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }
    .deal-card {
      background-color: var(--cream);
      color: var(--brown);
      border: 1px solid var(--teal-15);
      border-radius: var(--radius-card);
      padding: var(--card-gap);
      box-shadow: var(--card-shadow);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 16px;
    }
    .deal-badge-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .deal-save-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background-color: var(--teal-08);
      border: 1px solid var(--teal-15);
      color: var(--brown);
      font-weight: 800;
      font-size: 0.8rem;
      line-height: 1;
      padding-block: 6px;
      padding-inline: 10px;
      border-radius: var(--radius-pill);
    }
    .deal-route-title {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
      font-size: 1.06rem;
      font-weight: 800;
      color: var(--brown);
      margin-block-start: 10px;
    }
    .deal-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      border-block-start: 1px solid var(--teal-15);
      padding-block-start: 14px;
    }
    /* WhatsApp Community Band */
    .wa-community-band {
      padding-block: 40px;
      background-color: var(--teal-04-glass);
      border-block-start: 1px solid var(--teal-15);
    }
    .wa-community-card {
      background-color: var(--cream);
      border: 1px solid var(--teal-15);
      border-radius: var(--radius-card);
      padding: 24px;
      box-shadow: var(--card-shadow);
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-3);
    }
    .wa-community-bullets {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      margin-block-start: 10px;
      list-style: none;
    }
    .wa-community-bullets li {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background-color: var(--teal-08);
      border: 1px solid var(--teal-15);
      color: var(--brown);
      font-weight: 700;
      font-size: 0.86rem;
      line-height: 1;
      padding-block: 7px;
      padding-inline: 12px;
      border-radius: var(--radius-pill);
    }
    /* Why Asfour Grid */
    .why-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--card-gap);
    }
    @media (min-width: 768px) {
      .why-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }
    .why-card {
      background-color: var(--cream);
      border: 1px solid var(--teal-15);
      border-radius: var(--radius-card);
      padding: var(--card-gap);
      box-shadow: var(--card-shadow);
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .why-icon {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background-color: var(--teal-08);
      border: 1px solid var(--teal-15);
      color: var(--teal);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }
    .why-icon .icon-belly-fill {
      fill: var(--sage-teal);
      opacity: 0.35;
    }
    /* Results View */
    .summary-bar {
      background-color: var(--teal-04-glass);
      border-block-end: 1px solid var(--teal-15);
      padding-block: 14px;
    }
    .summary-inner {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-2);
    }
    .summary-details {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      font-weight: 700;
    }
    .chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background-color: var(--teal-08);
      border: 1px solid var(--teal-15);
      color: var(--brown);
      line-height: 1;
      padding-block: 7px;
      padding-inline: 12px;
      border-radius: var(--radius-pill);
      font-size: 0.86rem;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
    }
    .sort-tabs {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-1);
      margin-block: 20px;
    }
    .sort-tabs-group {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-1);
    }
    .flights-list {
      display: flex;
      flex-direction: column;
      gap: var(--card-gap);
    }
    .flight-card {
      background-color: var(--cream);
      border: 1px solid var(--teal-15);
      border-radius: var(--radius-card);
      padding: var(--card-gap);
      box-shadow: var(--card-shadow);
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--card-gap);
      align-items: center;
    }
    @media (min-width: 860px) {
      .flight-card {
        grid-template-columns: 1.2fr 2fr 1.2fr auto;
      }
    }
    .flight-card.beirut-special {
      background-color: var(--cream);
      border: 2px solid var(--teal);
      color: var(--brown);
    }
    .beirut-banner {
      grid-column: 1 / -1;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding-block-end: 14px;
      border-block-end: 1px solid var(--teal-15);
      font-weight: 800;
      color: var(--brown);
    }
    .airline-title {
      font-weight: 800;
      font-size: 1.06rem;
      color: var(--brown);
    }
    .airline-sub {
      font-size: 0.86rem;
      color: var(--brown-80);
      font-variant-numeric: tabular-nums;
    }
    .timeline-box {
      display: flex;
      align-items: center;
      gap: var(--space-2);
    }
    .time-col {
      text-align: start;
    }
    .time-big {
      font-size: 1.2rem;
      font-weight: 800;
      color: var(--brown);
      font-variant-numeric: tabular-nums;
    }
    .duration-track {
      flex: 1;
      text-align: center;
      padding-inline: 8px;
    }
    .duration-line {
      height: 3px;
      background-color: var(--sage-teal);
      border-radius: 99px;
      margin-block: 6px;
      position: relative;
    }
    .duration-line::after {
      content: "";
      position: absolute;
      inset-block-start: -3px;
      inset-inline-end: 0;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background-color: var(--teal);
    }
    .baggage-meta {
      display: flex;
      flex-direction: column;
      gap: 6px;
      font-size: 0.9rem;
      color: var(--brown);
      font-variant-numeric: tabular-nums;
    }
    .flight-cta-col {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
      min-width: 175px;
    }
    .flight-cta-top-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .flight-price {
      font-size: 1.35rem;
      font-weight: 800;
      color: var(--teal);
      text-align: end;
      font-variant-numeric: tabular-nums;
    }
    /* Info, Baggage, Passport, About, Legal, Handoff, Saved */
    .info-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--card-gap);
    }
    @media (min-width: 768px) {
      .info-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    .info-card {
      background-color: var(--cream);
      border: 1px solid var(--teal-15);
      border-radius: var(--radius-card);
      padding: var(--card-gap);
      box-shadow: var(--card-shadow);
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .card-divider-top {
      border-block-start: 1px solid var(--teal-15);
      padding-block-start: 14px;
      margin-block-start: 4px;
    }
    .disclaimer-box {
      background-color: var(--teal-08);
      border: 1px solid var(--teal-15);
      color: var(--brown);
      border-radius: var(--radius-card);
      padding: 16px 20px;
      margin-block-end: 24px;
      font-weight: 700;
    }
    .state-box {
      background-color: var(--cream);
      border: 2px dashed var(--teal-25);
      border-radius: var(--radius-card);
      padding: var(--space-4);
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      box-shadow: var(--card-shadow);
    }
    .saved-card-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin-block-start: 8px;
      padding-block-start: 14px;
      border-block-start: 1px solid var(--teal-15);
    }
    .founders-row {
      display: flex;
      flex-wrap: wrap;
      gap: var(--card-gap);
      margin-block-end: 24px;
    }
    .founder-item {
      display: flex;
      align-items: center;
      gap: var(--card-gap);
      background-color: var(--cream);
      padding: var(--card-gap);
      border-radius: var(--radius-card);
      border: 1px solid var(--teal-15);
      box-shadow: var(--card-shadow);
      flex: 1;
      min-width: 260px;
    }
    .avatar-circle {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background-color: var(--teal-08);
      color: var(--teal);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 1.15rem;
      line-height: 1;
      flex-shrink: 0;
      border: 2px solid var(--teal);
      overflow: hidden;
    }
    .avatar-circle img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .handoff-box {
      max-width: 600px;
      margin-inline: auto;
      background-color: var(--cream);
      border: 1px solid var(--teal-15);
      border-radius: var(--radius-card);
      padding: var(--space-4);
      box-shadow: var(--card-shadow);
      text-align: center;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .handoff-progress-bar {
      width: 100%;
      height: 6px;
      background-color: var(--teal-08);
      border-radius: var(--radius-pill);
      overflow: hidden;
    }
    .handoff-progress-fill {
      width: 65%;
      height: 100%;
      background-color: var(--sage-teal);
      border-radius: var(--radius-pill);
    }
    .spinner {
      width: 44px;
      height: 44px;
      border: 4px solid var(--teal-15);
      border-block-start-color: var(--teal);
      border-radius: 50%;
      margin-inline: auto;
      animation: spin 1s linear infinite;
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    /* Sign-In Sheet Modal */
    .modal-backdrop {
      display: none;
      position: fixed;
      inset-block: 0;
      inset-inline: 0;
      background-color: rgba(14, 54, 62, 0.45);
      backdrop-filter: blur(3px);
      z-index: 110;
      align-items: center;
      justify-content: center;
      padding: var(--space-2);
    }
    .modal-backdrop.open {
      display: flex;
    }
    .signin-sheet {
      width: 100%;
      max-width: 440px;
      background-color: var(--cream);
      border: 1px solid var(--teal-15);
      border-radius: var(--radius-card);
      box-shadow: var(--card-shadow-lg);
      padding: var(--space-3);
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .signin-sheet-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      border-block-end: 1px solid var(--teal-15);
      padding-block-end: 12px;
    }
    .signin-close-btn {
      width: 38px;
      height: 38px;
      padding: 0;
      line-height: 1;
      border-radius: 50%;
      border: 1px solid var(--teal-15);
      background-color: var(--teal-08);
      color: var(--brown);
      font-size: 1rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .signin-disabled-banner {
      background-color: var(--teal-08);
      border: 1px solid var(--teal);
      border-radius: var(--radius-card);
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      text-align: center;
    }
    /* Captain Asfour Chat Widget ("الكابتن عصفور") */
    .mascot-fab {
      position: fixed;
      inset-block-end: 18px;
      inset-inline-start: 18px;
      z-index: 90;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background-color: var(--cream);
      color: var(--brown);
      border: 2px solid var(--teal);
      border-radius: var(--radius-pill);
      padding-block: 6px;
      padding-inline: 8px 16px;
      cursor: pointer;
      box-shadow: var(--card-shadow-lg);
      transition: transform 0.15s ease, background-color 0.15s ease;
    }
    .mascot-fab:hover {
      background-color: var(--teal-08);
      transform: translateY(-2px);
    }
    .mascot-fab-img {
      width: 44px;
      height: 44px;
      object-fit: contain;
      display: block;
      flex-shrink: 0;
    }
    .mascot-panel {
      display: none;
      position: fixed;
      inset-block-end: 82px;
      inset-inline-start: 18px;
      width: calc(100vw - 36px);
      max-width: 400px;
      max-height: min(560px, calc(100vh - 104px));
      background-color: var(--cream);
      border: 2px solid var(--teal);
      border-radius: var(--radius-card);
      z-index: 95;
      flex-direction: column;
      overflow: hidden;
      box-shadow: var(--card-shadow-lg);
    }
    .mascot-panel.open {
      display: flex;
      animation: viewFade 0.2s ease forwards;
    }
    .mascot-panel-header {
      background-color: var(--teal);
      color: var(--cream);
      padding: 10px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-shrink: 0;
    }
    .mascot-header-id {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .mascot-video-avatar {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid var(--sage-teal);
      background-color: var(--teal-04);
      flex-shrink: 0;
    }
    .mascot-close-btn {
      width: 38px;
      height: 38px;
      padding: 0;
      line-height: 1;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 250, 0.35);
      background-color: transparent;
      color: var(--cream);
      font-size: 1rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .mascot-close-btn:hover {
      background-color: rgba(255, 255, 250, 0.12);
    }
    .mascot-messages {
      padding: 12px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 10px;
      background-color: var(--teal-04);
      flex: 1;
      min-height: 180px;
      /* 28 Nov 2026 (P9): the interview needs room; the quick topics are one row now. */
      max-height: min(52vh, 400px);
    }
    .agent-msg-row {
      display: flex;
      align-items: flex-start;
      gap: 8px;
    }
    .agent-pose-thumb {
      width: 38px;
      height: 38px;
      object-fit: contain;
      flex-shrink: 0;
    }
    .agent-bubble {
      background-color: var(--cream);
      border: 1px solid var(--teal-15);
      border-radius: var(--radius-card);
      padding: 10px 12px;
      font-size: 0.88rem;
      line-height: 1.6;
      color: var(--brown);
      flex: 1;
      min-width: 0;
    }
    .agent-bubble-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-block-start: 8px;
    }
    .chat-action-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      line-height: 1;
      padding-block: 8px;
      padding-inline: 12px;
      border-radius: var(--radius-pill);
      border: 1px solid var(--teal);
      background-color: var(--teal);
      color: var(--cream);
      font-size: 0.8rem;
      font-weight: 700;
      cursor: pointer;
      text-decoration: none;
    }
    .chat-action-btn:hover {
      background-color: var(--teal-hover);
      color: var(--cream);
    }
    .chat-action-btn.secondary {
      background-color: var(--teal-08);
      color: var(--brown);
      border-color: var(--teal-15);
    }
    .chat-action-btn.secondary:hover {
      background-color: var(--teal);
      color: var(--cream);
      border-color: var(--teal);
    }
    /* P9 (28 Nov 2026): Captain Asfour's answer with flights: up to 3 small cards, tapping one opens its popup.
       The message list grows a little while it holds cards so a whole answer fits on a phone. */
    .mascot-messages.has-flights {
      max-height: min(62vh, 460px);
    }
    /* The quick topics stay reachable by typing; with flight cards on screen they give the room to the answer. */
    .mascot-messages.has-flights + .agent-suggestions {
      display: none;
    }
    .chat-flights {
      display: flex;
      flex-direction: column;
      gap: var(--space-1);
      margin-block-start: var(--space-1);
    }
    .chat-flight {
      display: flex;
      align-items: center;
      gap: var(--space-1);
      width: 100%;
      min-height: 44px;
      padding: var(--space-1) var(--space-1-5);
      border: 1px solid var(--line);
      border-radius: var(--radius-row);
      background-color: var(--surface);
      color: var(--text-strong);
      font: inherit;
      text-align: start;
      cursor: pointer;
    }
    .chat-flight:hover,
    .chat-flight:focus-visible {
      border-color: var(--teal);
    }
    /* Two airlines: logos stacked, so the times and the route keep the card's width (live check 28 Nov). */
    .chat-flight-logos {
      display: inline-flex;
      flex-direction: column;
      gap: var(--space-half);
      flex-shrink: 0;
    }
    .chat-flight-main {
      display: flex;
      flex-direction: column;
      gap: 2px;
      flex: 1;
      min-width: 0;
    }
    .chat-flight-top {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: var(--space-half);
      font-size: 0.78rem;
    }
    .chat-flight-name {
      color: var(--text-muted);
    }
    .chat-flight-badge,
    .chat-flight-dir {
      padding: 1px 6px;
      border-radius: var(--radius-chip);
      font-size: 0.72rem;
      font-weight: 700;
    }
    .chat-flight-badge {
      background-color: var(--sun-soft);
      color: var(--sun-ink);
    }
    .chat-flight-dir {
      background-color: var(--teal-08);
      color: var(--teal);
    }
    .chat-flight-times {
      font-weight: 700;
      font-size: 0.88rem;
      white-space: nowrap;
    }
    .chat-flight-meta {
      color: var(--text-muted);
      font-size: 0.76rem;
    }
    .chat-flight-price {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      flex-shrink: 0;
      font-weight: 800;
      font-size: 0.88rem;
    }
    .chat-flight-price--none {
      font-weight: 400;
      font-size: 0.74rem;
      color: var(--text-muted);
      max-width: 56px;
      text-align: end;
    }
    .chat-flight-price-note {
      font-weight: 400;
      font-size: 0.7rem;
      color: var(--text-muted);
    }
    .chat-flights-total {
      margin-block: var(--space-1) 0;
      font-size: 0.85rem;
    }
    .user-bubble {
      background-color: var(--teal);
      color: var(--cream);
      font-weight: 700;
      border-radius: var(--radius-card);
      padding: 8px 12px;
      font-size: 0.88rem;
      line-height: 1.5;
      align-self: flex-end;
      max-width: 85%;
    }
    /* 28 Nov 2026 (Ibrahim: "they are covering half the screen"): the quick topics are one row that scrolls
       sideways, not three rows above the input. */
    .agent-suggestions {
      padding: 6px 10px;
      background-color: var(--cream);
      border-block-start: 1px solid var(--teal-15);
      display: flex;
      flex-wrap: nowrap;
      gap: 6px;
      flex-shrink: 0;
      overflow-x: auto;
      overscroll-behavior-x: contain;
      scrollbar-width: none;
    }
    .agent-suggestions::-webkit-scrollbar {
      display: none;
    }
    .agent-suggestions .agent-chip {
      flex-shrink: 0;
      white-space: nowrap;
    }
    .agent-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      background-color: var(--teal-08);
      border: 1px solid var(--teal-15);
      color: var(--brown);
      border-radius: var(--radius-pill);
      padding-block: 7px;
      padding-inline: 11px;
      font-size: 0.78rem;
      font-weight: 700;
      cursor: pointer;
    }
    .agent-chip:hover {
      background-color: var(--teal);
      border-color: var(--teal);
      color: var(--cream);
    }
    .mascot-input-form {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px;
      background-color: var(--cream);
      border-block-start: 1px solid var(--teal-15);
      flex-shrink: 0;
    }
    .mascot-text-input {
      flex: 1;
      min-width: 0;
      height: 40px;
      padding-inline: 12px;
      border-radius: var(--radius-pill);
      border: 1px solid var(--teal-15);
      background-color: var(--teal-08);
      color: var(--brown);
      font-size: 0.88rem;
      font-weight: 600;
    }
    .mascot-text-input:focus {
      background-color: var(--cream);
    }
    .mascot-send-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      height: 40px;
      padding-block: 0;
      padding-inline: 14px;
      line-height: 1;
      border-radius: var(--radius-pill);
      border: none;
      background-color: var(--teal);
      color: var(--cream);
      font-size: 0.86rem;
      font-weight: 800;
      cursor: pointer;
      flex-shrink: 0;
    }
    .mascot-send-btn:hover {
      background-color: var(--teal-hover);
    }
    /* Footer (Teal background, Cream text, 40px top padding, thin 15% cream separator from teal band) */
    .site-footer {
      background-color: var(--teal);
      color: var(--cream);
      padding-block: 40px 28px;
      border-block-start: 1px solid rgba(255, 255, 250, 0.15);
      margin-block-start: auto;
      position: relative;
      z-index: 2;
    }
    .footer-top {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-2);
      padding-block-end: 18px;
      border-block-end: 1px solid rgba(255, 255, 250, 0.15);
    }
    .footer-brand-wrap {
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .footer-logo-img {
      height: 54px;
      width: auto;
      object-fit: contain;
      display: block;
      border-radius: 8px;
    }
    .footer-bottom {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-2);
      padding-block-start: 16px;
    }
    .footer-links {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 14px;
    }
    .footer-link {
      color: var(--cream);
      opacity: 0.92;
      padding-block: 6px;
      line-height: 1.2;
      display: inline-flex;
      align-items: center;
      font-size: 0.92rem;
    }
    .footer-link:hover {
      color: var(--cream);
      opacity: 1;
      text-decoration: underline;
    }
    .footer-note {
      color: var(--cream);
      opacity: 0.88;
      font-size: 0.84rem;
      font-weight: 600;
    }


    .agent-typing { flex: 0 0 auto; }
    .typing-dots { display: inline-flex; align-items: center; gap: 5px; min-height: 20px; }
    .typing-dots > span {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--teal);
      animation: captainTyping 1.05s ease-in-out infinite;
    }
    .typing-dots > span:nth-child(2) { animation-delay: 0.15s; }
    .typing-dots > span:nth-child(3) { animation-delay: 0.3s; }
    @keyframes captainTyping {
      0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
      30% { opacity: 1; transform: translateY(-3px); }
    }
    @media (prefers-reduced-motion: reduce) {
      .swap-btn { --swap-spin: 0deg !important; transition: none; }
      .swap-btn svg { transition: none; }
      .typing-dots > span { animation: none; opacity: 1; transform: none; }
    }

    /* Local polish system: tool / browsing / utility each has its own shape. */
        html, body { font-family: var(--font-ui); font-weight: 400; line-height: 1.85; }
    body { isolation: isolate; }
    h1, h2, h3, h4, button, input, select, textarea { font-family: inherit; letter-spacing: normal; }
    h1, h2, h3, h4 { line-height: 1.5; text-wrap: balance; }
    button, a, select, input { -webkit-tap-highlight-color: transparent; }
    button, select { touch-action: manipulation; }
    bdi, .ltr-num { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
    p { text-wrap: pretty; }
    ::selection { color: var(--cream); background: var(--teal); }
    /* Focus, one rule for the whole site (9 Nov 2026, DESIGN-RULES §5).
       Keyboard: a 2 px teal ring on the control's own edge and radius. Mouse and touch: no ring at all;
       app.js / partials/lang-script set html[data-input="pointer"] on a press and "keyboard" on Tab or
       an arrow key (Chrome also gives a clicked <select> and a script-focused field :focus-visible,
       which drew the old 3 px ring 4 px away from the control). Without JS the ring always shows. */
    :focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
    :is(.btn-primary, .btn-book, .skip-link, .consent-btn.is-primary, .mascot-send-btn):focus-visible { outline-offset: var(--focus-ring-offset-filled); }
    html[data-input="pointer"] :focus-visible { outline: none; }
    /* Text fields show focus as their own border in every input mode (that is where the caret is). */
    :is(.airport-search-input, .mascot-text-input):focus { outline: none; border-color: var(--focus-ring-color); box-shadow: 0 0 0 1px var(--focus-ring-color); }
    .skip-link { position: fixed; inset-block-start: 8px; inset-inline-start: 16px; transform: translateY(-150%); padding: 12px 20px; background: var(--teal); color: var(--cream); z-index: 200; border-radius: var(--radius-control); }
    .skip-link:focus { transform: none; color: var(--cream); }
    main { width: 100%; max-width: 1280px; margin-inline: auto; background: var(--cream); }
    .container { max-width: 1200px; }
    .site-header { background: var(--cream); border-block-end: var(--border-control); backdrop-filter: none; }
    .header-inner, .site-header.is-scrolled .header-inner { min-height: 80px; padding-block: 10px; }
    .brand-logo-img, .site-header.is-scrolled .brand-logo-img { height: 56px; border-radius: 0; }
    .main-nav { gap: 12px; }
    .nav-link { position: relative; min-height: 44px; padding-inline: 8px; border-radius: 0; font-size: var(--text-small); line-height: 1.5; }
    .nav-link.active, .nav-link:hover { background: transparent; color: var(--teal); }
    .nav-link.active::after { content: ""; position: absolute; inset-inline: 8px; inset-block-end: 2px; height: 2px; background: var(--teal); }
    .header-actions { gap: 8px; }
    .currency-select, .header-saved-btn, .signin-header-btn { min-height: 44px; border-radius: var(--radius-control); background-color: transparent; border-color: transparent; box-shadow: none; }
    .currency-select { font-family: var(--font-data); font-weight: 700; font-size: .8rem; }
    .header-saved-btn, .signin-header-btn { padding-inline: 10px; font-size: var(--text-small); }
    .signin-header-btn { border-color: var(--teal-15); }
    .saved-count-badge { width: 18px; height: 18px; font-size: .65rem; background: var(--teal-08); color: var(--teal); }
    .menu-toggle-btn { width: 44px; height: 44px; border-color: transparent; }
    .hero-band { background: var(--teal-04); padding-block: 30px 36px; border-block-end: none; }
    .hero-header-grid { grid-template-columns: minmax(0,1fr) minmax(200px,.65fr); gap: 24px; margin-block-end: 26px; min-height: 220px; }
    .hero-title, .hero-line-main, .hero-line-welcome { font-family: var(--font-ui); letter-spacing: normal; line-height: 1.4; }
    .hero-title { gap: 8px; }
    .hero-line-welcome { font-size: 1.2rem; font-weight: 500; color: var(--teal); }
    .hero-line-main { font-size: var(--text-hero); font-weight: 800; color: var(--teal); }
    .hero-description { color: var(--brown-80); font-size: 1.05rem; margin-block-start: 12px; }
    .hero-illustration { height: 220px; }
    .hero-family-img { height: 208px; width: auto; }
    .hero-cloud-layer { width: 300px; }
    .hero-ground-shadow { width: 260px; }
    .search-card { padding: 0 24px 24px; border-color: var(--teal-15); border-radius: var(--radius-card); box-shadow: var(--shadow-tool); position: relative; }
    .search-card-top { margin-block-end: 18px; gap: 12px; }
    .trip-type-bar { gap: 2px; padding: 3px; border-radius: var(--radius-control); background: var(--teal-08); }
    .trip-type-bar .pill-tab { min-height: 38px; padding: 8px 14px; border-radius: 5px; border: none; background: transparent; font-size: var(--text-small); }
    .trip-type-bar .pill-tab.active { background: var(--cream); color: var(--teal); box-shadow: 0 1px 4px rgba(14,54,62,.1); }
    .beta-notice { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; line-height: 1.65; color: var(--teal); border-inline-start: 2px solid var(--sage-teal); padding-inline: 10px 0; }
    .beta-notice > span { font-size: 1rem; }
    .search-grid { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 0; border: var(--border-control); border-radius: var(--radius-control); background: var(--cream); }
    .field-group { gap: 0; padding: 10px 14px 8px; min-width: 0; border-inline-start: var(--border-control); }
    .field-group:focus-within { background: var(--teal-04); }
    .field-label { font-size: .75rem; font-weight: 500; color: var(--brown-80); line-height: 1.6; }
    .field-control { padding: 3px 0; min-height: 44px; border: none; border-radius: 0; background: transparent; font-size: var(--text-button); line-height: 1.6; gap: 5px; }
    /* Date and passenger fields: the keyboard ring goes round the field card, not the inner button. */
    .search-grid > .field-group > .field-control:focus-visible { outline: none; }
    html:not([data-input="pointer"]) .search-grid > .field-group:has(> .field-control:focus-visible) { box-shadow: var(--focus-ring); }
    .field-value-full { flex-wrap: wrap; gap: 5px; }
    .field-chevron { font-size: .7rem; }
    .code-badge { border: none; padding: 2px 4px; margin: 0; border-radius: var(--radius-badge); font-size: .67rem; font-weight: 700; line-height: 1.3; }
    .route-pair-wrap { grid-column: 1/-1; grid-template-columns: minmax(0,1fr) 44px minmax(0,1fr); gap: 0; align-items: stretch; border-block-end: var(--border-control); }
    #from-field-group { grid-column: 1; border-inline-start: none; }
    #to-field-group { grid-column: 3; }
    .route-pair-wrap .field-group { padding-inline: 14px; }
    .swap-btn { position: static; grid-column: 2; grid-row: 1; align-self: center; justify-self: center; width: 44px; height: 44px; margin: 0; border: var(--border-control); border-radius: 50%; box-shadow: none; background: var(--cream); color: var(--teal); z-index: 2; }
    .swap-btn svg { color: currentColor; stroke: currentColor; transform: rotate(var(--swap-spin,0deg)); }
    .swap-btn:hover { background: var(--teal-08); box-shadow: none; }
    .date-btn-text { font-size: .88rem; line-height: 1.6; }
    .search-submit-btn { grid-column: 1/-1; min-height: 52px; margin: 10px; width: calc(100% - 20px); }
    .btn-primary, .btn-secondary { border-radius: var(--radius-control); min-height: var(--height-control); font-size: var(--text-button); line-height: 1.5; }
    .btn-primary .arrow-accent { color: inherit; }
    .search-submit-btn { box-shadow: 0 4px 10px rgba(14,54,62,.15); }
    .search-submit-btn:hover:not(:disabled) { transform: none; box-shadow: 0 6px 16px rgba(14,54,62,.24); }
    .section-title { font-size: var(--text-section); color: var(--teal); }
    .view-section h1[tabindex="-1"]:focus-visible { outline: none; }
    .about-story { max-width: 46rem; margin-block-end: 32px; }
    .about-story h2 { font-size: 1.25rem; color: var(--teal); margin-block-end: 12px; }
    .about-story p + p { margin-block-start: 12px; }
    .founders-row:empty { display: none; }
    .section-desc { font-size: var(--text-small); line-height: 1.9; max-width: 42rem; }
    .section-header { gap: 20px; margin-block-end: 24px; }
    .trip-filter-bar { gap: 4px; }
    .trip-filter-bar .pill-tab, .sort-tabs .pill-tab { min-height: 44px; padding: 8px 12px; border-radius: var(--radius-control); background: transparent; border-color: transparent; color: var(--brown-80); font-size: .8rem; line-height: 1.5; }
    .trip-filter-bar .pill-tab.active, .sort-tabs .pill-tab.active { color: var(--teal); background: var(--teal-08); border-color: var(--teal-15); }
    .trip-filter-bar .pill-tab:hover, .sort-tabs .pill-tab:hover { background: var(--teal-04); }
    .route-card { border-radius: var(--radius-card); box-shadow: var(--shadow-content); }
    html:not([data-input="pointer"]) .route-card:has(.route-card-main-btn:focus-visible) { border-color: var(--focus-ring-color); box-shadow: var(--focus-ring); }
    .route-card-main-btn:focus-visible { outline: none; }
    .route-landmark-banner { aspect-ratio: 16/8.7; border-radius: 0; border-block-end: none; }
    .route-landmark-img { border-radius: 0; }
    .route-tag-overlay { inset-block-start: 16px; inset-inline-start: 16px; padding: 5px 9px; border-radius: var(--radius-badge); background: var(--cream); color: var(--teal); line-height: 1.5; font-size: .73rem; }
    .bookmark-btn { width: 44px; height: 44px; box-shadow: none; }
    .route-card .bookmark-btn { inset-block-start: 12px; inset-inline-end: 12px; }
    .route-body { padding: 20px; gap: 16px; }
    .route-cities { font-size: 1.12rem; gap: 5px; line-height: 1.7; }
    .route-codes { font-size: .78rem; font-weight: 400; line-height: 1.8; }
    .route-price-row { font-size: .75rem; color: var(--brown-80); }
    .route-price-row .price-highlight { font-size: 1.2rem; }
    .route-discover { display: inline-flex; gap: 8px; align-items: center; font-size: .78rem; color: var(--teal); font-weight: 700; }
    .why-card, .info-card { box-shadow: none; }
    .why-card:hover, .info-card:hover { transform: none; }
    .why-card { background: transparent; border-color: transparent; padding: 12px; }
    .deal-save-pill, .greeting-pill, .chip { border-radius: var(--radius-badge); line-height: 1.5; }
    .deal-card .btn-primary { background: var(--teal-08); color: var(--teal); }
    .deal-card .btn-primary:hover { background: var(--teal-15); }
    .deals-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); }
    .deal-card { min-width: 0; }
    .deal-footer { flex-wrap: wrap; }
    .stepper-btn, .signin-close-btn, .mascot-close-btn { min-width: 44px; min-height: 44px; }
    .footer-link { min-height: 44px; line-height: 1.5; font-size: .85rem; }
    .site-footer { padding-block-end: max(32px,env(safe-area-inset-bottom)); }
    .mascot-fab { width: 62px; height: 62px; padding: 0; border: 2px solid var(--cream); border-radius: 50%; inset-inline-start: auto; inset-inline-end: max(20px,env(safe-area-inset-left)); inset-block-end: max(20px,env(safe-area-inset-bottom)); background: var(--teal-08); box-shadow: 0 4px 20px rgba(14,54,62,.2); }
    .mascot-fab-img { width: 100%; height: 100%; border-radius: 50%; }
    .mascot-fab.is-obscuring-cta { opacity: 0; visibility: hidden; pointer-events: none; }
    .picker-open .mascot-fab { opacity: 0; visibility: hidden; pointer-events: none; }
    .mascot-panel { inset-inline-start: auto; inset-inline-end: max(20px,env(safe-area-inset-left)); inset-block-end: max(94px,calc(env(safe-area-inset-bottom) + 86px)); border-width: 1px; border-radius: var(--radius-card); max-height: min(620px,calc(100dvh - 120px)); }
    .agent-pose-thumb { width: 38px; height: 38px; border-radius: 50%; }
    .agent-chip { min-height: 44px; border-radius: var(--radius-control); font-size: .8rem; }
    .mascot-text-input { height: 48px; font-size: 16px; border-radius: var(--radius-control); }
    .mascot-send-btn { height: 48px; border-radius: var(--radius-control); }
    .state-box { padding: 36px 24px; border: var(--border-control); border-radius: var(--radius-card); text-align: center; background: var(--teal-04); }
    .state-box p { margin-block: 8px 20px; }
    .not-found { display: grid; place-items: center; text-align: center; padding-block: 60px; min-height: 65vh; }
    .not-found-code { font-size: clamp(5rem,12vw,9rem); line-height: 1.2; font-weight: 800; color: var(--teal-25); }
    .not-found h1 { color: var(--teal); font-size: var(--text-section); }
    .not-found p { margin-block: 16px 28px; }
    .not-found-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
    .native-date-fallback { position: static; opacity: 1; pointer-events: auto; width: 100%; height: 44px; font: inherit; font-size: 16px; background: var(--cream); border: var(--border-control); }
    .dropdown-panel, .mascot-messages { overscroll-behavior: contain; }
    .skeleton-flight { min-height: 170px; padding: 24px; border: var(--border-control); border-radius: var(--radius-card); }
    .skeleton-line { height: 18px; border-radius: 4px; margin-block: 14px; width: 70%; background: var(--teal-08); animation: skeletonPulse 1.1s ease-in-out infinite alternate; }
    .skeleton-line:nth-child(2) { width: 90%; }
    .skeleton-line:last-child { width: 40%; }
    @keyframes skeletonPulse { to { opacity: .4; } }
    @media (min-width: 1200px) {
      .search-grid { grid-template-columns: minmax(360px,2.25fr) minmax(138px,.9fr) minmax(138px,.9fr) minmax(168px,1.12fr) 178px; } /* passengers column +18px for its 3D icon */
      .route-pair-wrap { grid-column: auto; border-block-end: none; }
      .search-submit-btn { grid-column: auto; width: auto; min-width: 0; padding-inline: 12px; }
      .field-group { padding-inline: 12px; }
    }
    @media (max-width: 1199px) and (min-width: 700px) {
      .search-grid > .field-group:first-of-type { border-inline-start: none; }
      .search-grid > .field-group { border-block-end: var(--border-control); }
    }
    @media (max-width: 1099px) {
      .main-nav { display: none; }
      .menu-toggle-btn { display: inline-flex; }
      .mobile-nav.open { display: flex; }
    }
    @media (min-width: 1100px) { .menu-toggle-btn { display: none; } .mobile-nav.open { display: none; } }
    @media (max-width: 699px) {
      .container { padding-inline: 20px; }
      .header-inner, .site-header.is-scrolled .header-inner { min-height: 70px; padding-block: 8px; }
      .brand-logo-img, .site-header.is-scrolled .brand-logo-img { height: 48px; }
      .header-actions { gap: 2px; }
      .header-saved-btn, .signin-header-btn { padding-inline: 9px; }
      .header-btn-label-desktop { display: none; }
      .currency-select { padding-inline: 7px 22px; background-position: right 5px center; }
      .hero-band { padding-block: 22px 26px; }
      .hero-header-grid { grid-template-columns: minmax(0,1fr) 110px; min-height: 128px; gap: 4px; margin-block-end: 20px; }
      .hero-line-welcome { font-size: 1rem; }
      .hero-line-main { font-size: 1.85rem; line-height: 1.5; }
      .hero-title { gap: 4px; }
      .hero-description { font-size: .8rem; margin-block-start: 6px; max-width: 230px; }
      .hero-illustration { height: 128px; }
      .hero-family-img { height: 104px; max-width: 130px; }
      .hero-cloud-layer { width: 140px; }
      .hero-ground-shadow { width: 100px; }
      .search-card { padding: 0 14px 16px; border-radius: 12px; }
      .search-card-top { gap: 12px; margin-block-end: 14px; }
      .beta-notice { font-size: .7rem; }
      .search-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
      .route-pair-wrap { grid-template-columns: minmax(0,1fr) 44px; }
      #from-field-group { grid-column: 1; grid-row: 1; border-block-end: var(--border-control); }
      #to-field-group { grid-column: 1; grid-row: 2; border-inline-start: none; }
      .swap-btn { grid-column: 2; grid-row: 1 / 3; border-radius: 50%; margin-inline-end: 8px; }
      .swap-btn svg { transform: rotate(calc(var(--swap-spin,0deg) + 90deg)); }
      .field-group { padding: 8px 12px 6px; }
      .field-control { min-height: 44px; font-size: 16px; }
      .field-value-full { gap: 8px; }
      .search-grid > .field-group { border-block-end: var(--border-control); }
      .search-grid > .field-group:nth-child(2) { border-inline-start: none; }
      #pax-field-group { grid-column: 1/-1; border-inline-start: none; }
      .search-submit-btn { min-height: 50px; }
      .date-btn-text { font-size: .83rem; }
      .section-block { padding-block: 34px; }
      .section-header { gap: 14px; margin-block-end: 20px; }
      .section-desc { font-size: .83rem; }
      .trip-filter-bar { gap: 3px; }
      .trip-filter-bar .pill-tab { padding-inline: 9px; font-size: .75rem; }
      .route-body { padding: 18px; }
      .route-cities { font-size: 1.08rem; }
      .route-landmark-banner { aspect-ratio: 16/10; }
      .route-codes { font-size: .8rem; }
      .dropdown-panel { position: fixed; inset-block-start: auto; inset-block-end: max(16px,env(safe-area-inset-bottom)); inset-inline: 16px; width: auto; min-width: 0; max-width: none; max-height: min(65dvh,440px); box-shadow: 0 0 0 100vmax rgba(14,54,62,.25),var(--card-shadow-lg); padding: 12px; }
      .dropdown-dismiss { display: flex; width: 100%; justify-content: center; margin-block-end: 8px; }
      .mascot-fab { width: 58px; height: 58px; inset-inline-end: 14px; inset-block-end: max(14px,env(safe-area-inset-bottom)); }
      .mascot-panel { inset-inline: 12px; width: auto; max-width: none; inset-block-end: max(84px,calc(env(safe-area-inset-bottom) + 76px)); }
      .footer-bottom, .footer-top { align-items: flex-start; }
      .footer-links { gap: 4px 14px; }
      .site-footer .container { padding-block-end: 62px; }
      .summary-details { font-size: .85rem; }
      .summary-details > span { max-width: 100%; flex-wrap: wrap; line-height: 1.8; }
      .flight-cta-col { min-width: 0; }
    }
    @media (min-width: 700px) { .dropdown-dismiss { display: none; } }
    @media (hover: hover) and (prefers-reduced-motion: no-preference) {
      .route-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-lg); }
      .route-card:active { transform: translateY(-1px) scale(.995); }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
    }

    /* === SWAP BEND === ---------------------------------------------------------
       From/To pair: two cards whose facing edges bend around the round swap
       button with an even circular air gap. Shapes are SVG paths drawn by
       initSwapBend() in js/app.js (also marked "SWAP BEND").
       All sizes live here; JS reads them from these custom properties.
       Geometry:  R_a = button radius + air gap        (arch radius, concentric with button)
                  R_f = shoulder fillet radius          (where bend meets the straight edge)
                  d   = bend depth (how far the arch cuts into each card)
                  card gap = 2 · (R_a − d)             (derived, so the arch stays concentric)
                  Δ   = √(d · (2(R_a + R_f) − d))      (half-length of the bend along the edge)
       ------------------------------------------------------------------------- */
    :root {
      --swap-btn: 44px;                 /* swap button diameter (also the tap target) */
      --swap-air: 7px;                  /* even air gap between button and both cards */
      --swap-fillet: 10px;              /* R_f shoulder fillet */
      --swap-depth: 21px;               /* d bend depth */
      --swap-radius: var(--radius-control); /* outer corner radius = existing field radius (8px) */
      --swap-arch: calc(var(--swap-btn) / 2 + var(--swap-air));          /* R_a = 29px */
      --swap-card-gap: calc(2 * (var(--swap-arch) - var(--swap-depth))); /* = 16px */
      --swap-card-h: 88px;              /* desktop card height (fits 2Δ + 2·radius) */
      --swap-card-h-mobile: 76px;       /* stacked card height */
      --swap-mobile-offset: 54px;       /* mobile: button centre measured from the inline-end edge */
      --swap-text-clear: 8px;           /* extra breathing room between text and the curve */
      --swap-ease: cubic-bezier(0.22, 1, 0.36, 1); /* smooth ease-out, no overshoot */
      --swap-dur: 300ms;
      --swap-fill-top: var(--teal-04);
      --swap-fill-bottom: var(--teal-08);
      --swap-stroke: var(--teal-15);
      --swap-stroke-hover: var(--teal-25);
      --swap-shadow: drop-shadow(0 1px 1px rgba(14,54,62,.05)) drop-shadow(0 6px 10px rgba(14,54,62,.07));
      --swap-shadow-hover: drop-shadow(0 1px 1px rgba(14,54,62,.06)) drop-shadow(0 8px 14px rgba(14,54,62,.12));
    }

    /* The search row becomes separate rounded fields instead of one boxed strip. */
    .search-grid { border: none; background: transparent; gap: 10px; border-radius: 0; }
    .search-grid > .field-group,
    .search-grid > .field-group:first-of-type,
    .search-grid > .field-group:nth-child(2) {
      min-height: var(--swap-card-h);
      padding: 12px 14px 8px;
      border: var(--border-control);
      border-radius: var(--swap-radius);
      background: var(--teal-04);
      justify-content: center;
      transition: border-color .2s ease, box-shadow .2s ease;
    }
    .search-grid > .field-group:hover { border-color: var(--swap-stroke-hover); }
    .search-grid > .field-group:focus-within { background: var(--teal-04); border-color: var(--teal); }
    .search-grid .search-submit-btn { margin: 0; width: 100%; min-height: var(--swap-card-h); }

    /* Pair layout */
    .route-pair-wrap,
    .route-pair-wrap:is(*) {
      grid-template-columns: minmax(0,1fr) var(--swap-card-gap) minmax(0,1fr);
      gap: 0;
      align-items: stretch;
      border: none;
      position: relative;
    }
    .route-pair-wrap .field-group {
      position: relative;
      min-height: var(--swap-card-h);
      padding: 12px 14px 8px;
      justify-content: center;
      border: none;
      border-radius: var(--swap-radius);
      background: transparent;
    }
    .route-pair-wrap .field-group:focus-within { background: transparent; }
    .route-pair-wrap .field-label-row,
    .route-pair-wrap .field-control { position: relative; z-index: 1; }

    /* SVG card shape (drawn by JS) */
    .swap-card-shape {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      overflow: visible;
      pointer-events: none;
      z-index: 0;
      filter: var(--swap-shadow);
      transition: filter .2s ease;
    }
    .swap-card-shape .swap-card-fill { stroke: var(--swap-stroke); stroke-width: 1; transition: stroke .2s ease; }
    .route-pair-wrap .field-group:hover .swap-card-shape { filter: var(--swap-shadow-hover); }
    .route-pair-wrap .field-group:hover .swap-card-fill { stroke: var(--swap-stroke-hover); }
    /* Tap/click: no dark outline — the open card just lifts a little.
       Keyboard focus still gets a clear teal outline on the card shape. */
    .route-pair-wrap .field-group:has(.field-control[aria-expanded="true"]) .swap-card-shape { filter: var(--swap-shadow-hover); }
    .route-pair-wrap .field-group:has(.field-control[aria-expanded="true"]) .swap-card-fill { stroke: var(--swap-stroke-hover); }
    html:not([data-input="pointer"]) .route-pair-wrap .field-group:has(.field-control:focus-visible) .swap-card-fill { stroke: var(--focus-ring-color); stroke-width: var(--focus-ring-width); }
    .route-pair-wrap .field-control:focus-visible { outline: none; }
    /* Until JS draws the shape, show a plain rounded card so nothing looks broken. */
    .route-pair-wrap:not(.swap-bend-ready) .field-group {
      border: var(--border-control);
      background: linear-gradient(var(--swap-fill-top), var(--swap-fill-bottom));
    }

    /* Keep text and caret away from the curve. City names never truncate (they wrap/shrink instead). */
    .route-pair-wrap #from-field-group { padding-inline-end: calc(14px + var(--swap-depth) + var(--swap-text-clear)); }
    .route-pair-wrap #to-field-group   { padding-inline-start: calc(14px + var(--swap-depth) + var(--swap-text-clear)); }
    /* Chevron sits right after the city name, not at the far end of the card. */
    .route-pair-wrap .field-control { gap: 8px; justify-content: flex-start; }
    .route-pair-wrap .field-value-full { flex: 0 1 auto; flex-wrap: nowrap; min-width: 0; overflow: visible; }
    /* Plain line chevron (no circle behind it); flips when the list is open */
    .route-pair-wrap .field-chevron {
      flex-shrink: 0;
      color: var(--teal);
      transition: transform var(--swap-dur) var(--swap-ease), color .2s ease;
    }
    .route-pair-wrap .field-control[aria-expanded="true"] .field-chevron { transform: rotate(180deg); }
    /* Full city name: wraps onto a second line if it must, and shrinks a little on tight cards. Never "…". */
    .route-pair-wrap .city-name-text {
      min-width: 0;
      overflow: visible;
      white-space: normal;
      overflow-wrap: anywhere;
      text-wrap: balance;
      line-height: 1.3;
      font-size: clamp(.9rem, 1.6cqi + .55rem, 1rem);
    }
    .route-pair-wrap .field-group { container-type: inline-size; }
    /* IATA code on the label line, right after "من" / "إلى" */
    .field-label-code:empty { display: none; }
    .field-label-code { display: inline-flex; }
    .route-pair-wrap .field-label-row { gap: 8px; }
    .route-pair-wrap .code-badge {
      flex-shrink: 0;
      padding: 2px 6px;
      border-radius: 999px;
      background: var(--cream);
      border: 1px solid var(--teal-15);
      color: var(--teal);
      font-weight: 700;
      letter-spacing: .02em;
    }
    .route-pair-wrap .field-control { will-change: auto; }
    .swap-ghost { position: absolute; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; overflow: visible; }

    /* The swap button */
    .route-pair-wrap .swap-btn {
      position: absolute;
      grid-column: auto; grid-row: auto; /* abs-pos grid items would otherwise be placed in their grid area */
      left: auto; right: auto; bottom: auto;
      inset-inline-start: 50%;
      top: 50%;
      width: var(--swap-btn);
      height: var(--swap-btn);
      margin: 0;
      padding: 0;
      transform: translate(50%, -50%);
      border: 1px solid var(--teal-15);
      border-radius: 50%;
      background: var(--cream);
      color: var(--teal);
      box-shadow:
        inset 0 1px 0 rgba(255,255,250,.95),
        0 1px 2px rgba(14,54,62,.10),
        0 6px 14px -4px rgba(14,54,62,.22);
      z-index: 3;
      transition: background-color .2s ease, box-shadow .2s ease;
    }
    /* press = WAAPI "scale" in swapBendPress(); keep transform fixed so the base :active scale never fights it */
    .route-pair-wrap .swap-btn:active { transform: translate(50%, -50%); }
    [dir="ltr"] .route-pair-wrap .swap-btn:active { transform: translate(-50%, -50%); }
    [dir="ltr"] .route-pair-wrap .swap-btn { transform: translate(-50%, -50%); }
    .route-pair-wrap .swap-btn:hover {
      background: var(--teal-04);
      border-color: var(--teal-25);
      box-shadow:
        inset 0 1px 0 rgba(255,255,250,.95),
        0 2px 4px rgba(14,54,62,.12),
        0 8px 18px -4px rgba(14,54,62,.28);
    }
    .route-pair-wrap .swap-btn :is(svg, .swap-icon) {
      width: 30px;
      height: 30px;
      color: var(--teal);
      stroke: currentColor;
      transform: rotate(var(--swap-spin, 0deg));
      transition: transform var(--swap-dur) var(--swap-ease);
    }
    .route-pair-wrap .swap-btn.is-spinning :is(svg, .swap-icon) { transform: rotate(var(--swap-spin, 0deg)); }

    /* Mobile: stacked cards, the bend is on their facing horizontal edges. */
    @media (max-width: 699px) {
      .route-pair-wrap,
      .route-pair-wrap:is(*) {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0,1fr);
        grid-template-rows: auto var(--swap-card-gap) auto;
      }
      .route-pair-wrap #from-field-group { grid-column: 1; grid-row: 1; border: none; }
      .route-pair-wrap #to-field-group   { grid-column: 1; grid-row: 3; border: none; }
      .route-pair-wrap:not(.swap-bend-ready) #from-field-group,
      .route-pair-wrap:not(.swap-bend-ready) #to-field-group { border: var(--border-control); }
      .route-pair-wrap .field-group { min-height: var(--swap-card-h-mobile); padding: 10px 14px 6px; }
      /* reserve the bend zone at the inline-end so text + chevron never run under it */
      .route-pair-wrap #from-field-group,
      .route-pair-wrap #to-field-group {
        padding-inline-start: 14px;
        padding-inline-end: 14px;
      }
      .route-pair-wrap .field-control {
        padding-inline-end: calc(var(--swap-mobile-offset) + var(--swap-arch) + var(--swap-text-clear) - 14px);
      }
      .route-pair-wrap .swap-btn {
        inset-inline-start: auto;
        inset-inline-end: var(--swap-mobile-offset);
        transform: translate(-50%, -50%);
        grid-column: auto; grid-row: auto;
        margin: 0;
      }
      .route-pair-wrap .swap-btn:active { transform: translate(-50%, -50%); }
      [dir="ltr"] .route-pair-wrap .swap-btn,
      [dir="ltr"] .route-pair-wrap .swap-btn:active { transform: translate(50%, -50%); } /* QA 8 Nov: the desktop LTR :active rule (more specific) moved the pressed button 44 px on phones, so taps missed it */
      .route-pair-wrap .swap-btn :is(svg, .swap-icon),
      .route-pair-wrap .swap-btn.is-spinning :is(svg, .swap-icon) { transform: rotate(calc(var(--swap-spin, 0deg) + 90deg)); }
      .search-grid > .field-group,
      .search-grid > .field-group:first-of-type,
      .search-grid > .field-group:nth-child(2) { min-height: var(--swap-card-h-mobile); padding: 10px 14px 6px; }
      .search-grid .search-submit-btn { min-height: 52px; }
    }
    @media (min-width: 700px) and (max-width: 1199px) {
      .search-grid .search-submit-btn { min-height: 52px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .route-pair-wrap .swap-btn :is(svg, .swap-icon) { transition: none; }
    }
    /* === /SWAP BEND === */

    /* === FIX: mobile dropdown off-screen ===
       The page fade-in used fill "forwards", which left a transform on #view-home.
       Any transform turns that section into the containing block for position:fixed,
       so the mobile bottom-sheet menus opened ~5,700px down the page instead of on screen.
       Fill only "backwards" and set the final opacity directly: same fade, no leftover transform. */
    .view-section.active { opacity: 1; animation-fill-mode: backwards; }
    /* === /FIX === */

    /* Phase 1B transit */
    /* Real search (P5): airport search input, passport choice, transit cards. Existing variables only. */
    .airport-search-wrap { position: sticky; inset-block-start: calc(-1 * var(--space-1)); z-index: 1; background: var(--cream); padding-block: 4px 8px; }
    .airport-search-input { width: 100%; padding-inline: 10px; border-block-end: 1px solid var(--teal-15); }
    .airport-search-empty { padding: 10px; color: var(--brown-80); font-size: var(--text-small); }
    .airport-search-empty p { margin: 0 0 8px; }
    .airport-search-retry { min-height: 44px; }
    .airport-search-loading { opacity: .8; }
    .airport-option small { font-weight: 400; color: var(--brown-80); }
    .passport-choice { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); margin-block-start: 12px; }
    .passport-choice .field-label { margin: 0; }
    .transit-results-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: var(--text-small); color: var(--brown-80); }
    .transit-group-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 800; color: var(--brown); margin-block-start: 8px; }
    .transit-legs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; }
    .transit-leg { display: flex; flex-direction: column; gap: 2px; }
    .transit-leg-flight { font-weight: 700; }
    .transit-leg-times { color: var(--brown-80); }
    .transit-layover { padding: 4px 8px; border-radius: var(--radius-badge); background: var(--teal-04); color: var(--teal); font-weight: 700; }
    .transit-layover .chip { padding-block: 3px; padding-inline: 8px; font-size: 0.75rem; }
    .transit-day-offset { font-size: 0.7rem; color: var(--teal); font-weight: 800; }
    .transit-price-note { font-size: 0.86rem; font-weight: 700; color: var(--teal); text-align: end; }
    /* Phase 2: price shown on every result card (Phase 2C) */
    .transit-price-note { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
    .transit-price-amount { font-size: 1.35rem; font-weight: 800; color: var(--teal); line-height: 1.2; }
    .transit-price-meta { font-size: 0.78rem; font-weight: 600; color: var(--brown-80); }
    .transit-price-disclaimer { font-size: 0.74rem; font-weight: 400; color: var(--brown-80); max-width: 26ch; }
    .transit-price-link { font-size: 0.8rem; color: var(--teal); text-decoration: underline; }
    .transit-price-loading { font-weight: 600; color: var(--brown-80); }
    .transit-price-kind { font-size: 0.78rem; font-weight: 800; color: var(--teal); }
    .transit-warnings { grid-column: 1 / -1; list-style: none; margin: 0; padding: 12px 0 0; border-block-start: 1px solid var(--teal-15); display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; color: var(--brown-80); }
    .transit-warning { padding-inline-start: 10px; border-inline-start: 2px solid var(--teal-25); }
    .transit-warning.is-visa { color: var(--brown); font-weight: 800; border-inline-start: 3px solid var(--arrow-red); background: var(--teal-04); padding-block: 6px; border-radius: var(--radius-badge); }
    .transit-warning a { color: var(--teal); text-decoration: underline; font-weight: 700; }
    .transit-warning-checked { font-weight: 400; color: var(--brown-80); }
    .transit-date-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1); }
    .sort-tabs .pill-tab:disabled { opacity: 0.55; cursor: not-allowed; }
    .transit-nowrap { white-space: nowrap; }
    /* Phase 1B transit (P6): book buttons, Aviasales compare link, affiliate note. Existing variables only. */
    .transit-book-buttons { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
    .transit-book-buttons .btn-primary, .transit-book-buttons .btn-secondary { text-align: center; white-space: normal; height: auto; line-height: 1.35; } /* long airline names wrap instead of being cut off (1 Nov 2026) */
    .transit-book-secondary { min-height: 36px; padding-block: 6px; font-size: var(--text-small); }
    .transit-compare-link { font-size: 0.78rem; font-weight: 700; color: var(--teal); text-decoration: underline; text-align: center; }
    .transit-affiliate-note { font-size: 0.78rem; color: var(--brown-80); text-align: center; margin-block-start: 8px; }

    /* ===== LOGOS & FLAGS (logos-flags, 31 Oct 2026): airline logos, IATA badge fallback, round flags ===== */
    .airline-logo {
      display: inline-block;
      flex: 0 0 auto;
      vertical-align: middle;
      box-sizing: border-box;
      object-fit: contain;
      background-color: #fff;
      border: 1px solid var(--teal-15);
      border-radius: 8px;
      padding: 2px;
    }
    .airline-logo--32 { width: 32px; height: 32px; }
    .airline-logo--24 { width: 24px; height: 24px; border-radius: 6px; padding: 1px; }
    /* Logos with their own background (Fly Cham): no border, no padding. */
    .airline-logo--own-bg { border: 0; padding: 0; }
    /* Fallback: round teal badge with the IATA code. */
    .airline-logo--badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      border: 0;
      border-radius: 50%;
      background-color: var(--teal);
      box-shadow: inset 0 0 0 2px var(--sage-teal);
      color: #fff;
      font-weight: 700;
      font-size: 11px;
      line-height: 1;
      letter-spacing: 0.02em;
    }
    .airline-logo--badge.airline-logo--24 { font-size: 9px; border-radius: 50%; }
    .airline-logos { display: inline-flex; flex: 0 0 auto; gap: 4px; align-items: center; }
    .airline-title--with-logo { display: flex; align-items: center; gap: 8px; }
    .transit-leg-flight .airline-logo,
    .card-bullets .airline-logo { margin-inline-end: 6px; }
    #handoff-partner .airline-logos { margin-inline-end: 6px; vertical-align: middle; }

    .flag {
      display: inline-block;
      flex: 0 0 auto;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      box-shadow: 0 0 0 1px rgba(14, 54, 62, 0.14);
      vertical-align: -3px;
      margin-inline-end: 6px;
    }
    .route-cities .flag { margin-inline-end: 4px; }

    /* === 3D ICONS (30 Oct 2026) ---------------------------------------------
       Clay 3D icons from public/assets/icons/ (partial: partials/icon3d.blade.php).
       Used at 28 px and up only; smaller icons stay as line SVGs.
       ------------------------------------------------------------------------- */
    .icon-3d { display: block; flex-shrink: 0; object-fit: contain; pointer-events: none; user-select: none; }


    /* Header: saved, sign-in, currency */
    .header-saved-btn .icon-3d,
    .signin-header-btn .icon-3d { width: 28px; height: 28px; margin-block: -6px; }
    .header-saved-btn, .signin-header-btn { gap: 6px; }
    .signin-header-btn:hover .icon-3d { filter: brightness(1.08); }
    .currency-wrap { display: inline-flex; align-items: center; gap: 2px; }
    .currency-wrap .currency-icon { width: 28px; height: 28px; }
    @media (max-width: 699px) {
      /* the header is already full at phone width: the coins icon would push the menu button off */
      .currency-wrap .currency-icon { display: none; }
      .header-saved-btn .icon-3d,
      .signin-header-btn .icon-3d { width: 28px; height: 28px; }
    }

    /* Mobile menu: icon slot so every label lines up, with or without an icon */
    .mobile-nav .nav-link { gap: 10px; }
    .mobile-nav .nav-link .icon-3d { width: 28px; height: 28px; margin-block: -4px; }
    .mobile-nav .nav-link:not(:has(.icon-3d)) { padding-inline-start: calc(8px + 28px + 10px); }

    /* Date fields, passengers */
    .date-btn-icon .icon-3d,
    .pax-icon .icon-3d { width: 30px; height: 30px; }
    .date-btn-icon { margin-block: -4px; }
    #pax-trigger { gap: 8px; }
    /* Like the date fields, the passengers field shows its icon instead of a chevron (keeps the summary from truncating) */
    #pax-trigger:has(.pax-icon) .field-chevron { display: none; }
    /* Long summaries ("3 بالغين، طفل واحد، رضيع") wrap instead of running under the icon */
    #pax-trigger #pax-summary { white-space: normal; text-wrap: balance; line-height: 1.35; }
    .pax-icon { display: inline-flex; flex-shrink: 0; margin-block: -4px; }

    /* Passenger popover +/− : the clay button is the whole control */
    .stepper-btn:has(.icon-3d) { border: none; background: transparent; padding: 0; transition: transform .15s ease, filter .15s ease, opacity .15s ease; }
    .stepper-btn .icon-3d { width: 34px; height: 34px; }
    .stepper-btn:has(.icon-3d):hover:not(:disabled) { background: transparent; filter: brightness(1.06); transform: translateY(-1px); }
    .stepper-btn:has(.icon-3d):active:not(:disabled) { transform: scale(.94); }
    .stepper-btn:has(.icon-3d):disabled { opacity: .35; filter: grayscale(.6); }

    /* Mascot chat panel header */
    .mascot-panel-title { display: flex; align-items: center; gap: 6px; }
    .mascot-panel-title .icon-3d { width: 28px; height: 28px; }

    /* "Why Asfour" strip under the search card */
    .why-strip { padding-block: 28px 8px; }
    .why-strip-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .why-strip-card {
      display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
      padding: 18px;
      border: var(--border-control);
      border-radius: var(--radius-card);
      background: var(--cream);
    }
    .why-strip-icon { width: 56px; height: 56px; margin-block: -4px; }
    .why-strip-title { font-size: .95rem; font-weight: 800; color: var(--teal); line-height: 1.5; }
    .why-strip-line { margin-block-start: 2px; font-size: .8rem; line-height: 1.75; color: var(--brown-80); }
    @media (max-width: 1099px) { .why-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (max-width: 699px) {
      .why-strip { padding-block: 22px 0; }
      .why-strip-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
      .why-strip-card { flex-direction: row; padding: 12px 14px; align-items: center; gap: 12px; }
      .why-strip-icon { width: 48px; height: 48px; }
    }

    /* Guides / services strip */
    .guides-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .guide-card {
      display: flex; flex-direction: column;
      width: 100%; padding: 0; text-align: start; font: inherit; color: inherit; cursor: pointer;
      border: var(--border-control);
      border-radius: var(--radius-card);
      background: var(--cream);
      overflow: hidden;
      transition: border-color .2s ease, box-shadow .2s ease;
    }
    .guide-card:hover { border-color: var(--teal-25); box-shadow: var(--card-shadow); }
    .guide-card-art { display: flex; align-items: flex-end; justify-content: center; height: 200px; padding: 16px 16px 4px; background: var(--teal-04); }
    .guide-card-art img { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
    .guide-card-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
    .guide-card-title { font-size: 1.05rem; font-weight: 800; color: var(--teal); line-height: 1.5; }
    .guide-card-line { font-size: .82rem; line-height: 1.8; color: var(--brown-80); }
    .guide-card-cta { margin-block-start: 6px; font-size: .78rem; font-weight: 700; color: var(--teal); }
    @media (max-width: 899px) { .guides-grid { gap: 14px; } .guide-card-art { height: 170px; } }
    @media (max-width: 699px) {
      .guides-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
      .guide-card { flex-direction: row; align-items: stretch; }
      .guide-card-art { width: 120px; height: auto; min-height: 132px; flex-shrink: 0; padding: 10px; align-items: center; }
      .guide-card-art img { width: 100%; height: auto; }
      .guide-card-body { justify-content: center; padding: 12px 14px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .stepper-btn:has(.icon-3d), .guide-card { transition: none; }
    }
    /* === /3D ICONS === */

    /* === REAL DATA (1 Nov 2026): airport search box, popular-route facts === */
    .airport-search-wrap { display: flex; align-items: center; gap: 0; }
    .airport-search-icon { position: absolute; inset-inline-start: 12px; z-index: 2; display: inline-flex; color: var(--teal); pointer-events: none; }
    .airport-search-wrap { position: sticky; }
    .airport-search-input {
      min-height: 44px;
      padding-inline: 40px 12px;
      border: 1.5px solid var(--teal-25, rgba(14, 54, 62, 0.25));
      border-radius: 10px;
      background: #fff;
      font-size: 1rem; /* 16px+ stops iOS zooming into the field */
    }
    .airport-search-input::placeholder { color: var(--brown-80); opacity: .8; }
    .route-card.span-12 { grid-column: 1 / -1; }
    .route-airlines { display: flex; align-items: center; gap: 8px; margin-block-start: 8px; flex-wrap: wrap; }
    .route-airline-names { font-size: .8rem; color: var(--brown-80); font-weight: 600; line-height: 1.6; }
    .route-facts-row {
      display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap;
      border-block-start: 1px solid var(--teal-15);
      padding-block-start: 12px;
    }
    .route-fact-main { font-size: 1rem; font-weight: 800; color: var(--teal); }
    .route-fact { font-size: .8rem; color: var(--brown-80); font-variant-numeric: tabular-nums; }

    /* ===== RESULTS REDESIGN (2 Nov 2026): clean result cards + flight details popup =====
       Reference: research/ui-reference-2026-11-02. Card = logo, airline, times, line, price, Select.
       Everything else (flight numbers, legs, layover, warnings, booking options) is in the popup. */
    .airline-logo--40 { width: 40px; height: 40px; border-radius: 9px; }
    .airline-logo--46 { width: 46px; height: 46px; border-radius: 10px; padding: 3px; }
    .airline-logo--badge.airline-logo--40 { font-size: 13px; border-radius: 50%; padding: 0; }
    .airline-logo--badge.airline-logo--46 { font-size: 14px; border-radius: 50%; padding: 0; }

    .sort-tabs { justify-content: flex-start; gap: 10px; margin-block: 16px 14px; }
    .sort-segmented { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--teal-08); }
    .sort-tabs .sort-segmented .pill-tab { min-height: var(--tap-min); padding: 6px 16px; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--brown-80); font-weight: 700; font-size: .84rem; }
    .sort-tabs .sort-segmented .pill-tab.active { background: var(--surface); color: var(--teal); box-shadow: 0 1px 4px rgba(14, 54, 62, .14); }
    .sort-tabs .sort-filter { min-height: var(--tap-min); border: 1px solid var(--line); border-radius: 10px; font-weight: 700; }
    .sort-tabs .sort-filter.active { border-color: var(--teal); }

    .flights-list:has(.rcard) { gap: 12px; }
    .flight-card.rcard {
      background: var(--surface);
      border: 0;
      border-radius: var(--radius-result);
      padding: 0;
      box-shadow: var(--shadow-result);
      /* polish 8 Nov: the hover shadow eases in instead of jumping */
      transition: box-shadow var(--dur-press) ease-out, transform var(--dur-press) ease-out, opacity var(--dur-enter) var(--ease-out);
      display: grid;
      grid-template-columns: minmax(0, 1fr) 252px;
      gap: 0;
      align-items: stretch;
      cursor: pointer;
      text-align: start;
    }
    .flight-card.rcard:hover { box-shadow: var(--shadow-result-hover); transform: none; }
    .rcard-main { padding: 14px 20px 16px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
    .rcard-airline { font-size: .86rem; font-weight: 800; color: var(--text-strong); line-height: 1.4; overflow-wrap: anywhere; }
    .rcard-body { display: flex; align-items: center; gap: 18px; min-width: 0; }
    .rcard-logos { gap: 0; }
    .rcard--two .rcard-logos { align-items: flex-start; }
    .rcard--two .rcard-logos .airline-logo { width: 44px; height: 44px; }
    .rcard--two .rcard-logos .airline-logo + .airline-logo { margin-inline-start: -12px; margin-block-start: 20px; box-shadow: 0 0 0 2px var(--surface); }
    .rcard-route { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; max-width: 460px; }
    .rcard-end { text-align: center; }
    .rcard-time { font-size: 1.45rem; font-weight: 700; line-height: 1.15; color: var(--brown); font-variant-numeric: tabular-nums; white-space: nowrap; }
    .rcard-time .transit-day-offset { font-size: .72rem; margin-inline-start: 1px; vertical-align: super; }
    .rcard-code { font-size: .9rem; color: var(--brown-80); font-weight: 600; letter-spacing: .02em; }
    .rcard-track { text-align: center; min-width: 0; }
    .rcard-duration { font-size: .78rem; color: var(--brown-80); line-height: 1.3; white-space: nowrap; }
    .rcard-line { position: relative; height: 1px; margin-block: 7px; background: var(--brown-80); opacity: .55; margin-inline-end: 12px; }
    .rcard-line::after { content: ""; position: absolute; inset-inline-end: -12px; inset-block-start: -4px; width: 0; height: 0; border-block: 4.5px solid transparent; border-inline-start: 8px solid var(--brown-80); }
    .rcard-line-dot { display: none; }
    .rcard-line.has-stop .rcard-line-dot { display: block; position: absolute; inset-inline-start: 50%; inset-block-start: -3.5px; width: 8px; height: 8px; margin-inline-start: -4px; border-radius: 50%; background: var(--arrow-red); box-shadow: 0 0 0 2px #fff; }
    .rcard-line.has-stop { opacity: 1; background: rgba(51, 51, 51, .55); }
    .rcard-stops { font-size: .8rem; font-weight: 700; color: var(--brown-80); line-height: 1.3; white-space: nowrap; }
    .rcard-stops.is-direct { color: var(--teal); }

    .rcard-side {
      border-inline-start: 1px solid var(--line);
      padding: 14px 18px 16px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas: "price save" "select select" "chips chips";
      align-content: center;
      gap: var(--space-1);  /* polish 8 Nov: 8 px between the heart and Select (was 6) */
    }
    .rcard-price { grid-area: price; display: flex; flex-direction: column; justify-content: center; min-height: 50px; min-width: 0; }
    .rcard-price-meta { font-size: var(--text-meta); color: var(--text-muted); line-height: 1.35; }
    .rcard-amount { font-size: 1.5rem; font-weight: 800; line-height: 1.15; color: var(--brown); font-variant-numeric: tabular-nums; }
    .rcard-price-age { font-size: var(--text-meta); color: var(--text-muted); line-height: 1.3; }
    .rcard-price-fees { display: inline-block; font-size: var(--text-meta); font-weight: 700; color: var(--text-muted); white-space: nowrap; }
    .rcard-noprice { font-size: .86rem; font-weight: 700; color: var(--teal); line-height: 1.4; }
    .rcard-price-loading { font-size: .8rem; color: var(--text-muted); }
    /* polish 8 Nov: while the price loads, a quiet placeholder bar where the amount will be (same height, no jump) */
    .rcard-price > .rcard-price-loading { display: flex; flex-direction: column; gap: var(--space-half); }
    .rcard-price > .rcard-price-loading::after { content: ""; display: block; width: 7.5em; max-width: 100%; height: 1.15em; border-radius: var(--radius-control); background: var(--teal-08); animation: rcardPricePulse 1.2s ease-in-out infinite alternate; }
    @keyframes rcardPricePulse { from { opacity: 1; } to { opacity: .45; } }
    .rcard-save.bookmark-btn { grid-area: save; width: var(--tap-min); height: var(--tap-min); align-self: start; background: transparent; border-color: transparent; }
    .rcard-save.bookmark-btn:hover { background: var(--surface-muted); }
    .rcard-select.btn-primary { grid-area: select; width: 100%; min-height: var(--tap-min); font-weight: 800; border-radius: 10px; }
    .rcard-chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 6px; }
    .rcard-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--radius-chip); background: var(--surface-muted); color: var(--text-strong); font-size: var(--text-meta); font-weight: 700; line-height: 1.5; }
    .rcard-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--arrow-red); flex: 0 0 auto; }
    /* polish 8 Nov: result cards appear in 220 ms with a 30 ms step (was 450 ms + 40 ms): data people read doesn't drift */
    .flight-card.rcard.reveal-on-scroll { transform: translateY(8px); transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out), box-shadow var(--dur-press) ease-out; transition-delay: calc(var(--stagger-delay, 0ms) * 3 / 4), calc(var(--stagger-delay, 0ms) * 3 / 4), 0ms; }
    .flight-card.rcard.reveal-on-scroll.is-visible { transform: none; }
    .rcard-price-pp { display: inline-block; font-size: var(--text-meta); font-weight: 700; color: var(--text-muted); white-space: nowrap; }
    /* T4 (13 Nov 2026): estimates "~$X · متوقع" and a known leg "$X +" always carry a word next to the amount. */
    /* X1: a 1-stop card with one leg priced: "الرحلة الأولى: $X" in a smaller size, never read as the trip's price. */
    .rcard-amount.is-partial { font-size: 1.05rem; color: var(--text-strong); }
    .fd-price-amount.is-partial { font-size: 1.35rem; }
    .rcard-noprice.is-not-on-sale { color: var(--text-muted); }
    /* T5 (13 Nov 2026): "from" before an Ignav price several flights share; same size as the per-person tag */
    /* T4: timetable flights with no fare on sale, closed under the list */
    .rlist-nosale { border: 1px solid var(--line); border-radius: var(--radius-row); background: var(--surface); }
    .rlist-nosale-summary { display: flex; align-items: center; min-height: var(--tap-min); padding: 10px 16px; font-weight: 800; color: var(--teal); cursor: pointer; }
    .rlist-nosale-summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: var(--radius-row); }
    .rlist-nosale-help { padding: 0 16px 10px; font-size: var(--text-meta); color: var(--text-muted); line-height: 1.6; }
    .rlist-nosale-list { padding: 0 12px 12px; }

    /* "Show more" (5 Nov 2026): 5 cards, the next 1-2 fading into the page, then a full-width button. */
    .rlist { display: flex; flex-direction: column; gap: 12px; }
    /* P4 (18 Nov 2026): "loading prices" line above the lists, and the hairline before cards with no price in "cheapest". */
    .rlist-prices-loading { margin: 0 0 10px; font-size: var(--text-meta); color: var(--text-muted); line-height: 1.5; }
    .rlist-prices-loading.is-hidden { display: none; }
    .rlist-noprice-line { display: flex; align-items: center; gap: 10px; margin-block: 4px 0; font-size: var(--text-meta); font-weight: 700; color: var(--text-muted); }
    .rlist-noprice-line::before, .rlist-noprice-line::after { content: ""; flex: 1; border-block-start: 1px solid var(--line); }
    .rlist-fade { position: relative; z-index: 0; isolation: isolate; display: flex; flex-direction: column; gap: 12px; max-height: 150px; overflow: hidden; pointer-events: none; user-select: none; margin-block-end: -56px; }
    .rlist-fade::after { content: ""; position: absolute; inset: 0; z-index: 10; background: linear-gradient(to bottom, rgba(255, 255, 250, 0) 0%, rgba(255, 255, 250, .8) 40%, var(--cream) 68%); }
    .rlist-more.btn-secondary { position: relative; z-index: 1; width: 100%; min-height: 48px; font-weight: 800; border-radius: var(--radius-row); background: var(--surface); }

    @media (max-width: 759px) {
      .flight-card.rcard { grid-template-columns: minmax(0, 1fr); }
      .rcard-main { padding: 12px 14px 10px; }
      .rcard-body { gap: 12px; }
      .rcard-route { gap: 10px; }
      .rcard-time { font-size: 1.28rem; }
      /* polish 8 Nov: the four order tabs share the full width on phones (equal, bigger targets; same in RTL and LTR) */
      .sort-tabs .sort-segmented { flex: 1 1 100%; }
      .sort-tabs .sort-segmented .pill-tab { flex: 1 1 0; min-width: 0; padding-inline: 6px; }
      .rcard-side {
        border-inline-start: 0;
        border-block-start: 1px solid var(--line);
        padding: 10px 14px 12px;
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas: "price save select" "chips chips chips";
        align-items: center;
      }
      .rcard-save.bookmark-btn { align-self: center; }
      .rcard-select.btn-primary { width: auto; min-width: 104px; padding-inline: 18px; }
      .rcard-amount { font-size: 1.35rem; }
    }
    @media (max-width: 379px) {
      .rcard-logos .airline-logo--46 { width: 38px; height: 38px; }
      .rcard-time { font-size: 1.15rem; }
    }

    /* Popup */
    html.fd-open { overflow: hidden; }
    .fd-backdrop {
      position: fixed;
      inset: 0;
      z-index: 120;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px 16px;
      background: var(--backdrop);
      /* polish 8 Nov: the dim fades in with the sheet */
      opacity: 0;
      transition: opacity var(--dur-enter) var(--ease-out);
    }
    .fd-backdrop.is-open { opacity: 1; }
    .fd-backdrop[hidden] { display: none; }
    .fd-sheet {
      position: relative;
      width: 100%;
      max-width: 720px;
      max-height: min(88vh, 900px);
      overflow-y: auto;
      overscroll-behavior: contain;
      /* polish 8 Nov: Tab never hides a focused row under the sticky header (T8: two-line header, and the phone bar at the bottom) */
      scroll-padding-block: 96px 88px;
      background: var(--surface);
      border-radius: var(--radius-sheet);
      box-shadow: var(--shadow-sheet);
      opacity: 0;
      transform: translateY(12px);
      transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out);
    }
    .fd-backdrop.is-open .fd-sheet { opacity: 1; transform: none; }
    .fd-header {
      position: sticky;
      inset-block-start: 0;
      z-index: 2;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: stretch;
      gap: 2px;
      min-height: 60px;
      /* T8: room for the 44 px "i" button that overhangs the second line */
      padding-block: 8px 10px;
      /* X sits at the physical top right (Ibrahim, 2 Nov 2026), title beside it */
      padding-right: 64px;
      padding-left: 20px;
      background: var(--surface);
      border-block-end: 1px solid var(--line);
    }
    .fd-title { font-size: 1.08rem; font-weight: 800; line-height: 1.4; color: var(--brown); }
    .fd-title bdi { font-size: .86rem; color: var(--brown-80); font-weight: 700; }
    .fd-close {
      position: absolute;
      top: 8px;
      right: 10px;
      width: var(--tap-min);
      height: var(--tap-min);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 0;
      border-radius: 50%;
      background: var(--teal-08);
      color: var(--brown);
      cursor: pointer;
    }
    .fd-close:hover { background: var(--teal-15); }
    .fd-close:active { background: var(--teal-25); }
    .fd-body { padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
    .fd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
    .fd-price-amount { font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--brown); font-variant-numeric: tabular-nums; }
    .fd-price-kind { font-size: .9rem; font-weight: 800; color: var(--teal); }
    .fd-price-fare { font-size: .86rem; font-weight: 700; color: var(--brown); }
    .fd-price-meta { flex-basis: 100%; font-size: .78rem; color: var(--brown-80); }
    .fd-price-none { font-size: 1rem; font-weight: 800; color: var(--teal); }
    .fd-price-legs { flex-basis: 100%; list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: .8rem; color: var(--text-muted); line-height: 1.6; }
    .fd-h { font-size: .95rem; font-weight: 800; color: var(--brown); margin-block-end: 10px; }
    .fd-path { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
    .fd-leg { border: 1px solid var(--line); border-radius: var(--radius-row); background: var(--surface); }
    .fd-leg-detail { display: grid; grid-template-columns: minmax(150px, 200px) minmax(0, 1fr); gap: 10px 18px; align-items: center; padding: 10px 12px 12px; border-block-start: 1px solid var(--line); }
    .fd-leg-airline { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .fd-leg-name { font-size: .88rem; font-weight: 800; line-height: 1.35; }
    .fd-leg-number { font-size: .8rem; color: var(--brown-80); font-weight: 700; }
    .fd-leg-path { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
    .fd-leg-point { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .fd-leg-point:last-child { text-align: end; align-items: flex-end; }
    .fd-leg-time { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
    .fd-leg-place { font-size: .8rem; color: var(--brown-80); line-height: 1.4; }
    .fd-leg-duration { font-size: .78rem; color: var(--brown-80); white-space: nowrap; padding-inline: 8px; border-block-end: 1px solid var(--teal-25); }
        .fd-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .84rem; color: var(--brown-80); }
    .fd-note { padding-inline-start: 10px; border-inline-start: 2px solid var(--teal-25); }
    .fd-note.is-visa { color: var(--brown); font-weight: 800; border-inline-start: 3px solid var(--arrow-red); background: var(--teal-04); padding-block: 8px; border-radius: 6px; }
    .fd-note a { color: var(--teal); text-decoration: underline; font-weight: 700; }
    .fd-note-checked { font-weight: 400; color: var(--brown-80); }
    .fd-options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
    .fd-option { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "who price btn" "extra extra extra"; align-items: center; gap: 6px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-row); }
    .fd-option.is-primary { border-color: var(--teal-25); background: var(--teal-04); }
    .fd-option-who { grid-area: who; display: flex; align-items: center; gap: 10px; min-width: 0; }
    .fd-option-seller { font-size: .9rem; font-weight: 800; line-height: 1.35; }
    .fd-option-covers { font-size: .78rem; color: var(--brown-80); }
    .fd-option-hint { display: block; margin-block-start: 8px; font-size: .8rem; color: var(--brown-80); }
    .fd-option-price { grid-area: price; font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
    .fd-option-btn { grid-area: btn; min-height: 44px; white-space: normal; text-align: center; line-height: 1.35; height: auto; padding-block: 8px; }
    .fd-option-extra { grid-area: extra; }
    .fd-option-seller-logo { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--teal-15); object-fit: contain; }
    .fd-compare-link { display: inline-flex; align-items: center; min-height: var(--tap-min); font-size: .78rem; font-weight: 700; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
    .fd-compare-extra { display: flex; flex-wrap: wrap; gap: 0 16px; margin-block-start: var(--space-half); }
    /* T2 (12 Nov 2026): booking rows from live offers: fare name, agency tag, fare tiers, loading bar, L3 helper. */
    .fd-option[hidden] { display: none; }
    button.btn-book { font-family: inherit; }
    .fd-option-fare { font-weight: 700; color: var(--text-strong); }
    .fd-option-total { display: block; font-size: var(--text-meta); font-weight: 600; color: var(--text-muted); white-space: nowrap; }
    .fd-agency-tag { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: var(--radius-chip); background: var(--surface-muted); color: var(--text-muted); font-size: var(--text-meta); font-weight: 700; line-height: 1.5; vertical-align: middle; }
    .fd-agency-logo { display: inline-flex; align-items: center; justify-content: center; color: var(--teal); font-size: .9rem; font-weight: 800; }
    .fd-option-more { display: flex; }
    .fd-fares-toggle { min-height: var(--tap-min); padding-inline: var(--space-1); border: none; background: none; color: var(--teal); font: inherit; font-size: .82rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
    .fd-offers-loading { display: flex; flex-direction: column; gap: var(--space-half); margin: 0 0 var(--space-1); font-size: var(--text-meta); }
    .fd-offers-loading::after { content: ""; display: block; width: 100%; height: 4px; border-radius: var(--radius-pill); background: var(--teal-08); animation: rcardPricePulse 1.2s ease-in-out infinite alternate; }
    .fd-helper { margin-block-start: var(--space-1); padding: var(--space-1-5); border: 1px solid var(--line); border-radius: var(--radius-row); background: var(--surface); }
    .fd-helper-title { margin: 0 0 var(--space-1); font-size: .86rem; font-weight: 700; line-height: 1.5; color: var(--text-strong); }
    .fd-helper-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
    .fd-helper-line { display: grid; grid-template-columns: 7em minmax(0, 1fr) auto; align-items: center; gap: var(--space-1); padding-block: 2px; border-block-end: 1px solid var(--line); }
    .fd-helper-line:last-child { border-block-end: none; }
    .fd-helper-label { font-size: var(--text-meta); color: var(--text-muted); }
    .fd-helper-value { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-strong); min-width: 0; overflow-wrap: anywhere; }
    .fd-helper-value bdi { white-space: nowrap; }
    .fd-helper-detail { font-weight: 400; font-size: var(--text-meta); color: var(--text-muted); }
    .fd-helper-copy { min-height: var(--tap-min); min-width: var(--tap-min); padding-inline: var(--space-1-5); border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--teal); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
    .fd-helper-copy.is-copied { background: var(--teal-08); }
    .fd-helper-steps { margin: var(--space-1-5) 0; padding-inline-start: 1.4em; font-size: .84rem; line-height: 1.6; color: var(--text-strong); }
    .fd-helper-open { width: 100%; min-height: var(--tap-min); }
    /* polish 8 Nov: the affiliate line lines up with the hint above it instead of being centred */
    .fd-book .transit-affiliate-note { text-align: start; }

    @media (max-width: 699px) {
      .fd-backdrop { padding: 0; align-items: stretch; }
      .fd-sheet { max-width: none; max-height: none; height: 100%; border-radius: 0; transform: translateY(40px); }
      .fd-body { padding: 12px 16px 20px; }
      .fd-leg-detail { grid-template-columns: minmax(0, 1fr); }
      .fd-option { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who price" "btn btn" "extra extra"; }
      .fd-option-btn { width: 100%; }
    }
    @media (prefers-reduced-motion: reduce) {
      .fd-sheet { transition: none; transform: none; }
      .fd-chev { transition: none; }
      /* polish 8 Nov: everything in results and the popup is still under reduced motion */
      .fd-backdrop { transition: none; }
      .flight-card.rcard { transition: none; }
      .rcard-price > .rcard-price-loading::after { animation: none; }
      .fd-offers-loading::after { animation: none; }
    }

    /* 5 Nov 2026: booking options stand out from every other button (blue), and sit right under the price. */
    .btn-book {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      padding-block: 10px; padding-inline: 20px; border-radius: var(--radius-pill);
      border: none; background-color: var(--book-blue); color: #fff;
      font-size: .95rem; font-weight: 800; cursor: pointer; text-decoration: none;
    }
    .btn-book:hover, .btn-book:focus-visible { background-color: var(--book-blue-hover); color: #fff; }
    .fd-book .fd-option { border-color: var(--book-blue-20); background: var(--book-blue-04); }
    .fd-book .fd-option.is-primary { border-color: var(--book-blue); }
    .fd-book .fd-h { color: var(--book-blue); }


    /* Cookie consent bar (6 Nov 2026): EU/EEA, UK and CH visitors only, small, bottom of the screen. */
    .consent-bar { position: fixed; inset-inline: 12px; inset-block-end: 12px; z-index: 900; max-width: 560px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; background: var(--cream); color: var(--brown); border: 1px solid var(--teal-15); border-radius: var(--radius-card); box-shadow: var(--card-shadow-lg); font-size: .88rem; line-height: 1.6; }
    .consent-bar[hidden] { display: none; }
    .consent-bar p { margin: 0; flex: 1 1 240px; }
    .consent-bar a { color: var(--teal); text-decoration: underline; }
    .consent-actions { display: flex; gap: 8px; }
    .consent-btn { font: inherit; font-size: .86rem; min-height: 38px; padding: 6px 16px; border-radius: var(--radius-pill); border: 1px solid var(--teal-25); background: transparent; color: var(--teal); cursor: pointer; }
    .consent-btn.is-primary { background: var(--teal); border-color: var(--teal); color: var(--cream); }
    .consent-btn.is-primary:hover { background: var(--teal-hover); }
    .footer-link-btn { background: none; border: 0; padding-inline: 0; font: inherit; font-size: .92rem; cursor: pointer; }

    /* 8 Nov 2026: on touch screens the real date input covers its whole field (see app.js), so a tap
       always opens the phone's own date picker (iOS ignored the hidden input / showPicker sometimes). */
    .sr-only-date-input.date-input-overlay {
      position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: auto;
      z-index: 3; display: block; font-size: 16px; -webkit-appearance: none; appearance: none;
      background: transparent; color: transparent; cursor: pointer;
    }
    .sr-only-date-input.date-input-overlay:disabled { pointer-events: none; }
    .field-group:has(.date-input-overlay:focus) { background: var(--teal-04); }
    .currency-note { font-size: .78rem; color: var(--brown-80); margin: 6px 0 0; }
    /* 8 Nov 2026: announcement bar, ad places, blog and pages. */
    .announce-bar { background: var(--teal); color: var(--cream); text-align: center; font-size: .9rem; padding: 7px 14px; position: relative; z-index: 60; }
    .announce-bar a { color: var(--cream); text-decoration: underline; }
    .ad-slot { margin: 18px auto; text-align: center; position: relative; max-width: 970px; }
    .ad-slot img { max-width: 100%; height: auto; border-radius: 10px; }
    .ad-slot-label { display: block; font-size: .7rem; color: var(--brown-80); margin-bottom: 4px; }
    .ad-slot-banner { display: inline-block; line-height: 0; border-radius: 10px; }
    .ad-slot-img { display: block; margin-inline: auto; }
    .content-header { position: sticky; top: 0; }
    .content-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
    .content-nav a { color: var(--teal); text-decoration: none; font-weight: 600; }
    .content-main { padding: 28px 0 56px; min-height: 60vh; }
    .content-container { max-width: 820px; }
    .content-title { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.35; color: var(--teal); margin: 6px 0 12px; }
    .content-lead { color: var(--brown-80); margin: 0 0 22px; }
    .content-cover { width: 100%; height: auto; border-radius: 14px; margin: 8px 0 18px; }
    .content-prose { font-size: 1.05rem; line-height: 1.95; }
    .content-prose h2 { font-size: 1.35rem; color: var(--teal); margin: 1.6em 0 .5em; }
    .content-prose h3 { font-size: 1.12rem; color: var(--teal); margin: 1.3em 0 .4em; }
    .content-prose img { max-width: 100%; height: auto; border-radius: 10px; }
    .content-prose a { color: var(--teal); text-decoration: underline; }
    .content-prose blockquote { margin: 1em 0; padding: 8px 16px; border-inline-start: 4px solid var(--teal-25, #cfd8d6); background: var(--teal-04, #f2f5f4); }
    .content-prose table { border-collapse: collapse; width: 100%; } .content-prose td, .content-prose th { border: 1px solid #dfe5e3; padding: 6px 8px; }
    .content-cta { margin: 28px 0; }
    .content-cta .btn-primary { display: inline-flex; text-decoration: none; }
    .content-related { margin-top: 32px; border-top: 1px solid var(--teal-15, #dfe5e3); padding-top: 16px; }
    .content-preview-note { background: #fff4d6; padding: 8px 12px; border-radius: 8px; }
    .blog-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .blog-card { background: var(--cream, #fff); border: 1px solid var(--teal-15, #dfe5e3); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
    .blog-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
    .blog-card-body { padding: 14px 16px 16px; }
    .blog-card h2 { font-size: 1.1rem; margin: 0 0 6px; line-height: 1.5; } .blog-card h2 a { color: var(--teal); text-decoration: none; }
    .blog-card p { margin: 0 0 8px; color: var(--brown-80); font-size: .92rem; }
    .blog-meta { font-size: .82rem; color: var(--brown-80); }
    .blog-meta a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; } /* QA 8 Nov: a link in text needs more than colour (WCAG 1.4.1) */

    /* ===== English site (8 Nov 2026): language switch, one-time hint, LTR fixes ===== */
    .lang-switch { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding-inline: 10px; border-radius: var(--radius-control); color: var(--teal); font-weight: 700; font-size: var(--text-small, .88rem); text-decoration: none; white-space: nowrap; }
    .lang-switch:hover { background: var(--teal-08); }
    .lang-switch-mobile { display: flex; }
    .content-nav .lang-switch { min-height: 0; padding-inline: 0; }
    @media (max-width: 699px) {
      /* Phones: the switch lives in the menu (and the hint), keeping the header row as it was. */
      .lang-switch-header { display: none; }
    }
    .lang-hint { position: fixed; inset-block-start: 10px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--teal); color: var(--cream); box-shadow: 0 6px 18px rgba(14, 54, 62, .25); font-size: .88rem; font-weight: 700; }
    .lang-hint[hidden] { display: none; }
    .lang-hint a { color: var(--cream); text-decoration: none; }
    .lang-hint-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--cream); font-size: 1.2rem; line-height: 1; cursor: pointer; }
    .lang-hint-close:hover { background: rgba(255, 255, 250, .15); }
    /* The popup's X stays at the physical top right in both languages; in LTR the title then needs room on the right too. */
    [dir="ltr"] .fd-header { padding-left: 20px; padding-right: 64px; }
    /* The hero cloud and ground shadow are centred with inset-inline-start: 50% + translateX(50%) (written for RTL);
       in LTR the same transform needs the anchor on the inline end. */
    [dir="ltr"] .hero-cloud-layer, [dir="ltr"] .hero-ground-shadow { inset-inline-start: auto; inset-inline-end: 50%; }
    /* QA 8 Nov 2026: the cloud's 4 px breathing drift points to the page edge in LTR and made /en scroll
       sideways by 3 px on phones; in LTR it drifts the other way (same look, mirrored). */
    @keyframes heroCloudBreatheLtr {
      0%, 100% { transform: translate3d(50%, 0, 0) scale(1) rotate(-0.8deg); }
      50% { transform: translate3d(calc(50% - 4px), -4px, 0) scale(1.04) rotate(1deg); }
    }
    [dir="ltr"] .hero-cloud-layer { animation-name: heroCloudBreatheLtr; }


    /* ==========================================================================
       8 Nov 2026 (Ibrahim): English font, hero without the plane, bigger family
       ========================================================================== */
    /* English pages use Bricolage Grotesque; Arabic letters inside English pages fall back to Alyamama. */
    html[lang="en"] {
      --font-ui: "Bricolage Grotesque", "Alyamama", Tahoma, Arial, sans-serif;
      --font-data: "Bricolage Grotesque", "Alyamama", Tahoma, Arial, sans-serif;
    }
    html[lang="en"],
    html[lang="en"] body,
    html[lang="en"] :is(h1, h2, h3, h4, button, input, select, textarea, .hero-title, .hero-line-welcome, .hero-line-main) {
      font-family: var(--font-ui);
    }


    /* Bigger cloud and family; their feet tuck behind the search card. */
    .hero-content .search-card { z-index: 2; }
    .hero-illustration { height: 300px; align-self: end; margin-block-end: -62px; } /* 10 Nov: family up a little (was -85px) */
    .hero-family-img { height: 286px; max-width: none; }
    .hero-cloud-layer { width: 420px; inset-block-end: 70px; }
    .hero-ground-shadow { display: none; }
    @media (max-width: 699px) {
      .hero-header-grid { grid-template-columns: minmax(0,1fr) 168px; }
      .hero-illustration { height: 150px; margin-block-end: -38px; justify-content: flex-end; } /* 10 Nov: was -54px */
      .hero-family-img { height: 140px; max-width: none; }
      .hero-cloud-layer { width: 180px; inset-block-end: 36px; }
    }
    /* Bricolage is a little wider than Alyamama: keep dates and city names on one line in the form. */
    html[lang="en"] :is(.date-btn-text, .route-pair-wrap .city-name-text) { white-space: nowrap; letter-spacing: -0.01em; }

    /* 9 Nov 2026 (Sandid, iPhone): with the airport/passenger picker open, the hero text was painted
       over the picker (the copy column, z 4, sat above the search card, z 2) and the page scrolled
       behind the sheet. Lift the card while a picker is open, stop the page scrolling under the phone
       sheet, and stick the airport search box flush to the sheet's top (no rows peeking above it). */
    .picker-open .hero-content { z-index: 70; }
    .picker-open .hero-content .search-card { z-index: 5; }
    @media (max-width: 699px) {
      html:has(> body.picker-open), body.picker-open { overflow: hidden; }
      .dropdown-panel .airport-search-wrap { inset-block-start: -12px; }
    }

    /* ===== Focus + currency list (9 Nov 2026, DESIGN-RULES §5) ===== */
    /* Open or focused currency control: shown by the control itself (border + light fill), never a ring
       floating around it. The ring from the one focus rule still appears on keyboard Tab. */
    .currency-select:focus { border-color: var(--teal); background-color: var(--teal-04); }
    /* Chrome / Edge 135+ (customizable <select>): the open list gets the site's look. Safari and
       Firefox keep their own list (the iPhone wheel). app.js still reads #currency-switcher's value. */
    @supports (appearance: base-select) {
      .currency-select, .currency-select::picker(select) { appearance: base-select; }
      .currency-select { background-image: none; padding-inline: 12px 10px; gap: 6px; }
      .currency-select::picker-icon {
        content: ""; width: 12px; height: 12px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
        transition: rotate var(--dur-press) var(--ease-out);
      }
      .currency-select:open { border-color: var(--teal); background-color: var(--teal-04); }
      .currency-select:open::picker-icon { rotate: 180deg; }
      .currency-select::picker(select) {
        min-width: 150px; max-height: min(60vh, 420px); overflow-y: auto; overscroll-behavior: contain;
        margin-block: 6px; padding: var(--space-half); border: 1px solid var(--line); border-radius: var(--radius-row);
        background: var(--surface); color: var(--text-strong); box-shadow: var(--card-shadow-lg);
      }
      .currency-select option {
        display: flex; align-items: center; gap: var(--space-1); min-height: var(--tap-min); padding-inline: 12px;
        border-radius: var(--radius-control); font-family: var(--font-data); font-weight: 700; font-size: .86rem;
        font-variant-numeric: tabular-nums; cursor: pointer;
      }
      .currency-select option::checkmark { order: 1; margin-inline-start: auto; color: var(--teal); }
      .currency-select option:hover { background: var(--teal-04); }
      .currency-select option:checked { background: var(--teal-08); color: var(--teal); }
      .currency-select option:focus-visible { outline-offset: calc(var(--focus-ring-width) * -1); }
      @media (max-width: 699px) {
        .currency-select { padding-inline: 7px 6px; }
        /* phones: the list is a sheet at the bottom of the screen, like the airport and passenger pickers */
        .currency-select::picker(select) {
          position: fixed; position-area: none; inset: auto 16px max(16px, env(safe-area-inset-bottom)) 16px;
          margin: 0; width: auto; max-height: 65dvh; padding: var(--space-1); border-radius: var(--radius-sheet);
          box-shadow: 0 0 0 100vmax rgba(14, 54, 62, .25), var(--card-shadow-lg);
        }
        .currency-select option { min-height: 48px; font-size: .95rem; }
      }
    }

    /* ===== Results bar: edit the search in place (9 Nov 2026) ===== */
    .summary-bar { position: relative; z-index: 40; }
    .summary-edit { gap: var(--space-1); min-width: 0; }
    .summary-route { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-half); min-width: 0; }
    .summary-slot { position: relative; min-width: 0; }
    .summary-part {
      display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap-min); max-width: 100%;
      padding-block: 6px; padding-inline: 12px 10px; border: 1px solid var(--line); border-radius: var(--radius-control);
      background: var(--surface); color: var(--text-strong); font: inherit; font-weight: 700; line-height: 1.5;
      text-align: start; cursor: pointer; touch-action: manipulation;
      transition: border-color var(--dur-press) ease, background-color var(--dur-press) ease;
    }
    .summary-part:hover { border-color: var(--line-strong); background: var(--surface-muted); }
    /* open: shown by the control itself (teal border, light fill, chevron turned), not by a ring */
    .summary-part[aria-expanded="true"] { border-color: var(--teal); background: var(--surface-muted); }
    .summary-part-text { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
    .summary-part-text .code-badge { margin: 0; }
    .summary-cue { display: inline-flex; flex: none; color: var(--teal); transition: transform var(--dur-press) var(--ease-out); }
    .summary-part[aria-expanded="true"] .summary-cue { transform: rotate(180deg); }
    .summary-swap {
      display: inline-grid; place-items: center; flex: none; width: var(--tap-min); height: var(--tap-min); padding: 0;
      border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; touch-action: manipulation;
      transition: background-color var(--dur-press) ease;
    }
    .summary-swap:hover { background: var(--surface-muted); }
    .summary-swap-icon { width: 28px; height: 28px; transform: rotate(var(--swap-spin, 0deg)); transition: transform var(--dur-enter) var(--ease-out); }
    .summary-edit-link {
      display: inline-flex; align-items: center; min-height: var(--tap-min); padding-inline: var(--space-half);
      color: var(--teal); font-weight: 700; font-size: var(--text-small); text-decoration: underline; text-underline-offset: 3px;
    }
    .bar-validation-msg { margin-block: var(--space-1) 0; }
    /* pickers opened from the bar: under their button on wide screens (phones: the bottom sheet below) */
    .summary-slot > .dropdown-panel { inset-block-start: calc(100% + 6px); inset-inline-start: 0; width: max-content; min-width: 300px; }
    #bar-pax-slot > .dropdown-panel, #bar-date-slot > .dropdown-panel { inset-inline-start: auto; inset-inline-end: 0; }
    .dropdown-panel.in-bar .dropdown-dismiss { display: flex; width: 100%; justify-content: center; margin-block-end: var(--space-1); }
    .bar-date-panel { width: min(400px, calc(100vw - 32px)); padding: var(--space-1-5); }
    .bar-date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1); }
    .bar-date-fields .trip-type-bar { grid-column: 1 / -1; justify-self: start; }
    .bar-date-fields .field-group {
      position: relative; padding: 8px 12px 6px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface);
    }
    .bar-date-fields .field-group:focus-within { border-color: var(--teal); background: var(--surface-muted); }
    html:not([data-input="pointer"]) .bar-date-fields .field-group:has(> .field-control:focus-visible) { box-shadow: var(--focus-ring); }
    .bar-date-fields .field-group > .field-control:focus-visible { outline: none; }
    .bar-date-fields .date-btn-text { font-size: .88rem; }
    .bar-apply-btn { width: 100%; margin-block-start: var(--space-1-5); }
    @media (max-width: 699px) {
      .summary-bar { padding-block: 10px; }
      .summary-inner { gap: var(--space-1); }
      .summary-edit { width: 100%; font-size: .85rem; }
      .summary-edit-link { margin-inline-start: auto; }
      /* phones: every bar picker is the same bottom sheet as in the home form */
      .summary-slot > .dropdown-panel, #bar-pax-slot > .dropdown-panel, #bar-date-slot > .dropdown-panel {
        inset-block-start: auto; inset-inline: 16px; width: auto; min-width: 0;
      }
      /* From over To, the swap button beside both (as in the home form) */
      .summary-route { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-1); row-gap: var(--space-half); width: 100%; }
      #bar-from-slot { grid-row: 1; grid-column: 1; }
      #bar-to-slot { grid-row: 2; grid-column: 1; }
      .summary-route .summary-swap { grid-row: 1 / 3; grid-column: 2; align-self: center; }
      .summary-route .summary-part { width: 100%; }
      .summary-cue { margin-inline-start: auto; }
      .bar-date-fields .date-btn-text { font-size: .83rem; }
    }

    /* ===== Phone sheets above the on-screen keyboard (9 Nov 2026) =====
       app.js (trackKeyboardInset) sets --kb-inset (screen covered by the keyboard) and --vv-height (what is
       still visible). Without a keyboard both are no-ops: 0 and the full height. */
    @media (max-width: 699px) {
      .dropdown-panel {
        inset-block-end: max(calc(var(--kb-inset, 0px) + var(--space-1)), env(safe-area-inset-bottom), 16px);
        max-height: min(65dvh, 440px, calc(var(--vv-height, 100dvh) - var(--space-3)));
      }
    }
    /* A bar picker covers the sticky header while open (like the home form's .picker-open rules). */
    .picker-open .summary-bar { z-index: 70; }
    @media (max-width: 699px) {
      /* with the keyboard up the sheet reaches the top of the screen: it must cover the sticky header */
      body.picker-open .site-header { z-index: 0; }
    }
    @media (min-width: 700px) { #bar-from-slot > .dropdown-panel, #bar-to-slot > .dropdown-panel { min-width: 360px; } }

    /* 18 Nov 2026: the hero plane animation is gone (Ibrahim: it looked childish and wasted the sky). */
    .hero-header-grid { position: relative; }
    .hero-band { overflow-x: clip; }
    /* 10 Nov 2026 (Ibrahim): English headline on two lines on wide screens ("Your trip home, / for less"),
       so there is open sky between it and the family for the plane. */
    .hero-main-break { display: none; }
    @media (min-width: 700px) { html[lang="en"] .hero-main-break { display: inline; } }

    /* 13 Nov 2026 (T6): baggage allowance chips (fare_baggage). Card: one meta line under the price;
       popup: a bag row in the summary and chips under each fare tier. Words carry the meaning, the
       "not included" chip only adds a rule colour (DESIGN-RULES §2: never colour alone). */
    .rcard-bag { display: block; font-size: var(--text-meta); font-weight: 700; line-height: 1.4; color: var(--text-muted); font-variant-numeric: tabular-nums; }
    .bag-chips { display: inline-flex; flex-wrap: wrap; gap: var(--space-half); vertical-align: middle; }
    .bag-chip { display: inline-block; padding: 2px var(--space-1); border-radius: var(--radius-chip); background: var(--surface-muted); border: 1px solid var(--line); font-size: var(--text-meta); font-weight: 700; line-height: 1.5; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
    .bag-chip.is-no { border-color: var(--line-strong); color: var(--text-muted); }
    .bag-chip.is-smaller { background: var(--teal-08); }
    .fd-bag { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-half) var(--space-1); margin-block: var(--space-1) 0; }
    .fd-bag-h { font-size: var(--text-meta); font-weight: 800; color: var(--text-strong); }
    .fd-bag-legs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-half); flex-basis: 100%; }
    .fd-bag-legs li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-half) var(--space-1); }
    .fd-bag-flight { font-size: var(--text-meta); font-weight: 700; color: var(--text-muted); min-inline-size: 4.5em; }
    .fd-bag-note, .fd-bag-source { flex-basis: 100%; font-size: var(--text-meta); color: var(--text-muted); }
    .fd-bag-source a { color: var(--teal); }
    .fd-option-bags { margin-block-start: var(--space-half); }

    /* T8 (15 Nov 2026): flight popup, everything important without scrolling.
       Header line 2 (date · duration · stops · price · "i"), a compact timeline, the bag row and the
       booking rows above the fold; desktop ≥ 900 px is a 960 px sheet with two columns; phones get a
       bar with the price and the first book button once that row has scrolled away. */
    .fd-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-1-5); font-size: .84rem; line-height: 1.5; color: var(--text-muted); }
    .fd-sub-trip { font-variant-numeric: tabular-nums; }
    .fd-sub-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
    .fd-head-amount { font-size: 1.15rem; font-weight: 800; line-height: 1.2; color: var(--text-strong); font-variant-numeric: tabular-nums; }
    .fd-head-amount.is-partial { font-size: .95rem; }
    .fd-sub .rcard-price-loading { font-size: var(--text-meta); }
    .fd-sub .fd-price-none { font-size: .86rem; }
    /* 44 × 44 target, drawn as a small circle; it overhangs the line so the header stays two lines tall */
    .fd-info-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--tap-min); height: var(--tap-min); margin-block: -11px; margin-inline: -8px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--teal); cursor: pointer; font: inherit; }
    .fd-info-i { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font-family: Georgia, "Times New Roman", serif; font-size: .8rem; font-weight: 700; font-style: italic; line-height: 1; }
    .fd-info-btn[aria-expanded="true"] .fd-info-i { background: var(--teal); color: var(--surface); border-color: var(--teal); }
    .fd-info-btn:hover .fd-info-i { background: var(--teal-08); }
    .fd-info-btn[aria-expanded="true"]:hover .fd-info-i { background: var(--teal); }
    .fd-price-info { padding: 10px 14px; border-radius: var(--radius-row); background: var(--surface-muted); }
    .fd-price-info[hidden] { display: none; }
    .fd-price-info .fd-price { gap: 2px 10px; }

    .fd-layout { display: flex; flex-direction: column; gap: 14px; }
    .fd-trip { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
    /* one column: the route needs no heading (it is the first thing under the header) */
    .fd-h-path { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .fd-book .fd-h { margin-block-end: 8px; }

    /* compact flight row (≤ 64 px), its own disclosure for the full flight */
    .fd-leg-more > summary, .fd-warn summary, .fd-more > summary { list-style: none; }
    .fd-leg-more > summary::-webkit-details-marker, .fd-warn summary::-webkit-details-marker, .fd-more > summary::-webkit-details-marker { display: none; }
    .fd-leg-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 10px; align-items: center; gap: 10px; min-height: var(--tap-min); max-height: 64px; padding: 8px 12px; border-radius: var(--radius-row); cursor: pointer; }
    .fd-leg-row:hover { background: var(--surface-muted); }
    .fd-leg-row .airline-logo, .fd-leg-row .airline-badge { width: 32px; height: 32px; }
    .fd-leg-main { display: flex; flex-direction: column; min-width: 0; }
    .fd-leg-times { font-size: 1rem; font-weight: 800; line-height: 1.3; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
    .fd-leg-code { font-size: .8rem; font-weight: 700; color: var(--text-muted); }
    .fd-leg-arrow { font-weight: 400; color: var(--text-muted); }
    .fd-leg-sub { font-size: var(--text-meta); line-height: 1.4; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .fd-leg-dur { font-size: .78rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
    .fd-chev { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-press) ease-out; }
    details[open] > summary .fd-chev { transform: translateY(2px) rotate(225deg); }

    /* layover: one 32 px chip between the flights */
    .fd-layover { display: flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; min-height: 32px; padding: 2px 12px; border-radius: var(--radius-pill); background: var(--teal-04); color: var(--teal); font-size: .8rem; font-weight: 800; line-height: 1.3; white-space: nowrap; overflow: hidden; }
    .fd-layover .code-badge { flex: 0 0 auto; }
    .fd-icon { display: inline-flex; align-items: center; color: var(--teal); }

    /* warnings (separate tickets, visa): one coloured line; the full text opens from it */
    .fd-warn-chip { display: flex; align-items: center; gap: 8px; min-height: var(--tap-min); padding: 6px 12px; border-radius: 10px; border-inline-start: 4px solid var(--arrow-red); font-size: .82rem; line-height: 1.45; color: var(--text-strong); cursor: pointer; }
    .fd-warn.is-separate .fd-warn-chip { background: #fff6f2; }
    .fd-warn.is-visa .fd-warn-chip { background: var(--teal-04); font-weight: 700; }
    .fd-warn-label { flex: 0 0 auto; font-weight: 800; white-space: nowrap; }
    .fd-warn-icon { display: inline-flex; flex: 0 0 auto; color: var(--arrow-red); }
    .fd-warn-text { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .fd-warn details[open] .fd-warn-text { white-space: normal; overflow: visible; }
    .fd-warn-body { margin: 0; padding: 6px 16px 2px; font-size: var(--text-meta); color: var(--text-muted); line-height: 1.6; }
    .fd-warn-body a { color: var(--teal); text-decoration: underline; font-weight: 700; }

    /* bag row: chips only (note and sources are in "more details") */
    .fd-trip .fd-bag { margin: 0; }
    .fd-trip .fd-bag-legs { display: flex; flex-wrap: wrap; gap: var(--space-half) var(--space-2); }
    .fd-trip .fd-bag-flight { min-inline-size: 0; }

    /* "more details": closed, under everything */
    .fd-more { border-block-start: 1px solid var(--line); }
    .fd-more-summary { display: flex; align-items: center; gap: 10px; min-height: var(--tap-min); font-size: .9rem; font-weight: 800; color: var(--teal); cursor: pointer; }
    .fd-more .fd-notes { padding-block-end: 4px; }
    .fd-note a { overflow-wrap: anywhere; }

    /* phone bar (< 900 px) */
    .fd-bar { position: sticky; inset-block-end: 0; z-index: 2; border-block-start: 1px solid var(--line); background: var(--surface); box-shadow: 0 -4px 14px rgba(6, 26, 30, .08); padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); }
    .fd-bar[hidden] { display: none; }
    .fd-bar-in { display: flex; align-items: center; gap: 12px; }
    .fd-bar-price { flex: 0 0 auto; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-strong); }
    .fd-bar-btn { flex: 1 1 auto; min-height: var(--tap-min); padding-block: 6px; padding-inline: 14px; line-height: 1.3; text-align: center; white-space: normal; font-size: .9rem; }


    @media (min-width: 900px) {
      .fd-sheet { max-width: 960px; }
      .fd-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "trip book" "more more"; gap: 16px 28px; align-items: start; }
      .fd-trip { grid-area: trip; }
      .fd-book { grid-area: book; }
      .fd-more { grid-area: more; }
      .fd-h-path { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin-block-end: -2px; }
      .fd-trip .fd-h { margin-block-end: 0; }
      .fd-bar, .fd-bar:not([hidden]) { display: none; }
      /* the booking column is ~ 500 px: seller and price on one line, the button under them (as on phones) */
      .fd-book .fd-option { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who price" "btn btn" "extra extra"; }
      .fd-book .fd-option-btn { width: 100%; }
    }
    @media (max-width: 379px) {
      .fd-leg-row { gap: 8px; padding-inline: 10px; }
      .fd-body { padding-inline: 12px; }
    }


    /* ==========================================================================
       VISUAL REFRESH (18 Nov 2026, founder-approved; design file: Pencil "landing page audit").
       One layer at the end of the file so the earlier tuned rules stay readable. Rules: docs/ui/DESIGN-RULES.md.
       Role colours (all AA on white/cream): ember = warmth and the one headline word; leaf = "direct" and good news;
       sky = information; rose = saved; sun = "cheapest". Teal stays the brand and the primary action.
       ========================================================================== */
    :root {
      --ember: #B5532E;      /* 4.9:1 on white */
      --leaf: #2E7D5B;       /* 5.0:1 */
      --leaf-soft: #E3F1EA;
      --sky: #2F6F9F;        /* 5.3:1 */
      --rose: #C2413B;       /* 5.0:1 */
      --sun-soft: #FBF0D2;
      --sun-ink: #6B4A00;    /* 7.4:1 on --sun-soft */
      --text-quiet: #4A5F62; /* labels and meta: 6.6:1 on white */
      --icon-ui: 20px;       /* every control icon */
      --icon-inline: 16px;   /* carets, steppers, small inline marks */
      --radius-field: 14px;
      --radius-search: 20px;
      /* notch: tighter shoulder so the cards can be 80 px tall, and more air between the text and the curve */
      --swap-fillet: 6px;
      --swap-card-h: 80px;
      --swap-card-h-mobile: 68px;
      --swap-radius: var(--radius-field);
      --swap-text-clear: 12px;
      --swap-fill-top: var(--surface);
      --swap-fill-bottom: var(--surface);
      --swap-stroke: var(--teal-25);
      --swap-stroke-hover: var(--teal);
      --swap-shadow: none;
      --swap-shadow-hover: none;
    }
    .ph-icon { flex-shrink: 0; display: inline-block; vertical-align: middle; color: inherit; }
    [dir="ltr"] .ph-dir { transform: scaleX(-1); }

    /* ---- Header ---- */
    .nav-link-btn { border: none; background: transparent; font-family: inherit; cursor: pointer; }
    .header-saved-btn { border: none; background: transparent; gap: 6px; }
    .header-saved-btn:hover { background: var(--teal-04); }
    .header-saved-icon { width: var(--icon-ui); height: var(--icon-ui); }
    .saved-count-badge[hidden] { display: none; }
    .saved-count-badge { width: auto; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 999px; background: var(--teal); color: var(--cream); font-size: .72rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
    .currency-wrap { gap: 0; }

    /* ---- Hero ---- */
    .hero-accent { color: var(--ember); }
    .hero-description { color: var(--text-quiet); }

    /* ---- Search card ---- */
    .search-card { padding: 20px; border-radius: var(--radius-search); background: var(--surface); border: 1px solid var(--teal-15); box-shadow: 0 12px 32px rgba(14, 54, 62, .08); }
    .search-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 16px; }
    .trip-type-bar { gap: 4px; padding: 4px; border-radius: 14px; background: var(--teal-08); border: none; }
    .trip-type-bar .pill-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; color: var(--text-quiet); font-weight: 500; font-size: .9rem; }
    .trip-type-bar .pill-tab.active { background: var(--surface); color: var(--teal); font-weight: 700; box-shadow: 0 1px 3px rgba(14, 54, 62, .15); }
    .passport-choice { margin: 0; gap: 10px; flex-wrap: nowrap; }
    .passport-choice .field-label { color: var(--text-quiet); font-size: .82rem; white-space: nowrap; }
    .passport-bar { display: inline-flex; flex-wrap: wrap; gap: 6px; }
    .passport-bar .pill-tab { min-height: 44px; padding: 0 14px; border: 1px solid var(--teal-15); border-radius: 12px; background: var(--surface); color: var(--text-quiet); font-size: .86rem; font-weight: 500; }
    .passport-bar .pill-tab.active { border-color: var(--teal); background: var(--teal-04); color: var(--teal); font-weight: 700; box-shadow: none; }

    .search-grid { gap: 12px; }
    .search-grid > .field-group,
    .search-grid > .field-group:first-of-type,
    .search-grid > .field-group:nth-child(2) { background: var(--surface); border: 1px solid var(--teal-25); border-radius: var(--radius-field); padding: 12px 18px 10px; }
    .search-grid > .field-group:hover { border-color: var(--teal); }
    .search-grid > .field-group:focus-within { background: var(--surface); }
    .search-grid > .field-group:has(.field-control[aria-expanded="true"]),
    .search-grid > .field-group:has(.date-picker-btn.is-open) { background: var(--teal-04); border-color: var(--teal); }
    .route-pair-wrap .field-group:has(.field-control[aria-expanded="true"]) .swap-card-fill { fill: var(--teal-04); stroke: var(--teal); }
    .search-grid .field-label { color: var(--text-quiet); font-size: .78rem; font-weight: 500; }
    .search-grid .field-control { font-weight: 700; }
    .date-btn-text { font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; }
    .date-picker-btn.is-add-return .date-btn-text { color: var(--teal); font-weight: 600; }
    .date-btn-icon, .pax-icon { color: var(--teal); display: inline-flex; }
    .date-btn-icon .ph-icon, .pax-icon .ph-icon { width: var(--icon-ui); height: var(--icon-ui); }
    .route-pair-wrap .code-badge { background: var(--teal-04); border: none; border-radius: 6px; }
    .search-grid .search-submit-btn { border-radius: var(--radius-field); gap: 10px; font-size: 1rem; box-shadow: none; }
    .search-submit-icon { width: var(--icon-ui); height: var(--icon-ui); }

    /* swap: two line arrows; the button itself stays the 44 px target inside the notch */
    .route-pair-wrap .swap-btn { background: var(--surface); border: 1px solid var(--teal-25); box-shadow: 0 2px 6px rgba(14, 54, 62, .12); }
    .route-pair-wrap .swap-btn:hover { background: var(--teal-04); border-color: var(--teal); box-shadow: 0 2px 8px rgba(14, 54, 62, .18); }
    .route-pair-wrap .swap-btn .swap-icon-lines { display: grid; width: 18px; height: auto; line-height: 0; stroke: none; }
    .route-pair-wrap .swap-btn .swap-icon-lines .ph-icon { width: 18px; height: 14px; stroke: none; transform: none; }
    .swap-arrow-a { color: var(--teal); }
    .swap-arrow-b { color: var(--ember); }
    .stepper-btn { color: var(--teal); border: 1px solid var(--teal-25); background: var(--surface); border-radius: 50%; }
    .stepper-btn:disabled { color: var(--teal-25); border-color: var(--teal-15); }
    .stepper-btn .ph-icon { width: var(--icon-inline); height: var(--icon-inline); }

    @media (min-width: 1000px) {
      /* dates and passengers read as one joined box next to the two notch cards */
      .search-grid > .field-group:nth-child(2) { border-start-end-radius: 0; border-end-end-radius: 0; }
      .search-grid > #ret-date-group { margin-inline-start: -13px; border-radius: 0; }
      .search-grid > #pax-field-group { margin-inline-start: -13px; border-start-start-radius: 0; border-end-start-radius: 0; }
      .search-grid > .field-group:hover, .search-grid > .field-group:focus-within,
      .search-grid > .field-group:has(.date-picker-btn.is-open), .search-grid > .field-group:has(.field-control[aria-expanded="true"]) { position: relative; z-index: 1; }
    }
    @media (max-width: 699px) {
      .search-card { padding: 12px; border-radius: 18px; }
      .search-card-top { gap: 10px; margin-block-end: 10px; }
      .search-card-top > .trip-type-bar { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
      .passport-choice { width: 100%; justify-content: space-between; }
      .search-grid { gap: 10px; }
      .search-grid > .field-group:nth-child(2) { border-start-end-radius: 0; border-end-end-radius: 0; }
      .search-grid > #ret-date-group { margin-inline-start: -11px; border-start-start-radius: 0; border-end-start-radius: 0; }
    }

    /* search: room for a spoken date on one line; phones put the passport choice under the button */
    .date-btn-text { white-space: nowrap; }
    @media (min-width: 1000px) {
      .search-grid { grid-template-columns: minmax(350px, 2.1fr) minmax(176px, 1fr) minmax(176px, 1fr) minmax(136px, .8fr) minmax(158px, .95fr); }
    }
    @media (max-width: 699px) {
      .search-card { display: flex; flex-direction: column; }
      .search-card-top { display: contents; }
      .search-card-top > .trip-type-bar { order: 0; margin-block-end: 10px; }
      .search-grid { order: 1; }
      .passport-choice { order: 2; margin-block-start: 12px; flex-wrap: wrap; justify-content: flex-start; }
      .search-card > .search-error-msg { order: 3; }
      .date-btn-icon { display: none; }
      .date-btn-text { font-size: .86rem; }
    }

    /* ---- Why strip: one quiet row, hairlines instead of four boxes ---- */
    .why-strip { padding-block: 28px 0; }
    .why-strip-grid { gap: 0; padding-block-end: 28px; border-block-end: 1px solid var(--teal-15); }
    .why-strip-card { flex-direction: row; align-items: center; gap: 14px; padding: 0 20px; border: none; border-radius: 0; background: transparent; box-shadow: none; }
    .why-strip-card + .why-strip-card { border-inline-start: 1px solid var(--teal-15); }
    .why-strip-card:first-child { padding-inline-start: 0; }
    .why-strip-card:last-child { padding-inline-end: 0; }
    .why-strip-icon { width: 44px; height: 44px; margin: 0; flex-shrink: 0; }
    .why-strip-title { font-size: .95rem; font-weight: 700; }
    .why-strip-line { font-size: .8rem; line-height: 1.6; color: var(--text-quiet); }
    @media (max-width: 1099px) {
      .why-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
      .why-strip-card, .why-strip-card:first-child, .why-strip-card:last-child { padding: 0; }
      .why-strip-card + .why-strip-card { border-inline-start: none; }
    }
    @media (max-width: 699px) {
      .why-strip { padding-block: 20px 0; }
      .why-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding-block-end: 20px; }
      .why-strip-card { gap: 8px; }
      .why-strip-icon { width: 34px; height: 34px; }
      .why-strip-title { font-size: .82rem; line-height: 1.45; }
      .why-strip-line { display: none; }
    }

    /* ---- Sections ---- */
    .section-title { font-weight: 800; color: var(--teal); }
    .section-desc { color: var(--text-quiet); }
    .trip-filter-bar { gap: 20px; padding: 0; background: transparent; border: none; }
    .trip-filter-bar .pill-tab { min-height: 44px; padding: 0 4px; border: none; border-radius: 0; background: transparent; color: var(--text-quiet); font-weight: 500; box-shadow: inset 0 -2px 0 transparent; }
    .trip-filter-bar .pill-tab.active { background: transparent; color: var(--teal); font-weight: 700; box-shadow: inset 0 -2px 0 var(--teal); }

    /* ---- Route cards: the photo is the card; no box, no repeated labels ---- */
    .route-card, .route-card:hover { border: none; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; transform: none; }
    .route-landmark-banner { border-radius: 14px; overflow: hidden; }
    .route-tag-overlay, .route-discover { display: none; }
    .route-body { padding: 14px 2px 0; gap: 0; }
    .route-body > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .route-cities { font-size: 1.12rem; font-weight: 700; }
    .route-cities .code-badge { display: none; }
    .route-cities .arrow-accent { color: var(--text-quiet); }
    .route-airlines { margin: 0; flex-wrap: nowrap; }
    .route-airline-names { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .route-facts-row { margin-block-start: 12px; padding-block-start: 12px; border-block-start: 1px solid var(--teal-15); }
    .route-fact-main { color: var(--teal); font-weight: 700; }
    .route-fact { color: var(--text-quiet); }
    .route-card .bookmark-btn { inset-block-start: 8px; inset-inline-end: 8px; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255, 255, 250, .9); color: var(--teal); box-shadow: none; }
    .route-card .bookmark-btn.is-saved { color: var(--rose); }

    /* ---- Guides: art beside the text on a tinted panel ---- */
    .guide-card, .guide-card:hover { display: flex; flex-direction: row; align-items: center; gap: 16px; padding: 18px 20px; border: none; border-radius: 16px; background: var(--teal-04); box-shadow: none; transform: none; }
    .guide-card:hover { background: var(--teal-08); }
    .guide-card-art { width: 104px; height: 104px; min-height: 0; flex-shrink: 0; padding: 0; background: transparent; align-items: center; }
    .guide-card-art img { width: 100%; height: 100%; object-fit: contain; }
    .guide-card-body { padding: 0; }
    .guide-card-line { color: var(--text-quiet); }
    @media (max-width: 699px) {
      .guide-card, .guide-card:hover { padding: 12px 14px; gap: 12px; border-radius: 14px; }
      .guide-card-art { width: 60px; height: 60px; }
    }

    /* ---- Travel line (results cards): a solid line that starts at a dot and ends in an attached arrowhead.
       It is the anchor of the card, so it is drawn at full strength (18 Nov 2026, Ibrahim). ---- */
    .rcard-line, .rcard-line.has-stop { height: 2px; margin-block: 7px; margin-inline: 8px 9px; border-radius: 2px; background: rgba(14, 54, 62, .62); opacity: 1; }
    .rcard-line::before { content: ""; position: absolute; inset-inline-start: -8px; inset-block-start: -3px; box-sizing: border-box; width: 8px; height: 8px; border: 2px solid var(--teal); border-radius: 50%; background: var(--surface); }
    .rcard-line::after { inset-inline-end: -9px; inset-block-start: -4px; border-block: 5px solid transparent; border-inline-start: 10px solid var(--teal); }
    .rcard-line.has-stop .rcard-line-dot { inset-block-start: -3px; background: var(--ember); }
    .rcard-stops.is-direct { color: var(--leaf); }
    /* popup and route lines use the arrow glyph: same strength */
    .fd-leg-arrow, .fd-title .arrow-accent, .route-cities .arrow-accent { color: var(--teal); font-weight: 700; }
    [data-save-real][aria-pressed="true"], .bookmark-btn.is-saved { color: var(--rose); }

    /* ---- Airport picker: first list grouped by country ---- */
    .airport-group + .airport-group { margin-block-start: 4px; border-block-start: 1px solid var(--teal-15); }
    .airport-group-label { display: flex; align-items: center; gap: 10px; padding: 12px 16px 4px; font-size: .78rem; font-weight: 700; color: var(--text-quiet); }
    .airport-option.in-group { padding-inline-start: 44px; }

    /* ---- Calendar (mouse / keyboard screens; phones use their own date picker) ---- */
    .cal-popover { position: absolute; z-index: 1200; width: max-content; max-width: calc(100vw - 16px); background: var(--surface); border: 1px solid var(--teal-15); border-radius: 16px; box-shadow: 0 16px 40px rgba(14, 54, 62, .14); color: var(--text-strong); }
    .cal-popover[hidden] { display: none; }
    .cal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-block-end: 1px solid var(--teal-15); }
    .cal-trip { display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--teal-08); }
    .cal-trip-btn { min-height: 38px; padding: 0 14px; border: none; border-radius: 9px; background: transparent; color: var(--text-quiet); font: inherit; font-size: .86rem; font-weight: 500; cursor: pointer; }
    .cal-trip-btn.active { background: var(--surface); color: var(--teal); font-weight: 700; box-shadow: 0 1px 3px rgba(14, 54, 62, .15); }
    .cal-hint { flex: 1 1 auto; font-size: .82rem; color: var(--text-quiet); }
    .cal-nav { display: inline-flex; gap: 6px; }
    .cal-nav-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--teal-15); border-radius: 50%; background: var(--surface); color: var(--teal); cursor: pointer; }
    .cal-nav-btn:hover { background: var(--teal-04); border-color: var(--teal-25); }
    [dir="ltr"] .ph-dir-flip { transform: scaleX(-1); }
    .cal-months { display: flex; gap: 36px; padding: 14px 22px 8px; }
    .cal-month { width: 308px; }
    .cal-month-title { padding-block: 4px 8px; font-size: .95rem; font-weight: 700; color: var(--teal); text-align: center; }
    .cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 44px); }
    .cal-weekdays span { display: grid; place-items: center; height: 28px; font-size: .74rem; color: var(--text-quiet); }
    .cal-day { position: relative; display: grid; place-items: center; width: 44px; height: 42px; padding: 0; border: none; border-radius: 0; background: transparent; color: var(--text-strong); font: inherit; font-size: .9rem; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; }
    .cal-day span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
    .cal-day:hover:not(:disabled) span { background: var(--teal-08); }
    .cal-day:disabled { color: var(--teal-25); cursor: default; }
    .cal-day.is-today span { box-shadow: inset 0 0 0 1px var(--teal-25); }
    /* 28 Nov 2026 (P10): the range strip is exactly as tall as the 40 px cap circle (never a square corner above or
       below a cap), runs only between the caps, and a cap at a row edge gets no strip on that side. The grid's
       lead blanks are children too, so :nth-child(7n+1) / (7n) are the first / last column in both directions. */
    .cal-day.in-range { background: linear-gradient(var(--teal-08), var(--teal-08)) center / 100% 40px no-repeat; }
    .cal-day.is-start.has-range { background: linear-gradient(var(--teal-08), var(--teal-08)) left center / 50% 40px no-repeat; }
    .cal-day.is-end.has-range { background: linear-gradient(var(--teal-08), var(--teal-08)) right center / 50% 40px no-repeat; }
    [dir="ltr"] .cal-day.is-start.has-range { background-position: right center; }
    [dir="ltr"] .cal-day.is-end.has-range { background-position: left center; }
    .cal-grid > .cal-day.is-start.has-range:nth-child(7n), .cal-grid > .cal-day.is-end.has-range:nth-child(7n + 1) { background: none; }
    .cal-day.is-start span, .cal-day.is-end span, .cal-day.is-start:hover span, .cal-day.is-end:hover span { background: var(--teal); color: var(--cream); font-weight: 700; box-shadow: none; }
    html:not([data-input="pointer"]) .cal-day:focus-visible { outline: none; }
    html:not([data-input="pointer"]) .cal-day:focus-visible span { box-shadow: 0 0 0 var(--focus-ring-width) var(--focus-ring-color); }
    .cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; border-block-start: 1px solid var(--teal-15); }
    .cal-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: .9rem; font-weight: 700; }
    .cal-arrow { color: var(--teal); }
    .cal-nights { font-size: .8rem; font-weight: 500; color: var(--text-quiet); }
    .cal-done { min-height: 44px; padding: 0 26px; border-radius: 12px; }

    /* phones: the search button stays on the first screen (812 px tall and up) */
    @media (max-width: 699px) {
      .hero-description { display: none; }
      .search-grid > .field-group,
      .search-grid > .field-group:first-of-type,
      .search-grid > .field-group:nth-child(2) { min-height: 62px; padding: 9px 14px 7px; }
      .search-grid .search-submit-btn { min-height: 52px; }
    }
    .route-pair-wrap .field-control { gap: 6px; }
    .summary-swap-icon.swap-icon-lines { display: grid; width: 18px; height: auto; line-height: 0; }
    .summary-swap-icon.swap-icon-lines .ph-icon { width: 18px; height: 14px; }

    /* ---- Empty From / To (19 Nov 2026): a quiet prompt instead of a city ---- */
    .field-placeholder { color: var(--text-quiet); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* ---- Visitor accounts (P6, 19 Nov 2026; DESIGN-RULES §13) ----
       Signed out: "Log in" outline + "Sign up" filled, 44 px, from 1100 px; narrower screens: one "دخول" outline.
       Signed in: initial in a teal circle + first name (name hidden on phones) and a small menu. */
    .acct-slot { display: inline-flex; align-items: center; }
    .acct-guest, .acct-user { display: inline-flex; align-items: center; gap: 6px; position: relative; }
    .acct-user[hidden], .acct-guest[hidden] { display: none; }
    .acct-btn {
      display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding-inline: 14px;
      border-radius: var(--radius-control); border: 1px solid var(--teal); font: inherit; font-size: var(--text-small);
      font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer;
      transition: background-color var(--dur-press, .15s) ease, color var(--dur-press, .15s) ease;
    }
    .acct-btn--outline { background: transparent; color: var(--teal); }
    .acct-btn--outline:hover { background: var(--teal-04); }
    .acct-btn--filled { background: var(--teal); color: var(--cream); }
    .acct-btn--filled:hover { background: #0b2b31; }
    .acct-wide { display: none; }
    @media (min-width: 1280px) { .acct-wide { display: inline-flex; } .acct-compact { display: none; } }
    /* with the account buttons the nav keeps one line per link: a little less air between links */
    .header-inner:has(.acct-slot) .main-nav { gap: 4px; }
    .header-inner:has(.acct-slot) .main-nav .nav-link { white-space: nowrap; padding-inline: 6px; }
    .header-inner:has(.acct-slot) .nav-link.active::after { inset-inline: 6px; }
    @media (max-width: 699px) { .acct-btn { padding-inline: 10px; } }
    .acct-user-btn {
      display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 6px 8px;
      border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; color: var(--teal);
      font: inherit; font-size: var(--text-small); font-weight: 700; cursor: pointer;
    }
    .acct-user-btn:hover, .acct-user-btn[aria-expanded="true"] { background: var(--teal-04); }
    .acct-initial {
      display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
      background: var(--teal); color: var(--cream); font-size: .85rem; font-weight: 700; line-height: 1;
    }
    .acct-name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .acct-caret { width: var(--icon-inline); height: var(--icon-inline); }
    @media (max-width: 899px) { .acct-name, .acct-caret { display: none; } .acct-user-btn { padding-inline: 7px; } }
    .acct-menu {
      position: absolute; inset-block-start: calc(100% + 6px); inset-inline-end: 0; z-index: 120; min-width: 200px;
      display: flex; flex-direction: column; padding: var(--space-half, 4px); background: var(--surface);
      border: 1px solid var(--line); border-radius: var(--radius-row, 12px); box-shadow: var(--card-shadow-lg);
    }
    .acct-menu[hidden] { display: none; }
    .acct-menu-item {
      display: flex; align-items: center; min-height: 44px; padding-inline: 12px; border: 0; border-radius: var(--radius-control);
      background: transparent; color: var(--text-strong); font: inherit; font-size: var(--text-small); font-weight: 600;
      text-align: start; text-decoration: none; cursor: pointer;
    }
    .acct-menu-item:hover { background: var(--teal-04); }
    .acct-menu-item--danger { color: var(--text-quiet); border-block-start: 1px solid var(--line); border-radius: 0 0 var(--radius-control) var(--radius-control); }

    /* the sheet: Google first, then the consent tick (sign up), the switch, the fine print */
    .signin-sheet { gap: 16px; background: var(--surface); border-color: var(--line); }
    .signin-title { font-size: 1.2rem; }
    #signin-modal[data-mode="login"] [data-signup-only],
    #signin-modal[data-mode="signup"] [data-login-only] { display: none; }
    .signin-close-btn { width: 44px; height: 44px; background: transparent; border-color: transparent; color: var(--text-strong); }
    .signin-close-btn:hover { background: var(--teal-04); }
    .signin-reason {
      display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: var(--radius-control);
      background: var(--teal-04); color: var(--text-strong); font-weight: 700; font-size: .95rem; line-height: 1.5;
    }
    .signin-reason[hidden] { display: none; }
    .signin-reason .ph-icon { color: var(--rose); }
    .signin-lead { margin: 0; color: var(--text-quiet); font-size: .95rem; line-height: 1.6; }
    .google-btn {
      display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding-inline: 16px;
      border: 1px solid #747775; border-radius: var(--radius-control); background: #fff; color: #1F1F1F;
      font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
    }
    .google-btn:hover { background: #F8FAFA; }
    .google-btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }
    .google-g { flex-shrink: 0; }
    .signin-consent { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .92rem; color: var(--text-strong); cursor: pointer; }
    .signin-consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--teal); flex-shrink: 0; }
    .signin-error { margin: 0; padding: 10px 12px; border-radius: var(--radius-control); background: #FBEAE9; color: #8A1C17; font-size: .9rem; }
    .signin-error[hidden] { display: none; }
    .signin-switch { margin: 0; font-size: .92rem; color: var(--text-quiet); }
    .signin-link { min-height: 44px; padding-inline: 4px; border: 0; background: transparent; color: var(--teal); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
    .signin-fine { margin: 0; padding-block-start: 12px; border-block-start: 1px solid var(--line); font-size: .8rem; color: var(--text-quiet); line-height: 1.6; }
    .signin-fine a { color: var(--teal); }
    @media (max-width: 699px) {
      /* phones: the sheet comes up from the bottom, like the other pickers */
      #signin-modal.open { align-items: flex-end; padding: 0; }
      #signin-modal .signin-sheet { max-width: none; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; padding-block-end: max(20px, env(safe-area-inset-bottom)); }
    }

    /* saved list: price when saved vs today */
    .saved-price-row { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: .9rem; color: var(--text-quiet); }
    .saved-price-row strong { color: var(--text-strong); font-family: var(--font-data); font-variant-numeric: tabular-nums; }
    .saved-price-row .is-lower { color: var(--leaf); }
    .saved-account-line { grid-column: 1 / -1; margin: 0 0 4px; font-size: .9rem; color: var(--text-quiet); }

    /* P8 (22 Nov 2026): whole-country search ("Turkey → Syria"). Existing tokens only, no new decoration. */
    .country-count-note { display: inline-flex; align-items: center; font-size: var(--text-meta); font-weight: 600; color: var(--text-quiet); white-space: nowrap; }
    .airport-option--country .city-name-text { font-weight: 700; }
    .airport-option--country small { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
    .country-check { padding-block-end: 8px; margin-block-end: 4px; border-block-end: 1px solid var(--teal-15); }
    .country-check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-inline: 16px 10px; border-radius: 8px; color: var(--brown); font-size: .92rem; cursor: pointer; }
    .country-check-row:hover { background-color: var(--teal-04); }
    .country-check-row .city-name-text { flex: 1 1 auto; min-width: 0; }
    .country-check-input { width: 20px; height: 20px; margin: 0; accent-color: var(--teal); flex-shrink: 0; }
    .country-check-done { display: flex; margin: 8px 16px 0; margin-inline-start: auto; min-height: 44px; }
    .country-summary { margin: 0 0 10px; font-size: .92rem; color: var(--text-strong); line-height: 1.6; }
    .country-summary.is-hidden { display: none; }
    .country-summary strong { font-weight: 700; }
    .airport-chips { display: flex; gap: var(--space-1); overflow-x: auto; padding-block: 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .airport-chips::-webkit-scrollbar { display: none; }
    .airport-chips .airport-chip { flex: 0 0 auto; min-height: 44px; gap: 6px; padding: 6px 12px; border-radius: var(--radius-control); background: var(--surface); color: var(--brown-80); font-size: .82rem; font-weight: 600; line-height: 1.3; }
    .airport-chips .airport-chip.active { background: var(--teal-08); border-color: var(--teal); color: var(--teal); font-weight: 700; }
    .airport-chip-meta { font-family: var(--font-data); font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text-quiet); }
    .airport-chip.active .airport-chip-meta { color: var(--teal); }
    .rcard-city { font-weight: 500; color: var(--brown-80); }
    .airport-chips-label { flex: 0 0 auto; align-self: center; font-size: var(--text-meta); font-weight: 700; color: var(--text-quiet); }
    @media (max-width: 699px) {
      /* phones: the city sits on its own line above the code, so it never runs into the stop text */
      .rcard-city { display: block; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-meta); }
    }
    /* 23 Nov 2026 (Ibrahim): a country in the From/To field and the results bar: its name on one line,
       "كل المطارات" / "بعض المطارات" on its own line under it, smaller, leaf green (5.0:1 on white). */
    .country-field { display: inline-flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.25; }
    .country-field .city-name-text { text-wrap: balance; overflow-wrap: normal; }
    .country-scope { font-size: var(--text-meta); font-weight: 600; color: var(--leaf); white-space: nowrap; }

    /* R (24 Nov 2026, Sandid): a round trip is one card, outbound row over return row, one price and one
       Select. Existing tokens only. Each row: "ذهاب · 08/12/2026 · airline", then the usual logo + times line. */
    .rcard--rt .rcard-rt-main { gap: var(--space-1-5); }
    .rcard-rt-row { display: flex; flex-direction: column; gap: var(--space-half); min-width: 0; }
    .rcard-rt-row + .rcard-rt-row { border-block-start: 1px solid var(--line); padding-block-start: var(--space-1-5); }
    .rcard-rt-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: var(--text-meta); color: var(--text-muted); line-height: 1.4; min-width: 0; }
    .rcard-rt-label { font-weight: 800; color: var(--teal); }
    .rcard-rt-date { font-weight: 600; font-variant-numeric: tabular-nums; }
    .rcard-rt-airline { font-weight: 800; color: var(--text-strong); overflow-wrap: anywhere; }
    .rcard--rt .rcard-logos .airline-logo,
    .rcard--rt .rcard--two .rcard-logos .airline-logo { width: 32px; height: 32px; }
    .rcard--rt .rcard--two .rcard-logos .airline-logo + .airline-logo { margin-inline-start: -10px; margin-block-start: 12px; }
    .rcard--rt .rcard-body { gap: var(--space-1-5); }
    .rcard--rt .rcard-time { font-size: 1.28rem; }
    .fd-rt-arrows { display: inline-block; margin-inline: 2px; font-weight: 700; }
    .fd-rt-dir { margin: var(--space-1-5) 0 var(--space-1); font-size: var(--text-meta); font-weight: 600; color: var(--text-muted); line-height: 1.4; }
    .fd-rt-dir:first-of-type { margin-block-start: 0; }
    .fd-rt-dir-label { font-weight: 800; color: var(--teal); }
    .fd-rt-note { margin: 0 0 var(--space-1-5); padding: var(--space-1) var(--space-1-5); border-inline-start: 3px solid var(--line-strong); border-radius: var(--radius-chip); background: var(--surface-muted); color: var(--text-strong); font-size: var(--text-meta); font-weight: 700; line-height: 1.5; }
    @media (max-width: 899px) {
      .rcard--rt .rcard-time { font-size: 1.2rem; }
    }
    @media (max-width: 379px) {
      .rcard--rt .rcard-time { font-size: 1.1rem; }
      .rcard--rt .rcard-route { gap: 8px; }
    }

    /* ==========================================================================
       P10 (28 Nov 2026, Ibrahim approved): Captain Asfour in his egg, the chat panel at its new sizes,
       the hero without the grey band and with a faint moving mesh, mascot windows on full-size moments.
       Design: assets/mascot-swallow/mascot-ui-update.pen pages 00-07. Later than the old mascot rules on purpose.
       ========================================================================== */

    /* ---------- The egg button (#mascot-agent-fab) ----------
       Box = the sleeping egg + shadow (72 x 88, phones 64 x 78). Each layer image is the 89 x 108 "stage" of the
       same camera; the stage sticks out of the box up/left so the flying cap has room (pointer events stay on the box). */
    .mascot-fab.egg-fab {
      inset-inline-start: auto;
      inset-inline-end: max(20px, env(safe-area-inset-left));
      inset-block-end: max(16px, env(safe-area-inset-bottom));
      display: block;
      width: 72px;
      height: 88px;
      padding: 0;
      border: 0;
      border-radius: 18px;
      background: transparent;
      box-shadow: none;
      transform: none;
      overflow: visible;
      -webkit-tap-highlight-color: transparent;
    }
    .mascot-fab.egg-fab:hover { background: transparent; transform: none; }
    @media (max-width: 599px) {
      .mascot-fab.egg-fab { width: 64px; height: 78px; inset-inline-end: max(14px, env(safe-area-inset-left)); inset-block-end: max(14px, env(safe-area-inset-bottom)); }
    }
    .egg, .egg-rig, .egg-set { position: absolute; inset: 0; pointer-events: none; }
    .egg-shadow, .egg-l {
      position: absolute;
      left: -10.14%;
      top: -22.95%;
      width: 123.6%;
      height: 122.7%;
      background: no-repeat center / 100% 100%;
    }
    .egg-set { opacity: 0; transition: opacity 280ms var(--ease-out); }
    .egg-fab[data-egg="sleep"] .egg-set--sleep,
    .egg-fab[data-egg="peek"] .egg-set--peek,
    .egg-fab[data-egg="open"] .egg-set--open,
    .egg-fab[data-egg="bye"] .egg-set--bye { opacity: 1; }
    .egg-fab[data-egg="sleep"] .egg-set { transition-duration: 400ms; transition-timing-function: cubic-bezier(.55, 0, 1, .45); }
    /* Peek (28 Nov review): the shell swaps fast and the cap swings up from closed around its hinge on the right while
       he fades in under it; leaving plays the swing backwards (.is-unpeeking), then the egg sleeps. */
    .egg-fab[data-egg="peek"] .egg-set { transition-duration: 90ms; }
    .egg-set--peek .egg-cap { transform-origin: 79.1% 42.4%; }
    .egg-fab[data-egg="peek"] .egg-set--peek .egg-cap { animation: egg-cap-lift 260ms cubic-bezier(.2, .9, .3, 1.15) both; }
    .egg-fab[data-egg="peek"] .egg-set--peek .egg-bird { animation: egg-bird-in 200ms var(--ease-out) 70ms both; }
    .egg-fab[data-egg="peek"].is-unpeeking .egg-set--peek .egg-cap { animation: egg-cap-lift 170ms cubic-bezier(.55, 0, 1, .45) reverse both; }
    .egg-fab[data-egg="peek"].is-unpeeking .egg-set--peek .egg-bird { animation: egg-bird-in 150ms linear reverse both; }
    @keyframes egg-cap-lift { from { transform: translateY(8.3%) rotate(-26deg); } to { transform: none; } }
    /* open → bye: same shell, only the bird changes, so swap at once (a crossfade would show two birds). */
    .egg-fab[data-egg="bye"] .egg-set { transition: none; }

    /* Images: the sleeping egg loads with the page (13 KB); the other states load on the first hover, focus or
       touch (.is-warm) or a few seconds after the page settles. WebP with a PNG fallback. */
    .egg-shadow { background-image: url("../assets/mascot/egg-shadow.png"); background-image: image-set(url("../assets/mascot/egg-shadow.webp") type("image/webp"), url("../assets/mascot/egg-shadow.png") type("image/png")); }
    .egg-set--sleep .egg-back { background-image: url("../assets/mascot/egg-sleep-back.png"); background-image: image-set(url("../assets/mascot/egg-sleep-back.webp") type("image/webp"), url("../assets/mascot/egg-sleep-back.png") type("image/png")); }
    .egg-set--sleep .egg-front { background-image: url("../assets/mascot/egg-sleep-front.png"); background-image: image-set(url("../assets/mascot/egg-sleep-front.webp") type("image/webp"), url("../assets/mascot/egg-sleep-front.png") type("image/png")); }
    .egg-set--sleep .egg-cap { background-image: url("../assets/mascot/egg-sleep-cap.png"); background-image: image-set(url("../assets/mascot/egg-sleep-cap.webp") type("image/webp"), url("../assets/mascot/egg-sleep-cap.png") type("image/png")); }
    .egg-fab.is-warm .egg-set--peek .egg-back { background-image: url("../assets/mascot/egg-peek-back.png"); background-image: image-set(url("../assets/mascot/egg-peek-back.webp") type("image/webp"), url("../assets/mascot/egg-peek-back.png") type("image/png")); }
    .egg-fab.is-warm .egg-set--peek .egg-bird { background-image: url("../assets/mascot/egg-peek-bird.png"); background-image: image-set(url("../assets/mascot/egg-peek-bird.webp") type("image/webp"), url("../assets/mascot/egg-peek-bird.png") type("image/png")); }
    .egg-fab.is-warm .egg-set--peek .egg-front { background-image: url("../assets/mascot/egg-peek-front.png"); background-image: image-set(url("../assets/mascot/egg-peek-front.webp") type("image/webp"), url("../assets/mascot/egg-peek-front.png") type("image/png")); }
    .egg-fab.is-warm .egg-set--peek .egg-cap { background-image: url("../assets/mascot/egg-peek-cap.png"); background-image: image-set(url("../assets/mascot/egg-peek-cap.webp") type("image/webp"), url("../assets/mascot/egg-peek-cap.png") type("image/png")); }
    .egg-fab.is-warm :is(.egg-set--open, .egg-set--bye) .egg-back { background-image: url("../assets/mascot/egg-open-back.png"); background-image: image-set(url("../assets/mascot/egg-open-back.webp") type("image/webp"), url("../assets/mascot/egg-open-back.png") type("image/png")); }
    .egg-fab.is-warm :is(.egg-set--open, .egg-set--bye) .egg-front { background-image: url("../assets/mascot/egg-open-front.png"); background-image: image-set(url("../assets/mascot/egg-open-front.webp") type("image/webp"), url("../assets/mascot/egg-open-front.png") type("image/png")); }
    .egg-fab.is-warm :is(.egg-set--open, .egg-set--bye) .egg-cap { background-image: url("../assets/mascot/egg-open-cap.png"); background-image: image-set(url("../assets/mascot/egg-open-cap.webp") type("image/webp"), url("../assets/mascot/egg-open-cap.png") type("image/png")); }
    .egg-fab.is-warm .egg-set--open .egg-bird { background-image: url("../assets/mascot/egg-open-bird.png"); background-image: image-set(url("../assets/mascot/egg-open-bird.webp") type("image/webp"), url("../assets/mascot/egg-open-bird.png") type("image/png")); }
    .egg-fab.is-warm .egg-set--bye .egg-bird { background-image: url("../assets/mascot/egg-bye-bird.png"); background-image: image-set(url("../assets/mascot/egg-bye-bird.webp") type("image/webp"), url("../assets/mascot/egg-bye-bird.png") type("image/png")); }

    /* Motion. Only transform and opacity move. The bird never moves on its own: every frame is one of the baked,
       checked stacks (moving him would let a wing show beside the shell under the rim). */
    .egg-rig { transform-origin: 50% 96%; }
    .egg-shadow { transform-origin: 50% 92%; }
    .egg-fab[data-egg="sleep"] .egg-rig { animation: egg-idle 9s cubic-bezier(.37, 0, .63, 1) 2s infinite; }
    .egg-fab[data-egg="sleep"] .egg-shadow { animation: egg-idle-shadow 9s cubic-bezier(.37, 0, .63, 1) 2s infinite; }
    .egg-fab[data-egg="sleep"]:is(:hover, :focus-visible) :is(.egg-rig, .egg-shadow) { animation-play-state: paused; }
    @keyframes egg-idle {
      0%, 30%, 60%, 88%, 100% { transform: none; }
      7% { transform: translateY(-2px) rotate(-2.5deg); }
      15% { transform: translateY(0) rotate(2.5deg); }
      22% { transform: translateY(-1px) rotate(-1deg); }
      64% { transform: scale(1.05, .93); }
      70% { transform: translateY(-12px) scale(.96, 1.05); }
      76% { transform: translateY(0) scale(1.06, .93); }
      81% { transform: translateY(-3px) scale(.99, 1.02); }
    }
    @keyframes egg-idle-shadow {
      0%, 60%, 88%, 100% { transform: none; opacity: 1; }
      64% { transform: scale(1.06, 1); }
      70% { transform: scale(.78); opacity: .55; }
      76% { transform: scale(1.08, 1); opacity: 1; }
    }
    /* Hatch (click / tap / Enter): the egg pops, the cap flies off to the side, the bird fades in; then two
       short nods for the salute, and he stays still while the chat is open. */
    .egg-fab.is-hatching .egg-rig { animation: egg-hatch 520ms cubic-bezier(.34, 1.56, .64, 1); }
    .egg-fab.is-hatching .egg-set--open .egg-cap { animation: egg-cap-fly 520ms cubic-bezier(.34, 1.56, .64, 1); }
    .egg-fab.is-hatching .egg-set--open .egg-bird { animation: egg-bird-in 300ms var(--ease-out) 80ms both; }
    .egg-fab.is-saluting .egg-rig { animation: egg-salute 600ms ease-in-out 2; }
    @keyframes egg-hatch {
      0% { transform: scale(1.06, .92); }
      45% { transform: translateY(-6px) scale(.97, 1.04); }
      100% { transform: none; }
    }
    @keyframes egg-cap-fly {
      0% { transform: translate(22%, 34%) rotate(-28deg); }
      100% { transform: none; }
    }
    @keyframes egg-bird-in { from { opacity: 0; } to { opacity: 1; } }
    @keyframes egg-salute {
      0%, 100% { transform: none; }
      40% { transform: translateY(-2px) rotate(-2deg); }
    }
    @media (prefers-reduced-motion: reduce) {
      .egg-fab .egg-rig, .egg-fab .egg-shadow, .egg-fab .egg-cap, .egg-fab .egg-bird { animation: none !important; }
      .egg-set { transition-duration: 150ms !important; transition-timing-function: linear !important; }
    }

    /* ---------- Chat panel sizes ----------
       Desktop / laptop (>= 1024): a docked card above the egg, 380 wide; the page beside it stays usable
       (no backdrop, no scroll lock). Height min(640px, 100dvh - 144px): 16 bottom + 88 egg + 24 gap + 16 top. */
    .mascot-panel {
      inset-inline-start: auto;
      inset-inline-end: max(20px, env(safe-area-inset-left));
      inset-block-end: calc(max(16px, env(safe-area-inset-bottom)) + 112px);
      width: 380px;
      min-width: 0;
      max-width: calc(100vw - 32px);
      height: min(640px, calc(100dvh - 144px));
      max-height: none;
      border: 1px solid var(--teal-15);
      border-radius: 16px;
      background-color: var(--surface);
      box-shadow: 0 12px 40px rgba(6, 26, 30, .2);
    }
    /* Tablet (600-1023): 368 wide, never wider than half the screen. */
    @media (max-width: 1023px) {
      .mascot-panel { width: min(368px, 50vw); min-width: 340px; height: min(600px, calc(100dvh - 144px)); }
    }
    /* Short landscape tablets: the card takes the height and the egg hides under it. */
    @media (min-width: 600px) and (max-height: 520px) {
      .mascot-panel { inset-block-end: 16px; height: calc(100dvh - 32px); }
      body.mascot-open .mascot-fab.egg-fab { visibility: hidden; }
    }
    .mascot-panel-header { min-height: 56px; padding-block: 6px; padding-inline: 12px 6px; }
    .mascot-header-id { min-width: 0; gap: 10px; }
    .mascot-header-id > div { min-width: 0; display: flex; flex-direction: column; }
    .mascot-header-id > div > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .72rem !important; }
    .mascot-panel-title { font-size: .9rem !important; line-height: 1.3; }
    .mascot-video-avatar { width: 36px; height: 36px; border: 2px solid var(--cream); background-color: var(--cream); }
    .mascot-pic { display: contents; }
    .mascot-grab { display: none; }
    .mascot-messages { max-height: none; min-height: 0; flex: 1 1 auto; background-color: var(--cream); padding: 14px; gap: 12px; }
    .mascot-messages.has-flights { max-height: none; } /* the panel has a fixed height now: the list fills it */
    .agent-msg-row { max-width: 100%; }
    .agent-msg-row .agent-bubble { flex: 0 1 auto; max-width: calc(85% - 30px); background-color: var(--teal-04); border-color: transparent; font-size: .88rem; }
    .agent-msg-row .agent-bubble:has(.chat-flights) { max-width: calc(100% - 30px); }
    /* 28 Nov review: a small Asfour bird marks his messages; his face is only in the header (and the egg). */
    .agent-logo-thumb { flex: 0 0 22px; width: 22px; height: 22px; margin-block-start: 8px; opacity: .85; }
    .agent-pose-thumb { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
    /* Quick topics: a block while the chat is empty; after the first message, one row that scrolls sideways. */
    .mascot-panel:not(.has-chat) .agent-suggestions { flex-wrap: wrap; overflow: visible; padding: 10px 14px; gap: 8px; }
    .agent-chip { min-height: 44px; padding-inline: 14px; border-radius: var(--radius-control); background-color: var(--surface); border-color: var(--teal-25); color: var(--teal); font-size: .82rem; }
    .mascot-input-form { padding: 10px 12px; background-color: var(--surface); }
    .mascot-send-btn { min-width: 48px; height: 48px; border-radius: 10px; }
    .mascot-text-input { height: 48px; font-size: 16px; border-radius: 10px; }

    /* Phone (< 600): a bottom sheet, full width, rounded only at the top, 85 % of the screen; the page peeks
       above under a light dim (tap it or swipe down to close). It rides on top of the on-screen keyboard
       (app.js sets --mascot-kb and --mascot-vvh from visualViewport). The egg hides under it. */
    @media (max-width: 599px) {
      .mascot-panel {
        inset-inline: 0;
        inset-block-end: var(--mascot-kb, 0px);
        width: auto;
        min-width: 0;
        max-width: none;
        height: min(85dvh, calc(var(--mascot-vvh, 100dvh) - 12px));
        border-width: 1px 0 0;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 0 0 100vmax rgba(6, 26, 30, .3), 0 -8px 32px rgba(6, 26, 30, .2);
        touch-action: auto;
      }
      .mascot-panel.is-dragging { transition: none; }
      .mascot-grab { display: block; position: absolute; inset-block-start: 6px; inset-inline-start: 50%; width: 36px; height: 4px; margin-inline-start: -18px; border-radius: 2px; background: rgba(255, 255, 250, .45); z-index: 2; }
      .mascot-panel-header { padding-block-start: 14px; touch-action: none; }
      .mascot-input-form { padding-block-end: max(10px, env(safe-area-inset-bottom)); }
      body.mascot-open .mascot-fab.egg-fab { visibility: hidden; }
    }

    /* ---------- Home hero: no grey band; a faint moving mesh behind the top of the page ----------
       Ibrahim's Paper mesh gradient (shaders.paper.design: afcabf dbb7a3 cccccc fffffa dbbdb3 afcabf 9db4b8 fffffa,
       distortion .49, swirl .1, grain .07/.01, scale 1.52) rendered to two frames (assets/img/hero-mesh-a|b, 5 + 8 KB).
       They crossfade and drift slowly with compositor-only animation: no script, no WebGL shader compile on the
       main thread. 42 % over the cream keeps every hero text >= 5 : 1. Full viewport width, faded out at the bottom. */
    .hero-band { background: transparent; background-color: transparent; border-block-end: none; }
    #view-home { position: relative; }
    /* The mesh reaches ~170 px under the hero: the blocks there are positioned (no z-index, so no new stacking
       context) to paint above it, like the hero band; their text never has the mesh on top. */
    #view-home > .container, #view-home > .why-strip { position: relative; }
    .hero-mesh {
      position: absolute;
      inset-inline: calc(50% - 50vw);
      inset-block-start: 0;
      height: 700px;
      overflow: hidden;
      opacity: .42;
      pointer-events: none;
      -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 60%, transparent 100%);
      mask-image: linear-gradient(to bottom, #000 0, #000 60%, transparent 100%);
    }
    @media (max-width: 859px) { .hero-mesh { height: 960px; } }
    .hero-mesh::before, .hero-mesh::after {
      content: "";
      position: absolute;
      inset: -8%;
      background: no-repeat center / cover;
      animation: hero-mesh-drift 48s ease-in-out infinite alternate;
    }
    .hero-mesh::before { background-image: url("../assets/img/hero-mesh-a.jpg"); background-image: image-set(url("../assets/img/hero-mesh-a.webp") type("image/webp"), url("../assets/img/hero-mesh-a.jpg") type("image/jpeg")); }
    .hero-mesh::after {
      background-image: url("../assets/img/hero-mesh-b.jpg");
      background-image: image-set(url("../assets/img/hero-mesh-b.webp") type("image/webp"), url("../assets/img/hero-mesh-b.jpg") type("image/jpeg"));
      opacity: 0;
      animation: hero-mesh-drift 48s ease-in-out infinite alternate-reverse, hero-mesh-morph 22s ease-in-out infinite alternate;
    }
    @keyframes hero-mesh-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-4%, 2.5%, 0) scale(1.07); } }
    @keyframes hero-mesh-morph { from { opacity: 0; } to { opacity: 1; } }
    @media (prefers-reduced-motion: reduce) { .hero-mesh::before, .hero-mesh::after { animation: none; } }

    /* ---------- Mascot windows on full-size moments (results error / empty, loading, 404) ----------
       An egg-shaped window; its straight sill hides the flat bottom of the cutout. */
    .mascot-window {
      position: relative;
      width: 150px;
      height: 128px;
      margin-inline: auto;
      margin-block-end: 8px;
      overflow: hidden;
      border-radius: 75px 75px 0 0;
      background: var(--teal-08);
      border-block-end: 1px solid var(--teal-25);
    }
    .mascot-window img { position: absolute; inset-inline-start: 50%; inset-block-end: -14px; width: 140px; height: auto; max-width: none; transform: translateX(-50%); }
    [dir="rtl"] .mascot-window img { transform: translateX(50%); }
    .state-box .mascot-window { margin-block-start: 4px; }
    .not-found .mascot-window { margin-block-end: 4px; }
    .not-found-code.has-mascot { display: block; font-size: 1.3rem; letter-spacing: .12em; color: var(--text-quiet); margin-block-end: 8px; }
    .results-loading-line { text-align: center; font-weight: 700; color: var(--teal); margin-block-end: 12px; }
