/* ==========================================================================
   JORDAN AVIATION — Global Stylesheet (Arabic / RTL)
   --------------------------------------------------------------------------
   GENERATED FILE — do not edit by hand.
   Source: css/style-en.css + css/rtl-layer.css   Build: node css/build-ar.js
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   Colours sampled directly from the approved Jordan Aviation design file.
   ========================================================================== */
:root {
  /* ---- Brand palette ---- */
  --ja-gold:            #D3A35E;   /* primary brand gold (from the logo) */
  --ja-gold-600:        #C08F48;   /* hover / pressed */
  --ja-gold-700:        #A9762F;   /* deep accent */
  /* Small gold TEXT on light grounds. --ja-gold tops out at 2.3:1 on white
     and --ja-gold-700 at 4.0:1, so neither can reach WCAG AA (4.5:1) for
     copy this size. This tone does, and still reads as brand gold. */
  --ja-gold-ink:        #74501D;
  /* Large gold display text on LIGHT grounds. The brand gold is 2.2-2.3:1
     there and large text needs 3:1, so this is the lightest tone in the
     same family that clears it (3.10:1 on cream, 3.22:1 on white). On dark
     grounds --ja-gold is kept: it reads better and already gives 6.7:1. */
  --ja-gold-display:    #B8863C;
  --ja-gold-300:        #E6C38F;   /* card outlines (sampled from the design) */
  --ja-gold-200:        #E9D3AE;   /* soft gold */
  --ja-gold-100:        #F6ECDB;   /* gold tint surface */

  --ja-navy:            #0C1A35;   /* headings / dark ink */
  --ja-hero-dark:       #21262C;   /* hero ground - sampled from Figma */
  --ja-navy-700:        #16243D;
  --ja-ink:             #0F1921;   /* footer ground */
  --ja-ink-2:           #182229;   /* footer bottom bar */

  /* ---- Neutrals ---- */
  --ja-white:           #FFFFFF;
  --ja-cream:           #FDFAF5;   /* alternating section ground */
  --ja-beige:           #F3E9DD;   /* hero canvas */
  --ja-line:            #E9E3D9;   /* hairlines / card borders */
  --ja-line-soft:       #F1EDE6;
  --ja-text:            #4A5361;   /* body copy */
  --ja-muted:           #8A929E;   /* meta / captions */

  /* The design's neutral ramp, used verbatim through the booking funnel. */
  --ja-grey-300:        #D1D5DC;   /* the flight row's connector line */
  --ja-grey-400:        #99A1AF;   /* micro-labels: price units, "incl. taxes" */
  --ja-grey-500:        #6A7282;   /* secondary body copy */
  --ja-grey-600:        #4A5565;   /* control glyphs and summary labels */
  --ja-grey-700:        #364153;   /* itemised line names on the review */
  --ja-line-cool:       #F3F4F6;   /* card hairline */
  --ja-line-cool-2:     #E5E7EB;   /* control hairline and dividers */

  /* ---- Semantic accents (promo cards) ---- */
  --ja-red:             #DC1737;
  --ja-green:           #1C906B;
  --ja-green-ink:       #0F6B4E;
  --ja-status-green:    #00CB52;   /* CONFIRMED chip fill, sampled from Figma */
  --ja-status-ink:      #003122;   /* its ink - the pair measures 6.6:1 */
  --ja-green-tint:      #DCFCE7;   /* the design's status-chip tint */
  --ja-blue:            #17335C;
  --ja-black:           #101114;   /* promo card black step */
  --ja-gold-tint:       #FFFDF8;   /* surface behind a selected gold option */

  /* ---- Seat map states ----
     Matched to the airline's own booking engine on jordanaviation.jo, so a passenger who has
     seen one seat map recognises the other. Sampled from it rather than guessed:

       available   #5CB85C   green
       selected    #778899   slate — their "Selected Seat"
       emergency   #D9534F   red — the exit rows, which is what red means here
       restricted  #CCFF99   pale green — offered, but not to everyone
       occupied    #BDBDBD   grey — taken

     Note what red now means. On our own map it used to mean "occupied"; on theirs it means
     "emergency exit row" and grey means taken. Keeping our reading would have left the same
     passenger looking at two maps where the same colour says opposite things, so theirs wins
     — it is the one the airline publishes. */
  --seat-available:     #5CB85C;
  --seat-available-bd:  #4CAE4C;
  --seat-occupied:      #BDBDBD;
  --seat-occupied-bd:   #ADADAD;
  /* Extra legroom is the exit row, which is their "Emergency Seat": red, and red here does not
     mean unavailable — it means the row with the door in it, which carries conditions. */
  --seat-legroom:       #D9534F;
  --seat-legroom-bd:    #D43F3A;
  /* "Restricted": sellable, but not to every passenger. */
  --seat-preferred:     #CCFF99;
  --seat-preferred-bd:  #B6E687;
  /* Blocked cells recede rather than compete with the colours being read. */
  --seat-unavailable:   #F4F4F5;
  --seat-unavailable-bd:#ECECEE;
  --seat-selected:      #778899;
  --seat-selected-bd:   #6A7A89;

  /* ---- Typography ---- */
  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Fluid type scale - never breaks below 320px, tops out at the 1920 design */
  --fs-eyebrow:  clamp(0.6875rem, 0.672rem + 0.065vw, 0.75rem);  /* 11 -> 12 */
  --fs-body-sm:  clamp(0.8125rem, 0.797rem + 0.065vw, 0.875rem); /* 13 -> 14 */
  --fs-body:     clamp(0.875rem, 0.86rem + 0.065vw, 0.9375rem);  /* 14 -> 15; Figma body copy is 14 */
  --fs-lead:     clamp(0.9375rem, 0.922rem + 0.065vw, 1rem);     /* 15 -> 16 */
  --fs-h5:       clamp(0.9375rem, 0.922rem + 0.065vw, 1rem);     /* 15 -> 16 */
  --fs-h4:       clamp(1rem, 0.969rem + 0.129vw, 1.125rem);      /* 16 -> 18; blog titles */
  --fs-h3:       clamp(1.0625rem, 1.017rem + 0.194vw, 1.25rem);  /* 17 -> 20; Figma card titles */
  --fs-h2:       clamp(1.375rem, 1.1625rem + 0.906vw, 2.25rem);  /* 22 -> 36 @1920, per the Figma */
  --fs-h1:       clamp(1.875rem, 1.602rem + 1.165vw, 3rem);      /* 30 -> 48 @1920, per the Figma */
  --fs-h1-alt:   clamp(1.5rem, 1.2575rem + 1.036vw, 2.5rem);     /* 24 -> 40; "Explore Jordan" is larger */

  --lh-tight: 1.25;   /* Figma h2/h3 line-height */
  --lh-snug:  1.3;
  --lh-base:  1.75;

  /* ---- Spacing scale (rem based) ---- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.25rem;  --sp-6: 1.5rem;   --sp-7: 2rem;     --sp-8: 2.5rem;
  --sp-9: 3rem;     --sp-10: 4rem;    --sp-11: 5rem;    --sp-12: 6.5rem;

  /* Vertical rhythm for sections - fluid so mobile never feels stretched */
  --section-y:       clamp(3rem, 1.5rem + 5vw, 6.5rem);
  --section-y-tight: clamp(2.25rem, 1.2rem + 3.5vw, 4.5rem);

  /* ---- Layout ---- */
  --container:      90rem;      /* 1440px content rail */
  --container-pad:  clamp(1rem, 0.35rem + 2.2vw, 2.5rem);
  --gutter:         clamp(1rem, 0.6rem + 1.2vw, 1.75rem);

  /* ---- Radii ---- */
  --r-xs: 0.375rem; --r-sm: 0.5rem;  --r-md: 0.75rem;  --r-lg: 1rem;
  --r-xl: 1.25rem;  --r-2xl: 1.5rem; --r-3xl: 2rem;    --r-pill: 62.5rem;

  /* ---- Elevation ---- */
  --sh-xs: 0 1px 2px rgba(12, 26, 53, 0.05);
  --sh-sm: 0 2px 8px rgba(12, 26, 53, 0.06);
  --sh-md: 0 8px 24px rgba(12, 26, 53, 0.08);
  --sh-lg: 0 18px 48px rgba(12, 26, 53, 0.10);
  --sh-xl: 0 28px 70px rgba(12, 26, 53, 0.14);
  --sh-gold: 0 12px 28px rgba(211, 163, 94, 0.32);

  /* ---- Motion (kept inside the 0.3s-0.6s brief) ---- */
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:    0.3s;
  --t-base:    0.45s;
  --t-slow:    0.6s;

  /* How far the search widget rides up over the hero slider: 187px at the
     design's 1920 width. Declared once because three rules depend on it -
     the widget's negative margin and the slider's two control clusters,
     which must stay clear of the card. */
  --hero-overlap: clamp(2rem, 9.74vw, 11.7rem);

  --header-h: 5.5rem;   /* 88px — the Figma header frame */
  --z-header: 1030;
  --z-drawer: 1055;
  --z-modal:  1080;
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--ja-text);
  background: var(--ja-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;      /* belt-and-braces against horizontal bleed */
}

/* Lock scroll while the mobile drawer / modal is open */
body.is-locked { overflow: hidden; }

/* Media never exceeds its container - required by the brief */
img, video, svg, canvas, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

/* Custom scrollbar (WebKit) - subtle, on-brand */
::-webkit-scrollbar { width: 0.625rem; height: 0.625rem; }
::-webkit-scrollbar-track { background: var(--ja-line-soft); }
::-webkit-scrollbar-thumb { background: var(--ja-gold-200); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--ja-gold); }

::selection { background: var(--ja-gold); color: #000; }


/* ==========================================================================
   03. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--font-head);
  color: var(--ja-navy);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin: 0;
}

h1, .h1 { font-size: var(--fs-h1); line-height: 1.46; }   /* Figma: 70/48 */
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.015em; }
h4, .h4 { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -0.01em; }
h5, .h5 { font-size: var(--fs-h5); font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

.lead { font-size: var(--fs-lead); line-height: 1.7; }
.text-gold { color: var(--ja-gold-display); }
.hero-slide--dark .text-gold,
.trip-banner .text-gold { color: var(--ja-gold); }
.text-navy { color: var(--ja-navy); }
.text-muted-ja { color: var(--ja-muted); }

/* Small uppercase kicker that sits above every section heading */
.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ja-gold-ink);
  margin-bottom: var(--sp-4);
}


/* ==========================================================================
   04. LAYOUT HELPERS & SECTION SHELL
   ========================================================================== */
.ja-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Near-full-bleed rail for the hero panel. In the design the panel sits
   24px inside the viewport edge (1872 of 1920) = 1.25vw, so it stays
   proportionally inset at every width instead of being capped. */
.ja-container--wide {
  max-width: none;
  padding-inline: min(1.625rem, 1.354vw);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: var(--section-y-tight); }
.section--cream { background: var(--ja-cream); }

/* Section head: heading on the start side, support copy on the end side */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  gap: var(--sp-6) var(--sp-9);
  align-items: end;
  margin-bottom: var(--sp-9);
}
/* Headline measure: wide enough that the two-line headings in the design do
   not gain a third line, narrow enough to stay readable. */
.section-head__title { max-width: 46ch; }
.section-head__title--wide { max-width: 60ch; }
.section-head__note { margin-top: var(--sp-5); max-width: 38rem; }
.section-head__aside {
  color: var(--ja-text);
  font-size: var(--fs-body);
  padding-bottom: 0.375rem;
}
.section-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.section-head--center .section-head__title { max-width: 100%; }
.section-head--center .section-head__aside { max-width: 46ch; text-align: center; }

/* Head variant with a heading block + a trailing control (e-Magazine, offers) */
.section-head--split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}
.section-head--split .section-head__title { max-width: 60ch; }


/* ==========================================================================
   05. BUTTONS & LINKS
   ========================================================================== */
.btn-ja {
  --btn-bg: var(--ja-gold);
  --btn-fg: #000;              /* black on gold, per the Figma and brand direction */
  --btn-bd: var(--ja-gold);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-head);
  font-size: var(--fs-body-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.9375rem var(--sp-6);
  min-height: 3rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
/* Soft sheen that sweeps across on hover */
.btn-ja::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -120%;
  width: 60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg);
  transition: inset-inline-start var(--t-slow) var(--ease-out);
  z-index: -1;
}
.btn-ja:hover::after { inset-inline-start: 140%; }

.btn-ja:hover  { transform: translateY(-2px); box-shadow: var(--sh-gold); }
.btn-ja:active { transform: translateY(0); }

/* --- Variants --- */
.btn-ja--primary:hover { background: var(--ja-gold-600); border-color: var(--ja-gold-600); }

.btn-ja--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ja-navy);
  --btn-bd: var(--ja-navy);
}
.btn-ja--outline:hover {
  --btn-bg: var(--ja-navy);
  --btn-fg: var(--ja-white);
  box-shadow: 0 12px 28px rgba(12, 26, 53, 0.22);
}

.btn-ja--light {
  --btn-bg: var(--ja-white);
  --btn-fg: var(--ja-navy);
  --btn-bd: var(--ja-white);
  box-shadow: var(--sh-sm);
}
.btn-ja--light:hover { --btn-bg: var(--ja-navy); --btn-fg: var(--ja-white); --btn-bd: var(--ja-navy); }

.btn-ja--block { width: 100%; }
.btn-ja--lg { min-height: 3.5rem; padding-inline: var(--sp-8); font-size: var(--fs-body); }
.btn-ja--sm { min-height: 2.5rem; padding: 0.625rem var(--sp-4); font-size: var(--fs-body-sm); }

/* Uppercase CTA used on the offer cards */
.btn-ja--caps { text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-body-sm); border-radius: 0.625rem; min-height: 3.0625rem; }

/* Chevron / arrow inside buttons nudges forward on hover */
.btn-ja .ic { width: 1rem; height: 1rem; flex: 0 0 auto; transition: transform var(--t-fast) var(--ease); }
.btn-ja:hover .ic--next { transform: translateX(0.1875rem); }

/* Plain text link with a moving arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  font-family: var(--font-head);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--ja-navy);
}
.link-arrow .ic { width: 0.9375rem; height: 0.9375rem; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover { color: var(--ja-gold-600); }
.link-arrow:hover .ic { transform: translateX(0.1875rem); }

/* Understated link under the offer CTA */
.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ja-text);
}
.link-quiet:hover { color: var(--ja-gold-600); }
.link-quiet .ic { width: 0.875rem; height: 0.875rem; transition: transform var(--t-fast) var(--ease); }
.link-quiet:hover .ic { transform: translateX(0.1875rem); }


/* ==========================================================================
   06. BADGES / PILLS / CHIPS
   ========================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4375rem 0.8125rem;
  border-radius: var(--r-pill);
  background: var(--ja-navy);
  color: var(--ja-white);
  white-space: nowrap;
}
.pill--gold  { background: var(--ja-gold); color: var(--ja-navy); }
.pill--ink   { background: #000; color: var(--ja-white); }
.pill--glass {
  background: rgba(20, 24, 28, 0.62);
  backdrop-filter: blur(0.375rem);
  -webkit-backdrop-filter: blur(0.375rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 0.75rem;
}

.tag-cat {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ja-gold-ink);
}


/* ==========================================================================
   07. HEADER + NAVIGATION
   Sticky, translucent on scroll. Logo keeps identical dimensions in the
   header and the footer (--logo-h) on every page of the site.
   ========================================================================== */
:root { --logo-h: 4.6875rem; }   /* 75px - shared by header + footer; the airline's logo file (2026-11-02) is 730x300 */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(0.75rem) saturate(140%);
  -webkit-backdrop-filter: blur(0.75rem) saturate(140%);
  border-bottom: 1px solid rgba(15, 25, 33, 0.08);
  transform: translateY(0);
  transition: box-shadow var(--t-base) var(--ease),
              background var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
  /* Entrance animation on first paint */
  animation: headerDrop var(--t-slow) var(--ease-out) both;
}
.site-header.is-stuck {
  box-shadow: 0 4px 24px rgba(12, 26, 53, 0.08);
  border-bottom-color: rgba(15, 25, 33, 0.08);
  background: rgba(255, 255, 255, 0.97);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: var(--gutter);
  min-height: var(--header-h);
}

/* ---- Logo ---- */
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand__img {
  height: var(--logo-h);
  width: auto;
  /* Never squeezed: on screens where max-width caps it (165px below 1700px) the logo keeps its
     proportions inside the box instead of being narrowed (2026-11-02). */
  object-fit: contain;
  object-position: center;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}
.brand:hover .brand__img { transform: scale(1.04); }

/* ---- Primary nav (desktop) ---- */
.nav-primary { margin-inline: auto; }
.nav-primary__list { display: flex; align-items: center; gap: clamp(0.75rem, 0.1rem + 2.1vw, 2.5rem); }

.nav-link {
  position: relative;
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 0.767rem + 0.194vw, 1rem);   /* 13 -> 16 @1920, per the Figma */
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ja-navy);
  padding-block: 0.5rem;
  white-space: nowrap;
}
/* Gold underline grows from the start edge */
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--ja-gold);
  transition: width var(--t-fast) var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ja-gold-700); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }

/* ---- Header utilities (search / language / login / CTA) ---- */
.header-tools { display: flex; align-items: center; gap: clamp(0.5rem, 0.1rem + 0.6vw, 0.75rem); flex: 0 0 auto; }

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: 0;
  padding: 0.5rem 0.75rem;
  line-height: 1.4286;
  border-radius: var(--r-sm);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--ja-navy);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.tool-btn:hover { color: var(--ja-gold-700); background: var(--ja-gold-100); }
.tool-btn .ic { width: 1.125rem; height: 1.125rem; }

/* Figma 97:3900: the icon-only search button is a 34x34 square (8px pad all round),
   unlike the two labelled tool buttons which get 12px of inline padding. */
.tool-btn--search { padding-inline: 0.5rem; }

/* Figma 97:3914 "My Booking": 133x48, radius 12, padding 12/28, Manrope 14/600.
   Scoped to the header so the shared .btn-ja--sm used elsewhere is untouched. */
.header-tools .btn-ja--sm {
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-md);
  font-weight: 600;
  letter-spacing: 0;
}

/* Inline search field that expands from the icon */
.header-search {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--ja-white);
  border-top: 1px solid var(--ja-line-soft);
  box-shadow: var(--sh-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-base) var(--ease);
}
.header-search.is-open { max-height: 7rem; }
.header-search__inner { display: flex; gap: var(--sp-3); padding-block: var(--sp-5); }
.header-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--ja-line);
  border-radius: var(--r-sm);
  padding: 0.8125rem var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ja-navy);
  background: var(--ja-cream);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.header-search__input:focus {
  outline: none;
  border-color: var(--ja-gold);
  box-shadow: 0 0 0 3px rgba(211, 163, 94, 0.18);
}

/* ---- Hamburger ---- */
.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--ja-line);
  border-radius: var(--r-sm);
  background: var(--ja-white);
  cursor: pointer;
  padding: 0;
  place-items: center;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-toggle:hover { border-color: var(--ja-gold); background: var(--ja-gold-100); }
.nav-toggle__box { position: relative; width: 1.25rem; height: 0.875rem; }
.nav-toggle__bar {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ja-navy);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease), top var(--t-fast) var(--ease);
}
.nav-toggle__bar:nth-child(1) { top: 0; }
.nav-toggle__bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle__bar:nth-child(3) { top: 100%; transform: translateY(-100%); }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; transform: translateY(-50%) scaleX(0.4); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* ---- Mobile drawer ---- */
.nav-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(22rem, 88vw);
  z-index: var(--z-drawer);
  background: var(--ja-white);
  box-shadow: -18px 0 60px rgba(12, 26, 53, 0.18);
  padding: var(--sp-6) var(--sp-6) var(--sp-9);
  overflow-y: auto;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform var(--t-base) var(--ease-out), visibility var(--t-base) linear;
}
.nav-drawer.is-open { transform: translateX(0); visibility: visible; }

.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--ja-line-soft);
  margin-bottom: var(--sp-5);
}
.nav-drawer__close {
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border: 1px solid var(--ja-line);
  border-radius: var(--r-sm);
  background: var(--ja-white);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.nav-drawer__close:hover { transform: rotate(90deg); border-color: var(--ja-gold); }
.nav-drawer__close .ic { width: 1.125rem; height: 1.125rem; }

.nav-drawer__list { display: grid; gap: 0.125rem; }
.nav-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ja-navy);
  padding: 0.875rem 0.75rem;
  border-radius: var(--r-sm);
  /* Staggered slide-in when the drawer opens */
  opacity: 0;
  transform: translateX(1.25rem);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease),
              background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-drawer.is-open .nav-drawer__link { opacity: 1; transform: translateX(0); }
.nav-drawer__link:hover { background: var(--ja-gold-100); color: var(--ja-gold-700); }
.nav-drawer__link .ic { width: 0.875rem; height: 0.875rem; opacity: 0.45; }

.nav-drawer__foot { margin-top: var(--sp-7); display: grid; gap: var(--sp-3); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(12, 26, 53, 0.5);
  backdrop-filter: blur(0.125rem);
  -webkit-backdrop-filter: blur(0.125rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease), visibility var(--t-base) linear;
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }


/* ==========================================================================
   08. HERO SLIDER
   Mixed media: image slides + a native video slide in the same rotation.
   ========================================================================== */
.hero {
  position: relative;
  /* The horizontal inset lives on .ja-container--wide so the panel keeps the
     design's 1.25vw margin; only the top inset belongs here. */
  padding-inline: 0;
  padding-top: min(1.1875rem, 0.99vw);
  /* Room for the search widget that overlaps the slider's bottom edge */
  padding-bottom: clamp(2rem, 0.5rem + 4vw, 4rem);
  background: linear-gradient(180deg, var(--ja-white) 0%, var(--ja-white) 55%, var(--ja-cream) 100%);
}

/* All slides share one grid cell, so the slider is always exactly as tall as
   its tallest slide — no JS height management and nothing can collapse. */
.hero-slider {
  position: relative;
  display: grid;
  grid-template-areas: "slide";
  border-radius: clamp(0.75rem, 0.2rem + 1.2vw, 1.5rem);   /* Figma cornerRadius 24 */
  overflow: hidden;
  /* The hero reads dark in the current design, not on the earlier beige */
  background: var(--ja-hero-dark);
  min-height: clamp(26rem, 23.46rem + 11.91vw, 37.75rem);   /* 604px @1920, per the Figma */
  isolation: isolate;
}

/* --- Slides --- */
.hero-slide {
  grid-area: slide;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-slow) var(--ease), visibility var(--t-slow) linear;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

.hero-slide__media { position: absolute; inset: 0; z-index: 0; }
.hero-slide__media img,
.hero-slide__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
/* Slow drift on the active slide's artwork - the "Ken Burns" touch */
.hero-slide.is-active .hero-slide__media img { animation: kenBurns 14s var(--ease) both; }

/* Beige-to-transparent veil so the copy always has contrast */
.hero-slide__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 270deg on the Arabic site: the copy is on the right, so the veil is dense there
     (client 2026-11-19 — it was dense on the left, under the aircraft). */
  background:
    linear-gradient(270deg, rgba(243,233,221,0.98) 0%, rgba(243,233,221,0.92) 26%,
                           rgba(243,233,221,0.55) 46%, rgba(243,233,221,0.08) 64%, rgba(243,233,221,0) 78%);
}
/* Dark slides sit on --ja-hero-dark and need enough cover that a daylight
   photograph still reads as the design's night-time hero. */
.hero-slide--dark .hero-slide__veil {
  /* Lighter than before: the artwork is now graded to the design’s own
     night register, so the veil only has to protect the copy column. */
  background:
    linear-gradient(270deg, rgba(33,38,44,0.95) 0%,  rgba(33,38,44,0.86) 22%,
                           rgba(33,38,44,0.48) 46%, rgba(33,38,44,0.14) 70%,
                           rgba(33,38,44,0) 100%),
    linear-gradient(180deg, rgba(33,38,44,0.18) 0%, rgba(33,38,44,0) 42%,
                            rgba(33,38,44,0.28) 100%);
}

/* Faint guilloche arcs echoing the design's background pattern */
.hero-slide__pattern {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 34%;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
}

/* Top-aligned rather than centred: in the design the copy starts 134px below
   the panel's top edge, and anchoring it there keeps every slide's copy on
   the same baseline no matter how long its headline runs. */
.hero-slide__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  min-height: clamp(26rem, 23.46rem + 11.91vw, 37.75rem);   /* must track .hero-slider */   /* -> 628px @1920 */
  padding-block: clamp(2.5rem, 0.5rem + 5vw, 6.5rem)       /* -> 104px */
                 clamp(2.5rem, 0.5rem + 5vw, 6.5rem);      /* -> 104px */
}

.hero-copy { max-width: 40rem; }
.hero-copy .eyebrow { letter-spacing: 0.2em; line-height: 1.3333; margin-bottom: 0.75rem; }
.hero-title { margin-bottom: var(--sp-4); letter-spacing: 0; }
.hero-text {
  font-size: 0.875rem;          /* Figma 14px */
  line-height: 2.0893;          /* Figma 29.25 / 14 */
  color: var(--ja-text);
  max-width: 30.75rem;          /* Figma 492px */
  margin-bottom: var(--sp-7);
}
.hero-slide--dark .hero-title { color: var(--ja-white); }
.hero-slide--dark .hero-text  { color: #C8C8C8; }
.hero-slide--dark .eyebrow    { color: var(--ja-gold); }
/* Readable over any photograph the airline puts up (client note 2026-11-02): a soft shadow
   under the copy, and the line under the title near-white rather than grey. */
.hero-slide--dark .hero-title,
.hero-slide--dark .hero-text,
.hero-slide--dark .eyebrow { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 2px 16px rgba(0, 0, 0, 0.55); }
.hero-slide--dark .hero-text { color: #EFEFEF; }

/* The outline CTA is navy by default, which disappears on a dark slide */
.hero-slide--dark .btn-ja--outline {
  --btn-fg: var(--ja-white);
  --btn-bd: rgba(255, 255, 255, 0.75);
}
.hero-slide--dark .btn-ja--outline:hover {
  --btn-bg: var(--ja-white);
  --btn-fg: var(--ja-hero-dark);
  --btn-bd: var(--ja-white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
/* Figma HeroSection > Frame 67 > Container > Link: 48px tall, cornerRadius 12,
   28px inline padding, a BLACK label on the gold fill, and a solid-white 600
   weight label on the outline button. */
.hero-actions .btn-ja { border-radius: 0.75rem; padding-inline: 1.75rem; letter-spacing: 0; }
.hero-slide--dark .hero-actions .btn-ja--outline { --btn-bd: #FFFFFF; font-weight: 600; }

/* Staggered reveal of the copy each time a slide becomes active */
.hero-slide.is-active .hero-copy > * { animation: heroRise var(--t-slow) var(--ease-out) both; }
.hero-slide.is-active .hero-copy > *:nth-child(1) { animation-delay: 0.10s; }
.hero-slide.is-active .hero-copy > *:nth-child(2) { animation-delay: 0.18s; }
.hero-slide.is-active .hero-copy > *:nth-child(3) { animation-delay: 0.26s; }
.hero-slide.is-active .hero-copy > *:nth-child(4) { animation-delay: 0.34s; }

/* --- Video slide affordances --- */
.hero-slide--video .hero-slide__media video { object-position: center; }

.video-cue {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--ja-white);
  padding: 0.5rem 1.125rem 0.5rem 0.5rem;
  border-radius: var(--r-pill);
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
  font-family: var(--font-head);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.video-cue:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-2px); }
.video-cue__ring {
  position: relative;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ja-gold);
  color: #000;
  flex: 0 0 auto;
}
.video-cue__ring::before {
  content: "";
  position: absolute;
  inset: -0.375rem;
  border-radius: 50%;
  border: 1px solid rgba(211, 163, 94, 0.75);
  animation: pulseRing 2.4s var(--ease) infinite;
}
.video-cue__ring .ic { width: 0.875rem; height: 0.875rem; }

/* --- Slider controls --- */
/* Both control clusters sit just above the band the search widget occupies.
   Between roughly 770px and 1340px the card is only 13-120px narrower than
   the panel, so anything in the bottom corners would end up underneath it. */
.hero-nav {
  position: absolute;
  z-index: 6;
  inset-inline-end: clamp(1rem, 0.2rem + 1.6vw, 2.25rem);
  bottom: calc(var(--hero-overlap) + 1.25rem);
  display: flex;
  gap: var(--sp-2);
}
.hero-arrow {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(12, 26, 53, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ja-navy);
  cursor: pointer;
  backdrop-filter: blur(0.375rem);
  -webkit-backdrop-filter: blur(0.375rem);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.hero-arrow:hover {
  background: var(--ja-gold);
  border-color: var(--ja-gold);
  color: #000;
  transform: translateY(-2px);
}
.hero-arrow .ic { width: 1.0625rem; height: 1.0625rem; }
/* Chevrons follow the reading direction automatically */
.hero-arrow--prev .ic { transform: scaleX(1); }

/* The hero slider is driven by prev/next only - no dot pagination. */


/* ==========================================================================
   09. FLIGHT SEARCH WIDGET
   --------------------------------------------------------------------------
   Measured off the approved design at its 1920px reference width:

     card ......... 1078 x 347,  top edge y=551,  bottom edge y=898
     hero panel ... bottom edge y=738   ->  187px of overlap
     inner inset .. 31px
     CTA .......... 200 x 48, centred ON the card's bottom border
     field row .... From 224 | swap 53 | To 223 | Dep 152 | Ret 183 | Pax 175

   Every value below is that measurement expressed fluidly, so the desktop
   render matches the design 1:1 and still degrades cleanly.
   ========================================================================== */
.search-widget-wrap {
  position: relative;
  z-index: 10;
  margin-top: calc(-1 * var(--hero-overlap));
  /* This wrapper is the full width of the content rail but only the centred
     card inside it is visible. Without this, its transparent gutters sit on
     top of the slider's dots and arrows and swallow their clicks. */
  pointer-events: none;
}
.search-widget { pointer-events: auto; }

.search-widget {
  /* Widget-scoped tokens - the CTA offset is derived from these two */
  --sw-pad:   clamp(1.125rem, 0.35rem + 1.4vw, 1.9375rem);  /* -> 31px @1920 */
  --sw-cta-h: 3rem;                                          /* 48px         */

  background: var(--ja-white);
  border: 2px solid var(--ja-gold);                          /* Figma 2px    */
  border-radius: 1.25rem;                                    /* Figma 20px   */
  box-shadow: 0 4px 142.6px rgba(9, 9, 9, 0.4);              /* Figma shadow */
  padding: var(--sw-pad);
  max-width: 67.375rem;                                      /* 1078px       */
  margin-inline: auto;
}

/* --- Booking-type tabs (Flights / Manage / Check-in / Flight Status) ------
   New in the current design: a four-up strip flush with the card's top edge.
   It escapes the card's padding with a negative margin, so the strip meets
   the border on all three sides. Active tab is white on the card, the rest
   are gold. Equal columns, 58px tall at the 1920 reference.
   ---------------------------------------------------------------------- */
.search-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: calc(var(--sw-pad) * -1) calc(var(--sw-pad) * -1) var(--sw-pad);
  border-radius: calc(1.25rem - 2px) calc(1.25rem - 2px) 0 0;   /* Figma Tab List r=20 */
  overflow: hidden;
  background: var(--ja-gold);
}
.search-tab {
  border: 0;
  background: transparent;
  /* Only the active tab is a <button>, and a button centres its own text; the other three are
     <a> and were inheriting the page alignment, so their labels sat against the start edge of
     an equal-width cell. Centred here for every tab, whichever element it is. */
  display: grid;
  place-items: center;
  text-align: center;
  color: #000;   /* Figma: pure black on the gold bar */
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 0.784rem + 0.388vw, 1.25rem);   /* 14 -> 20 @1920, per the Figma */
  font-weight: 800;
  line-height: 1.21;                                          /* Figma 24.2 / 20 */
  padding: clamp(0.625rem, 0.558rem + 0.285vw, 0.9rem) 0.5rem;   /* -> 53px bar @1920 */
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.search-tab:hover { background: rgba(255, 255, 255, 0.16); }
.search-tab.is-active {
  background: var(--ja-white);
  color: var(--ja-navy);
  font-weight: 700;   /* the Figma sets the active tab one step lighter than the rest */
  cursor: default;
}

/* "Coming soon" under the Check-in tab: online check-in is not open yet. */
.search-tab__soon {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.05rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--ja-navy);
  color: var(--ja-white);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

/* --- Trip type radios --- */
.trip-types {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 0.3rem + 1.5vw, 2.0625rem);               /* -> 33px      */
  margin-bottom: clamp(0.875rem, 0.35rem + 0.9vw, 1.5rem);   /* -> 24px      */
}

.radio-ja { display: inline-flex; align-items: center; gap: 0.5625rem; cursor: pointer; }
.radio-ja input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-ja__dot {
  position: relative;
  width: 1.3rem; height: 1.3rem;                 /* Figma 20.8px */
  border-radius: 50%;
  /* The current design outlines unselected radios in dark ink, not grey */
  border: 2.3px solid var(--ja-hero-dark);       /* Figma strokeWeight 2.31 */
  flex: 0 0 auto;
  transition: border-color var(--t-fast) var(--ease);
}
.radio-ja__dot::after {
  content: "";
  position: absolute;
  inset: 0.18rem;               /* Figma inner dot 10.4px on the 20.8px ring */
  border-radius: 50%;
  background: var(--ja-gold);
  transform: scale(0);
  transition: transform var(--t-fast) var(--ease);
}
/* Parent-agnostic so the same dot works inside .radio-ja and .fare-chip */
input:checked + .radio-ja__dot { border-color: var(--ja-gold); }
input:checked + .radio-ja__dot::after { transform: scale(1); }
.radio-ja__label {
  font-family: var(--font-body);                                /* Figma Inter */
  font-size: clamp(0.875rem, 0.66rem + 0.575vw, 1.125rem);      /* -> 18px     */
  font-weight: 600;
  line-height: 1.345;                                           /* Figma 24.2 / 18 */
  color: #000;
  transition: color var(--t-fast) var(--ease);
}
.radio-ja input:checked ~ .radio-ja__label { color: var(--ja-navy); }
.radio-ja:hover .radio-ja__label { color: var(--ja-navy); }
input:focus-visible + .radio-ja__dot { box-shadow: 0 0 0 3px rgba(211, 163, 94, 0.3); }

/* --- The route / date / passengers row --- */
/* Column ratios come straight from the measured cell widths above. */
.search-fields {
  display: grid;
  grid-template-columns:
    minmax(0, 1.4fr)   /* From       224 */
    auto               /* swap        53 */
    minmax(0, 1.4fr)   /* To         223 */
    minmax(0, 0.95fr)  /* Departure  152 */
    minmax(0, 1.15fr)  /* Return     183 */
    minmax(0, 1.1fr);  /* Passengers 175 */
  align-items: stretch;
  border: 1px solid rgba(0, 0, 0, 0.3);                     /* Figma stroke   */
  border-radius: 1rem;                                      /* Figma 16.16px  */
  overflow: visible;
  background: var(--ja-white);
  margin-bottom: clamp(0.625rem, 0.35rem + 0.55vw, 1rem);   /* -> 16px, Figma */
}

.field {
  position: relative;
  padding: clamp(0.75rem, 0.5rem + 0.5vw, 1.0125rem)
           clamp(0.6875rem, 0.3rem + 0.9vw, 1.3rem);
  border-inline-end: 1px solid rgba(15, 10, 46, 0.2);
  min-width: 0;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.field:last-child { border-inline-end: 0; }
.field:hover, .field.is-focus { background: var(--ja-gold-100); }
.field--muted { color: var(--ja-muted); }

.field__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
  font-size: clamp(0.75rem, 0.71rem + 0.135vw, 0.866rem);
  font-weight: 400;
  line-height: 1.5;             /* Figma 20.8 / 13.85 */
  color: #000;
  margin-bottom: 0.1445rem;     /* Figma 2.31px */
}
.field__label .ic { width: 0.625rem; height: 0.625rem; opacity: 0.6; }

.field__value {
  /* Must be block-level: an inline span ignores overflow/text-overflow, so
     the values never truncated and the cell reported a stray extra line. */
  display: block;
  font-family: var(--font-body);                            /* Figma Inter */
  font-size: clamp(1rem, 0.86rem + 0.365vw, 1.25rem);       /* -> 20px     */
  font-weight: 700;
  color: var(--ja-navy);
  line-height: 1.65;                                        /* Figma 33 / 20 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* The Return placeholder wraps to three lines and is what sets the row's
   height, so its size and leading are what keep the row at the design's
   110px. */
.field--muted .field__value {
  /* Body face, not the display face - it is narrower, which is what keeps
     the placeholder on three lines as in the design. */
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 0.71rem + 0.135vw, 0.866rem);
  font-weight: 400;
  color: #000;
  white-space: normal;
  line-height: 1.5;
}

.field__hint {
  display: block;
  font-size: clamp(0.75rem, 0.71rem + 0.11vw, 0.8125rem);
  line-height: 1.5;             /* Figma 19 / 12.7 */
  color: #000;
  margin-top: 0.2165rem;        /* Figma 3.46px */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* An empty hint must not contribute its margin to the row height */
.field__hint:empty { display: none; }
/* The cabin line wraps to two lines in the design, unlike the airport names */
.field__hint--wrap { white-space: normal; }

/* Native date / select control layered over the styled display: invisible but
   fully clickable and reachable by keyboard, so the browser's own picker does
   the work while the design stays intact. */
.field__native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  font: inherit;
  color: transparent;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.field__native:focus-visible { outline: none; }
/* Reflect focus on the whole field instead of the invisible control */
.field:has(.field__native:focus-visible) {
  background: var(--ja-gold-100);
  box-shadow: inset 0 0 0 2px var(--ja-gold);
  border-radius: var(--r-md);
}

/* Editable inputs are invisible until focused so the design stays clean */
.field__input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--font-body);                    /* Figma Inter */
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.25rem);
  font-weight: 700;
  color: var(--ja-navy);
  line-height: 1.65;                                /* Figma 33 / 20 */
}
.field__input:focus { outline: none; }
.field__input::placeholder { color: var(--ja-muted); font-weight: 500; }

/* Swap origin/destination - its own 53px cell between From and To */
.field-swap {
  display: grid;
  place-items: center;
  padding-inline: 0.43rem;                             /* Figma 6.93px */
  border-inline-end: 1px solid rgba(15, 10, 46, 0.2);
}
.swap-btn {
  width: 2.4563rem; height: 2.4563rem;               /* Figma 39.3px */
  border-radius: 50%;
  border: 1px solid rgba(211, 163, 94, 0.45);        /* Figma stroke */
  background: transparent;                           /* Figma fill #D3A35E@0.00 */
  color: var(--ja-gold);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.swap-btn:hover { border-color: var(--ja-gold); background: var(--ja-gold-100); transform: rotate(180deg); }
.swap-btn .ic { width: 1.0625rem; height: 1.0625rem; }

/* AJAX airport autocomplete */
.field__suggest {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 0.5rem);
  min-width: 100%;
  width: max-content;
  max-width: 22rem;
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: 0.375rem;
  z-index: 20;
  max-height: 16rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.375rem);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast) linear;
}
.field__suggest.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.suggest-item {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  background: none;
  padding: 0.5625rem 0.6875rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.suggest-item:hover, .suggest-item.is-active { background: var(--ja-gold-100); }
.suggest-item__city { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-body-sm); color: var(--ja-navy); }
.suggest-item__meta { font-size: 0.75rem; color: var(--ja-muted); }
.suggest-empty { padding: 0.75rem; font-size: var(--fs-body-sm); color: var(--ja-muted); text-align: center; }

/* --- Special fare row --- */
.fare-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.5rem, 0.28rem + 0.44vw, 0.7215rem);            /* -> 11.55px */
  margin-bottom: clamp(1.25rem, 0.5rem + 1.55vw, 2.3563rem);  /* -> 37.7px  */
}
.fare-row__label { font-size: clamp(0.8125rem, 0.76rem + 0.16vw, 0.9375rem); color: #1A1633; font-weight: 500; line-height: 1.5; }
/* Figma holds "Select a special fare (optional)" in one text node with one
   fill, so "(optional)" is not greyed down. */
.fare-row__label span { color: inherit; }
/* Figma's "EXTRA SAVINGS" badge is a small rounded rect on near-black brown,
   not the global full-pill shape. */
.fare-row .pill--ink {
  background: #241B0E;
  border-radius: 0.4329rem;                 /* Figma 6.93px       */
  font-family: var(--font-body);            /* Figma Inter        */
  font-size: 0.7216rem;                     /* Figma 11.55px      */
  letter-spacing: 0.08em;                   /* Figma 0.92 / 11.55 */
  line-height: 1.5;                         /* Figma 17.3 / 11.55 */
  padding: 0.2165rem 0.6494rem;             /* Figma 3.46 / 10.39 */
}

.fare-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6494rem;                            /* Figma 10.39px */
  border: 1px solid rgba(15, 10, 46, 0.3);   /* Figma stroke  */
  border-radius: 0.7216rem;                  /* Figma 11.55px */
  padding: 0.6494rem 1.0102rem;              /* Figma 10.39 / 16.16 */
  cursor: pointer;
  background: var(--ja-white);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.fare-chip:hover { border-color: var(--ja-gold-200); transform: translateY(-1px); }
.fare-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.fare-chip:has(input:checked) { border-color: var(--ja-gold); background: rgba(211, 163, 94, 0.1); }
.fare-chip__txt { display: grid; line-height: 1.2; }
.fare-chip__title {
  font-family: var(--font-body);             /* Figma Inter */
  font-size: clamp(0.875rem, 0.83rem + 0.13vw, 0.9375rem);
  font-weight: 700;
  color: var(--ja-navy);
}
.fare-chip__sub { font-size: clamp(0.6875rem, 0.66rem + 0.111vw, 0.7938rem); color: #000; line-height: 1.5; }
/* A fare family the airline names but does not sell yet (e.g. SIGNATURE): shown, not choosable */
.fare-chip--soon { cursor: not-allowed; border-style: dashed; background: #FAFAF8; }
.fare-chip--soon:hover { transform: none; border-color: inherit; }
.fare-chip--soon .fare-chip__title { opacity: 0.6; }
.fare-chip--soon .radio-ja__dot { opacity: 0.35; }
.fare-chip--soon .fare-chip__sub { color: var(--ja-gold-700, #A9762F); font-weight: 600; }

/* --- Submit -------------------------------------------------------------
   In the design the CTA is centred ON the card's bottom border, hanging
   half outside it. Pulling this row up by (inner inset + half the button
   height) lifts the card's bottom edge to the button's midline, and the
   relatively-positioned button then paints over that border.
   ---------------------------------------------------------------------- */
.search-widget__submit {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: calc(-1 * (var(--sw-pad) + var(--sw-cta-h) / 2));
}
.search-widget__submit .btn-ja {
  position: relative;
  z-index: 1;
  min-width: 12.375rem;               /* Figma 198px        */
  min-height: var(--sw-cta-h);        /* 48px               */
  padding-inline: 1.7318rem;          /* Figma 27.71px      */
  border-radius: 0.866rem;            /* Figma 13.85px      */
  font-family: var(--font-body);      /* Figma Inter        */
  font-size: clamp(0.875rem, 0.83rem + 0.13vw, 0.9375rem);   /* -> 15px */
  letter-spacing: 0.02em;             /* Figma 0.30 / 15    */
  gap: 0.7216rem;                     /* Figma 11.55px      */
  --btn-fg: #000;                     /* Figma black label  */
}
.search-widget__submit .btn-ja .ic { width: 1.4438rem; height: 1.4438rem; }   /* Figma icon 23.1px */

/* Inline status line for the AJAX submit. Absolutely placed so revealing it
   cannot shift the card's carefully measured height. */
.search-status {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 0.875rem);
  margin: 0;
  text-align: center;
  font-size: var(--fs-body-sm);
  color: var(--ja-gold-700);
  opacity: 0;
  transform: translateY(0.25rem);
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.search-status.is-visible { opacity: 1; transform: translateY(0); }


/* ==========================================================================
   10. PROMO DESTINATION CARDS  (Exclusive Offers & Destinations)
   Horizontal scroll-snap rail. Cards peek past the container edge exactly
   as they do in the design, and the rail becomes a swipe list on mobile.
   ========================================================================== */
.rail {
  position: relative;
  /* Bleed the rail to the viewport edge while keeping the first card aligned
     to the content rail - this is what produces the "peeking" card. */
  margin-inline: calc(var(--container-pad) * -1);
}
.rail__track {
  display: flex;
  gap: var(--gutter);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-inline: var(--container-pad);
  padding-block: 0.5rem 1.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__item { scroll-snap-align: start; flex: 0 0 auto; }

/* Figma 97:3932 PromoCarousel - the band is 568px tall: 57px of padding
   above and below a 454px content block. Cards sit 12px apart, and the
   eyebrow's line box is 16px with an 8px gap to the h2. */
#destinations.section { padding-block: 3.5625rem; }
#destinations .section-head__title .eyebrow { margin-bottom: var(--sp-2); line-height: 1.3333; }
#destinations .section-head__title h2 { letter-spacing: 0; }
.rail--promo .rail__track { gap: 0.75rem; }

/* Arrow pair used above / beside the rails */
.rail-nav { display: flex; gap: var(--sp-2); }
.rail-arrow {
  width: 2.875rem; height: 2.875rem;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--ja-line);
  background: var(--ja-white);
  color: var(--ja-navy);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
              opacity var(--t-fast) var(--ease);
}
.rail-arrow:hover { background: var(--ja-navy); border-color: var(--ja-navy); color: var(--ja-white); transform: translateY(-2px); }
.rail-arrow[disabled] { opacity: 0.35; cursor: not-allowed; transform: none; }
.rail-arrow .ic { width: 1rem; height: 1rem; }

/* --- The card itself ---
   Every colour-dependent value is a token, so a card only has to declare its
   own palette (see the five-colour cycle below) and the badge, copy and CTA
   follow automatically - including on the black and white cards, where white
   text or a black badge would otherwise disappear. */
.promo-card {
  --card-accent:    var(--ja-gold);
  --card-wash-op:   0.90;
  --card-ink:       var(--ja-white);
  --card-ink-soft:  rgba(255, 255, 255, 0.92);
  --card-badge-bg:  #000;
  --card-badge-fg:  var(--ja-white);
  --card-btn-bg:    var(--ja-white);
  --card-btn-fg:    var(--ja-navy);
  --card-edge:      transparent;
  --card-scrim:     rgba(201, 149, 79, 0.92);

  position: relative;
  width: clamp(16rem, 12rem + 22vw, 25.5rem);
  aspect-ratio: 408 / 282;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  box-shadow: var(--sh-sm), inset 0 0 0 1px var(--card-edge);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.promo-card:hover {
  transform: translateY(-0.375rem);
  box-shadow: var(--sh-lg), inset 0 0 0 1px var(--card-edge);
}

.promo-card__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.promo-card:hover .promo-card__img { transform: scale(1.07); }

/* Diagonal colour wash - the signature of this card in the design */
.promo-card__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: polygon(0 0, 60.6% 0, 47.2% 100%, 0 100%);
  background: var(--card-accent);
  opacity: var(--card-wash-op);
  transition: clip-path var(--t-slow) var(--ease-out);
}
.promo-card:hover .promo-card__wash { clip-path: polygon(0 0, 74% 0, 52% 100%, 0 100%); }

.promo-card__body {
  position: relative;
  z-index: 2;
  padding: clamp(1rem, 0.5rem + 1vw, 1.25rem);
  color: var(--card-ink);
  max-width: 78%;
}
/* The copy is wider than the wash at the card's foot, so its tail runs over
   the photograph. This bleeds the card's own colour out from the corner so
   that tail stays readable - invisible on top of the wash itself, and doing
   the real work only where it crosses the image. */
.promo-card__body::before {
  content: "";
  position: absolute;
  inset-inline-start: -12%;
  inset-block-end: -12%;
  width: 128%;
  height: 165%;
  z-index: -1;
  background: radial-gradient(125% 105% at 0% 100%, var(--card-scrim) 0%, transparent 72%);
  pointer-events: none;
}
.promo-card__title { color: var(--card-ink); font-size: var(--fs-h3); margin-bottom: 0.25rem; letter-spacing: 0; }
.promo-card__text {
  font-size: var(--fs-body-sm);
  line-height: 1.4286;
  color: var(--card-ink-soft);
  margin-bottom: var(--sp-4);
}
.promo-card__pill {
  position: absolute;
  z-index: 3;
  /* Figma 97:3958 Text: 16px inset, Manrope 12/700, ls 0.6px, 89.4x25 box */
  top: clamp(0.75rem, 0.4rem + 0.8vw, 1rem);
  inset-inline-start: clamp(0.75rem, 0.4rem + 0.8vw, 1rem);
  font-size: 0.75rem;
  line-height: 1.3333;
  letter-spacing: 0.05em;
  padding: 0.28125rem 0.625rem;
  background: var(--card-badge-bg);
  color: var(--card-badge-fg);
}
/* CTA inherits the card's palette and inverts on hover */
.promo-card .btn-ja--light {
  --btn-bg: var(--card-btn-bg);
  --btn-fg: var(--card-btn-fg);
  --btn-bd: var(--card-btn-bg);
  /* Figma 97:3953 Button: 125x48, r8, Inter 12/600, 6px gap, 14px chevron */
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  gap: 0.375rem;
  min-height: 3rem;
}
.promo-card .btn-ja .ic { width: 0.875rem; height: 0.875rem; }
.promo-card .btn-ja--light:hover {
  --btn-bg: var(--card-btn-fg);
  --btn-fg: var(--card-btn-bg);
  --btn-bd: var(--card-btn-fg);
}

/* --- Four-colour cycle: the fare families' palette (client note 2026-10-14) ---
   Midnight Navy, Deep Burgundy, Warm Taupe, Ivory - each with its pair colour
   on the badge and the Book Now button, as in the redesign brief. Driven by
   :nth-child so the rhythm holds for any number of cards.                    */
.promo-card .btn-ja--primary,
.promo-card .btn-ja--primary:hover {
  --btn-bg: var(--card-cta-bg);
  --btn-fg: var(--card-cta-fg);
  --btn-bd: var(--card-cta-bg);
  background: var(--card-cta-bg);
  border-color: var(--card-cta-bg);
  color: var(--card-cta-fg);
}
.promo-card .btn-ja--primary:hover { filter: brightness(1.08); }

/* BUSINESS - Midnight Navy + Champagne Gold */
.rail--promo .promo-card:nth-child(4n + 1) {
  --card-accent:   var(--fare-business, #17263D);
  --card-wash-op:  0.86;
  --card-scrim:    rgba(23, 38, 61, 0.92);
  --card-badge-bg: var(--fare-business-2, #C6AA78);
  --card-badge-fg: var(--fare-business, #17263D);
  --card-btn-fg:   var(--fare-business, #17263D);
  --card-cta-bg:   var(--fare-business-2, #C6AA78);
  --card-cta-fg:   var(--fare-business, #17263D);
}
/* SIGNATURE - Deep Burgundy + Champagne */
.rail--promo .promo-card:nth-child(4n + 2) {
  --card-accent:   var(--fare-signature, #702C3B);
  --card-wash-op:  0.88;
  --card-scrim:    rgba(112, 44, 59, 0.92);
  --card-badge-bg: var(--fare-signature-2, #D7C2A0);
  --card-badge-fg: var(--fare-signature, #702C3B);
  --card-btn-fg:   var(--fare-signature, #702C3B);
  --card-cta-bg:   var(--fare-signature-2, #D7C2A0);
  --card-cta-fg:   var(--fare-signature, #702C3B);
}
/* COMFORT - Warm Taupe + Cream: light enough that the copy turns navy */
.rail--promo .promo-card:nth-child(4n + 3) {
  --card-accent:   var(--fare-comfort, #B7A48C);
  --card-wash-op:  0.94;
  --card-scrim:    rgba(183, 164, 140, 0.94);
  --card-ink:      var(--fare-business, #17263D);
  --card-ink-soft: rgba(23, 38, 61, 0.88);
  --card-badge-bg: var(--fare-business, #17263D);
  --card-badge-fg: var(--fare-comfort-2, #F4EFE7);
  --card-btn-bg:   var(--fare-comfort-2, #F4EFE7);
  --card-btn-fg:   var(--fare-business, #17263D);
  --card-cta-bg:   var(--fare-business, #17263D);
  --card-cta-fg:   var(--fare-comfort-2, #F4EFE7);
}
/* SMART - Ivory + Charcoal: solid wash, dark copy, hairline against the page */
.rail--promo .promo-card:nth-child(4n + 4) {
  --card-accent:   var(--fare-start, #F7F5F0);
  --card-wash-op:  1;
  --card-scrim:    rgba(247, 245, 240, 0.96);
  --card-ink:      var(--fare-start-2, #292929);
  --card-ink-soft: rgba(41, 41, 41, 0.82);
  --card-badge-bg: var(--fare-start-2, #292929);
  --card-badge-fg: var(--fare-start, #F7F5F0);
  --card-btn-bg:   var(--fare-start-2, #292929);
  --card-btn-fg:   var(--fare-start, #F7F5F0);
  --card-cta-bg:   var(--fare-business-2, #C6AA78);
  --card-cta-fg:   var(--fare-business, #17263D);
  --card-edge:     var(--ja-line);
}


/* ==========================================================================
   11. EXPLORE JORDAN  (coverflow carousel over a full-bleed backdrop)
   ========================================================================== */
.explore {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1rem + 5vw, 3.5rem);
  isolation: isolate;
}
.explore__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

/* Two stacked layers so selecting a card cross-fades the backdrop instead of
   flipping it. JS writes the incoming image to whichever layer is hidden,
   then swaps .is-shown between them. Each backdrop is pre-normalised to the
   same pale register, so the navy heading keeps its contrast throughout. */
.explore__bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity var(--t-slow) var(--ease),
              transform 1.2s var(--ease-out);
  will-change: opacity, transform;
}
.explore__bg-layer.is-shown { opacity: 1; transform: scale(1); }

.explore__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Figma 97:4000 fills: the photo carries a FLAT 80% #FFEFD8 wash, not a
     vertical ramp. It is paler than the old gradient, so heading contrast
     rises rather than falls. */
  background: rgba(255, 239, 216, 0.8);
}

.explore__head { text-align: center; margin-bottom: clamp(1.5rem, 0.6rem + 2vw, 2.3125rem); }
.explore__head h2, .explore__head .h2 { font-size: var(--fs-h1-alt); line-height: 1.13; letter-spacing: 0; }
.explore__head .eyebrow { letter-spacing: 0.1em; color: var(--ja-gold-ink); }

/* --- Coverflow stage --- */
.coverflow {
  position: relative;
  height: clamp(19rem, 12rem + 24vw, 25.0625rem);
  perspective: 75rem;
  margin-bottom: clamp(1.5rem, 0.6rem + 2vw, 3.375rem);
}
.coverflow__stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.cf-card {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  width: clamp(9.5rem, 6rem + 12vw, 18.1rem);
  aspect-ratio: 13 / 18;
  border-radius: 1.1125rem;
  overflow: hidden;
  background: var(--ja-line-soft);
  box-shadow: 0 0.5rem 1.5rem rgba(15, 25, 33, 0.12);
  /* JS supplies --cf-x / --cf-rot / --cf-scale / --cf-z per position */
  transform: translate(-50%, -50%)
             translateX(var(--cf-x, 0))
             translateY(var(--cf-y, 0))
             rotate(var(--cf-rot, 0deg))
             scale(var(--cf-scale, 1));
  z-index: var(--cf-z, 1);
  opacity: var(--cf-op, 1);
  transition: transform var(--t-slow) var(--ease-out),
              opacity var(--t-slow) var(--ease),
              box-shadow var(--t-base) var(--ease);
  cursor: pointer;
  will-change: transform;
}
.cf-card img { width: 100%; height: 100%; object-fit: cover; }

/* Legibility scrim for the city label */
.cf-card__scrim {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 24.4%;
  /* Figma 97:4041 GRADIENT_LINEAR, bottom -> top: 0.88 / 0.40 at 60% / 0 */
  background: linear-gradient(180deg, rgba(15, 25, 33, 0) 0%, rgba(15, 25, 33, 0.4) 40%, rgba(15, 25, 33, 0.88) 100%);
}
.cf-card__country {
  position: absolute;
  /* Figma 97:4039 Container: 13.37px inset and padding-inline, 4.46px
     padding-block, radius 6.68 (a rounded rect, NOT a pill), #0F1921 at
     70%, Manrope 13.37/600. Set in rem so the card transform scales it. */
  top: 0.835rem;
  inset-inline-start: 0.835rem;
  font-size: 0.835rem;
  font-weight: 600;
  line-height: 1.3333;
  letter-spacing: 0;
  padding: 0.2785rem 0.835rem;
  border-radius: 0.4177rem;
  background: rgba(15, 25, 33, 0.7);
}
.cf-card__city {
  position: absolute;
  /* Figma 97:4041/97:4042: the label's padding equals 1em of the city size
     (22.28px pad at 22.28px type), so 1em rides the card transform. */
  inset-inline: 1em;
  bottom: 1em;
  font-family: var(--font-head);
  font-size: clamp(0.9375rem, 0.8rem + 0.5vw, 1.375rem);
  font-weight: 700;
  line-height: 1.248;
  color: var(--ja-white);
  letter-spacing: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.cf-card.is-center { box-shadow: 0 1.67rem 4.18rem rgba(15, 25, 33, 0.22); }
.cf-card.is-center .cf-card__city { text-transform: uppercase; letter-spacing: 0.04em; }
.cf-card:not(.is-center):hover { box-shadow: 0 0.875rem 2.25rem rgba(15, 25, 33, 0.2); }

/* --- Coverflow controls --- */
.coverflow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 0.3rem + 1.2vw, 1.5rem);
}
.cf-arrow {
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(12, 26, 53, 0.22);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ja-navy);
  cursor: pointer;
  backdrop-filter: blur(0.375rem);
  -webkit-backdrop-filter: blur(0.375rem);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.cf-arrow:hover { background: var(--ja-white); border-color: var(--ja-gold); color: var(--ja-gold-700); transform: translateY(-2px); }
.cf-arrow .ic { width: 1.125rem; height: 1.125rem; }

.cf-dots { display: flex; align-items: center; gap: 0.5rem; }
.cf-dot {
  width: 0.5rem; height: 0.5rem;
  padding: 0; border: 0;
  border-radius: var(--r-pill);
  background: rgba(12, 26, 53, 0.26);
  cursor: pointer;
  transition: width var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.cf-dot.is-active { width: 1.5rem; background: var(--ja-white); }


/* ==========================================================================
   12. SPECIAL FLIGHT OFFERS
   Split card: media half + fare half. Rail peeks on both edges.
   ========================================================================== */
.offers { background: var(--ja-white); }
/* Figma 97:4063: this band's content rail is 1152, not the page-wide 1360. */
.offers .ja-container { max-width: 77rem; }

.offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: clamp(20rem, 12rem + 50vw, 72rem);
  background: var(--ja-white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 0 2.75rem rgba(113, 113, 113, 0.15);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.offer-card:hover { transform: translateY(-0.375rem); box-shadow: var(--sh-xl); }

.offer-card__media { position: relative; min-height: 17.5rem; overflow: hidden; }
.offer-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.offer-card:hover .offer-card__media img { transform: scale(1.06); }
/* Figma 97:4117 - the diagonal scrim that lets the gold pill read on the photo */
.offer-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(11, 22, 40, 0.35) 0%, rgba(11, 22, 40, 0) 60%);
  pointer-events: none;
}
.offer-card__pill {
  position: absolute; z-index: 2;
  top: 1.375rem; inset-inline-start: 1.375rem;
  border-radius: 0.25rem;
  letter-spacing: 0.16em;
  padding: 0.3125rem 0.75rem;
}

.offer-card__body {
  padding: clamp(1.25rem, 0.7rem + 1.4vw, 2rem);
  display: flex;
  flex-direction: column;
}

/* Route strip: AMM ----[plane]---- DXB */
.route {
  display: grid;
  grid-template-columns: auto minmax(2rem, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  padding-block: var(--sp-4) 1.375rem;
  border-bottom: 1px solid var(--ja-line);
  margin-bottom: var(--sp-6);
}
.route__code {
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 0.975rem + 0.5vw, 1.5rem);
  font-weight: 600;
  color: var(--ja-navy);
  letter-spacing: 0;
  line-height: 1;
}
.route__city {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B7A8D;
  margin-top: 0.1875rem;
}
.route__end { text-align: end; }
.route__line { position: relative; height: 1px; background: linear-gradient(90deg, #C9A84C 0%, #E2C17A 50%, #C9A84C 100%); }
.route__line .ic {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  width: 1.25rem; height: 1.25rem;
  color: #C9A84C;
  background: var(--ja-white);
  padding-inline: 0.375rem;
}

.offer-card__meta {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ja-muted);
  margin-bottom: var(--sp-3);
}

.price { display: flex; align-items: baseline; gap: 0.4375rem; margin-bottom: var(--sp-4); }
.price__from { font-size: var(--fs-body-sm); color: var(--ja-text); }
.price__value {
  font-family: var(--font-head);
  font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem);
  font-weight: 800;
  color: var(--ja-gold-700);
  line-height: 1;
  letter-spacing: -0.02em;
}
.price__cur { font-size: var(--fs-body-sm); color: var(--ja-muted); font-weight: 500; }

.offer-card__text { font-size: var(--fs-body-sm); line-height: 1.65; color: var(--ja-text); margin-bottom: var(--sp-5); }
.offer-card__actions { margin-top: auto; display: grid; gap: var(--sp-3); justify-items: center; }
.offer-card__actions .btn-ja { width: 100%; }

/* Closing line + button under the offers rail */
.offers-foot { text-align: center; margin-top: var(--sp-8); }
.offers-foot__note { font-size: var(--fs-body-sm); color: var(--ja-muted); margin-bottom: var(--sp-4); }

/* --------------------------------------------------------------------------
   Figma 97:4060 "Design Section", measured at 1920. Scoped to .offers /
   .offers-foot because the same .offer-card and .btn-ja--outline are reused
   on the offers listing page and in the hero, at different sizes.
   -------------------------------------------------------------------------- */
.offers .rail__track { gap: 1.5rem; }
.offers .offer-card__body { padding: 2.75rem 2.75rem 2.5rem; }
.offers .offer-card__pill { background: #C9A84C; color: var(--ja-navy); }
.offers .offer-card__meta { font-size: 0.75rem; letter-spacing: 0.08em; }
.offers .price { margin-bottom: var(--sp-3); }
.offers .price__value {
  font-size: clamp(1.875rem, 1.35rem + 1.75vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.offers .price__cur { font-size: 1rem; font-weight: 400; }
.offers .offer-card__text { line-height: 1.6; margin-bottom: 1.75rem; }
.offers .offer-card__actions { gap: 1.125rem; }
.offers .section-head__note {
  font-size: var(--fs-lead);
  line-height: 1.65;
  margin-top: var(--sp-4);
  max-width: 37.5rem;
}
.offers-foot .btn-ja--outline {
  min-height: 3.5625rem;
  padding-inline: var(--sp-7);
  gap: 0.625rem;
  border-width: 2px;
  border-radius: 0.625rem;
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.offers-foot .btn-ja--outline .ic { color: #C9A84C; }


/* ==========================================================================
   13. WHY FLY  (feature grid)
   ========================================================================== */
.why {
  background: linear-gradient(90deg, #FBF7EF 0%, #FFFDFA 100%);
  padding-block: clamp(2.75rem, 1.55rem + 4vw, 5rem);
}

/* Figma 97:4204: this band's content rail is 1232, not the page-wide 1360. */
.why .ja-container { max-width: 82rem; }



/* ==========================================================================
   14. e-MAGAZINE  (article / news cards)
   Each card carries: category, title, date, read time, excerpt, Read More.
   ========================================================================== */
.magazine { background: var(--ja-white); }
/* Figma 97:4246 WhyJordanAviation: the band is 80px padding-block and its content
   rail is 1152px (not the site 1360) -- that rail is what makes the three cards
   370.7px wide, matching MagazineCard exactly. Eyebrow + head metrics follow it. */
.magazine { padding-block: clamp(3rem, 1.5rem + 3.5vw, 5rem); }
.magazine .ja-container { max-width: calc(72rem + 2 * var(--container-pad)); }
.magazine .eyebrow { font-size: 0.72rem; letter-spacing: 0.2em; }
.magazine .section-head { margin-bottom: 2.125rem; }
.magazine .section-head .link-arrow { letter-spacing: 0.04em; }

/* Home Stories (client notes 2026-10-22, point 13): a magazine spread. The latest story is the
   cover - its photograph full size, the words on a soft navy fade; the next three are rows with
   a square photo. The whole cover / row is the link (stretched from the title's anchor). */
.stories {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 0.75rem + 1.5vw, 2rem);
  align-items: stretch;
}
.stories--single { grid-template-columns: minmax(0, 1fr); }
.story-link { color: inherit; text-decoration: none; }
.story-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.story-link:focus-visible { outline: none; }
.story-link:focus-visible::after { outline: 2px solid var(--ja-gold, #D3A35E); outline-offset: 3px; border-radius: inherit; }
.story-cat {
  align-self: flex-start;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(211, 163, 94, 0.92);
  color: #17263D;
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.story-cat--quiet { padding: 0; background: none; color: var(--ja-gold-ink, #74501D); }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0; font-size: 0.78rem; color: var(--ja-muted); }

.story-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(24rem, 18rem + 16vw, 33rem);
  overflow: hidden;
  border-radius: 1.5rem;
  background: #17263D;
  box-shadow: 0 30px 60px -36px rgba(12, 26, 53, 0.55);
}
.story-cover__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.story-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 26, 53, 0) 30%, rgba(12, 26, 53, 0.55) 58%, rgba(12, 26, 53, 0.92) 100%);
}
.story-cover:hover .story-cover__img { transform: scale(1.05); }
.story-cover__body {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  color: #fff;
}
.story-cover__title { margin: 0; max-width: 22ch; color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem); line-height: 1.2; text-wrap: balance; }
.story-cover__text { margin: 0; max-width: 52ch; color: rgba(255, 255, 255, 0.84); font-size: 0.98rem; line-height: 1.6; }
.story-cover .story-meta { color: rgba(255, 255, 255, 0.72); }
.story-cover__more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: 0.25rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(233, 217, 184, 0.55);
  color: #E9D9B8;
  font-weight: 700;
  font-size: 0.9rem;
}
.story-cover__more .ic { width: 1rem; height: 1rem; transition: transform 0.25s ease; }
.story-cover:hover .story-cover__more .ic { transform: translateX(4px); }
[dir="rtl"] .story-cover:hover .story-cover__more .ic { transform: translateX(-4px); }

.story-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.story-row {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 1.25rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--ja-line-soft, #EEE8DD);
}
.story-row:first-child { padding-top: 0; }
.story-row:last-child { border-bottom: 0; padding-bottom: 0; }
/* The photo takes the row's full height, so two rows or three both fill the cover's height. */
.story-row__media { min-height: 8.5rem; overflow: hidden; border-radius: 1rem; background: #EFE8DB; }
.story-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.story-row:hover .story-row__media img { transform: scale(1.08); }
.story-row__body { display: flex; flex-direction: column; justify-content: center; gap: 0.45rem; min-width: 0; }
.story-row__title { margin: 0; font-size: 1.12rem; line-height: 1.35; color: var(--ja-navy, #0C1A35); transition: color 0.2s ease; }
.story-row:hover .story-row__title { color: var(--ja-gold-700, #8C6A2F); }
.story-row__text {
  margin: 0;
  color: var(--ja-text);
  font-size: 0.86rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 991.98px) {
  .stories { grid-template-columns: minmax(0, 1fr); }
  .story-row:first-child { padding-top: 1.1rem; }
}
@media (max-width: 479.98px) {
  .story-cover { min-height: 26rem; }
  .story-row { grid-template-columns: 6rem minmax(0, 1fr); gap: 0.9rem; }
  .story-row__media { min-height: 6rem; }
  .story-row__text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .story-cover__img, .story-row__media img, .story-cover__more .ic, .story-row__title { transition: none; }
  .story-cover:hover .story-cover__img, .story-row:hover .story-row__media img { transform: none; }
}


/* ==========================================================================
   15. MOBILE APP SECTION
   ========================================================================== */
.appsec {
  position: relative;
  background: linear-gradient(90deg, #FBF7EF 0%, #FFFDFA 100%);
  overflow: hidden;
  padding-block: clamp(2.75rem, 1.2rem + 5vw, 6rem);
}
.appsec__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 0.6rem + 3vw, 4rem);
  align-items: center;
}
.appsec__copy { max-width: 38rem; }
.appsec .eyebrow { letter-spacing: 0.2em; margin-bottom: 1.25rem; }
.appsec__title { margin-bottom: var(--sp-6); }
.appsec__text { font-size: 1rem; color: var(--ja-text); line-height: 1.625; margin-bottom: 2.5rem; }

.appsec__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(18rem, 10rem + 20vw, 30rem);
}
/* Concentric gold halo behind the phone */
.appsec__halo {
  position: absolute;
  width: min(26rem, 76%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ja-gold);
  box-shadow: 0 0 0 clamp(0.75rem, 0.3rem + 1vw, 1.75rem) rgba(211, 163, 94, 0.20),
              0 0 0 clamp(1.5rem, 0.6rem + 2vw, 3.25rem) rgba(211, 163, 94, 0.20);
  z-index: 0;
}
.appsec__phone {
  position: relative;
  z-index: 1;
  width: auto;
  max-height: clamp(17rem, 9rem + 22vw, 32rem);
  filter: drop-shadow(0 2rem 3.5rem rgba(12, 26, 53, 0.28));
  animation: floatY 6s var(--ease) infinite;
}

/* --- Store badges (built in markup so they stay crisp at any size) --- */
.store-badges { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5625rem;
  background: #000;
  color: var(--ja-white);
  border: 1px solid #000;
  border-radius: 0.4375rem;
  padding: 0.4375rem 0.875rem;
  min-height: 3.0625rem;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.28); background: #14181d; }
.store-badge__ic { width: 1.375rem; height: 1.375rem; flex: 0 0 auto; }
.store-badge__txt { display: grid; line-height: 1.1; text-align: start; }
.store-badge__top { font-size: 0.5625rem; letter-spacing: 0.04em; opacity: 0.85; text-transform: uppercase; }
.store-badge__name { font-family: var(--font-head); font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; }
/* Compact variant for the footer, where the column is narrower */
.store-badge--sm { min-height: 2.5rem; padding: 0.3125rem 0.5625rem; gap: 0.4375rem; }
.store-badge--sm .store-badge__name { font-size: 0.75rem; }
.store-badge--sm .store-badge__top  { font-size: 0.5rem; }
.store-badge--sm .store-badge__ic   { width: 1rem; height: 1rem; }


/* ==========================================================================
   16. FOOTER
   Logo uses the same --logo-h as the header on every page.
   ========================================================================== */
.site-footer { background: var(--ja-ink); color: rgba(255, 255, 255, 0.72); }

.footer-main {
  padding-block: clamp(2.5rem, 1.2rem + 3.5vw, 4rem) clamp(2rem, 1rem + 2.6vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 0.6rem + 2vw, 2.5rem);
}

.footer-brand__img { height: var(--logo-h); width: auto; display: block; }

/* Logo and slogan (client notes 2026-10-22): once the column scrolls into view, a single soft
   gold light passes over the logo - shaped by the logo itself, so nothing moves around it - and
   a short gold rule draws in under the slogan. It repeats gently every few seconds after that. */
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.footer-brand__mark { position: relative; display: inline-block; line-height: 0; }
.footer-brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 236, 196, 0.85) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  background-position: 160% 0;
  -webkit-mask: url("../images/jav-logo-2026.png") center / contain no-repeat;
          mask: url("../images/jav-logo-2026.png") center / contain no-repeat;
  pointer-events: none;
}
.footer-brand.is-in .footer-brand__mark::after { animation: footer-shine 7s ease-in-out 0.6s infinite; }
@keyframes footer-shine {
  0%   { background-position: 160% 0; }
  22%  { background-position: -60% 0; }
  100% { background-position: -60% 0; }
}
.footer-brand__slogan {
  position: relative;
  margin: 0;
  padding-bottom: 0.7rem;
  max-width: 22rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: #E9D9B8;
}
.footer-brand__slogan::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #C6AA78, rgba(198, 170, 120, 0));
  transition: width 1.1s cubic-bezier(.2, .7, .2, 1) 0.5s;
}
[dir="rtl"] .footer-brand__slogan::after { background: linear-gradient(270deg, #C6AA78, rgba(198, 170, 120, 0)); }
.footer-brand.is-in .footer-brand__slogan::after { width: 3.5rem; }
.footer-brand__mark:focus-visible { outline: 2px solid #C6AA78; outline-offset: 4px; }
/* Room for the floating "back to top" button, which otherwise sits on the last social icon. */
@media (min-width: 992px) { .footer-bottom__inner { padding-inline-end: 4.5rem; } }
@media (prefers-reduced-motion: reduce) {
  .footer-brand.is-in .footer-brand__mark::after { animation: none; }
  .footer-brand__slogan::after { transition: none; width: 3.5rem; }
}

.footer-col__title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3333;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ja-gold);
  margin-bottom: var(--sp-5);
}
.footer-col__list { display: grid; gap: 0.75rem; }
.footer-col__link {
  position: relative;
  display: inline-block;
  font-size: var(--fs-body-sm);
  line-height: 1.4286;
  color: rgba(255, 255, 255, 0.74);
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.footer-col__link:hover { color: var(--ja-white); transform: translateX(0.25rem); }
.footer-col__link::before {
  content: "";
  position: absolute;
  inset-inline-start: -0.75rem;
  top: 50%;
  width: 0.25rem; height: 1px;
  background: var(--ja-gold);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}
.footer-col__link:hover::before { opacity: 1; }

.footer-divider { height: 1px; background: rgba(255, 255, 255, 0.08); margin-bottom: clamp(1.5rem, 0.6rem + 2vw, 2.5rem); }

.footer-bottom { background: var(--ja-ink-2); padding-block: 0.9375rem; }
.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.footer-bottom__copy { font-size: 0.75rem; line-height: 1.3333; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.5); }
.footer-bottom__copy a { color: var(--ja-gold); font-weight: 600; }
.footer-bottom__copy a:hover { color: var(--ja-gold-200); }

.social-row { display: flex; gap: var(--sp-4); }
.social-btn {
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.85);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.social-btn:hover { background: var(--ja-gold); color: #000; transform: translateY(-3px); }
.social-btn .ic { width: 1rem; height: 1rem; }


/* ==========================================================================
   17. VIDEO MODAL (popup)
   Every video on the site opens here: dim backdrop, clear close button,
   playback stops automatically on close.
   ========================================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 0.4rem + 2vw, 2.5rem);
  background: rgba(6, 12, 22, 0.88);
  backdrop-filter: blur(0.375rem);
  -webkit-backdrop-filter: blur(0.375rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease), visibility var(--t-base) linear;
}
.video-modal.is-open { opacity: 1; visibility: visible; }

.video-modal__dialog {
  position: relative;
  width: min(64rem, 100%);
  transform: translateY(1.5rem) scale(0.96);
  opacity: 0;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease);
}
.video-modal.is-open .video-modal__dialog { transform: translateY(0) scale(1); opacity: 1; }

.video-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, 0.6);
}
.video-modal__frame video,
.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.video-modal__close {
  position: absolute;
  top: -3.25rem;
  inset-inline-end: 0;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
  color: var(--ja-white);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.video-modal__close:hover { background: var(--ja-gold); border-color: var(--ja-gold); transform: rotate(90deg); }
.video-modal__close .ic { width: 1.125rem; height: 1.125rem; }

.video-modal__caption {
  margin-top: var(--sp-4);
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-body-sm);
}

/* Generic play overlay usable on any thumbnail across the site */
.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(6, 12, 22, 0.18);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.play-overlay:hover { background: rgba(6, 12, 22, 0.32); }
.play-overlay__btn {
  width: 4.25rem; height: 4.25rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ja-gold-700);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.3);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.play-overlay:hover .play-overlay__btn { transform: scale(1.08); background: var(--ja-gold); color: #000; }
.play-overlay__btn .ic { width: 1.25rem; height: 1.25rem; }


/* ==========================================================================
   18. UTILITIES, SCROLL REVEAL & ANIMATION
   --------------------------------------------------------------------------
   Reveal engine
   -------------
   js/main.js stamps .js-anim on <html> the moment it runs, and only then do
   the [data-aos] rules below hide anything. That ordering matters: if the
   script ever fails to load, the attributes are inert and every section
   renders normally instead of staying invisible. An IntersectionObserver
   then adds .is-in as each element scrolls into view.
   ========================================================================== */

/* Hidden start states — scoped to .js-anim so they can never strand content */
.js-anim [data-aos] {
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
  will-change: opacity, transform;
}
.js-anim [data-aos="fade-up"]    { transform: translateY(1.75rem); }
.js-anim [data-aos="fade-down"]  { transform: translateY(-1.75rem); }
.js-anim [data-aos="fade-start"] { transform: translateX(-1.75rem); }
.js-anim [data-aos="fade-end"]   { transform: translateX(1.75rem); }
.js-anim [data-aos="zoom-in"]    { transform: scale(0.94); }
.js-anim [data-aos="fade"]       { transform: none; }

/* Revealed state */
.js-anim [data-aos].is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* RTL mirrors the horizontal variants */
[dir="rtl"].js-anim [data-aos="fade-start"],
[dir="rtl"] .js-anim [data-aos="fade-start"] { transform: translateX(1.75rem); }
[dir="rtl"].js-anim [data-aos="fade-end"],
[dir="rtl"] .js-anim [data-aos="fade-end"]   { transform: translateX(-1.75rem); }


/* Screen-reader-only text */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  inset-inline-start: 50%;
  top: 0.5rem;
  transform: translate(-50%, -200%);
  z-index: 2000;
  background: var(--ja-navy);
  color: var(--ja-white);
  padding: 0.625rem 1.125rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-body-sm);
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* Generic reveal hook for markup that does not carry a data-aos attribute */
.js-anim .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.js-anim .reveal.is-in { opacity: 1; transform: none; }

/* Back-to-top */
.to-top {
  position: fixed;
  inset-inline-end: clamp(1rem, 0.4rem + 1vw, 1.75rem);
  bottom: clamp(1rem, 0.4rem + 1vw, 1.75rem);
  z-index: 1020;
  width: 2.875rem; height: 2.875rem;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 0;
  background: var(--ja-navy);
  color: var(--ja-white);
  cursor: pointer;
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
              visibility var(--t-fast) linear, background var(--t-fast) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--ja-gold); }
.to-top .ic { width: 1.0625rem; height: 1.0625rem; }

/* Thin scroll-progress bar under the header */
.scroll-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: calc(var(--z-header) + 1);
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 0;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--ja-gold), var(--ja-gold-200));
}

/* --- Keyframes --- */
@keyframes headerDrop {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(1.75rem); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes kenBurns {
  from { transform: scale(1.0);  }
  to   { transform: scale(1.09); }
}
@keyframes pulseRing {
  0%   { transform: scale(0.9); opacity: 0.9; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1rem); }
}


/* ==========================================================================
   19. RESPONSIVE BREAKPOINTS
   Desktop-first refinements: 1200 / 1024 (laptop) / 768 (tablet) / 480 (mobile)
   ========================================================================== */

/* ---------- <= 1200px : tighten the header, allow the search grid to wrap -- */
@media (max-width: 1200px) {
  .nav-primary__list { gap: 0.75rem; }

  /* Six fields no longer fit on one line. Rather than let them auto-flow and
     strand an empty cell, the route and cabin rows go full width and only the
     two dates share a line:
        From  /  swap  /  To  /  Departure | Return  /  Passengers          */
  .search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .search-fields > .field,
  .search-fields > .field-swap {
    border-inline-end: 0;
    border-block-end: 1px solid var(--ja-line-soft);
  }
  .search-fields > [data-field="from"],
  .search-fields > [data-field="to"],
  .search-fields > [data-field="pax"],
  .search-fields > .field-swap { grid-column: 1 / -1; }

  .search-fields > [data-field="depart"] { border-inline-end: 1px solid var(--ja-line-soft); }
  .search-fields > [data-field="pax"] { border-block-end: 0; }

  .field-swap { padding-block: 0.5rem; }
  .swap-btn { transform: rotate(90deg); }
  .swap-btn:hover { transform: rotate(270deg); }
}

/* ---------- the header's own breakpoint ---------------------------------
   Measured, not guessed. On one row the bar carries the brand, six nav items,
   the tools and the My Booking button, and it needs 1572px to do it — 1614px
   for a passenger whose first name is long, because the account button is as
   wide as the name in it.

   Below that it did not wrap and it did not scroll. The bar overflowed to the
   right and `body { overflow-x: hidden }` swallowed the overflow in silence,
   and the rightmost thing in the bar is the button. It simply disappeared.
   Between 1025px — where the drawer used to take over — and 1572px there was a
   550px band where the full desktop nav was drawn with nowhere to put the CTA.
   A 1600px screen at Windows' own default 125% scaling lands at 1280 CSS px,
   squarely inside it, which is how this was found.

   Two changes, and between them no width is left where the nav is drawn
   without room for it:
     · the header goes compact below 1700px, which brings the requirement down
       to 1421px even with a long name;
     · the drawer takes over at 1440px rather than 1024px.
   The account name is capped at every width, so one long name can no longer
   push the button off the end. */

/* A name is as long as it is. Capped so the header's width stops depending on
   who is signed in. */
.tool-btn--login > span:not([class*="ic"]) {
  max-width: 6.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1700px) {
  .header-bar { gap: 1.25rem; }
  .header-bar .nav-primary > ul { gap: 1rem; }
  .header-bar .nav-primary a { font-size: 0.9375rem; }
  .header-tools { gap: 0.5rem; }
  .header-tools .btn-ja--sm { padding: 0.75rem 1.125rem; }
  .brand__img { max-width: 165px; }
}

@media (max-width: 1440px) {
  /* Desktop nav out, hamburger in. Everything the nav held is in the drawer,
     and the drawer costs one button's width instead of seven. */
  .nav-primary { display: none; }
  .nav-toggle { display: grid; }
  .header-tools { margin-inline-start: auto; }
}

/* ---------- <= 1024px : laptop / large tablet ---------------------------- */
@media (max-width: 1024px) {
  :root { --logo-h: 2.75rem; --header-h: 4.75rem; }

  .header-tools .tool-btn--login,
  .header-tools .tool-btn--lang { display: none; }

  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head__aside { padding-bottom: 0; }


  .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- <= 768px : tablet ------------------------------------------- */
@media (max-width: 768px) {
  .hero { padding-inline: 0; padding-top: 0; }
  .hero-slider { border-radius: 0; min-height: 30rem; }
  .hero-slide__inner { min-height: 30rem; align-items: flex-end; padding-block: 3rem 5.5rem; }
  .hero-slide__media img, .hero-slide__media video { object-position: center; }
  /* Vertical veil so the copy sits over the lower half */
  .hero-slide__veil {
    background: linear-gradient(180deg, rgba(243,233,221,0.30) 0%, rgba(243,233,221,0.70) 42%, rgba(243,233,221,0.98) 78%);
  }
  /* Same colour and weight as the desktop veil (client notes 2026-10-22, point 1): the desktop
     charcoal, light over the photograph and dense only where the copy sits - it used to turn
     the whole picture dark blue on phones and tablets. */
  .hero-slide--dark .hero-slide__veil {
    background: linear-gradient(180deg, rgba(33,38,44,0.12) 0%, rgba(33,38,44,0.30) 34%, rgba(33,38,44,0.72) 62%, rgba(33,38,44,0.92) 90%);
  }
  .hero-slide__pattern { display: none; }
  .hero-copy { max-width: none; }
  .hero-text { max-width: none; }
  .hero-actions .btn-ja { flex: 1 1 12rem; }
  .hero-nav { bottom: 1rem; inset-inline-end: var(--container-pad); }
  .hero-arrow { width: 2.5rem; height: 2.5rem; }

  /* Below the tablet breakpoint the widget stops overlapping the slider and
     the CTA returns inside the card as a full-width button. */
  .search-widget-wrap { margin-top: 0; padding-top: var(--sp-6); }
  .search-widget { border-radius: var(--r-lg); }
  /* Four tabs in one row get too cramped on a phone; 2x2 keeps the labels
     legible without truncating them. */
  .search-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-widget__submit { margin-bottom: 0; }
  .search-widget__submit .btn-ja { width: 100%; }
  .search-status { position: static; margin-top: var(--sp-4); }
  .search-fields { grid-template-columns: 1fr; }
  .search-fields .field { border-inline-end: 0; border-block-end: 1px solid var(--ja-line-soft); }
  .search-fields .field:last-child { border-block-end: 0; }
  .field-swap {
    border-inline-end: 0;
    border-block-end: 1px solid var(--ja-line-soft);
    padding-block: 0.5rem;
  }
  .swap-btn { transform: rotate(90deg); }
  .swap-btn:hover { transform: rotate(270deg); }
  .fare-row { flex-direction: column; align-items: stretch; }
  .fare-row .pill { align-self: flex-start; }   /* badge stays hug-width */
  .fare-chip { justify-content: flex-start; }

  .offer-card { grid-template-columns: 1fr; width: min(24rem, 82vw); }
  .offer-card__media { min-height: 12rem; aspect-ratio: 16 / 10; }


  .appsec__grid { grid-template-columns: 1fr; }
  .appsec__visual { order: -1; min-height: 15rem; }
  .appsec__phone { max-height: 17rem; }
  .appsec__halo { width: min(15rem, 62%); }
  .appsec__copy { max-width: none; }

  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom__inner { justify-content: center; text-align: center; }

  .video-modal__close { top: auto; bottom: -3.25rem; inset-inline-end: 50%; transform: translateX(50%); }
  .video-modal__close:hover { transform: translateX(50%) rotate(90deg); }

  .coverflow { height: 22rem; }
}

/* ---------- <= 480px : mobile ------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --logo-h: 2.375rem;
    --header-h: 4.25rem;
    --container-pad: 1rem;
  }

  .hero-slider, .hero-slide__inner { min-height: 27rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  /* Reset the row-oriented flex basis inherited from the tablet rule, which
     would otherwise become a 12rem *height* once the stack goes vertical. */
  .hero-actions .btn-ja { flex: 0 0 auto; width: 100%; }
  .video-cue { width: 100%; justify-content: flex-start; }

  .trip-types { gap: 0.875rem; }
  .radio-ja__label { font-size: 0.8125rem; }

  .promo-card { width: 80vw; }
  .offer-card { width: 84vw; }


  .coverflow { height: 19rem; }
  .cf-card { width: 9.5rem; }

  .footer-main { grid-template-columns: 1fr; gap: var(--sp-7); }
  .footer-brand__slogan { max-width: none; }

  .store-badges { gap: 0.5rem; }
  .store-badge { min-height: 2.625rem; padding: 0.375rem 0.75rem; }

  .to-top { width: 2.5rem; height: 2.5rem; }
}

/* ---------- Very small phones (<= 360px) -------------------------------- */
@media (max-width: 360px) {
  .promo-card, .offer-card { width: 86vw; }
  .store-badge__name { font-size: 0.8125rem; }
}

/* ---------- Landscape phones: keep the hero from swallowing the screen -- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-slider, .hero-slide__inner { min-height: 26rem; }
}


/* ==========================================================================
   20. ACCESSIBILITY & PRINT
   ========================================================================== */

/* Visible, on-brand focus ring for keyboard users only */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ja-gold-700);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* Honour the OS "reduce motion" setting */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-anim [data-aos], .js-anim .reveal { opacity: 1 !important; transform: none !important; }
  .hero-slide.is-active .hero-slide__media img { animation: none; }
  .appsec__phone { animation: none; }
}

/* Higher-contrast preference */
@media (prefers-contrast: more) {
  :root { --ja-text: #333B47; --ja-muted: #5C6472; }
  .promo-card__wash { opacity: 1; }
}

@media print {
  .site-header, .nav-drawer, .nav-scrim, .to-top, .scroll-progress,
  .hero-nav, .coverflow-controls, .rail-nav, .video-modal { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding-block: 1rem; }
  a::after { content: " (" attr(href) ")"; font-size: 0.75rem; color: #555; }
}


/* ==========================================================================
   22. BOOKING FLOW
   --------------------------------------------------------------------------
   Shared by the seven funnel pages: availability, passenger, seats, baggage,
   review, payment, confirmation. Everything here is direction-agnostic
   (logical properties) so the Arabic build needs almost no overrides.

     22.1  Trip banner
     22.2  Progress rail
     22.3  Two-column layout
     22.4  Summary card
     22.5  Section card
     22.6  Step navigation
     22.7  Availability
     22.8  Passenger form
     22.9  Seat map
     22.10 Baggage add-ons
     22.11 Review
     22.12 Payment
     22.13 Confirmation
     22.14 Responsive
   ========================================================================== */

.bk-page { background: var(--ja-cream); }


/* ---- 22.1 Trip banner ------------------------------------------------- */
.trip-banner {
  position: relative;
  margin-inline: min(1.625rem, 1.35vw);              /* Figma x=26 */
  margin-top: min(1.1875rem, 1vw);                   /* Figma y=107, header ends at 88 */
  border-radius: clamp(0.75rem, 0.2rem + 1.2vw, 1.5rem);   /* Figma r=24 */
  overflow: hidden;
  background: var(--ja-hero-dark);
  min-height: clamp(11rem, 8.12rem + 12.3vw, 22.875rem);   /* 366px @1920, per the Figma */
  display: grid;
  align-items: center;
  isolation: isolate;
}
.trip-banner__media { position: absolute; inset: 0; z-index: 0; }
.trip-banner__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center right;
}
.trip-banner__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(33,38,44,0.94) 0%, rgba(33,38,44,0.84) 30%,
                                     rgba(33,38,44,0.42) 56%, rgba(33,38,44,0.05) 100%);
}
.trip-banner__inner { position: relative; z-index: 2; padding-block: var(--sp-7); }

.trip-route {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 0.3rem + 1vw, 1.108rem);             /* Figma 17.73 */
  /* Figma sets the airport codes in Inter, not the display face. */
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 1.326rem + 0.742vw, 2.217rem);  /* 35.47px @1920 */
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ja-white);
  line-height: 1;
}
.trip-route__dash { flex: 0 0 auto; width: clamp(1.5rem, 0.5rem + 2vw, 3rem); height: 1px; background: rgba(255,255,255,0.5); }
.trip-route .ic { width: 1.375rem; height: 1.375rem; color: var(--ja-gold); flex: 0 0 auto; }
.trip-banner__meta {
  margin-top: var(--sp-3);
  font-size: var(--fs-h5);            /* Figma 16 */
  color: rgba(255, 255, 255, 0.76);
}


/* ---- 22.2 Progress rail ---------------------------------------------- */
.prog-wrap { margin-top: clamp(1.25rem, 0.6rem + 1.6vw, 2.25rem); position: relative; z-index: 5; }

/* Stacked label/value pairs are spans for semantics, so they need to be told
   to stack - otherwise "09:20 AMM Amman" runs together on one line. */
.leg__time, .leg__code, .leg__city,
.airline__name, .airline__meta,
.fare-from__label, .fare-from__amount, .fare-from__per,
.fare-opt__cabin, .fare-opt__per,
.pax-acc__name, .pax-acc__hint,
.rv-pax__name, .rv-pax__meta,
.bpass__label, .bpass__ref, .bpass__code, .bpass__city, .bpass__time,
.pax-tab__seat, .sum-block__label, .date-pill__day, .date-pill__val {
  display: block;
}
.pax-tab__seat { display: inline-block; }

.prog {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
  background: var(--ja-white);
  border: 1px solid var(--ja-line-soft);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
  padding: clamp(1rem, 0.75rem + 1.07vw, 2.03rem) clamp(1rem, 0.4rem + 1.6vw, 2.5rem);
  max-width: 79.75rem;                              /* Figma 1276 */
  margin-inline: auto;
  list-style: none;
}

.prog__step {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  text-align: center;
  min-width: 0;
}
.prog__dot {
  width: clamp(2.25rem, 1.6rem + 1.2vw, 3rem);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ja-gold-100);
  color: #000;              /* black glyph on the pale tint too, per brand direction */
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.prog__dot .ic { width: 1.125rem; height: 1.125rem; }
.prog__label {
  font-family: var(--font-body);
  font-size: clamp(0.625rem, 0.587rem + 0.16vw, 0.78rem);   /* 12.48px @1920 */
  font-weight: 400;
  letter-spacing: 0.03em;                                   /* Figma ls 0.374 / 12.48 */
  color: var(--ja-muted);
  white-space: nowrap;
}

/* Completed and current steps carry the gold fill */
.prog__step.is-done .prog__dot,
.prog__step.is-current .prog__dot { background: var(--ja-gold); color: #000; }
.prog__step.is-current .prog__label { color: var(--ja-navy); font-weight: 700; }

.prog__link { display: grid; justify-items: center; gap: 0.5rem; }
.prog__step.is-done .prog__link:hover .prog__dot { background: var(--ja-gold-600); }
.prog__step.is-done .prog__link:hover .prog__label { color: var(--ja-navy); }

.prog__bar {
  flex: 1 1 auto;
  height: 2px;
  min-width: 0.75rem;
  margin-top: clamp(1.125rem, 0.8rem + 0.6vw, 1.5rem);
  border-radius: 2px;
  background: var(--ja-line);
}
.prog__bar.is-done { background: var(--ja-gold); }


/* ---- 22.3 Two-column layout ------------------------------------------ */
.bk-layout {
  /* The funnel runs on its own narrower rail than the rest of the site: the
     design gives every booking screen 1281 of content — 929 for the step, 32 of
     gutter and a 320 summary — inside the 1440 page container. */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: clamp(1.25rem, 1.068rem + 0.7767vw, 2rem);
  max-width: 80.0625rem;
  margin-inline: auto;
  align-items: start;
  padding-block: clamp(2rem, 1rem + 2.6vw, 3.5rem);
}
.bk-layout--single { grid-template-columns: minmax(0, 1fr); }
.bk-aside { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: var(--sp-5); }

.bk-title {
  /* Figma sets the funnel's page heading at 30, not the page-wide h1 of 48. Shared by every
     screen in the flow; the Confirmed screen overrides to 36 in booking.css. */
  font-size: clamp(1.375rem, 1.254rem + 0.518vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.375rem;
}
.bk-subtitle { color: var(--ja-grey-500); font-size: var(--fs-body-sm); margin-bottom: var(--sp-6); }
/* Under a barred heading the sub-line lines up with the heading text, clear of
   the gold tick — the design indents it by 16. */
.bk-title--barred + .bk-subtitle { padding-inline-start: var(--sp-4); }

/* Heading with the design's gold tick-mark to its start side */
.bk-title--barred {
  position: relative;
  padding-inline-start: 0.875rem;
}
.bk-title--barred::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  border-radius: 3px;
  background: var(--ja-gold);
}


/* ---- 22.4 Summary card ----------------------------------------------- */
.sum-card {
  background: var(--ja-white);
  border: 1px solid var(--ja-line-cool);
  border-radius: var(--r-md);
  overflow: hidden;
}
.sum-card__head {
  background: var(--ja-navy);
  color: var(--ja-white);
  padding: var(--sp-4) var(--sp-5);  /* 16 / 20 */
  font-family: var(--font-head);
  font-size: var(--fs-body-sm);      /* 14 @1920 */
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.sum-card__body { padding: var(--sp-5); display: grid; gap: var(--sp-4); }
.sum-block { display: grid; gap: 0.375rem; padding-bottom: var(--sp-4); border-bottom: 1px solid var(--ja-line-cool-2); }
.sum-block:last-child { border-bottom: 0; padding-bottom: 0; }
.sum-block__label {
  font-size: 0.625rem;               /* 10 / w700 / 1px tracking */
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ja-grey-400);
}
.sum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-body-sm);
  color: var(--ja-text);
}
.sum-row__k { color: var(--ja-text); }
.sum-row__v { font-family: var(--font-head); font-weight: 600; color: var(--ja-navy); white-space: nowrap; }
.sum-row--route .sum-row__k {
  font-family: var(--font-head);
  font-size: var(--fs-h5);
  font-weight: 700;
  color: var(--ja-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
}
.sum-row--route .ic { width: 0.875rem; height: 0.875rem; color: var(--ja-gold); }
.sum-row__v--muted { font-weight: 400; color: var(--ja-muted); font-size: 0.75rem; }

.sum-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-3);          /* 12 */
  border-top: 1px solid var(--ja-line-cool-2);
}
.sum-total__k { font-family: var(--font-head); font-size: var(--fs-h5); font-weight: 700; color: var(--ja-navy); }
.sum-total__v { text-align: end; }
.sum-total__amount {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 1.0947rem + 0.1295vw, 1.25rem);   /* 20 @1920 */
  font-weight: 700;
  color: var(--ja-gold);
  line-height: 1.4;
}
.sum-total__note { display: block; font-size: 0.625rem; color: var(--ja-muted); margin-top: 0.125rem; }


/* ---- 22.5 Section card ----------------------------------------------- */
.bk-card {
  background: var(--ja-white);
  border: 1px solid var(--ja-line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  margin-bottom: var(--sp-4);
}
.bk-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--ja-line-soft);
}
.bk-card__title { font-family: var(--font-head); font-size: var(--fs-h5); font-weight: 700; color: var(--ja-navy); }
.bk-card__body { padding: var(--sp-5); }

/* Inside the funnel the design draws these as a flat white card with a single cool hairline
   and no shadow. Scoped, because .bk-card is also the careers and account card. */
.bk-layout .bk-card { border-color: var(--ja-line-cool); box-shadow: none; }
.bk-layout .bk-card__head { border-bottom-color: var(--ja-line-cool); }

/* On the payment screen the design drops the header band: the title sits inside the panel at
   14/700 with 20 of padding above it and 16 of air below. */
.bk-card--flat .bk-card__head { border-bottom: 0; padding: var(--sp-5) var(--sp-5) 0; }
.bk-card--flat .bk-card__title { font-size: var(--fs-body-sm); }
.bk-card--flat .bk-card__body { padding-top: var(--sp-4); }

.edit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;                /* 12 */
  font-weight: 600;
  color: var(--ja-gold);
}
.edit-link .ic { width: 0.875rem; height: 0.875rem; }
.edit-link:hover { color: var(--ja-navy); }


/* ---- 22.6 Step navigation -------------------------------------------- */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
}
.step-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-body-sm);      /* 14 @1920 */
  font-weight: 600;
  color: var(--ja-grey-500);
}
/* The funnel's Continue is bigger than a page button: 56 tall, 40 of side
   padding, r12, 16/700. Scoped so the site-wide .btn-ja is left alone. */
.step-nav .btn-ja {
  min-height: 3.5rem;
  padding-inline: var(--sp-8);       /* 40 */
  border-radius: var(--r-md);        /* 12 */
  font-size: var(--fs-h5);           /* 16 @1920 */
}
.step-back .ic { width: 0.9375rem; height: 0.9375rem; transition: transform var(--t-fast) var(--ease); }
.step-back:hover { color: var(--ja-navy); }
.step-back:hover .ic { transform: translateX(-0.1875rem); }


/* ---- 22.7 Availability ----------------------------------------------- */
.date-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.date-strip::-webkit-scrollbar { display: none; }

.date-pill {
  display: grid;
  gap: 0.1875rem;
  text-align: center;
  padding: 0.875rem 0.75rem;
  min-width: 7.5rem;
  border: 1px solid var(--ja-line);
  border-radius: var(--r-md);
  background: var(--ja-white);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.date-pill:hover { border-color: var(--ja-gold-200); transform: translateY(-1px); }
.date-pill__day { font-size: clamp(0.8125rem, 0.767rem + 0.194vw, 1rem); font-weight: 600; color: var(--ja-muted); }   /* 16 @1920 */
.date-pill__val { font-family: var(--font-head); font-size: clamp(0.9375rem, 0.892rem + 0.194vw, 1.125rem); font-weight: 700; color: var(--ja-navy); }   /* 18 @1920 */
/* A bookable day: gold fill, black ink - the same rule as every other gold surface. */
.date-pill--open { background: var(--ja-gold); border-color: var(--ja-gold); }
.date-pill--open .date-pill__day,
.date-pill--open .date-pill__val { color: #000; }

/* Nothing flying that day: stays quiet so the gold ones carry the eye. */
.date-pill--none { background: var(--ja-cream); }
.date-pill--none .date-pill__day,
.date-pill--none .date-pill__val { color: var(--ja-muted); }   /* Figma keeps w700, greyed */

/* The day being shown. An inset ring rather than a border, so switching it shifts the strip by
   nothing, and it reads on either fill. */
.date-pill.is-active { box-shadow: inset 0 0 0 2px var(--ja-navy); }

.list-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.list-bar__count { font-size: var(--fs-body-sm); color: var(--ja-muted); }   /* Figma #6a7282 - secondary grey */
.list-bar__count b { color: var(--ja-navy); }
.sort-set { display: flex; align-items: center; gap: 0.4375rem; flex-wrap: wrap; }
.sort-set__label { font-size: var(--fs-body-sm); color: var(--ja-muted); }
.sort-chip {
  border: 1px solid var(--ja-line);
  background: var(--ja-white);
  border-radius: var(--r-xs);
  padding: 0.4375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--ja-text);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.sort-chip:hover { border-color: var(--ja-navy); }
.sort-chip.is-active { background: var(--ja-navy); border-color: var(--ja-navy); color: var(--ja-white); }

.flight-card {
  background: var(--ja-white);
  border: 1px solid var(--ja-line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  margin-bottom: var(--sp-4);
  overflow: hidden;
}
.flight-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 0.9fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
}
.airline { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.airline__mark {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--r-sm);
  background: var(--ja-navy);
  color: var(--ja-white);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.airline__mark .ic { width: 1.25rem; height: 1.25rem; }
.airline__name { font-family: var(--font-head); font-size: var(--fs-body-sm); font-weight: 700; color: var(--ja-navy); }
.airline__meta { font-size: 0.75rem; color: var(--ja-grey-400); }

.leg { text-align: center; }
.leg__time { font-family: var(--font-head); font-size: clamp(1.125rem, 1.028rem + 0.414vw, 1.5rem); font-weight: 700; color: var(--ja-navy); line-height: 1.17; }   /* 24 @1920 */
.leg__code { font-size: var(--fs-body-sm); font-weight: 600; color: var(--ja-grey-500); }
.leg__city { font-size: 0.75rem; color: var(--ja-grey-400); }

.leg-mid { text-align: center; display: grid; gap: 0.125rem; justify-items: center; }
.leg-mid__dur { font-size: 0.75rem; color: var(--ja-grey-400); }
.leg-mid__line { width: clamp(2.5rem, 2.136rem + 1.553vw, 4rem); height: 1px; background: var(--ja-grey-300); position: relative; }   /* 64 @1920 */
.leg-mid__line .ic { position: absolute; top: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%); width: 0.875rem; height: 0.875rem; color: var(--ja-gold); background: var(--ja-white); }
/* The design inks "Nonstop" #00A63E, which is only 2.9:1 on white — unreadable at 12px for
   anyone with low vision. Kept at --ja-green, the same green the rest of the site uses. */
.leg-mid__stop { font-size: 0.75rem; font-weight: 600; color: var(--ja-green); }

.fare-from { text-align: end; }
.fare-from__label { font-size: 0.75rem; color: var(--ja-grey-400); }
.fare-from__amount { font-family: var(--font-head); font-size: clamp(1.25rem, 1.098rem + 0.647vw, 1.875rem); font-weight: 700; color: var(--ja-navy); line-height: 1.2; }   /* Figma 30 / w700 / lh 36 */
/* Client: red and bold. It is the line that stops someone reading a per-passenger fare as
   the total, so it is deliberately louder than the design had it. --ja-red on white is 4.9:1,
   which clears AA for text this size. Both places that pair a big price with this label — the
   availability flight card and the review's Fare & Cabin card — are styled together. */
.fare-from__per { font-size: 0.75rem; font-weight: 700; color: var(--ja-red); }

/* Fare option cards inside an expanded flight */
.fare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  padding: 0 var(--sp-5) var(--sp-5);
}

/* Three columns is the shape of the widest case, not a promise that three fares exist. When
   the airline sells two on a flight — which is most of them — a fixed third column leaves a
   third of the card empty and the two fares reading as if one had gone missing. So the track
   count follows the number of fares, up to three, and they fill the width they are given.
   Only above the point where the grid stops being a single column: below it every fare is
   full width already and there is nothing to decide. */
@media (min-width: 1025px) {
  .fare-grid:has(> .fare-opt:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fare-grid:has(> .fare-opt:only-child) {
    grid-template-columns: minmax(0, 1fr);
  }
}
.fare-opt {
  position: relative;
  border: 1px solid var(--ja-line);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  background: var(--ja-white);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.fare-opt:hover { border-color: var(--ja-gold-200); box-shadow: var(--sh-sm); }
.fare-opt.is-selected { border-color: var(--ja-gold); background: var(--ja-gold-tint); box-shadow: var(--sh-sm); }

.fare-opt__flag {
  position: absolute;
  top: -0.6875rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--ja-gold);
  color: #000;
  font-family: var(--font-head);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.fare-opt__cabin { font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ja-muted); }
.fare-opt__name { font-family: var(--font-head); font-size: var(--fs-h4); font-weight: 700; color: var(--ja-navy); margin-bottom: 0.375rem; }
.fare-opt__price { font-family: var(--font-head); font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); font-weight: 800; color: var(--ja-navy); line-height: 1.1; }
.fare-opt__per { font-size: 0.6875rem; color: var(--ja-muted); margin-bottom: var(--sp-4); }
.fare-opt__radio {
  position: absolute;
  top: var(--sp-4);
  inset-inline-end: var(--sp-4);
  width: 1.125rem; height: 1.125rem;
  border-radius: 50%;
  border: 1.5px solid var(--ja-line);
  display: grid; place-items: center;
  color: transparent;
}
.fare-opt__radio .ic { width: 0.75rem; height: 0.75rem; }
.fare-opt.is-selected .fare-opt__radio { border-color: var(--ja-gold); background: var(--ja-gold); color: #000; }

.fare-list { display: grid; gap: 0.5rem; padding-block: var(--sp-4); border-top: 1px solid var(--ja-line-soft); margin-bottom: var(--sp-3); }
.fare-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: var(--fs-body-sm); color: var(--ja-text); }
.fare-list .ic { width: 1rem; height: 1rem; flex: 0 0 auto; margin-top: 0.125rem; color: var(--ja-navy); }
.fare-list li.is-no .ic { color: var(--ja-muted); }
.fare-list li.is-yes-green .ic { color: var(--ja-green); }

.fare-extras { display: grid; gap: 0.25rem; margin-bottom: var(--sp-4); }
.fare-extras li { font-size: 0.6875rem; color: var(--ja-muted); padding-inline-start: 0.6875rem; position: relative; }
.fare-extras li::before { content: "•"; position: absolute; inset-inline-start: 0; }
.fare-opt__cta { margin-top: auto; }


/* ---- 22.8 Passenger form -------------------------------------------- */
.pax-acc { border: 1px solid var(--ja-line-soft); border-radius: var(--r-md); background: var(--ja-white); margin-bottom: var(--sp-4); box-shadow: var(--sh-xs); }
.pax-acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: start;
}
.pax-acc__num {
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: var(--ja-gold-100);
  color: var(--ja-gold-700);
  font-family: var(--font-head);
  font-size: clamp(0.75rem, 0.72rem + 0.129vw, 0.875rem);   /* Figma 14 */
  font-weight: 700;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.pax-acc__txt { flex: 1 1 auto; min-width: 0; }
.pax-acc__name { font-family: var(--font-head); font-size: clamp(0.875rem, 0.844rem + 0.129vw, 1rem); font-weight: 700; color: var(--ja-navy); }   /* Figma 16 */
.pax-acc__hint { font-size: clamp(0.75rem, 0.72rem + 0.129vw, 0.875rem); color: var(--ja-muted); }   /* Figma 14 */
.pax-acc__chev { width: 1rem; height: 1rem; color: var(--ja-muted); transition: transform var(--t-fast) var(--ease); }
.pax-acc[open] .pax-acc__chev,
.pax-acc.is-open .pax-acc__chev { transform: rotate(180deg); }
.pax-acc__body { padding: 0 var(--sp-5) var(--sp-5); display: none; }
.pax-acc.is-open .pax-acc__body { display: block; }

.form-group { margin-bottom: var(--sp-5); }
.form-group__title {
  position: relative;
  padding-inline-start: 0.6875rem;
  font-family: var(--font-head);
  font-size: var(--fs-body-sm);
  font-weight: 700;
  color: var(--ja-navy);
  margin-bottom: var(--sp-4);
}
.form-group__title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.15em; bottom: 0.15em;
  width: 3px;
  border-radius: 3px;
  background: var(--ja-gold);
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.form-grid--3 { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr) minmax(0, 1.4fr); }
.form-field { display: grid; gap: 0.375rem; min-width: 0; }
.form-field--wide { grid-column: 1 / -1; }
.form-field__label,
.form-field > label.form-field__label {
  font-size: 0.75rem;                   /* 12 / w600 */
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ja-grey-500);
}
.form-field__label .req { color: var(--ja-red); }

.input-ja, .select-ja,
.form-field .input-ja, .form-field .select-ja {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--ja-line-cool-2);
  border-radius: var(--r-sm);           /* 8 */
  background: var(--ja-white);
  padding: 0.625rem 0.875rem;           /* 42 tall at 14px, as the design has it */
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);         /* 14 @1920 */
  line-height: 1.43;                    /* a 20 line box: 10 + 20 + 10 + 2 = the design 42 */
  color: var(--ja-navy);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
/* The design's placeholder is #D1D5DC — 2.0:1 on white. Kept at --ja-muted (3.1:1). */
.input-ja::placeholder { color: var(--ja-muted); }
.input-ja:focus, .select-ja:focus {
  outline: none;
  border-color: var(--ja-gold);
  box-shadow: 0 0 0 3px rgba(211, 163, 94, 0.18);
}
/* Also under .form-field (2026-11-15): the older ".form-field select { background: … }" further down
   reset the arrow's size and position, and in Arabic the two arrow gradients filled the whole field. */
.select-ja, .form-field .select-ja {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ja-muted) 50%),
                    linear-gradient(135deg, var(--ja-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.0625rem) 55%, calc(100% - 0.75rem) 55%;
  background-size: 0.3125rem 0.3125rem, 0.3125rem 0.3125rem;
  background-repeat: no-repeat;
  padding-inline-end: 2rem;
}
[dir="rtl"] .select-ja, [dir="rtl"] .form-field .select-ja {
  background-position: 1.0625rem 55%, 0.75rem 55%;
  background-image: linear-gradient(135deg, transparent 50%, var(--ja-muted) 50%),
                    linear-gradient(45deg, var(--ja-muted) 50%, transparent 50%);
}

.opt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 0;
  padding: 0;
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--ja-gold-700);
  cursor: pointer;
}
.opt-toggle .ic { width: 0.875rem; height: 0.875rem; }
.opt-toggle:hover { color: var(--ja-navy); }

/* The auth pages use .check-ja with a NATIVE checkbox and redeclare it later in this file, so
   the funnel version has to say which one it is: ours is the one with a drawn box. */
/* --- dial code + mobile number ---
   One control made of two: the code stays narrow and the number takes the rest. The number is
   always dir="ltr" — a phone number reads left to right even on an Arabic page — and on a narrow
   screen the pair stacks rather than squeezing the number into nothing. */
.phone-group {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}
.phone-group__code {
  width: auto;
  max-width: 9.5rem;
  font-variant-numeric: tabular-nums;
}
.phone-group__number { min-width: 0; }

@media (max-width: 480px) {
  .phone-group { grid-template-columns: minmax(0, 1fr); }
  .phone-group__code { max-width: none; }
}

.check-ja,
.check-ja:has(.check-ja__box) {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;                       /* 12 */
  cursor: pointer;
  font-size: var(--fs-body-sm);        /* 14 */
  color: var(--ja-grey-600);
}
.check-ja input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-ja:has(.check-ja__box) input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-ja__box {
  width: 1rem; height: 1rem;            /* 16, r2 */
  border: 1px solid #767676;
  border-radius: 0.125rem;
  display: grid; place-items: center;
  color: transparent;
  flex: 0 0 auto;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.check-ja__box .ic { width: 0.6875rem; height: 0.6875rem; }
/* The design ticks these in the brand red, not gold — a checkbox is not a button, so the
   black-on-gold rule does not apply here. */
.check-ja input:checked + .check-ja__box { background: var(--ja-red); border-color: var(--ja-red); color: var(--ja-white); }
.check-ja input:focus-visible + .check-ja__box { box-shadow: 0 0 0 3px rgba(211,163,94,0.3); }


/* ---- 22.9 Seat map --------------------------------------------------- */
.pax-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--sp-4); }
.pax-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--ja-line);
  border-radius: var(--r-sm);
  background: var(--ja-white);
  padding: 0.5rem 0.875rem;
  font-family: var(--font-head);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--ja-navy);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.pax-tab .ic { width: 0.9375rem; height: 0.9375rem; }
.pax-tab__seat { font-weight: 700; color: var(--ja-gold-700); }
.pax-tab--done .ic { color: var(--ja-green); }
.pax-tab.is-active { background: var(--ja-gold); border-color: var(--ja-gold); color: #000; }
.pax-tab.is-active .pax-tab__seat { color: var(--ja-white); }

.seat-legend { display: flex; flex-wrap: wrap; gap: 0.75rem 1.125rem; margin-bottom: var(--sp-5); }
.seat-legend li { display: inline-flex; align-items: center; gap: 0.4375rem; font-size: clamp(0.6875rem, 0.672rem + 0.065vw, 0.75rem); color: var(--ja-text); }   /* Figma 12 */
/* :where() keeps this at zero specificity for the element part, so the
   .seat--* state classes below still win. Written as `.seat-legend i` it
   outranked them and painted every swatch white, which made the legend
   unable to show the states it exists to explain. */
.seat-legend :where(i) {
  width: 0.875rem; height: 0.875rem;
  border-radius: 0.1875rem;
  border: 1px solid var(--seat-bd, var(--ja-line));
  background: var(--ja-white);
}

/* Seat state palette, shared by the legend swatches and the map.
   The edge colour travels as --seat-bd rather than as border-color: these rules sit above
   .seat, whose `border` shorthand has the same specificity and would win on source order —
   which is exactly what it had been doing, flattening every state's border to the default
   hairline. A custom property is read where the box is actually drawn, so order stops mattering. */
.seat--available  { background: var(--seat-available);   --seat-bd: var(--seat-available-bd); }
.seat--occupied   { background: var(--seat-occupied);    --seat-bd: var(--seat-occupied-bd); }
.seat--legroom    { background: var(--seat-legroom);     --seat-bd: var(--seat-legroom-bd); }
.seat--preferred  { background: var(--seat-preferred);   --seat-bd: var(--seat-preferred-bd); }
.seat--unavailable{ background: var(--seat-unavailable); --seat-bd: var(--seat-unavailable-bd); }
/* Last on purpose: a chosen seat must read as chosen whatever zone it sits in. Slate, which is
   what the airline's own engine uses for "Selected Seat" — it is the one colour on the map that
   is neither a green nor a red, so it cannot be mistaken for a state. The ring keeps it apart
   from a business seat, which also carries an accent edge. */
.seat--selected {
  background: var(--seat-selected);
  --seat-bd: var(--seat-selected-bd);
  box-shadow: 0 0 0 2px rgba(119, 136, 153, 0.35);
}

.seat-map {
  /* Figma cell: 36 x 28. Labels below read the same values so the columns line up. */
  --seat-w: clamp(1.625rem, 1.473rem + 0.647vw, 2.25rem);
  --seat-h: clamp(1.375rem, 1.284rem + 0.388vw, 1.75rem);
  --seat-aisle-w: 1.125rem;
  background: var(--ja-white);
  border: 1px solid var(--ja-line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  padding: var(--sp-5) var(--sp-4);
  overflow-x: auto;
}
.seat-map__nose { display: grid; justify-items: center; gap: 0.375rem; margin-bottom: var(--sp-4); }
.seat-map__nose .ic { width: 2.25rem; height: 2.25rem; color: var(--ja-line); }
.seat-map__nose span { font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ja-muted); }

.seat-zone { border-top: 1px solid var(--ja-line-soft); padding-block: var(--sp-4); }
.seat-zone__name {
  text-align: center;
  font-size: clamp(0.625rem, 0.594rem + 0.129vw, 0.75rem);   /* Figma 12 */
  letter-spacing: 0.1em;                                  /* Figma ls 1.2 / 12 */
  text-transform: uppercase;
  color: var(--ja-muted);
  margin-bottom: var(--sp-3);
}
.seat-zone__name--gold { color: var(--ja-gold-700); }

/* One grid for the whole plan, every cell placed at its own column.
   It used to be a flex row per seat row, which meant a row missing its C seat slid D and E
   left and the whole map went out of true against the letters along the top. */
.seat-grid {
  display: grid;
  justify-content: center;
  gap: 0.3125rem;
  align-items: center;
}

.seat-col-label, .seat-row-label {
  width: var(--seat-w, 2.25rem);
  font-size: clamp(0.5625rem, 0.547rem + 0.065vw, 0.625rem);   /* Figma row number 10 */
  color: var(--ja-muted);
  text-align: center;
}
/* The Figma sets the column letter heavier and larger than the row number. */
.seat-col-label { font-size: clamp(0.625rem, 0.594rem + 0.129vw, 0.75rem); font-weight: 700; }
/* A row held for business reads as one: the number carries the gold, not just the seats. */
.seat-row-label--business { color: var(--ja-gold-700); font-weight: 700; }

.seat-aisle { width: var(--seat-aisle-w); }

/* No background here on purpose: every seat carries a .seat--* state class,
   and this rule sits after the palette, so declaring one would win on source
   order and flatten the whole map to white. */
.seat {
  width: var(--seat-w, 2.25rem); height: var(--seat-h, 1.75rem);
  border-radius: 0.25rem;
  border: 1px solid var(--seat-bd, var(--ja-line));
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.seat:not(:disabled):hover { transform: translateY(-1px) scale(1.08); box-shadow: var(--sh-sm); }
.seat:disabled { cursor: not-allowed; }

/* Business rows. Gold when this booking may take them, hatched and inert when it may not —
   still drawn, because a passenger who cannot see the cabin cannot understand why row 3 is
   the first one they are offered. */
.seat--business {
  background: var(--ja-gold-700);
  --seat-bd: var(--ja-gold-ink);
}
.seat--locked {
  --seat-bd: var(--ja-line);
  background:
    repeating-linear-gradient(
      135deg,
      var(--ja-cream) 0,
      var(--ja-cream) 3px,
      var(--ja-line-soft) 3px,
      var(--ja-line-soft) 6px
    );
  opacity: 0.85;
}
.seat--locked:hover { transform: none; box-shadow: none; }

/* The fee, said before the map rather than after the first tap. */
/* The sign-in prompt on Passenger Details. It sits above the first field because that is
   where it pays for itself — it fills the form in — and it is a card rather than a banner so it
   reads as an offer, not as a warning the passenger has done something wrong. */
/* ---- multi-city search ------------------------------------------------------------
   Four city pairs in a table, because that is what it is. The airline's own previous site
   used the same shape and passengers arriving from it should not have to relearn anything. */
.mc-form { max-width: 62rem; margin-inline: auto; }

.mc-table {
  border: 1px solid var(--ja-line);
  border-radius: var(--r-md);
  background: var(--ja-white);
  overflow: hidden;
}
.mc-head,
.mc-row {
  display: grid;
  grid-template-columns: 7.5rem repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
}
.mc-head {
  background: var(--ja-cream);
  border-bottom: 1px solid var(--ja-line);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ja-grey-600);
}
.mc-row + .mc-row { border-top: 1px solid var(--ja-line-soft); }
.mc-row__label { font-weight: 700; color: var(--ja-navy); font-size: var(--fs-body-sm); }
.mc-field { display: block; min-width: 0; }
.mc-field .input-ja, .mc-field .select-ja { width: 100%; }

.mc-pax { margin-top: var(--sp-5); }
.mc-pax__title {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ja-navy);
}
.mc-pax__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }

.mc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: flex-end;
  margin-top: var(--sp-5);
}
.mc-note { margin: var(--sp-4) 0 0; font-size: 0.75rem; color: var(--ja-muted); }

/* The table stops being a table on a phone: four columns at 375px is four unreadable ones. */
@media (max-width: 768px) {
  .mc-head { display: none; }
  .mc-row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); padding: var(--sp-4); }
  .mc-row + .mc-row { border-top: 1px solid var(--ja-line); }
  .mc-pax__grid { grid-template-columns: minmax(0, 1fr); }
  .mc-actions { justify-content: stretch; }
  .mc-actions .btn-ja { flex: 1 1 100%; justify-content: center; }
}

/* The Multi City tab is a link to that page, not a radio, so it needs the radio's own look
   without the dot ever filling in. */
.radio-ja--link { text-decoration: none; }
.radio-ja--link:hover .radio-ja__label { color: var(--ja-gold-700); }

.bk-signin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--ja-gold-200);
  border-radius: var(--r-md);
  background: var(--ja-gold-100);
  font-size: var(--fs-body-sm);
  line-height: 1.55;
}
.bk-signin__text,
.bk-signin__who {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  min-width: 0;
  max-width: 44rem;
  color: var(--ja-grey-700);
}
.bk-signin__text .ic,
.bk-signin__who .ic {
  width: 1.25rem; height: 1.25rem;
  flex: 0 0 auto;
  margin-top: 0.125rem;
  color: var(--ja-gold-700);
}
.bk-signin__text strong,
.bk-signin__who strong { color: var(--ja-navy); }

.bk-signin__actions { display: inline-flex; align-items: center; gap: var(--sp-3); flex: 0 0 auto; }
.bk-signin__alt { color: var(--ja-gold-700); font-weight: 600; white-space: nowrap; }

/* Already signed in: quieter, because the offer has been taken. */
.bk-signin--in { background: var(--ja-cream); border-color: var(--ja-line); }

/* Said once, small, under the card: an account is not the price of a ticket. */
.bk-signin__guest {
  margin: 0 0 var(--sp-5);
  font-size: 0.75rem;
  color: var(--ja-muted);
}

@media (max-width: 560px) {
  .bk-signin { flex-direction: column; align-items: stretch; }
  .bk-signin__actions { justify-content: space-between; }
}

.seat-fee-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 var(--sp-4);
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--ja-gold-200);
  border-radius: var(--r-sm);
  background: var(--ja-gold-100);
  font-size: var(--fs-body-sm);
  color: var(--ja-navy);
}
.seat-fee-note .ic { width: 1rem; height: 1rem; color: var(--ja-gold-700); flex: 0 0 auto; }

/* What the seats picked so far cost, so the number is never a surprise at the total. */
.seat-running {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin: var(--sp-4) 0 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--ja-line-cool-2);
  font-size: var(--fs-body-sm);
  color: var(--ja-grey-600);
}
.seat-running b { font-family: var(--font-head); font-size: var(--fs-h5); color: var(--ja-navy); }


/* ---- 22.9b Fare rules ------------------------------------------------
   The conditions the ticket is sold under, on the fare card, the review, the payment consent
   and the confirmation — one partial, one look. A native <details>, so the rules open with
   JavaScript blocked; the old reservation engine's "read more / read less" with none of its
   horizontal scrollbar. */
.fare-rules {
  border-top: 1px solid var(--ja-line-cool);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
}
.fare-rules__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ja-gold-700);
}
/* Safari draws its own triangle unless this is said twice. */
.fare-rules__toggle::-webkit-details-marker { display: none; }
.fare-rules__toggle:hover { color: var(--ja-navy); }
.fare-rules__toggle:focus-visible { outline: 2px solid var(--ja-gold); outline-offset: 3px; border-radius: 0.25rem; }
.fare-rules__toggle .ic { width: 0.875rem; height: 0.875rem; flex: 0 0 auto; }
/* The chevron turns instead of a label that has to be translated twice. */
.fare-rules__toggle::after {
  content: "";
  width: 0.4375rem; height: 0.4375rem;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-inline-start: 0.125rem;
  margin-block-start: -0.25rem;
  transition: transform var(--t-fast) var(--ease);
}
.fare-rules[open] > .fare-rules__toggle::after { transform: rotate(-135deg); margin-block-start: 0.125rem; }

.fare-rules__body {
  margin-top: var(--sp-3);
  padding: var(--sp-4);
  background: var(--ja-cream);
  border: 1px solid var(--ja-line-cool);
  border-radius: var(--r-sm);
}
.fare-rules__journey {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ja-grey-500);
}
.fare-rules__journey + .fare-rules__list { margin-bottom: var(--sp-4); }
.fare-rules__list + .fare-rules__journey { padding-top: var(--sp-3); border-top: 1px solid var(--ja-line-cool-2); }
.fare-rules__band { color: var(--ja-navy); }

.fare-rules__list {
  margin: 0;
  padding-inline-start: 1.125rem;
  display: grid;
  gap: 0.375rem;
  font-size: var(--fs-body-sm);
  line-height: 1.6;
  color: var(--ja-text);
}
/* Rule text is written by the airline in block capitals; it stays as they wrote it, but it is
   never wider than a readable measure. */
.fare-rules__list li { max-width: 68ch; }

/* The airline's own conditions, straight from Videcom. Given a little more weight than the
   lines we derive ourselves: on a non-refundable fare this is the text that matters, and it
   used to sit further down the page among the baggage bullets. */
.fare-rules__list--airline li {
  color: var(--ja-navy);
  font-weight: 500;
}
.fare-rules__list--airline + .fare-rules__list {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--ja-line-cool-2);
}

/* Separates the fare's own conditions from the band's description of what it includes.
   Only appears away from the flight list, where no fare card is carrying that description. */
.fare-rules__sub {
  margin: var(--sp-3) 0 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ja-grey-600);
}
.fare-rules__list + .fare-rules__sub { padding-top: var(--sp-2); }

.fare-rules__more { margin: var(--sp-3) 0 0; font-size: 0.75rem; }
.fare-rules__more a { color: var(--ja-gold-700); font-weight: 600; }

/* On a fare card the heading and the band are already above it, so the panel loses its rule
   and its journey line and sits flush with the card's own text. */
.fare-rules--compact { border-top: 0; margin-top: var(--sp-2); padding-top: 0; }
.fare-rules--compact .fare-rules__body { padding: var(--sp-3); }
.fare-rules--compact .fare-rules__journey { display: none; }

/* On the confirmation it is a standalone block, centred with the rest of the page. */
.done-rules { max-width: 57.5rem; margin: var(--sp-5) auto 0; }
.done-rules .fare-rules { border-top: 0; padding-top: 0; }


/* ---- 22.10 Baggage add-ons ------------------------------------------ */
/* Figma 79:15176 "Baggage": one flat two-column grid of 457x152 cards on 16px
   gutters, r12, a 2px cool hairline that turns gold once the add-on is taken,
   20px of padding, and the price sharing a row with the control. */
.addon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.addon {
  display: flex;
  flex-direction: column;
  min-height: clamp(8.5rem, 8.257rem + 1.0356vw, 9.5rem);   /* 136 -> 152 */
  border: 2px solid var(--ja-line-cool);
  border-radius: var(--r-md);
  background: var(--ja-white);
  padding: var(--sp-5);                                     /* 20 */
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.addon:hover { border-color: var(--ja-gold-200); box-shadow: var(--sh-sm); }
/* Taken: the design keeps the white fill and only turns the hairline gold. */
.addon.is-selected,
.addon.is-added { border-color: var(--ja-gold); background: var(--ja-white); }
.addon__top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.addon__name {
  margin: 0;
  font-family: var(--font-head);
  font-size: var(--fs-body-sm);            /* 14 @1920 */
  font-weight: 700;
  line-height: 1.43;
  color: var(--ja-navy);
}
.addon__flag {
  display: inline-block;
  margin-inline-start: 0.5rem;
  vertical-align: middle;
  font-family: var(--font-head);
  font-size: 0.625rem;                     /* 10 */
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ja-gold-700);
  background: var(--ja-gold-100);
  border-radius: var(--r-pill);
  padding: 0.125rem 0.5rem;
}
.addon__desc,
.addon__text {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;                      /* 12 / 20 */
  line-height: 1.667;
  color: var(--ja-grey-500);
}
/* margin-top:auto pins the price row to the foot of the card, so a short and a
   long description still line their controls up across a row. */
.addon__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-4);                /* 16 */
}
.addon__price { margin: 0; font-family: var(--font-head); }
.addon__price b {
  display: block;
  font-size: clamp(1rem, 0.9697rem + 0.1295vw, 1.125rem);   /* 18 @1920 */
  font-weight: 700;
  line-height: 1.556;
  color: var(--ja-navy);
}
.addon__unit {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;                      /* 12 */
  font-weight: 400;
  line-height: 1.333;
  color: var(--ja-grey-400);
}
.addon__price--free b { color: var(--ja-green); }

.stepper { display: inline-flex; align-items: center; gap: 0.5rem; }
.stepper__btn {
  min-width: 2rem; height: 2rem;
  padding: 0;
  border-radius: var(--r-pill);
  border: 2px solid var(--ja-line-cool-2);
  background: var(--ja-white);
  color: var(--ja-grey-600);
  display: inline-grid; place-items: center;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1rem;                         /* 16, the design's minus glyph */
  font-weight: 700;
  line-height: 1;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.stepper__btn:hover { border-color: var(--ja-gold); background: var(--ja-gold-100); }
/* The design gives the increment a gold pill of its own. Black on gold, per the
   brand rule that holds everywhere on the site. */
.stepper__btn--plus {
  min-width: 2.75rem;
  border-color: var(--ja-gold);
  background: var(--ja-gold);
  color: #000;
  font-size: 0.75rem;                      /* 12 */
}
.stepper__btn--plus:hover { border-color: var(--ja-gold-600); background: var(--ja-gold-600); color: #000; }
.stepper__val {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-body-sm);            /* 14 */
  color: var(--ja-navy);
  min-width: 1.5rem;
  text-align: center;
}

.btn-add {
  border: 2px solid var(--ja-gold);
  border-radius: var(--r-pill);
  background: var(--ja-gold);
  color: #000;
  font-family: var(--font-head);
  font-size: 0.75rem;                      /* 12 */
  font-weight: 700;
  line-height: 1;
  height: 2rem;
  padding-inline: var(--sp-4);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn-add:hover { border-color: var(--ja-gold-600); background: var(--ja-gold-600); transform: translateY(-1px); }
.btn-add[disabled] { opacity: 0.65; cursor: default; transform: none; }
.btn-add--green { border-color: var(--ja-green); background: var(--ja-green); color: var(--ja-white); }
.btn-add--green:hover { border-color: #167456; background: #167456; color: var(--ja-white); }

/* Without JavaScript the plain number input is the whole control; with it the
   design's Add button and stepper take over. The input is then hidden from the
   eye but not from a screen reader, so it stays operable either way. */
.addon__qty { position: relative; display: flex; align-items: center; gap: 0.625rem; }
.addon__qty .form-control { width: 4.5rem; }
.addon__qty .form-label { margin: 0; font-size: 0.75rem; color: var(--ja-grey-500); }
.addon__qty .btn-add,
.addon__qty .stepper { display: none; }
.addon-grid.is-stepped .addon__qty .form-control,
.addon-grid.is-stepped .addon__qty .form-label {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.addon-grid.is-stepped .addon__qty .btn-add { display: inline-flex; align-items: center; justify-content: center; }
.addon-grid.is-stepped .addon.is-selected .addon__qty .btn-add { display: none; }
.addon-grid.is-stepped .addon.is-selected .addon__qty .stepper { display: inline-flex; }
/* Special assistance is a request, not a quantity: its button stays put and
   simply reads back as requested. */
.addon-grid.is-stepped .addon.is-selected .addon__qty .btn-add--green { display: inline-flex; }


/* ---- 22.11 Review --------------------------------------------------- */
.rv-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.rv-pax { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.5rem; }
.rv-pax__num {
  width: 2rem; height: 2rem;
  border-radius: var(--r-pill);
  background: var(--ja-navy);
  border: 0;
  color: var(--ja-white);
  font-family: var(--font-head);
  font-size: 0.75rem;                /* 12 */
  font-weight: 700;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.rv-pax__name { font-family: var(--font-head); font-size: var(--fs-body-sm); font-weight: 600; color: var(--ja-navy); }
.rv-pax__name--empty { color: var(--ja-muted); }
.rv-pax__meta { font-size: 0.75rem; color: var(--ja-grey-400); }

/* Fare & Cabin: the fare name is a heading here (16/700), and its rule line is full body copy
   rather than the 12px meta used under a passenger name. */
.rv-fare__name { font-family: var(--font-head); font-size: var(--fs-h5); font-weight: 700; color: var(--ja-navy); display: block; }
.rv-fare__rules { display: block; font-size: var(--fs-body-sm); font-weight: 400; line-height: 1.43; color: var(--ja-grey-500); margin-top: 0.125rem; }

/* An itemised extra: the design sets the name lighter than a heading and keeps the money bold. */
.rv-line__name { font-size: var(--fs-body-sm); font-weight: 400; color: var(--ja-grey-700); }
.rv-line__qty { font-size: 0.75rem; font-weight: 400; color: var(--ja-grey-400); margin-inline-start: 0.5rem; }
.rv-line__amount { font-family: var(--font-head); font-size: var(--fs-body-sm); font-weight: 600; color: var(--ja-navy); white-space: nowrap; }

/* Review shows the flight at 20; the availability list shows the same partial at 24. */
.bk-card .leg__time { font-size: clamp(1.125rem, 1.0947rem + 0.1295vw, 1.25rem); }
.rv-row .fare-from__amount { font-size: clamp(1.125rem, 1.0947rem + 0.1295vw, 1.25rem); line-height: 1.4; }

.chip-green {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  font-size: 0.75rem;                /* 12 */
  font-weight: 600;
  /* Tint is the design's. The ink is deeper than the design's #008236, which is 4.3:1 on this
     tint — under AA for 12px text. */
  color: var(--ja-green-ink);
  background: var(--ja-green-tint);
  border-radius: var(--r-pill);
  padding: 0.125rem 0.5rem;
}
.chip-green .ic { width: 0.75rem; height: 0.75rem; }

.chip-date {
  font-size: 0.75rem;                /* 12 */
  font-weight: 600;
  color: var(--ja-navy);
  background: color-mix(in srgb, var(--ja-navy) 10%, #fff);
  border: 0;
  border-radius: var(--r-pill);
  padding: 0.125rem 0.5rem;
  white-space: nowrap;
}


/* ---- 22.12 Payment -------------------------------------------------- */
.pay-note { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-body-sm); color: var(--ja-grey-500); margin-bottom: var(--sp-6); }
.pay-note .ic { width: 1rem; height: 1rem; color: #16A34A; }   /* the design's lock green */

.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-5); }
.pay-method {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.5rem;
  min-height: 6rem;                     /* 96 */
  border: 2px solid var(--ja-line-cool-2);
  border-radius: var(--r-md);           /* 12 */
  background: var(--ja-white);
  padding: var(--sp-4) var(--sp-3);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.pay-method input { position: absolute; opacity: 0; width: 0; height: 0; }
.pay-method .ic { width: 2rem; height: 2rem; color: var(--ja-navy); }
.pay-method__name { font-family: var(--font-head); font-size: var(--fs-body-sm); font-weight: 600; color: var(--ja-grey-600); }
/* The chosen method: a 5% gold wash behind a gold hairline, gold ink. */
.pay-method:has(input:checked) {
  border-color: var(--ja-gold);
  background: color-mix(in srgb, var(--ja-gold) 5%, #fff);
}
.pay-method:has(input:checked) .ic,
.pay-method:has(input:checked) .pay-method__name { color: var(--ja-gold); }
.pay-method:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(211,163,94,0.25); }

.card-brands { display: inline-flex; gap: 0.25rem; align-items: center; }
.card-brands span {
  font-family: var(--font-head);
  font-size: 0.5625rem;                 /* the design's 8 is below anything legible */
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--ja-grey-400);
  border: 0;
  background: var(--ja-line-cool);
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
}
.input-wrap { position: relative; }
.input-wrap__end {
  position: absolute;
  inset-inline-end: 0.6875rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  pointer-events: none;
}
.input-wrap__end .ic { width: 1rem; height: 1rem; color: var(--ja-muted); }
.input-wrap .input-ja { padding-inline-end: 4.25rem; }

.pay-cta { margin-top: var(--sp-5); }
.pay-cta .btn-ja { width: 100%; }
/* In the summary the design draws the pay button at 52 tall, r12, full width. */
.sum-card .pay-cta .btn-ja { min-height: 3.25rem; border-radius: var(--r-md); font-size: var(--fs-h5); }
/* The payment screen is the one place the design enlarges the total, to 24. */
.sum-card--pay .sum-total__amount { font-size: clamp(1.25rem, 1.1893rem + 0.2589vw, 1.5rem); }   /* 24 @1920 */


/* ---- 22.13 Confirmation --------------------------------------------- */
.done-block { text-align: center; max-width: 40rem; margin-inline: auto; padding-block: clamp(1.5rem, 0.6rem + 2.4vw, 3rem); }
.done-mark {
  width: clamp(4.5rem, 4.136rem + 1.553vw, 6rem);          /* 96 @1920 */
  height: clamp(4.5rem, 4.136rem + 1.553vw, 6rem);
  border-radius: var(--r-pill);
  background: var(--ja-green-tint);                        /* #DCFCE7 */
  color: #16A34A;
  display: grid; place-items: center;
  margin: 0 auto var(--sp-6);                              /* 24 */
  animation: donePop var(--t-slow) var(--ease-out) both;
}
.done-mark .ic {
  width: clamp(2.25rem, 2.068rem + 0.7767vw, 3rem);        /* 48 @1920 */
  height: clamp(2.25rem, 2.068rem + 0.7767vw, 3rem);
  stroke-width: 3;
}
.done-pill {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;                                      /* 12 / w700 / 1.2 tracking */
  font-weight: 700;
  line-height: 1.33;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ja-gold);
  background: color-mix(in srgb, var(--ja-gold) 10%, #fff);
  border: 1px solid var(--ja-gold);
  border-radius: var(--r-pill);
  padding: 0.25rem 0.75rem;
  margin-bottom: var(--sp-4);
}
.done-title {
  font-size: clamp(1.625rem, 1.4733rem + 0.6472vw, 2.25rem);   /* 36 @1920 — the one heading
                                                                  in the funnel bigger than 30 */
  font-weight: 700;
  line-height: 1.11;
  margin-bottom: 0.5rem;
}
.done-text { color: var(--ja-grey-500); font-size: var(--fs-h5); line-height: 1.5; }   /* 16 */

@keyframes donePop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* Boarding-pass card */
.bpass {
  max-width: 57.5rem;                    /* 920 */
  margin-inline: auto;
  background: var(--ja-white);
  border: 1px solid var(--ja-line-cool);
  border-radius: var(--r-lg);            /* 16 */
  box-shadow: none;
  overflow: hidden;
}
.bpass__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  background: var(--ja-navy);
  color: var(--ja-white);
  padding: var(--sp-4) var(--sp-6);      /* 16 / 24 */
}
.bpass__label {
  display: block;
  font-size: 0.75rem;                    /* 12 / 1.2 tracking */
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.bpass__ref {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.1893rem + 0.2589vw, 1.5rem);   /* 24 @1920 */
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.33;
}
.bpass__status { text-align: end; }
.chip-status {
  display: inline-block;
  /* Sampled from the design: bright #00CB52 with near-black green ink.
     That pairing is 6.6:1, so the design’s own choice already clears AA -
     an earlier revision here was based on a guess, not a measurement. */
  background: var(--ja-status-green);
  color: var(--ja-status-ink);
  font-family: var(--font-head);
  font-size: 0.75rem;                    /* 12 / w700 */
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  padding: 0.25rem 0.75rem;              /* 4 / 12 */
  margin-top: 0.25rem;
}

.bpass__route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-6);                  /* 24 */
}
.bpass__ap { display: grid; gap: 0; }
.bpass__ap--end { text-align: end; }
.bpass__code {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);        /* 36 @1920 */
  font-weight: 700;
  color: var(--ja-navy);
  line-height: 1.11;
}
.bpass__city { font-size: var(--fs-body-sm); color: var(--ja-grey-500); line-height: 1.43; }   /* 14 */
.bpass__time { font-family: var(--font-head); font-size: var(--fs-h5); font-weight: 700; color: var(--ja-navy); margin-top: 0.5rem; line-height: 1.5; }

/* Here the connector is gold, not the grey it is on the availability and review rows. */
.bpass .leg-mid { gap: 0.5rem; }
.bpass .leg-mid__line { width: 4rem; background: var(--ja-gold); }
.bpass .leg-mid__line .ic { width: 1.5rem; height: 1.5rem; }

.bpass__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);      /* 16 / 24 */
  margin-inline: var(--sp-6);
  padding-inline: 0;
  border-top: 1px solid var(--ja-line-cool-2);
}
.bpass__fact { display: grid; gap: 0.125rem; min-width: 0; }
.bpass__fact dt {
  font-size: 0.625rem;                   /* 10 / 1px tracking */
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ja-grey-400);
}
.bpass__fact dd { margin: 0; font-family: var(--font-head); font-size: var(--fs-body-sm); font-weight: 700; color: var(--ja-navy); }

.bpass__paid {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);      /* 16 / 24 */
  background: #F9FAFB;
  border-top: 1px solid var(--ja-line-cool);
}
.bpass__paid dt { font-family: var(--font-head); font-size: var(--fs-body-sm); font-weight: 600; color: var(--ja-grey-600); }
.bpass__paid dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 1.0947rem + 0.1295vw, 1.25rem);   /* 20 @1920 */
  font-weight: 700;
  color: var(--ja-gold);
}

.done-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-7); }


/* ---- 22.14 Booking responsive --------------------------------------- */
@media (max-width: 1024px) {
  .bk-layout { grid-template-columns: minmax(0, 1fr); }
  .bk-aside { position: static; order: -1; }
  .fare-grid { grid-template-columns: 1fr; }
  .prog { border-radius: var(--r-lg); }
}

@media (max-width: 768px) {
  .trip-banner { margin-inline: 0; margin-top: 0; border-radius: 0; }
  .trip-banner__veil {
    background: linear-gradient(180deg, rgba(33,38,44,0.55) 0%, rgba(33,38,44,0.85) 60%, rgba(33,38,44,0.96) 100%);
  }
  .prog-wrap { margin-top: var(--sp-5); }
  .prog { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .prog::-webkit-scrollbar { display: none; }
  .prog__bar { min-width: 1.5rem; }

  .flight-head { grid-template-columns: 1fr 1fr; row-gap: var(--sp-4); }
  .airline { grid-column: 1 / -1; }
  .leg-mid { grid-column: 1 / -1; order: 3; }
  .fare-from { grid-column: 1 / -1; text-align: start; order: 4; }

  .form-grid, .form-grid--3, .addon-grid, .pay-methods { grid-template-columns: 1fr; }
  .bpass__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-nav { flex-direction: column-reverse; align-items: stretch; }
  .step-nav .btn-ja { width: 100%; }
  .step-back { justify-content: center; }
}

@media (max-width: 480px) {
  .prog__label { display: none; }
  .prog { padding-inline: var(--sp-4); }
  .bpass__route { grid-template-columns: 1fr; text-align: center; }
  .bpass__ap--end { text-align: center; }
  .bpass__facts { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Hero framing on dark slides
   The artwork is graded to the design's night register in the asset itself
   (see tools/README on the measured grade). The design also frames the
   aircraft tighter than `cover` gives on this aspect, so the zoom lives here
   rather than baked into a second crop of the file - one number to nudge.
   -------------------------------------------------------------------------- */
.hero-slide--dark .hero-slide__media,
.trip-banner__media {
  transform: scale(1.2);
  transform-origin: 84% 58%;
}


/* ==========================================================================
   23. CONTENT PAGES
   --------------------------------------------------------------------------
   The eighteen interior pages (about, contacts, careers, team, faqs, video,
   tabs, photo/photo1/photo2, news/news1/news2, list1/list2, grid1/grid2/grid3)
   reproduce the reference site's STRUCTURE — same sections in the same order,
   same links — rendered in this project's own visual language.

   Everything here is built on the tokens in §01, so these pages inherit the
   palette, spacing scale, radii and motion already established. Nothing below
   introduces a new colour.

     23.1  Page banner (the reference's .caption-inner) + breadcrumb
     23.2  Prose / article body
     23.3  Contact cards + contact form
     23.4  Careers: recruiting banner + vacancy list
     23.5  Team cards
     23.6  Accordion (FAQs, vacancy details)
     23.7  Tabset
     23.8  Photo galleries — grid, masonry, coverflow strip
     23.9  Video gallery
     23.10 News layouts — list, two-up, three-up
     23.11 Anchor menu (list1 / list2)
     23.12 Service cards (grid1) and category tiles (grid2 / grid3)
     23.13 Sidebar, pagination, share row
     23.14 Lightbox
   ========================================================================== */

/* ---- 23.1 Page banner --------------------------------------------------- */
/* The reference puts a photograph behind the page title with a breadcrumb
   above it. Here the same slot uses the project's night grade so an interior
   page opens with the same voice as the home hero, only quieter and shorter. */
.page-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(13rem, 9rem + 16vw, 22rem);
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(1.75rem, 1rem + 3vw, 3.25rem);
  overflow: hidden;
  background: var(--ja-hero-dark);
}
.page-banner__media { position: absolute; inset: 0; z-index: -2; }
.page-banner__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Same framing decision as the hero: the aircraft sits right of centre. */
  transform: scale(1.14);
  transform-origin: 84% 58%;
}
.page-banner__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg,  rgba(33,38,44,0.92) 0%, rgba(33,38,44,0.72) 38%,
                            rgba(33,38,44,0.34) 68%, rgba(33,38,44,0.18) 100%),
    linear-gradient(180deg, rgba(33,38,44,0.10) 0%, rgba(33,38,44,0) 40%,
                            rgba(33,38,44,0.55) 100%);
}
.page-banner__inner { position: relative; }
.page-banner__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--ja-white);
  letter-spacing: -0.01em;
}
.page-banner__lead {
  max-width: 46ch;
  margin: 0.75rem 0 0;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

/* Breadcrumb */
.breadcrumb-ja {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.875rem;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.breadcrumb-ja li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb-ja li + li::before {
  content: "";
  width: 0.3125rem; height: 0.3125rem;
  border-radius: 50%;
  background: var(--ja-gold);
  opacity: 0.8;
}
.breadcrumb-ja a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
.breadcrumb-ja a:hover { color: var(--ja-gold-300); }
.breadcrumb-ja [aria-current="page"] { color: var(--ja-gold-300); }

/* ---- 23.2 Prose --------------------------------------------------------- */
.prose {
  max-width: 68ch;
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--ja-text);
}
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  margin-top: 2.25em;
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  color: var(--ja-navy);
}
.prose h3 {
  margin-top: 1.9em;
  font-family: var(--font-head);
  font-size: var(--fs-h4);
  color: var(--ja-navy);
}
.prose strong { color: var(--ja-navy); font-weight: 600; }
.prose a { color: var(--ja-gold-ink); text-underline-offset: 0.2em; }
.prose ul, .prose ol { padding-inline-start: 1.35em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--ja-gold-600); }
.prose blockquote {
  margin-inline: 0;
  padding: 1.25rem 1.5rem;
  border-inline-start: 3px solid var(--ja-gold);
  background: var(--ja-gold-tint);
  border-radius: var(--r-sm);
  font-size: var(--fs-lead);
  color: var(--ja-navy);
}

/* A lead figure above the prose, as the reference's about page has. */
.article-figure {
  margin: 0 0 clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.article-figure img { display: block; width: 100%; height: auto; }
.article-figure figcaption {
  padding: 0.875rem 1.125rem;
  background: var(--ja-white);
  font-size: 0.875rem;
  color: var(--ja-muted);
}

/* Two-column split: prose beside a rail (about, list1). */
.split {
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
}
.split--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }

/* ---- 23.3 Contact cards + form ------------------------------------------ */
.contact-cards {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.info-card {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.35rem, 1rem + 1vw, 1.85rem);
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}
.info-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--sh-md);
  border-color: var(--ja-gold-200);
}
.info-card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--r-md);
  background: var(--ja-gold-100);
  color: var(--ja-gold-700);
}
.info-card__icon .ic { width: 1.25rem; height: 1.25rem; }
.info-card__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ja-navy);
}
.info-card__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.3rem; }
.info-card__list li { font-size: 0.9375rem; color: var(--ja-text); }
.info-card__list a { color: inherit; text-decoration: none; }
.info-card__list a:hover { color: var(--ja-gold-ink); text-decoration: underline; }

/* The form panel — the reference's "Have Touch!" block. */
.contact-panel {
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 3rem);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--ja-cream);
  border: 1px solid var(--ja-line-soft);
  border-radius: var(--r-xl);
}
.contact-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-field { display: grid; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field > label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ja-navy);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ja-navy);
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
}
.form-field textarea { min-height: 8.5rem; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ja-gold);
  box-shadow: 0 0 0 3px rgba(211, 163, 94, 0.22);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ja-muted); }
.form-note { grid-column: 1 / -1; margin: 0; font-size: 0.8125rem; color: var(--ja-muted); }
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.875rem;
  color: var(--ja-green-ink);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}
.form-status.is-visible { opacity: 1; }

/* ---- 23.4 Careers ------------------------------------------------------- */
.recruit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.25rem, 1.5rem + 4vw, 4.5rem);
  border-radius: var(--r-xl);
  background: var(--ja-hero-dark);
  color: var(--ja-white);
}
.recruit__media { position: absolute; inset: 0; z-index: -2; }
.recruit__media img { width: 100%; height: 100%; object-fit: cover; }
.recruit__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(33,38,44,0.94) 0%, rgba(33,38,44,0.80) 42%,
                                     rgba(33,38,44,0.42) 78%, rgba(33,38,44,0.24) 100%);
}
.recruit__title {
  max-width: 22ch;
  margin: 0 0 0.875rem;
  font-family: var(--font-head);
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  color: var(--ja-white);
}
.recruit__text { max-width: 56ch; margin: 0 0 1.75rem; color: rgba(255,255,255,0.8); line-height: 1.75; }
.recruit__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Vacancy list */
.vacancies { display: grid; gap: 1rem; }
.vacancy {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  transition: border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.vacancy:hover { border-color: var(--ja-gold-200); box-shadow: var(--sh-sm); }
.vacancy.is-open { border-color: var(--ja-gold-300); box-shadow: var(--sh-md); }
.vacancy__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}
.vacancy__ref {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ja-muted);
}
.vacancy__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--ja-navy);
}
.vacancy__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.125rem;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--ja-muted);
}
.vacancy__meta span { display: inline-flex; align-items: center; gap: 0.375rem; }
.vacancy__meta .ic { width: 0.9375rem; height: 0.9375rem; color: var(--ja-gold-600); }
.vacancy__summary { margin: 0 0 1rem; color: var(--ja-text); line-height: 1.75; }
.vacancy__actions { display: flex; flex-wrap: wrap; gap: 0.625rem; align-items: center; }

/* ---- 23.6 Accordion ----------------------------------------------------- */
/* One implementation serves the FAQ list and the vacancy "Details" toggle. */
.acc { display: grid; gap: 0.75rem; }
.acc__item {
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.acc__item.is-open { border-color: var(--ja-gold-300); box-shadow: var(--sh-sm); }
.acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: clamp(1rem, 0.85rem + 0.6vw, 1.35rem) clamp(1.125rem, 1rem + 0.8vw, 1.625rem);
  font: inherit;
  text-align: start;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ja-navy);
}
.acc__head:hover { background: var(--ja-gold-tint); }
.acc__q {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
}
.acc__sign {
  position: relative;
  flex: 0 0 auto;
  width: 1.625rem; height: 1.625rem;
  border-radius: 50%;
  background: var(--ja-gold-100);
  transition: background var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
/* A "+" that rotates into a "−": two bars, one of which fades. */
.acc__sign::before, .acc__sign::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%; top: 50%;
  width: 0.6875rem; height: 2px;
  border-radius: 1px;
  background: var(--ja-gold-700);
  transform: translate(-50%, -50%);
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out);
}
.acc__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item.is-open .acc__sign { background: var(--ja-gold); }
.acc__item.is-open .acc__sign::before,
.acc__item.is-open .acc__sign::after { background: var(--ja-white); }
.acc__item.is-open .acc__sign::after { opacity: 0; transform: translate(-50%, -50%) rotate(0deg); }

/* Height is animated by JS setting --h, so the panel can hold any content
   and still transition — `height: auto` is not animatable. */
.acc__panel {
  height: 0;
  overflow: hidden;
  transition: height var(--t-base) var(--ease-out);
}
/* .vacancy is not an .acc__item but reuses the same panel, so it needs the
   same open rule - without it the panel stays at height 0 and the toggle
   appears to do nothing. */
.acc__item.is-open .acc__panel,
.vacancy.is-open .acc__panel { height: var(--h, auto); }
.acc__body {
  padding: 0 clamp(1.125rem, 1rem + 0.8vw, 1.625rem) clamp(1.125rem, 1rem + 0.8vw, 1.5rem);
  color: var(--ja-text);
  line-height: var(--lh-base);
}
.acc__body > * + * { margin-top: 0.85em; }
.acc__body ul { margin: 0; padding-inline-start: 1.25em; }
.acc__body li::marker { color: var(--ja-gold-600); }

/* A heading that groups a run of accordion items, as the reference has. */
.acc-group-title {
  margin: clamp(1.75rem, 1rem + 2vw, 2.75rem) 0 1rem;
  font-family: var(--font-head);
  font-size: var(--fs-h4);
  color: var(--ja-navy);
}
.acc-group-title:first-child { margin-top: 0; }

/* ---- 23.5 Team ---------------------------------------------------------- */
.team-grid {
  display: grid;
  gap: clamp(1.125rem, 0.75rem + 1.4vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.team-card {
  position: relative;
  display: grid;
  overflow: hidden;
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}
.team-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: var(--sh-lg);
  border-color: var(--ja-gold-200);
}
.team-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ja-beige);
}
.team-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
.team-card:hover .team-card__media img { transform: scale(1.06); }

/* No portrait supplied: a monogram on the brand's own ground, rather than a
   stock face that would misrepresent a real person. */
.team-card__monogram {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  background:
    radial-gradient(120% 100% at 30% 0%, var(--ja-gold-100), transparent 60%),
    linear-gradient(160deg, var(--ja-beige), var(--ja-gold-200));
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 1.5rem + 4vw, 3.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ja-gold-700);
}
.team-card__body { padding: 1.125rem 1.25rem 1.25rem; }
.team-card__name {
  margin: 0 0 0.2rem;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ja-navy);
}
.team-card__role {
  margin: 0 0 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ja-gold-ink);
}
.team-card__bio { margin: 0 0 0.9rem; font-size: 0.9063rem; line-height: 1.7; color: var(--ja-text); }
.team-social { display: flex; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.team-social a {
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  color: var(--ja-muted);
  background: var(--ja-cream);
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.team-social a:hover { color: #000; background: var(--ja-gold-600); }
.team-social .ic { width: 0.9375rem; height: 0.9375rem; }

/* ---- 23.7 Tabset -------------------------------------------------------- */
.tabset { display: grid; gap: 1.5rem; }
.tabset__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  background: var(--ja-cream);
  border: 1px solid var(--ja-line-soft);
  border-radius: var(--r-lg);
}
.tabset__tab {
  padding: 0.6875rem 1.25rem;
  font: inherit;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ja-text);
  background: none;
  border: 0;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.tabset__tab:hover { color: var(--ja-navy); background: var(--ja-white); }
.tabset__tab[aria-selected="true"] {
  color: var(--ja-white);
  background: var(--ja-navy);
  box-shadow: var(--sh-sm);
}
.tabset__panel[hidden] { display: none; }
.tabset__panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  color: var(--ja-navy);
}

/* ---- 23.8 Photo galleries ----------------------------------------------- */

/* photo1.html — a wide slide with an overlaid caption, plus a thumb strip. */
.gallery-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--ja-ink);
}
.gallery-stage__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-out);
}
.gallery-stage__slide.is-active { opacity: 1; }
.gallery-stage__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-stage__cap {
  position: absolute;
  inset-inline: 0; bottom: 0;
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  background: linear-gradient(180deg, rgba(15,25,33,0) 0%, rgba(15,25,33,0.88) 100%);
  color: var(--ja-white);
}
.gallery-stage__name {
  margin: 0 0 0.25rem;
  font-family: var(--font-head);
  font-size: var(--fs-h4);
  font-weight: 600;
}
.gallery-stage__text { margin: 0; max-width: 60ch; color: rgba(255,255,255,0.82); font-size: 0.9375rem; }
.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-bottom: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.gallery-thumbs button {
  flex: 0 0 auto;
  width: 6.5rem;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: none;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  scroll-snap-align: start;
  opacity: 0.55;
  transition: opacity var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button:hover { opacity: 0.85; }
.gallery-thumbs button[aria-selected="true"] { opacity: 1; border-color: var(--ja-gold); }

/* ---- 23.9 Video gallery ------------------------------------------------- */
.video-grid {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.video-card { display: grid; gap: 0.75rem; }
.video-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--ja-ink);
}
.video-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t-base) var(--ease-out);
}
.video-card__thumb:hover img { transform: scale(1.05); opacity: 0.82; }
.video-card__play {
  position: absolute;
  inset-inline-start: 50%; top: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ja-navy);
  box-shadow: var(--sh-md);
  transition: transform var(--t-base) var(--ease-out), background var(--t-base) var(--ease-out);
}
.video-card__thumb:hover .video-card__play {
  background: var(--ja-gold);
  color: #000;
  transform: scale(1.08);
}
.video-card__play .ic { width: 1.125rem; height: 1.125rem; margin-inline-start: 0.15rem; }
.video-card__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ja-navy);
}
.video-card__meta { margin: 0.15rem 0 0; font-size: 0.8125rem; color: var(--ja-muted); }

/* ---- 23.10 News layouts -------------------------------------------------- */
/* news.html — image left, copy right, one per row. */
.news-list { display: grid; gap: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.news-row {
  display: grid;
  gap: clamp(1rem, 0.75rem + 1.5vw, 2rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
  align-items: center;
  padding-bottom: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-bottom: 1px solid var(--ja-line-soft);
}
.news-list > .news-row:last-child { border-bottom: 0; padding-bottom: 0; }
.news-row__media {
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
}
.news-row__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
.news-row:hover .news-row__media img { transform: scale(1.05); }
.news-row__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-head);
  font-size: var(--fs-h4);
  line-height: var(--lh-tight);
  color: var(--ja-navy);
}
.news-row__title a { color: inherit; text-decoration: none; }
.news-row__title a:hover { color: var(--ja-gold-ink); }
.news-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ja-gold-ink);
}
.news-date .ic { width: 0.875rem; height: 0.875rem; }
.news-row__text { margin: 0 0 1rem; color: var(--ja-text); line-height: 1.75; }

/* news1 / news2 — card grids, two-up beside a sidebar and three-up full width. */
/* Column count comes from a modifier class, never an inline custom property:
   an inline --cols would outrank every media query below and the grid would
   never collapse. */
.news-cards {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.news-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}
.news-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: var(--sh-lg);
  border-color: var(--ja-gold-200);
}
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card__body { display: grid; align-content: start; gap: 0.5rem; padding: 1.125rem 1.25rem 1.25rem; }
.news-card__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ja-navy);
}
.news-card__title a { color: inherit; text-decoration: none; }
.news-card__title a:hover { color: var(--ja-gold-ink); }
.news-card__text { margin: 0; font-size: 0.9063rem; line-height: 1.7; color: var(--ja-text); }
.news-card__foot { margin-top: 0.35rem; }

/* ---- 23.11 Anchor menu (list1 / list2) ---------------------------------- */
.anchor-menu {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--ja-cream);
  border: 1px solid var(--ja-line-soft);
  border-radius: var(--r-lg);
}
.anchor-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ja-text);
  text-decoration: none;
  border-radius: var(--r-md);
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.anchor-menu a .ic { width: 0.875rem; height: 0.875rem; opacity: 0; transition: opacity var(--t-fast) var(--ease-out); }
.anchor-menu a:hover { color: var(--ja-navy); background: var(--ja-white); }
.anchor-menu a:hover .ic { opacity: 0.6; }
.anchor-menu a.is-current {
  color: var(--ja-white);
  background: var(--ja-navy);
}
.anchor-menu a.is-current .ic { opacity: 1; }

/* Each anchored section needs clearance for the sticky header. */
.anchor-section { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.anchor-section + .anchor-section { margin-top: clamp(2rem, 1.25rem + 2.5vw, 3.5rem); }

/* ---- 23.12 Service cards + category tiles -------------------------------- */
.service-grid {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.service-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}
.service-card:hover {
  transform: translateY(-0.3rem);
  box-shadow: var(--sh-lg);
  border-color: var(--ja-gold-200);
}
.service-card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__body {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 1.125rem 1.25rem 1.375rem;
}
.service-card__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ja-gold-ink);
}
.service-card__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ja-navy);
}
.service-card__title a { color: inherit; text-decoration: none; }
.service-card__title a:hover { color: var(--ja-gold-ink); }
.service-card__text { margin: 0; font-size: 0.9063rem; line-height: 1.7; color: var(--ja-text); }
.service-card__go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ja-gold-ink);
  text-decoration: none;
}
.service-card__go .ic { width: 0.9375rem; height: 0.9375rem; transition: transform var(--t-fast) var(--ease-out); }
.service-card__go:hover .ic { transform: translateX(0.1875rem); }

/* Category tiles — photo panels whose whole surface is the link. */
.tile-grid {
  display: grid;
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tile-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile {
  position: relative;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: var(--tile-ratio, 3 / 4);
  padding: clamp(1rem, 0.75rem + 1vw, 1.5rem);
  border-radius: var(--r-lg);
  color: var(--ja-white);
  text-decoration: none;
  background: var(--ja-ink);
}
.tile img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
.tile::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,26,53,0.05) 30%, rgba(12,26,53,0.78) 100%);
  transition: background var(--t-base) var(--ease-out);
}
.tile:hover img { transform: scale(1.07); }
.tile:hover::after { background: linear-gradient(180deg, rgba(12,26,53,0.20) 20%, rgba(12,26,53,0.86) 100%); }
/* Headings inherit color: var(--ja-navy) from the global h1-h6 rule, which
   outranks the color set on .tile. Stated explicitly here or the title renders
   navy on a dark photograph - measured at 1.58:1 before this line. */
.tile__title {
  margin: 0;
  color: var(--ja-white);
  font-family: var(--font-head);
  font-size: clamp(1.0625rem, 0.9rem + 0.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}
/* Every heading that sits on a dark ground needs its colour stated, for the
   same reason as .tile__title above. */
.page-banner__title,
.recruit__title,
.gallery-stage__name { color: var(--ja-white); }

.tile__meta {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ja-gold-300);
}

/* ---- 23.13 Sidebar, pagination ------------------------------------------ */
.side { display: grid; gap: 1.25rem; align-content: start; }
.side-box {
  padding: 1.25rem;
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
}
.side-box__title {
  margin: 0 0 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--ja-line-soft);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ja-navy);
}
.side-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.side-list a {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.side-list img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); }
.side-list__t { font-size: 0.875rem; font-weight: 600; line-height: 1.45; color: var(--ja-navy); }
.side-list a:hover .side-list__t { color: var(--ja-gold-ink); }
.side-list__d { font-size: 0.75rem; color: var(--ja-muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-cloud a {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--ja-text);
  text-decoration: none;
  background: var(--ja-cream);
  border: 1px solid var(--ja-line-soft);
  border-radius: 999px;
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.tag-cloud a:hover { color: #000; background: var(--ja-gold-600); border-color: transparent; }

.pagination-ja {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  justify-content: center;
  margin-top: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  padding: 0;
  list-style: none;
}
.pagination-ja a, .pagination-ja span {
  display: grid;
  place-items: center;
  min-width: 2.5rem; height: 2.5rem;
  padding-inline: 0.625rem;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ja-text);
  text-decoration: none;
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-md);
  transition: color var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
}
.pagination-ja a:hover { color: var(--ja-navy); border-color: var(--ja-gold-300); }
.pagination-ja [aria-current="page"] {
  color: var(--ja-white);
  background: var(--ja-navy);
  border-color: var(--ja-navy);
}
.pagination-ja .ic { width: 0.875rem; height: 0.875rem; }

/* ---- 23.15 Responsive ---------------------------------------------------- */
@media (max-width: 1024px) {
  .split, .split--reverse, .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .news-cards, .news-cards--2, .news-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-grid, .tile-grid--2, .tile-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anchor-menu { position: static; }
}

@media (max-width: 768px) {
  .news-cards, .news-cards--2, .news-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-grid, .tile-grid--2, .tile-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-row { grid-template-columns: minmax(0, 1fr); }
  .news-row__media { aspect-ratio: 16 / 9; }
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .gallery-masonry { columns: 2 9rem; }
  .recruit__actions .btn-ja { flex: 1 1 12rem; justify-content: center; }
}

@media (max-width: 480px) {
  .news-cards, .news-cards--2, .news-cards--3 { grid-template-columns: minmax(0, 1fr); }
  .tile-grid, .tile-grid--2, .tile-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .tile { aspect-ratio: 16 / 10; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
  .gallery-masonry { columns: 1; }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .breadcrumb-ja { font-size: 0.75rem; }
}

/* Reduced motion: keep the state changes, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  .team-card:hover, .news-card:hover, .service-card:hover, .info-card:hover { transform: none; }
  .gallery-grid a:hover img, .gallery-masonry a:hover img,
  .tile:hover img, .news-card:hover .news-card__media img,
  .service-card:hover .service-card__media img,
  .team-card:hover .team-card__media img { transform: none; }
  .acc__panel { transition: none; }
}


/* ==========================================================================
   24. LOYALTY AND ACCOUNT
   --------------------------------------------------------------------------
     24.1  Numbered steps (how the programme works)
     24.2  Tier cards
     24.3  Comparison table
     24.4  Earning table
     24.5  Account / sign-in
     24.6  Notices
     24.7  Responsive
   ========================================================================== */

/* ---- 24.1 Numbered steps ------------------------------------------------ */
.steps {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  counter-increment: step;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  margin-bottom: 0.875rem;
  border-radius: 50%;
  background: var(--ja-gold-100);
  color: var(--ja-gold-700);
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
}
.step__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ja-navy);
}
.step__text { margin: 0; font-size: 0.9375rem; line-height: 1.7; color: var(--ja-text); }

/* ---- 24.2 Tier cards ----------------------------------------------------
   Each tier carries its own accent through --tier, so the metal is stated
   once per card rather than repeated across five declarations. */
.tier-grid {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.5rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tier {
  --tier: var(--ja-navy);
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}
.tier::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 4px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--tier);
}
.tier:hover {
  transform: translateY(-0.3rem);
  box-shadow: var(--sh-lg);
  border-color: var(--tier);
}
.tier--blue     { --tier: #5A7CA8; }
.tier--silver   { --tier: #8A929E; }
.tier--gold     { --tier: var(--ja-gold-600); }
.tier--platinum { --tier: var(--ja-ink); }

.tier__name {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--tier);
}
.tier__qual {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ja-muted);
}
.tier__rate {
  margin: 0.25rem 0 0;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ja-navy);
}
.tier__rate small {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ja-muted);
}
.tier__list { margin: 0.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.tier__list li {
  display: grid;
  grid-template-columns: 1.125rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  font-size: 0.9063rem;
  line-height: 1.6;
  color: var(--ja-text);
}
.tier__list .ic { width: 1.125rem; height: 1.125rem; margin-top: 0.15rem; color: var(--tier); }

/* ---- 24.3 Comparison table ----------------------------------------------
   A wide table must scroll inside its own box, never push the page sideways. */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  background: var(--ja-white);
  -webkit-overflow-scrolling: touch;
}
.table-ja {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.table-ja th, .table-ja td {
  padding: 0.875rem 1rem;
  text-align: start;
  border-bottom: 1px solid var(--ja-line-soft);
  vertical-align: middle;
}
.table-ja thead th {
  position: sticky;
  top: 0;
  background: var(--ja-cream);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ja-navy);
  border-bottom: 1px solid var(--ja-line);
}
.table-ja tbody tr:last-child th,
.table-ja tbody tr:last-child td { border-bottom: 0; }
.table-ja tbody tr:hover { background: var(--ja-gold-tint); }
.table-ja tbody th {
  font-weight: 600;
  color: var(--ja-navy);
}
.table-ja td { color: var(--ja-text); }
/* A tick or a dash, centred in the tier columns */
.table-ja .cell-mark { text-align: center; }
.table-ja .cell-mark .ic { width: 1.0625rem; height: 1.0625rem; color: var(--ja-green-ink); }
.table-ja .cell-mark span[aria-hidden] { color: var(--ja-line); }

/* ---- 24.4 Earning ------------------------------------------------------- */
.earn-note {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--ja-muted);
}

/* ---- 24.5 Account / sign-in --------------------------------------------- */
.auth {
  display: grid;
  gap: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.auth-card {
  padding: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}
.auth-card--quiet { background: var(--ja-cream); box-shadow: none; }
.auth-card__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-head);
  font-size: var(--fs-h4);
  color: var(--ja-navy);
}
.auth-card__text { margin: 0 0 1.5rem; font-size: 0.9375rem; line-height: 1.7; color: var(--ja-text); }
.auth-form { display: grid; gap: 1rem; }
/* Account type on sign-up (client spec 2026-10-20) */
.acct-type { margin: 0; padding: 0; border: 0; min-width: 0; }
/* The legend reads like the other field labels, not like a heading */
.acct-type > legend { float: none; width: auto; padding: 0; margin: 0 0 0.5rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ja-navy, #0C1A35); line-height: 1.4; }
.acct-type__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.acct-type .fare-chip { width: 100%; }
.acct-type .fare-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.acct-type .fare-chip:has(input:checked) { border-color: var(--ja-gold); background: rgba(211, 163, 94, 0.1); }
.acct-type .fare-chip:has(input:focus-visible) { outline: 2px solid var(--ja-gold); outline-offset: 2px; }
/* A message beside the field it is about */
.field-error { margin: 0.35rem 0 0; color: var(--ja-red, #DC1737); font-size: 0.875rem; font-weight: 600; }
.form-control.is-invalid { border-color: var(--ja-red, #DC1737); box-shadow: 0 0 0 3px rgba(220, 23, 55, 0.12); }
.auth-form .form-field--full { grid-column: auto; }

/* Password field with a reveal control sitting inside it */
.field-pw { position: relative; }
.field-pw input { padding-inline-end: 3rem; }
.pw-toggle {
  position: absolute;
  inset-inline-end: 0.5rem;
  bottom: 0.375rem;
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  color: var(--ja-muted);
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.pw-toggle:hover { color: var(--ja-navy); background: var(--ja-cream); }
.pw-toggle .ic { width: 1.125rem; height: 1.125rem; }

/* Two fields side by side on the auth cards (first name / last name), stacking on a phone. */
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-4); }
@media (max-width: 560px) { .auth-grid { grid-template-columns: minmax(0, 1fr); } }

/* The profile carries two cards rather than one form, so it is allowed to be wider. */
.auth--wide { max-width: 40rem; margin-inline: auto; }

/* Six digits read back off a phone. Spaced and large because transcribing a code is the whole
   job of this field, and a cramped one is where the transcription goes wrong. */
.otp-input {
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  text-align: center;
}

.auth-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.check-ja {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9063rem;
  color: var(--ja-text);
  cursor: pointer;
}
.check-ja input { width: 1.0625rem; height: 1.0625rem; accent-color: var(--ja-gold-600); }
.link-quiet-sm {
  font-size: 0.9063rem;
  font-weight: 600;
  color: var(--ja-gold-ink);
  text-decoration: none;
}
.link-quiet-sm:hover { text-decoration: underline; }

/* "or" rule between the two ways in */
.divider-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.875rem;
  margin: 1.25rem 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ja-muted);
}
.divider-or::before, .divider-or::after {
  content: "";
  height: 1px;
  background: var(--ja-line);
}

.auth-alt {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ja-line-soft);
  font-size: 0.9375rem;
  color: var(--ja-text);
}
.auth-alt a { font-weight: 600; color: var(--ja-gold-ink); }

/* ---- 24.6 Notices -------------------------------------------------------
   Used for the two honest disclosures these pages have to carry: that no
   credential is transmitted, and that the programme figures are illustrative. */
.notice {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 1rem 1.125rem;
  background: var(--ja-gold-tint);
  border: 1px solid var(--ja-gold-200);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ja-text);
}
.notice .ic { width: 1.25rem; height: 1.25rem; color: var(--ja-gold-700); margin-top: 0.1rem; }
.notice strong { color: var(--ja-navy); }
.notice--plain { background: var(--ja-cream); border-color: var(--ja-line); }
.notice--plain .ic { color: var(--ja-muted); }

/* Invalid field state, shared with the contact form */
.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: var(--ja-red);
  box-shadow: 0 0 0 3px rgba(220, 23, 55, 0.14);
}
.field-error {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ja-red);
}

/* ---- 24.7 Responsive ---------------------------------------------------- */
@media (max-width: 1024px) {
  .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .tier-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .tier:hover { transform: none; }
}


/* ==========================================================================
   25. PLAN & BOOK · OFFERS · FLIGHT STATUS · APP
   --------------------------------------------------------------------------
   Four chrome destinations that used to be in-page anchors on the home page.
   Everything here leans on components that already exist — .offer-card,
   .search-widget, .table-ja, .store-badge — so these pages add layout, not a
   second visual language.

     25.1  Offers grid
     25.2  Flight status
     25.3  Fare family cards
     25.4  App page
     25.5  Responsive
   ========================================================================== */

/* ---- 25.1 Offers grid ---------------------------------------------------
   The home page shows offers in a horizontal rail; a dedicated page shows
   them all at once, so the same .offer-card goes into a grid instead. */
.offer-grid {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.offer-grid .offer-card { width: auto; min-width: 0; }
/* In the grid the card stands upright - photo on top, details under it (client 2026-11-09, "amend
   the style"). The rail's side-by-side halves left each column a third of a third: the fare broke
   over two lines and the text was squeezed into a strip. */
.offer-grid .offer-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
.offer-grid .offer-card__media { min-height: 0; aspect-ratio: 16 / 10; }
.offer-grid .offer-card__body { padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); }
.offer-grid .route { margin-bottom: var(--sp-3); }
.offer-grid .offer-card__meta { font-size: 0.75rem; letter-spacing: 0.06em; }
.offer-grid .price { flex-wrap: wrap; margin-bottom: var(--sp-3); }
.offer-grid .price__value { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 700; letter-spacing: -0.01em; }
.offer-grid .price__cur { font-size: 1rem; }
.offer-grid .offer-card__text { margin-bottom: var(--sp-4); }
.offer-grid .offer-card__actions { margin-top: auto; padding-top: var(--sp-2); }
.offer-card__title { font-size: var(--fs-h4, 1.25rem); margin: 0 0 var(--sp-2); }

/* ---- 25.2 Flight status -------------------------------------------------- */
.status-panel {
  padding: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  background: var(--ja-cream);
  border: 1px solid var(--ja-line-soft);
  border-radius: var(--r-xl);
}
.status-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}
.status-form .form-field--go { align-self: end; }
.status-form .btn-ja { width: 100%; }

/* Status pill. The colours are the ones already sampled from the design for
   the confirmation chip, so a "landed" flight here and a confirmed booking
   there read as the same state. */
.flight-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3125rem 0.6875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.flight-status::before {
  content: "";
  width: 0.4375rem; height: 0.4375rem;
  border-radius: 50%;
  background: currentColor;
}
.flight-status--ontime  { background: var(--ja-status-green); color: var(--ja-status-ink); }
.flight-status--landed  { background: var(--ja-green-tint);   color: var(--ja-green-ink); }
.flight-status--delayed { background: #FDECC8;                color: #7A4E00; }
.flight-status--boarding{ background: var(--ja-gold-100);     color: var(--ja-gold-ink); }
.flight-status--cancelled { background: #FDE2E6;              color: #8E0C21; }

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ja-muted);
}

/* ---- 25.3 Fare families -------------------------------------------------- */
.fare-family {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fare-fam {
  --fam: var(--ja-line);
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  transition: border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.fare-fam:hover { border-color: var(--ja-gold-200); box-shadow: var(--sh-sm); }
.fare-fam--featured {
  border-color: var(--ja-gold);
  box-shadow: var(--sh-md);
}
.fare-fam__flag {
  align-self: start;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--ja-gold-100);
  color: var(--ja-gold-ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fare-fam__name {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ja-navy);
}
.fare-fam__from { margin: 0; font-size: 0.8125rem; color: var(--ja-muted); }
.fare-fam__price {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ja-navy);
}
.fare-fam__list { margin: 0.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.fare-fam__list li {
  display: grid;
  grid-template-columns: 1.125rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  font-size: 0.9063rem;
  line-height: 1.6;
  color: var(--ja-text);
}
.fare-fam__list .ic { width: 1.125rem; height: 1.125rem; margin-top: 0.15rem; color: var(--ja-green-ink); }
.fare-fam__list li.is-out { color: var(--ja-muted); }
.fare-fam__list li.is-out .ic { color: var(--ja-line); }

/* ---- 25.4 App page ------------------------------------------------------- */
.app-split {
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
}
.app-shot { display: grid; place-items: center; }
.app-shot img { width: 100%; max-width: 22rem; height: auto; }
.app-features { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 1.125rem; }
.app-features li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.875rem;
  align-items: start;
}
.app-features .info-card__icon { width: 2.75rem; height: 2.75rem; }
.app-features h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ja-navy);
}
.app-features p { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: var(--ja-text); }
.app-badges { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.75rem; }

/* ---- 25.5 Responsive ----------------------------------------------------- */
@media (max-width: 1024px) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fare-family { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-split { grid-template-columns: minmax(0, 1fr); }
  .app-shot { order: -1; }
}
@media (max-width: 768px) {
  .status-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-form .form-field--go { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .fare-family { grid-template-columns: minmax(0, 1fr); }
  .status-form { grid-template-columns: minmax(0, 1fr); }
}


/* ==========================================================================
   21. RTL / ARABIC LAYER
   --------------------------------------------------------------------------
   This file (style-ar.css) is loaded ONLY by the Arabic pages, which carry
   dir="rtl" lang="ar" on <html>. Everything above is the shared design
   system; the block below re-points the typography to professional Arabic
   faces and mirrors the handful of properties that logical CSS cannot flip
   on its own (gradients, clip-paths, translate offsets, chevron glyphs).
   ========================================================================== */

/* ---- 21.1 Arabic typography -------------------------------------------- */
/* One face for the Arabic site (client note 2026-11-02): Cairo throughout — Bold for the
   headings, regular for reading. Tajawal is no longer loaded. */
:root {
  --font-head: "Cairo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Cairo", "Segoe UI", system-ui, sans-serif;

  /* Arabic glyphs read best a touch larger with more leading */
  --fs-body:     clamp(0.9375rem, 0.92rem + 0.07vw, 1rem);
  --fs-lead:     clamp(1rem, 0.98rem + 0.07vw, 1.0625rem);
  --lh-base:     1.9;
  --lh-tight:    1.38;   /* Arabic ascenders/descenders need the extra room */
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5 { font-weight: 700; }

/* Arabic does not accept Latin letter-spacing - reset it everywhere */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5,
.eyebrow, .hero-copy .eyebrow, .explore__head .eyebrow,
.pill, .tag-cat, .btn-ja, .btn-ja--caps, .nav-link,
.field__label, .field__value, .offer-card__meta, .route__city,
.footer-col__title, .store-badge__top, .store-badge__name,
.cf-card__city, .cf-card.is-center .cf-card__city,
.fare-chip__title, .radio-ja__label, .story-meta {
  letter-spacing: normal;
}

/* Uppercasing is meaningless in Arabic - keep the natural case */
.eyebrow, .pill, .tag-cat, .btn-ja--caps,
.offer-card__meta, .route__city, .footer-col__title,
.store-badge__top, .cf-card.is-center .cf-card__city {
  text-transform: none;
}

/* Latin digits and airport codes must keep their own direction. Dates are
   deliberately NOT in this list: a mixed "12 أغسطس 2026" string reads
   correctly under the natural RTL base direction, and forcing LTR on it
   would reorder the month and the year. */
.price__value, .route__code, .num {
  direction: ltr;
  unicode-bidi: embed;
  font-family: var(--font-head);
}
.field__value--num { direction: rtl; }

/* ---- 21.2 Mirrored chevrons & arrows ----------------------------------- */
/* The SVG glyphs are authored pointing right; in RTL "next" points left. */
.ic--next, .ic--prev, .ic--arrow, .ic--chev {
  transform: scaleX(-1);
}
.btn-ja:hover .ic--next     { transform: scaleX(-1) translateX(0.1875rem); }
.link-arrow:hover .ic       { transform: scaleX(-1) translateX(0.1875rem); }
.link-quiet:hover .ic       { transform: scaleX(-1) translateX(0.1875rem); }
.link-arrow .ic, .link-quiet .ic { transform: scaleX(-1); }
/* The hero and rail arrows are not mirrored here: Home.cshtml already draws the RTL-facing chevron
   (chevPrev/chevNext), and flipping it again turned both arrows inwards (client note 2026-11-02). */
.cf-arrow .ic { transform: scaleX(-1); }
.hero-arrow .ic, .rail-arrow .ic { transform: none; }
.nav-drawer__link .ic       { transform: scaleX(-1); }
/* Vertical-only icons must NOT be mirrored */
.to-top .ic, .ic--up, .ic--play, .ic--close, .ic--calendar, .ic--search { transform: none; }

/* ---- 21.3 Mirrored gradients ------------------------------------------- */
/* The hero veil must fade away from the copy, which now sits on the right. */
.hero-slide__veil {
  background: linear-gradient(270deg, rgba(243,233,221,0.98) 0%, rgba(243,233,221,0.92) 26%,
                                      rgba(243,233,221,0.55) 46%, rgba(243,233,221,0.08) 64%,
                                      rgba(243,233,221,0) 78%);
}
/* Mirrors the base dark veil, which now uses the hero's own #21262C ground
   rather than navy. Keep the stops in step with style-en.css §08. */
.hero-slide--dark .hero-slide__veil {
  /* 270deg, dense on the right where the Arabic copy sits — it said 90deg, so the darkness
     sat on the left under the aircraft (client 2026-11-19). */
  background:
    linear-gradient(270deg, rgba(33,38,44,0.95) 0%,  rgba(33,38,44,0.86) 22%,
                            rgba(33,38,44,0.48) 46%, rgba(33,38,44,0.14) 70%,
                            rgba(33,38,44,0) 100%),
    linear-gradient(180deg, rgba(33,38,44,0.18) 0%,  rgba(33,38,44,0) 42%,
                            rgba(33,38,44,0.28) 100%);
}
/* Artwork focal point moves to the opposite side, biased slightly inward so
   the aircraft stays fully in frame beside the (now right-hand) copy. */
.hero-slide__media img { object-position: 34% center; }
.hero-slide__pattern   { background-position: right center; transform: scaleX(-1); }

/* Phones and tablets: the copy spans the full width under the picture, so the veil runs top to
   bottom as on the English site — the side veil above would otherwise win here too (2026-11-22). */
@media (max-width: 768px) {
  .hero-slide__veil {
    background: linear-gradient(180deg, rgba(243,233,221,0.30) 0%, rgba(243,233,221,0.70) 42%, rgba(243,233,221,0.98) 78%);
  }
  .hero-slide--dark .hero-slide__veil {
    background: linear-gradient(180deg, rgba(33,38,44,0.12) 0%, rgba(33,38,44,0.30) 34%, rgba(33,38,44,0.72) 62%, rgba(33,38,44,0.92) 90%);
  }
}

/* Offer cards: the scrim behind the gold pill sits in the pill's corner — top right in Arabic. */
.offer-card__media::before { background: linear-gradient(225deg, rgba(11, 22, 40, 0.35) 0%, rgba(11, 22, 40, 0) 60%); }

.scroll-progress__bar { transform-origin: right center; }
.btn-ja::after { background: linear-gradient(260deg, transparent, rgba(255,255,255,0.28), transparent); }

/* ---- 21.4 Mirrored clip-paths ------------------------------------------ */
/* The promo card's diagonal wash sweeps from the right edge in Arabic. */
.promo-card__wash { clip-path: polygon(100% 0, 38% 0, 60% 100%, 100% 100%); }
.promo-card:hover .promo-card__wash { clip-path: polygon(100% 0, 26% 0, 48% 100%, 100% 100%); }

/* The promo photographs are now untinted - the diagonal comes entirely from
   .promo-card__wash - so the artwork no longer needs mirroring in RTL. */

/* ---- 21.5 Mirrored transforms ------------------------------------------ */
/* translateX is physical, so every hard-coded offset flips sign. */
.nav-drawer                       { transform: translateX(-105%); }
.nav-drawer.is-open               { transform: translateX(0); }
.nav-drawer                       { box-shadow: 18px 0 60px rgba(12, 26, 53, 0.18); }
.nav-drawer__link                 { transform: translateX(-1.25rem); }
.nav-drawer.is-open .nav-drawer__link { transform: translateX(0); }

.footer-col__link:hover           { transform: translateX(-0.25rem); }
.skip-link                        { transform: translate(50%, -200%); }
.skip-link:focus                  { transform: translate(50%, 0); }

/* The nav underline already uses inset-inline-start, so it grows correctly. */

/* ---- 21.6 Coverflow ---------------------------------------------------- */
/* JS feeds --cf-x already sign-flipped for RTL (see js/main.js), so the
   card transform below only needs the same shorthand as the LTR rule. */
.cf-card {
  transform: translate(50%, -50%)
             translateX(var(--cf-x, 0))
             rotate(var(--cf-rot, 0deg))
             scale(var(--cf-scale, 1));
}

/* ---- 21.7 Search widget column widths ---------------------------------
   Arabic glyphs set wider than Latin at the same size, so "12 أغسطس 2026"
   needs more room than "12 Aug'26". Redistributing the row's fractions
   keeps every value on one line without shrinking the type.

   Scoped to >=1201px on purpose. Media queries carry no extra specificity,
   so an unscoped rule this late in the file would override the base
   stylesheet's <=1200px two-column layout and keep six columns on tablets.
   ---------------------------------------------------------------------- */
@media (min-width: 1201px) {
  .search-fields {
    grid-template-columns:
      minmax(0, 1.3fr)    /* من          -> 200px */
      auto                /* تبديل        ->  53px */
      minmax(0, 1.2fr)    /* إلى         -> 184px */
      minmax(0, 1.4fr)    /* المغادرة     -> 215px, fits "12 أغسطس 2026" */
      minmax(0, 1.2fr)    /* العودة       -> 184px */
      minmax(0, 1.15fr);  /* المسافرون    -> 177px */
  }
}

/* ---- 21.8 Small RTL fixes ---------------------------------------------- */
.route__end               { text-align: start; }
.store-badge__txt         { text-align: start; }
.suggest-item             { text-align: start; }
.field__value, .field__hint { text-align: start; }

/* Latin brand words inside Arabic copy keep LTR flow */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

@media (max-width: 768px) {
  .video-modal__close        { transform: translateX(-50%); }
  .video-modal__close:hover  { transform: translateX(-50%) rotate(90deg); }
  .swap-btn                  { transform: rotate(90deg); }
  .swap-btn:hover            { transform: rotate(270deg); }
}

/* ---- 21.9 Booking flow (RTL) ------------------------------------------- */
/* The banner artwork focal point moves, like the hero's. */
.trip-banner__media img { object-position: center left; }
.trip-banner__veil {
  background: linear-gradient(270deg, rgba(33,38,44,0.94) 0%, rgba(33,38,44,0.84) 30%,
                                      rgba(33,38,44,0.42) 56%, rgba(33,38,44,0.05) 100%);
}

/* translateX offsets are physical, so they flip */
.fare-opt__flag        { transform: translateX(50%); }
.step-back:hover .ic   { transform: scaleX(-1) translateX(-0.1875rem); }

/* Latin flight codes, times and fares keep their own run direction */
.bpass__code, .bpass__ref, .leg__time, .leg__code,
.fare-opt__price, .fare-from__amount, .addon__price,
.bpass__time, .sum-total__amount {
  direction: ltr;
  unicode-bidi: embed;
}
[dir="rtl"] .bpass__ap--end, [dir="rtl"] .fare-from,
[dir="rtl"] .bpass__status, [dir="rtl"] .sum-total__v { text-align: start; }

@media (max-width: 768px) {
  .trip-banner__veil {
    background: linear-gradient(180deg, rgba(33,38,44,0.55) 0%, rgba(33,38,44,0.85) 60%, rgba(33,38,44,0.96) 100%);
  }
}

/* ---- 21.10 Content pages (RTL) ------------------------------------------
   §23 is built on logical properties, so almost everything mirrors on its own.
   Only the physically-defined pieces need a counterpart here: gradients that
   have a direction, the banner's focal point, and translateX offsets.
   -------------------------------------------------------------------------- */

/* The banner veil must fade away from the copy, which now sits on the right. */
.page-banner__veil {
  background:
    linear-gradient(270deg, rgba(33,38,44,0.92) 0%, rgba(33,38,44,0.72) 38%,
                            rgba(33,38,44,0.34) 68%, rgba(33,38,44,0.18) 100%),
    linear-gradient(180deg, rgba(33,38,44,0.10) 0%, rgba(33,38,44,0) 40%,
                            rgba(33,38,44,0.55) 100%);
}
.page-banner__media img { transform-origin: 16% 58%; }

.recruit__veil {
  background: linear-gradient(270deg, rgba(33,38,44,0.94) 0%, rgba(33,38,44,0.80) 42%,
                                      rgba(33,38,44,0.42) 78%, rgba(33,38,44,0.24) 100%);
}

/* translateX is physical, so the hover nudge flips with the reading order. */
.service-card__go:hover .ic { transform: scaleX(-1) translateX(0.1875rem); }
.service-card__go .ic       { transform: scaleX(-1); }

/* Latin runs inside Arabic copy: reference codes, e-mail, phone numbers and
   dates keep their own direction so the digits do not reorder. */
.vacancy__ref, .info-card__list a[href^="tel:"], .info-card__list a[href^="mailto:"] {
  direction: ltr;
  unicode-bidi: embed;
}
/* Arabic dates read correctly under the natural RTL base direction, so
   .news-date is deliberately NOT forced to LTR - see the note in 21.1. */

.lightbox__nav .ic { transform: scaleX(-1); }
.acc__head { text-align: start; }

/* The masonry column flow already follows the writing direction; the thumb
   strip needs its scroll snap re-anchored. */
.gallery-thumbs { scroll-snap-type: x mandatory; }

/* ---- 21.11 Loyalty and account (RTL) ------------------------------------
   §24 is written with logical properties throughout, so only the sticky table
   header needs restating: `top` is physical but correct in both directions,
   while the tier accent bar and the password toggle already flip on their own.
   -------------------------------------------------------------------------- */

/* Latin runs inside Arabic copy keep their own direction so digits and
   currency do not reorder. */
.tier__rate, .table-ja td, .earn-note .num {
  unicode-bidi: plaintext;
}

/* The e-mail field is a Latin run whatever the page language. */
.auth-form input[type="email"] { direction: ltr; text-align: start; }


/* ==========================================================================
   26. MEGA MENU  (header nav panels + the drawer accordion that replaces them)

   The panel is an absolute child of .site-header, which is position:sticky and
   therefore already a containing block — so `inset-inline: 0` spans the whole
   header width and the panel escapes the .ja-container rail on its own.

   Everything here uses logical properties, so the Arabic build needs no mirror.
   ========================================================================== */

.nav-item { position: static; }
.nav-item.has-panel { display: inline-flex; align-items: center; gap: 0.25rem; }

.nav-caret {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ja-navy);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-caret .ic { width: 0.75rem; height: 0.75rem; }
.nav-caret:hover { background: rgba(15, 25, 33, 0.06); }
.nav-item.is-open > .nav-caret { transform: rotate(180deg); }

/* --- The panel ---------------------------------------------------------- */
.mega {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline: 0;
  z-index: 5;
  background: var(--ja-white);
  border-top: 1px solid rgba(15, 25, 33, 0.08);
  box-shadow: 0 1.5rem 3rem rgba(15, 25, 33, 0.14);
}
.nav-item.is-open > .mega { display: block; }

.mega__inner {
  display: grid;
  grid-template-columns: minmax(15rem, 20rem) 1fr;
  gap: clamp(1.5rem, 0.5rem + 2vw, 3rem);
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(1.5rem, 0.8rem + 1.6vw, 2.5rem) var(--container-pad);
}
/* No tab rail when the item has only flat children. */
.mega__inner:has(> .mega__panels:first-child) { grid-template-columns: 1fr; }

/* --- Left rail: the groups, as tabs ------------------------------------- */
.mega__rail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-inline-end: clamp(1rem, 0.4rem + 1.2vw, 2rem);
  border-inline-end: 1px solid rgba(15, 25, 33, 0.08);
}

.mega__tab {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  text-align: start;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.mega__tab:hover { background: rgba(15, 25, 33, 0.04); }
.mega__tab.is-active {
  background: var(--ja-cream);
  border-color: rgba(211, 163, 94, 0.35);
}
.mega__tab-ic { width: 1.25rem; height: 1.25rem; color: var(--ja-gold-ink); flex: none; margin-top: 0.125rem; }
.mega__tab-txt { display: block; min-width: 0; }
.mega__tab-title {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-h5);
  font-weight: 700;
  color: var(--ja-navy);
  line-height: 1.3;
}
.mega__tab-desc {
  display: block;
  margin-top: 0.125rem;
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  color: var(--ja-muted);
}

/* --- Right side: the link grid ------------------------------------------ */
.mega__panels { min-width: 0; }
.mega__grid {
  display: none;
  /* Fixed tracks, not auto-fit: with four links auto-fit made four thin columns and every
     description wrapped to three lines. Three columns is also what the reference uses. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 0.3rem + 0.9vw, 1.5rem) clamp(1rem, 0.4rem + 1.2vw, 2rem);
}
@media (min-width: 1200px) {
  .mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.mega__grid.is-active { display: grid; }

.mega__link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease);
}
.mega__link:hover { background: rgba(15, 25, 33, 0.04); }
.mega__link-ic { width: 1.125rem; height: 1.125rem; color: var(--ja-gold-ink); flex: none; margin-top: 0.1875rem; }
.mega__link-txt { display: block; min-width: 0; }
.mega__link-title {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ja-navy);
  line-height: 1.35;
}
.mega__link:hover .mega__link-title { color: var(--ja-gold-ink); }
.mega__link-desc {
  display: block;
  margin-top: 0.125rem;
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  color: var(--ja-muted);
}

/* Below the desktop nav breakpoint the drawer takes over entirely. */
@media (max-width: 1024px) {
  .nav-caret, .mega { display: none !important; }
}

/* --- Drawer accordion --------------------------------------------------- */
.nav-drawer__item { position: relative; }
.nav-drawer__toggle {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ja-navy);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease);
}
.nav-drawer__toggle .ic { width: 0.875rem; height: 0.875rem; }
.nav-drawer__item.is-open > .nav-drawer__toggle { transform: rotate(180deg); }

/* The chevron on the link itself would collide with the toggle. */
.nav-drawer__item:has(> .nav-drawer__toggle) > .nav-drawer__link .ic--chev { display: none; }

.nav-drawer__sub {
  display: none;
  padding: 0.25rem 0 0.75rem;
  padding-inline-start: 0.75rem;
  border-inline-start: 2px solid var(--ja-line-soft);
  margin-inline-start: 0.25rem;
}
.nav-drawer__item.is-open > .nav-drawer__sub { display: block; }

.nav-drawer__group {
  display: block;
  margin: 0.625rem 0 0.25rem;
  font-family: var(--font-head);
  font-size: var(--fs-body-sm);
  font-weight: 700;
  color: var(--ja-gold-ink);
}
.nav-drawer__sublink {
  display: block;
  padding: 0.5rem 0.5rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-body-sm);
  color: var(--ja-text);
  text-decoration: none;
}
.nav-drawer__sublink:hover { background: rgba(15, 25, 33, 0.05); color: var(--ja-navy); }

@media (prefers-reduced-motion: reduce) {
  .nav-caret, .nav-drawer__toggle, .mega__tab, .mega__link { transition: none; }
}


/* ==========================================================================
   27. SEARCH WIDGET PICKERS  (date range + passengers)

   These replace the native <input type="date"> pair and the adults-only
   <select>. Positioned by main.js against the field that opened them, so one
   date panel serves both the Departure and Return fields and it lands
   correctly in RTL without a mirrored copy of the rules.
   ========================================================================== */

.search-widget { position: relative; }

.field--pick { cursor: pointer; }
.field--pick.is-focus { box-shadow: inset 0 0 0 2px var(--ja-gold); }
.field--pick:focus-visible { outline: 2px solid var(--ja-navy); outline-offset: 2px; }
/* One Way has no return leg, so the field is not there at all. */
.field.is-hidden { display: none !important; }

.dp, .pax-pop {
  position: absolute;
  z-index: 40;
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  box-shadow: 0 1.5rem 3rem rgba(15, 25, 33, 0.18);
  padding: 1rem;
}
.dp[hidden], .pax-pop[hidden] { display: none; }

/* --- Date picker --------------------------------------------------------- */
.dp { width: min(42rem, calc(100vw - 2rem)); }

.dp__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}
.dp__io {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--ja-line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.dp__io.is-active { border-color: var(--ja-gold); box-shadow: inset 0 -2px 0 var(--ja-gold); }
.dp__io.is-off { opacity: 0.4; pointer-events: none; }
.dp__io-label { display: block; font-size: var(--fs-body-sm); color: var(--ja-muted); }
.dp__io-value {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ja-navy);
}

.dp__cal { position: relative; }
.dp__months { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.dp__arrow {
  position: absolute;
  inset-block-start: -0.125rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--ja-line);
  border-radius: 50%;
  background: var(--ja-white);
  color: var(--ja-navy);
  cursor: pointer;
  z-index: 1;
}
.dp__arrow--prev { inset-inline-start: 0; }
.dp__arrow--next { inset-inline-end: 0; }
.dp__arrow .ic { width: 0.75rem; height: 0.75rem; }
.dp__arrow:disabled { opacity: 0.3; cursor: default; }

.dp__mtitle {
  text-align: center;
  font-family: var(--font-head);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ja-navy);
  margin-bottom: 0.5rem;
}
.dp__dow, .dp__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.dp__dow { margin-bottom: 0.25rem; }
.dp__dow span { text-align: center; font-size: 0.75rem; color: var(--ja-muted); }
.dp__grid { row-gap: 0.125rem; }

.dp__day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--ja-navy);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.dp__day:hover:not(:disabled) { background: var(--ja-gold-100); }
.dp__day:disabled { color: var(--ja-muted); opacity: 0.4; cursor: default; }
.dp__day.is-today { box-shadow: inset 0 0 0 1px var(--ja-gold-300); }
/* The nights between the two chosen dates read as one band. */
.dp__day.is-between { background: var(--ja-gold-100); border-radius: 0; }
.dp__day.is-start, .dp__day.is-end { background: var(--ja-gold); color: #000; font-weight: 700; }

.dp__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ja-line-soft);
}
.dp__clear {
  border: 0;
  background: transparent;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ja-navy);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
}
.dp__clear:hover { background: rgba(15, 25, 33, 0.05); }
.dp__done, .pax-pop__done {
  border: 0;
  background: var(--ja-gold);
  color: #000;
  font-family: var(--font-head);
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  min-height: 2.5rem;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.dp__done:hover, .pax-pop__done:hover { background: var(--ja-gold-600); }

/* --- Passenger picker ---------------------------------------------------- */
.pax-pop { width: min(21rem, calc(100vw - 2rem)); }

.pax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 0;
}
.pax-row + .pax-row { border-top: 1px solid var(--ja-line-soft); }
.pax-row__title {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ja-navy);
}
.pax-row__sub { display: block; font-size: var(--fs-body-sm); color: var(--ja-muted); }

.pax-step { display: inline-flex; align-items: center; gap: 0.75rem; }
.pax-step__btn {
  width: 2.125rem;
  height: 2.125rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--ja-gold);
  border-radius: 50%;
  background: var(--ja-white);
  color: var(--ja-gold-ink);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.pax-step__btn:hover:not(:disabled) { background: var(--ja-gold-100); }
.pax-step__btn:disabled { opacity: 0.3; cursor: default; }
.pax-step__btn .ic { width: 0.75rem; height: 0.75rem; }
.pax-step__val {
  min-width: 1.5rem;
  text-align: center;
  font-family: var(--font-head);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ja-navy);
}
.pax-pop__note { margin: 0.5rem 0 0; font-size: var(--fs-body-sm); color: var(--ja-gold-ink); }
.pax-pop__foot { display: flex; justify-content: flex-end; margin-top: 0.75rem; }

/* --- Narrow screens: one month is enough -------------------------------- */
@media (max-width: 768px) {
  .dp { width: min(21rem, calc(100vw - 2rem)); }
  .dp__months { grid-template-columns: 1fr; }
  .dp__month + .dp__month { display: none; }
  .dp__head { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .dp__io, .dp__day, .pax-step__btn { transition: none; }
}

/* ---- 27.1 Lowest-fare line on the day cells ----------------------------
   The figure comes from a server-side cache, never a live call, so it is
   indicative - hence the footnote. A day with no known fare simply shows no
   number: saying "no flight" from a cached figure would be a claim the cache
   is not entitled to make. */
.dp--priced { width: min(46rem, calc(100vw - 2rem)); }

.dp__day {
  aspect-ratio: auto;
  grid-template-rows: auto auto;
  row-gap: 0.0625rem;
  border-radius: var(--r-sm);
  padding: 0.3125rem 0.125rem;
  min-height: 2.25rem;
}
.dp--priced .dp__day { min-height: 3rem; }

.dp__num { font-size: var(--fs-body-sm); line-height: 1.1; }
.dp__price {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  line-height: 1.1;
  color: var(--ja-gold-ink);
  min-height: 0.75rem;      /* holds the row height whether or not a fare is known */
}
.dp__day:disabled .dp__price { color: var(--ja-muted); }
.dp__day.is-start .dp__price,
.dp__day.is-end .dp__price { color: #000; }

/* Best price in the two months on screen. */
.dp__day.is-cheapest:not(.is-start):not(.is-end) { box-shadow: inset 0 0 0 1px var(--ja-gold); }
.dp__day.is-cheapest .dp__price { font-weight: 700; color: var(--ja-gold-ink); }

.dp__note {
  margin: 0.75rem 0 0;
  font-size: var(--fs-body-sm);
  color: var(--ja-muted);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .dp--priced { width: min(21rem, calc(100vw - 2rem)); }
}

/* ==========================================================================
   My Account
   --------------------------------------------------------------------------
   The profile used to be two narrow cards inside the 40rem auth column, which
   is the right width for a sign-in form and the wrong width for a page that
   also has to carry trips. It gets the full container and a sidebar instead.

   Written with logical properties throughout, so the same rules serve both
   stylesheets and the Arabic side needs no mirrored copy.
   ========================================================================== */

/* ---- identity band -------------------------------------------------- */
.acct-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4, 1.25rem);
  padding: clamp(1.25rem, 1rem + 1.4vw, 2rem);
  margin-bottom: 1.25rem;
  background: var(--ja-navy);
  border-radius: var(--r-xl);
}
.acct-head__who { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.acct-head__text { min-width: 0; }

.acct-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: var(--ja-gold);
  color: var(--ja-navy);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.acct-head__name {
  margin: 0;
  font-family: var(--font-head);
  font-size: var(--fs-h4);
  color: var(--ja-white);
  line-height: 1.25;
}
.acct-head__mail {
  margin: .15rem 0 0;
  font-size: .9375rem;
  color: rgba(255, 255, 255, .62);
  overflow-wrap: anywhere;
}

.acct-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.acct-badge {
  padding: .2rem .6rem;
  border-radius: var(--r-pill, 999px);
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .78);
  font-size: .75rem;
  white-space: nowrap;
}
/* Semantic, and deliberately not the brand gold: "verified" is a state, not an action. */
.acct-badge--ok   { background: rgba(78, 173, 128, .2); color: #7FD4A6; }
.acct-badge--warn { background: rgba(224, 168, 74, .2); color: #F0C378; }

.acct-stats { display: flex; gap: .5rem; }
.acct-stat {
  min-width: 5.5rem;
  padding: .7rem 1rem;
  text-align: center;
  background: rgba(255, 255, 255, .07);
  border-radius: var(--r-lg, .75rem);
}
.acct-stat__n {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--ja-gold);
  font-variant-numeric: tabular-nums;
}
.acct-stat__k {
  display: block;
  margin-top: .15rem;
  font-size: .75rem;
  color: rgba(255, 255, 255, .6);
}

/* ---- a single prompt, shown only while something is missing ---------- */
.acct-nudge {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 1.1rem;
  margin-bottom: 1.25rem;
  background: var(--ja-gold-tint, #FBF3E7);
  border: 1px solid var(--ja-gold-200, #EAD6B4);
  border-radius: var(--r-lg, .75rem);
  font-size: .9375rem;
  color: var(--ja-gold-ink, #7A5518);
}
.acct-nudge__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--ja-gold);
  color: var(--ja-navy);
  font-weight: 700;
  font-size: .875rem;
}

/* ---- two columns ----------------------------------------------------- */
.acct-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(1rem, .7rem + 1.4vw, 1.75rem);
  align-items: start;
}
@media (max-width: 900px) {
  .acct-layout { grid-template-columns: minmax(0, 1fr); }
  .acct-stats { width: 100%; }
  .acct-stat { flex: 1; }
}

.acct-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.acct-link { font-size: .875rem; font-weight: 600; color: var(--ja-gold-700, #A8762B); }

.acct-links { margin: 0; padding: 0; list-style: none; display: grid; gap: .15rem; }
.acct-links a {
  display: block;
  padding: .55rem .2rem;
  color: var(--ja-navy);
  font-weight: 500;
  border-bottom: 1px solid var(--ja-line);
}
.acct-links li:last-child a { border-bottom: 0; }
.acct-links a:hover { color: var(--ja-gold-700, #A8762B); }

/* ---- trips ------------------------------------------------------------ */
.acct-group {
  margin: 1.25rem 0 .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ja-muted);
}
.acct-group:first-of-type { margin-top: 0; }

/* One row per trip: route, dates, reference, money. The columns hold their
   places down the list so the eye can run straight down any one of them. */
.acct-trip {
  display: grid;
  grid-template-columns: minmax(7.5rem, auto) minmax(0, 1fr) minmax(0, auto) auto;
  align-items: center;
  gap: .4rem 1rem;
  padding: .9rem 1rem;
  margin-bottom: .5rem;
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg, .75rem);
  background: var(--ja-white);
}
.acct-trip--next { border-inline-start: 3px solid var(--ja-gold); }
.acct-trip--past { background: var(--ja-cream); }

.acct-trip__route {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  color: var(--ja-navy);
}
.acct-trip__code { font-weight: 700; }
.acct-trip__arrow { color: var(--ja-gold); }

.acct-trip__when { display: flex; flex-direction: column; font-size: .875rem; color: var(--ja-text); }
.acct-trip__back { color: var(--ja-muted); font-size: .8125rem; }

.acct-trip__meta { display: flex; flex-direction: column; gap: .15rem; }
.acct-trip__pax { font-size: .8125rem; color: var(--ja-muted); }

.acct-trip__tail {
  display: flex;
  align-items: center;
  gap: .6rem;
  justify-self: end;
}
.acct-trip__amt {
  font-weight: 700;
  color: var(--ja-navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The reference is the one thing a passenger reads back down a phone line, so
   it is monospaced and spaced out — a cramped locator is a misread locator. */
.acct-ref {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ja-navy);
}

.acct-countdown {
  padding: .15rem .55rem;
  border-radius: var(--r-pill, 999px);
  background: var(--ja-gold-tint, #FBF3E7);
  color: var(--ja-gold-ink, #7A5518);
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .acct-trip { grid-template-columns: minmax(0, 1fr) auto; }
  .acct-trip__tail { grid-column: 2; grid-row: 1; }
  .acct-trip__when, .acct-trip__meta { grid-column: 1 / -1; }
}

.acct-empty {
  padding: 1.5rem 0 .5rem;
  text-align: center;
  color: var(--ja-text);
}

/* ==========================================================================
   Account menu in the header
   --------------------------------------------------------------------------
   The name in the header used to be a plain link to the profile, which left
   bookings and sign-out reachable only from inside a page nobody had a reason
   to open. Logical properties throughout, so Arabic mirrors from these rules.
   ========================================================================== */
.acct-menu { position: relative; }
.acct-menu__caret { width: .7rem; height: .7rem; opacity: .6; }

.acct-menu__panel {
  position: absolute;
  inset-block-start: calc(100% + .5rem);
  inset-inline-end: 0;
  z-index: 60;
  min-width: 15rem;
  padding: .4rem;
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg, .75rem);
  box-shadow: var(--sh-lg, 0 18px 40px -20px rgba(12, 26, 53, .45));
}
.acct-menu__head {
  display: grid;
  gap: .1rem;
  padding: .6rem .7rem .7rem;
  margin-bottom: .3rem;
  border-bottom: 1px solid var(--ja-line);
}
.acct-menu__name { font-weight: 700; color: var(--ja-navy); }
.acct-menu__mail { font-size: .8125rem; color: var(--ja-muted); overflow-wrap: anywhere; }

.acct-menu__item {
  display: block;
  width: 100%;
  padding: .6rem .7rem;
  border: 0;
  background: none;
  border-radius: var(--r-sm, .35rem);
  color: var(--ja-navy);
  font: inherit;
  font-weight: 500;
  text-align: start;
  cursor: pointer;
}
.acct-menu__item:hover { background: var(--ja-cream); color: var(--ja-gold-700, #A8762B); }
.acct-menu__item--out { color: var(--ja-red, #B03A3A); margin-top: .2rem; border-top: 1px solid var(--ja-line); border-radius: 0; }

/* ==========================================================================
   My bookings — the list
   Each row is a summary: enough to recognise a trip and open it. The itinerary,
   the passengers and the money live on the detail page, where there is room.
   ========================================================================== */
.bkl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: .65rem;
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg, .75rem);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bkl-row:hover { border-color: var(--ja-gold); box-shadow: var(--sh-sm); color: inherit; }

.bkl-row__main {
  display: grid;
  grid-template-columns: minmax(8rem, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: .3rem 1.25rem;
  flex: 1 1 22rem;
  min-width: 0;
}
.bkl-row__route { display: flex; align-items: center; gap: .5rem; }
.bkl-code {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ja-navy);
}
.bkl-code--none { font-size: .9375rem; font-weight: 500; color: var(--ja-muted); }
.bkl-arrow { color: var(--ja-gold); }

.bkl-row__when { display: flex; flex-direction: column; font-size: .875rem; color: var(--ja-text); }
.bkl-row__time { color: var(--ja-muted); font-size: .8125rem; }

.bkl-row__ref { display: flex; flex-direction: column; gap: .1rem; }
.bkl-row__pax { font-size: .8125rem; color: var(--ja-muted); }

.bkl-ref, .bkd-ref {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ja-navy);
}
.bkl-ref { font-size: .9375rem; }

.bkl-row__tail { display: flex; align-items: center; gap: .75rem; }
.bkl-row__go { font-size: .875rem; font-weight: 600; color: var(--ja-gold-700, #A8762B); white-space: nowrap; }

@media (max-width: 720px) {
  .bkl-row__main { grid-template-columns: minmax(0, 1fr); }
}

/* Status chips, shared by the list and the detail page. Semantic colours, kept
   away from the brand gold: a state is not an action. */
.bkd-chip {
  padding: .22rem .65rem;
  border-radius: var(--r-pill, 999px);
  background: var(--ja-cream);
  border: 1px solid var(--ja-line);
  font-size: .75rem;
  font-weight: 600;
  color: var(--ja-text);
  white-space: nowrap;
}
.bkd-chip--ok   { background: #E8F5EE; border-color: #BFE3CE; color: #1B6B4A; }
.bkd-chip--hold { background: #FBF3E7; border-color: #EAD6B4; color: #7A5518; }
.bkd-chip--warn { background: #FBECEE; border-color: #EFC9CE; color: #9C2531; }

/* ==========================================================================
   My bookings — one booking in full
   ========================================================================== */
.bkd-back { margin-bottom: 1rem; font-size: .9375rem; }
.bkd-back a { color: var(--ja-gold-700, #A8762B); font-weight: 600; }

.bkd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, .9rem + 1vw, 1.6rem);
  margin-bottom: 1.25rem;
  background: var(--ja-navy);
  border-radius: var(--r-xl);
}
.bkd-head__label {
  margin: 0;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
/* The one thing a passenger reads out at a desk, so it is the largest thing here. */
.bkd-ref {
  margin: .15rem 0 0;
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: .18em;
  color: var(--ja-gold);
}
.bkd-head__route { margin: .35rem 0 0; color: rgba(255, 255, 255, .8); font-weight: 600; }
.bkd-head__date { color: rgba(255, 255, 255, .55); font-weight: 400; }
.bkd-head__state { display: flex; flex-wrap: wrap; gap: .4rem; }
.bkd-head__state .bkd-chip { background: rgba(255, 255, 255, .1); border-color: transparent; color: rgba(255, 255, 255, .8); }
.bkd-head__state .bkd-chip--ok   { background: rgba(78, 173, 128, .2); color: #7FD4A6; }
.bkd-head__state .bkd-chip--hold { background: rgba(224, 168, 74, .2); color: #F0C378; }
.bkd-head__state .bkd-chip--warn { background: rgba(200, 80, 90, .22); color: #F0A0A8; }

.bkd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(1rem, .7rem + 1.4vw, 1.75rem);
  align-items: start;
}
@media (max-width: 900px) { .bkd-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---- one leg ---------------------------------------------------------- */
.bkd-leg {
  padding: 1rem 1.1rem;
  margin-bottom: .75rem;
  border: 1px solid var(--ja-line);
  border-inline-start: 3px solid var(--ja-gold);
  border-radius: var(--r-lg, .75rem);
}
.bkd-leg:last-child { margin-bottom: 0; }

.bkd-leg__flight { display: flex; align-items: baseline; gap: .7rem; margin-bottom: .8rem; }
.bkd-leg__no {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ja-navy);
}
.bkd-leg__cabin { font-size: .8125rem; color: var(--ja-muted); }

.bkd-leg__times { display: flex; align-items: center; gap: 1rem; }
.bkd-leg__end { display: flex; flex-direction: column; min-width: 4rem; }
.bkd-leg__end--to { align-items: flex-end; text-align: end; }
.bkd-leg__time {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ja-navy);
}
.bkd-leg__code { font-size: .8125rem; color: var(--ja-muted); letter-spacing: .04em; }

.bkd-leg__line { flex: 1; display: flex; align-items: center; gap: .4rem; color: var(--ja-gold); }
.bkd-leg__line span { flex: 1; height: 1px; background: var(--ja-line); }
.bkd-leg__line .ic { width: 1rem; height: 1rem; }

.bkd-leg__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  margin-top: .8rem;
  font-size: .8125rem;
  color: var(--ja-muted);
}
.bkd-leg__status { font-weight: 600; }

/* ---- passengers -------------------------------------------------------- */
.bkd-pax { display: grid; gap: .1rem; }
.bkd-pax__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--ja-line);
}
.bkd-pax__row:last-child { border-bottom: 0; }
.bkd-pax__n {
  display: grid;
  place-items: center;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: var(--ja-cream);
  font-size: .75rem;
  font-weight: 700;
  color: var(--ja-muted);
}
.bkd-pax__name { flex: 1; font-weight: 600; color: var(--ja-navy); min-width: 8rem; }
.bkd-pax__type { font-size: .8125rem; color: var(--ja-muted); }
.bkd-pax__tkt {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .8125rem;
  color: var(--ja-text);
}

.bkd-ssr, .bkd-contacts { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: .3rem; font-size: .875rem; color: var(--ja-text); }

/* ---- money ------------------------------------------------------------- */
.bkd-money { display: grid; gap: .1rem; }
.bkd-money__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  font-size: .9375rem;
  color: var(--ja-text);
  font-variant-numeric: tabular-nums;
}
.bkd-money__row--total {
  margin-top: .35rem;
  padding-top: .7rem;
  border-top: 1px solid var(--ja-line);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ja-navy);
}
.bkd-money__row--due { color: var(--ja-red, #B03A3A); font-weight: 600; }
.bkd-card { margin: .9rem 0 0; font-size: .875rem; color: var(--ja-muted); }

.bkd-none { color: var(--ja-muted); font-size: .9375rem; line-height: 1.7; }

.bkd-remove { margin-top: 1rem; text-align: center; }
.bkd-remove__btn {
  border: 0;
  background: none;
  padding: .3rem;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ja-red, #B03A3A);
  cursor: pointer;
  text-decoration: underline;
}
.bkd-remove__note { display: block; font-size: .75rem; color: var(--ja-muted); }


/* ==========================================================================
   SHARE ROW
   Used under an offer, a page and a booking confirmation. The footer's own
   social buttons sit on the dark band and are white-on-transparent; these sit
   on the page, so they are drawn for a light surface rather than inheriting a
   colour that vanishes on it.
   ========================================================================== */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
.share__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ja-ink-soft, #5B6770);
}
.share__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3, 0.5rem); }
.share__btn {
  width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center;
  border: 1px solid rgba(15, 25, 33, 0.14);
  border-radius: 50%;
  background: #fff;
  color: var(--ja-navy, #0f1921);
  cursor: pointer;
  padding: 0;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.share__btn:hover,
.share__btn:focus-visible {
  background: var(--ja-gold, #b79a69);
  border-color: var(--ja-gold, #b79a69);
  color: #000;
  transform: translateY(-2px);
}
.share__btn .ic { width: 1.05rem; height: 1.05rem; }
.share__copied { font-size: 0.8125rem; color: var(--ja-green, #0f9761); font-weight: 600; }
.share--compact .share__btn { width: 1.9rem; height: 1.9rem; }
.share--compact .share__btn .ic { width: 0.9rem; height: 0.9rem; }

/* ==========================================================================
   SOCIAL SIGN-IN
   A row of provider buttons under the password form. Drawn as outline buttons
   rather than each provider's own brand colour: a wall of red, blue and navy
   competes with the airline's own call to action, which is the button above.
   ========================================================================== */
.social-signin { margin-top: var(--sp-5, 1rem); }
.social-signin__divider {
  display: flex; align-items: center; gap: var(--sp-4, 0.75rem);
  margin: var(--sp-5, 1rem) 0;
  color: var(--ja-ink-soft, #5B6770);
  font-size: 0.8125rem;
}
.social-signin__divider::before,
.social-signin__divider::after {
  content: ""; flex: 1 1 auto; height: 1px;
  background: rgba(15, 25, 33, 0.12);
}
.social-signin__btn { display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.social-signin__btn + .social-signin__btn { margin-top: var(--sp-3, 0.5rem); }
.social-signin__btn .ic { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }

/* ---- Sharing a fare ------------------------------------------------------
   Sits between the results and the step navigation, quiet enough that it does
   not compete with the Select buttons — the passenger's own booking is the
   point of the screen, and passing the fare on is the afterthought it should
   look like. */
.trip-share {
  margin: var(--sp-6) 0 var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-md);
  background: var(--ja-cream);
}
.trip-share__lead {
  margin: 0 0 var(--sp-3);
  font-size: 0.875rem;
  color: var(--ja-grey-500);
}
.trip-share .share { gap: var(--sp-3); }

/* ---- Reviews -------------------------------------------------------------
   The score and its breakdown sit beside the reviews rather than above them,
   because the breakdown is what people read first and a column keeps it in
   view while they scroll the reviews themselves. One column below 60rem. */
.reviews-layout {
  display: grid;
  grid-template-columns: 19rem minmax(0, 1fr);
  gap: var(--sp-8);
  align-items: start;
}
@media (max-width: 60rem) {
  .reviews-layout { grid-template-columns: minmax(0, 1fr); }
}

.reviews-aside { display: grid; gap: var(--sp-5); position: sticky; top: var(--sp-6); }
@media (max-width: 60rem) { .reviews-aside { position: static; } }

.rating-card {
  padding: var(--sp-6);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  background: var(--ja-white);
  text-align: center;
}
.rating-card__score {
  font-family: var(--font-head);
  font-size: 3rem;
  line-height: 1;
  color: var(--ja-navy);
  font-variant-numeric: tabular-nums;
}
.rating-card__stars { color: var(--ja-gold); font-size: 1.25rem; letter-spacing: 0.1em; }
.rating-card__count { margin: var(--sp-2) 0 0; font-size: var(--fs-body-sm); color: var(--ja-muted); }
.rating-card__empty { margin: 0; color: var(--ja-muted); font-size: var(--fs-body-sm); }
.rating-card__title {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-h5);
  color: var(--ja-navy);
  text-align: start;
}
.rating-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.rating-card__note {
  margin: var(--sp-4) 0 0;
  font-size: var(--fs-eyebrow);
  color: var(--ja-muted);
  text-align: start;
}

.rating-bars { display: grid; gap: var(--sp-2); margin-top: var(--sp-5); }
.rating-bars__row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  color: inherit;
  font-size: var(--fs-body-sm);
}
.rating-bars__row:hover .rating-bars__fill { background: var(--ja-gold-600); }
.rating-bars__label { color: var(--ja-muted); white-space: nowrap; }
.rating-bars__track {
  height: 0.4375rem;
  border-radius: var(--r-pill);
  background: var(--ja-line-soft);
  overflow: hidden;
}
.rating-bars__fill { display: block; height: 100%; background: var(--ja-gold); }
.rating-bars__count { color: var(--ja-muted); text-align: end; font-variant-numeric: tabular-nums; }

.external-rating { display: grid; gap: 0.15rem; text-align: start; }
.external-rating__source { font-weight: 600; color: var(--ja-navy); }
.external-rating__score { font-family: var(--font-head); color: var(--ja-navy); }
.external-rating__of { color: var(--ja-muted); font-size: var(--fs-body-sm); }
.external-rating__count,
.external-rating__checked { font-size: var(--fs-eyebrow); color: var(--ja-muted); }
.external-rating__link { font-size: var(--fs-eyebrow); }

.reviews-main { display: grid; gap: var(--sp-5); }

.review-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  background: var(--ja-cream);
}
.review-prompt p { margin: 0; }

.review-form {
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  background: var(--ja-white);
}
.review-form__toggle {
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  font-weight: 600;
  color: var(--ja-navy);
}
.review-form__body { padding: 0 var(--sp-5) var(--sp-5); display: grid; gap: var(--sp-4); }
.review-form__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
@media (max-width: 40rem) { .review-form__pair { grid-template-columns: minmax(0, 1fr); } }

/* The picker is laid out in reverse so that hovering or checking a star can
   light the ones before it through the sibling selector, which only ever
   looks forwards. row-reverse puts five on the right again in an LTR page. */
.star-picker {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: var(--sp-1);
}
.star-picker legend { float: inline-start; width: 100%; margin-bottom: var(--sp-2); }
.star-picker__input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
}
.star-picker__star {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ja-line);
  cursor: pointer;
  transition: color 120ms ease;
}
.star-picker__input:checked ~ .star-picker__star,
.star-picker__star:hover,
.star-picker__star:hover ~ .star-picker__star { color: var(--ja-gold); }
/* Keyboard users get the same outline every other control has. */
.star-picker__input:focus-visible + .star-picker__star {
  outline: 2px solid var(--ja-gold-700);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.mine-card {
  padding: var(--sp-5);
  border: 1px dashed var(--ja-line);
  border-radius: var(--r-lg);
}
.mine-card__title { margin: 0 0 var(--sp-3); font-size: var(--fs-h5); color: var(--ja-navy); }
.mine-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.mine-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-body-sm);
}
.mine-card__when { color: var(--ja-muted); }
.mine-card__state { margin-inline-start: auto; font-size: var(--fs-eyebrow); }
.mine-card__state--published { color: #0F6B4E; }
.mine-card__state--pending { color: var(--ja-gold-700); }
.mine-card__state--rejected,
.mine-card__state--withdrawn { color: var(--ja-muted); }

.reviews-filter { margin: 0; font-size: var(--fs-body-sm); color: var(--ja-muted); }
.reviews-empty { margin: 0; color: var(--ja-muted); }

.review {
  padding: var(--sp-5);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  background: var(--ja-white);
}
.review__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.stars { color: var(--ja-gold); letter-spacing: 0.08em; }
.review__author { font-weight: 600; color: var(--ja-navy); }
.review__when { margin-inline-start: auto; font-size: var(--fs-eyebrow); color: var(--ja-muted); }
.review__badge {
  font-size: var(--fs-eyebrow);
  padding: 0.15rem var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--ja-gold-100);
  color: var(--ja-gold-ink);
}
.review__badge--external { background: var(--ja-line-soft); color: var(--ja-grey-600); }
.review__title { margin: 0 0 var(--sp-2); font-size: var(--fs-h4); color: var(--ja-navy); }
.review__body { margin: 0; white-space: pre-wrap; }
.review__route {
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-eyebrow);
  color: var(--ja-muted);
  letter-spacing: 0.06em;
}

/* The airline's answer, set apart so it is never mistaken for the passenger's
   own words — the one thing a review wall must never blur. */
.review__reply {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-inline-start: 3px solid var(--ja-gold);
  border-radius: var(--r-sm);
  background: var(--ja-cream);
}
.review__reply p { margin: var(--sp-1) 0 0; font-size: var(--fs-body-sm); }
.review__reply-who { font-weight: 600; color: var(--ja-navy); font-size: var(--fs-body-sm); }

.reviews-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  padding-top: var(--sp-2);
}
.reviews-pager__state { color: var(--ja-muted); font-variant-numeric: tabular-nums; }

/* ---- What passengers said (home) ----------------------------------------
   Three at most, so a fixed three-column grid that collapses rather than an
   auto-fit one that would leave a single card stretched across the row. */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
@media (max-width: 62rem) { .voices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .voices-grid { grid-template-columns: minmax(0, 1fr); } }

.voice {
  margin: 0;
  padding: var(--sp-6);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  background: var(--ja-white);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.voice__stars { color: var(--ja-gold); letter-spacing: 0.1em; font-size: 1.05rem; }
/* The stars not given, drawn in the same glyph so the row keeps its width. */
.voice__stars-rest { color: var(--ja-line); }
.voice__title {
  margin: 0;
  font-size: var(--fs-h4);
  color: var(--ja-navy);
  text-wrap: balance;
}
.voice__body {
  margin: 0;
  color: var(--ja-text);
  line-height: var(--lh-base);
  /* Kept to four lines: the home page is a summary, and the full review is one
     tap away on the page this band links to. */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.voice__who {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--ja-line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}
.voice__name { font-weight: 700; color: var(--ja-navy); }
.voice__badge {
  font-size: var(--fs-eyebrow);
  padding: 0.15rem var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--ja-gold-100);
  color: var(--ja-gold-ink);
}
.voice__route {
  margin-inline-start: auto;
  font-size: var(--fs-eyebrow);
  color: var(--ja-muted);
  letter-spacing: 0.06em;
}

/* ---- Booking-type panels -------------------------------------------------
   The widget's four tabs now switch panels in place instead of navigating, so
   a passenger who came to check in keeps the search they had half-filled.

   Hidden with the `hidden` attribute rather than a class: with JavaScript
   unavailable the markup degrades to all four forms stacked and usable, rather
   than one visible and three unreachable. */
.search-panel[hidden] { display: none; }

/* The lookup panels are two fields and a button — the same shape as the flight
   search above them, so switching tabs does not resize the card under the
   passenger's cursor. */
.search-lookup__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ja-white);
}
@media (max-width: 40rem) {
  .search-lookup__fields { grid-template-columns: minmax(0, 1fr); }
  .search-lookup__field + .search-lookup__field {
    border-top: 1px solid var(--ja-line);
    border-inline-start: 0;
  }
}
.search-lookup__field { padding: var(--sp-4) var(--sp-5); }
.search-lookup__field + .search-lookup__field { border-inline-start: 1px solid var(--ja-line); }

.search-lookup__label {
  display: block;
  font-size: var(--fs-body-sm);
  color: var(--ja-muted);
  margin-bottom: 0.25rem;
}
.search-lookup__input {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  font-family: var(--font-head);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--ja-navy);
}
.search-lookup__input::placeholder { color: var(--ja-grey-300); font-weight: 600; }
.search-lookup__input:focus { outline: 0; }
/* The field is the whole cell, so the focus ring belongs to the cell. */
.search-lookup__field:focus-within {
  outline: 2px solid var(--ja-gold);
  outline-offset: -2px;
  border-radius: var(--r-md);
}

/* ---- Online check-in -----------------------------------------------------
   The lookup form stays on screen beside the result, because a passenger who
   mistypes a reference should not lose the page they were on — and because a
   family often checks in one booking after another. */
.checkin-layout {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: start;
}
@media (max-width: 62rem) {
  .checkin-layout { grid-template-columns: minmax(0, 1fr); }
}

.checkin-form { position: sticky; top: var(--sp-6); }
@media (max-width: 62rem) {
  .checkin-form { position: static; }
}

/* One card per leg. A booking with a return is two of these, and each one is
   open or closed on its own — the outbound can be checked in while the inbound
   is still two weeks away. */
.checkin-leg {
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  background: var(--ja-white);
  padding: var(--sp-5);
  margin-bottom: var(--gutter);
}
.checkin-leg:last-child { margin-bottom: 0; }

.checkin-leg__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--ja-line-soft, #eceff3);
}
.checkin-leg__route {
  font-family: var(--font-head);
  font-size: var(--fs-h5);
  font-weight: 700;
  color: var(--ja-navy);
}
.checkin-leg__flight {
  margin-inline-start: var(--sp-3);
  font-size: var(--fs-body-sm);
  font-weight: 700;
  color: var(--ja-gold-700, #9a7c47);
  letter-spacing: 0.04em;
}
.checkin-leg__when {
  font-size: var(--fs-body-sm);
  color: var(--ja-muted);
  font-variant-numeric: tabular-nums;
}

/* Why this leg cannot be checked in. Said once on the leg rather than repeated
   against every passenger on it. */
.checkin-leg__closed,
.checkin-leg__note {
  margin: var(--sp-4) 0 0;
  font-size: var(--fs-body-sm);
  color: var(--ja-muted);
}
.checkin-leg__closed { color: var(--ja-gold-700, #9a7c47); font-weight: 600; }

.checkin-pax { list-style: none; margin: var(--sp-4) 0 0; padding: 0; }
.checkin-pax__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--ja-line-soft, #eceff3);
}
.checkin-pax__row:first-child { border-top: 0; }

.checkin-pax__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  color: var(--ja-navy);
}
.checkin-pax__kind,
.checkin-pax__seat {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
}
.checkin-pax__kind { background: var(--ja-grey-50, #f6f7f9); color: var(--ja-muted); }
.checkin-pax__seat { background: var(--ja-navy); color: var(--ja-white); }
.checkin-pax__note { font-size: var(--fs-body-sm); color: var(--ja-muted); }

/* Nothing searched for yet. */
.checkin-empty {
  border: 1px dashed var(--ja-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  text-align: center;
  color: var(--ja-muted);
}

/* Said under the field rather than only in the error summary: the six-month passport rule
   surprises people, and reading it after a failed submit — with the form scrolled back to the
   top — is how it gets read three times. */
.form-field__hint {
  font-size: var(--fs-body-sm);
  color: var(--ja-muted);
  line-height: 1.45;
}
.form-field__error {
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--ja-red, #ce1126);
  line-height: 1.45;
}

/* The travel-agent banner in the booking funnel: which agency, which Videcom office. */
.bk-agent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: var(--sp-4) 0 0;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--ja-gold);
  border-radius: var(--r-md);
  background: var(--ja-gold-tint, #FFFDF8);
  color: var(--ja-navy);
  font-size: var(--fs-body-sm);
}
.bk-agent .ic { width: 1.125rem; height: 1.125rem; color: var(--ja-gold-700, #9a7c47); flex: 0 0 auto; }

/* ---- Agency bookings (travel-agent accounts) ----------------------------- */
.agy-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  margin-bottom: var(--sp-5);
}
@media (max-width: 48rem) { .agy-stats { grid-template-columns: minmax(0, 1fr); } }
.agy-stat {
  display: grid;
  gap: 0.25rem;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  background: var(--ja-white);
}
.agy-stat--warn { border-color: var(--ja-gold); background: var(--ja-gold-tint, #FFFDF8); }
.agy-stat__label { font-size: var(--fs-body-sm); color: var(--ja-muted); }
.agy-stat__value { font-family: var(--font-head); font-size: var(--fs-h4); font-weight: 700; color: var(--ja-navy); font-variant-numeric: tabular-nums; }
.agy-stat__note { font-size: var(--fs-body-sm); color: var(--ja-gold-700, #9a7c47); }

.agy-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.agy-filter .input-ja { flex: 1 1 16rem; min-width: 0; }
.agy-filter .select-ja { flex: 0 1 14rem; min-width: 0; }

.agy-count { font-size: var(--fs-body-sm); color: var(--ja-muted); margin-bottom: var(--sp-3); }
.agy-amount { font-weight: 700; color: var(--ja-navy); font-variant-numeric: tabular-nums; }
.agy-when { font-size: var(--fs-body-sm); color: var(--ja-muted); }

.agy-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  font-size: var(--fs-body-sm);
  color: var(--ja-muted);
}

/* The travel agent's payment step: what will be issued, on which office, for how much. */
.onacct { display: grid; gap: 0.625rem; margin: 0; }
.onacct > div { display: flex; justify-content: space-between; gap: var(--sp-4); border-bottom: 1px solid var(--ja-line-soft, #eceff3); padding-bottom: 0.5rem; }
.onacct > div:last-child { border-bottom: 0; padding-bottom: 0; }
.onacct dt { color: var(--ja-muted); font-weight: 500; }
.onacct dd { margin: 0; font-weight: 600; color: var(--ja-navy); text-align: end; }
.onacct__amount { font-family: var(--font-head); font-size: var(--fs-h5); font-variant-numeric: tabular-nums; }

/* Pay at office: a reservation, not a sale */
.reserved__status { display: inline-block; margin: 0 0 1rem; padding: 0.25rem 0.75rem; border-radius: 999px; background: #fdf1dc; color: #8a5a10; font-weight: 600; font-size: 0.875rem; }
.reserved__ref { font-family: var(--font-head); font-size: var(--fs-h4); letter-spacing: 0.08em; }

/* ---- Content blocks for CMS pages (content review, 6 Oct 2026) ----
   Authored inside page HTML from the admin, so they live under .prose and use logical
   properties: the same markup reads correctly in English and Arabic. */
.anchor-section > .prose { margin-top: 0.85rem; }
.prose .cb-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.25em; }
.prose .cb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .cb-card {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: var(--ja-white);
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.prose .cb-card > * + * { margin-top: 0.4rem; }
.prose .cb-card__icon {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  margin-bottom: 0.85rem;
  border-radius: var(--r-md);
  background: var(--ja-gold-100);
  color: var(--ja-gold-700);
}
.prose .cb-card__icon .ic { width: 1.3rem; height: 1.3rem; }
.prose .cb-card h3 { margin: 0; font-size: 1.0625rem; line-height: 1.4; }
.prose .cb-card p { margin-bottom: 0; font-size: var(--fs-body-sm); line-height: 1.6; }

.prose .cb-stats { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); padding: 0; list-style: none; }
.prose .cb-stats li { margin: 0; }
.prose .cb-stat { padding: 1.1rem 1rem; text-align: center; background: var(--ja-cream); border: 1px solid var(--ja-line-soft); border-radius: var(--r-lg); }
.prose .cb-stat__n { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 700; line-height: 1.1; color: var(--ja-navy); font-variant-numeric: tabular-nums; }
.prose .cb-stat__k { display: block; margin-top: 0.3rem; font-size: 0.875rem; color: var(--ja-text); }

.prose .cb-letter { display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); align-items: start; max-width: none; }
.prose .cb-letter__photo { margin: 0; }
.prose .cb-letter__photo img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.prose .cb-letter__body > * + * { margin-top: 1em; }
.prose .cb-letter__lead { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.55; color: var(--ja-navy); }
.prose .cb-sign { margin-top: 1.5em; padding-top: 0.9rem; border-top: 1px solid var(--ja-line); }
.prose .cb-sign strong { display: block; }

.prose .cb-note {
  display: grid; gap: 0.35rem 1rem; grid-template-columns: auto 1fr; align-items: start;
  padding: 1.25rem 1.35rem;
  background: var(--ja-cream);
  border: 1px solid var(--ja-line-soft);
  border-radius: var(--r-lg);
}
.prose .cb-note > * + * { margin-top: 0; }
.prose .cb-note .cb-card__icon { margin: 0; grid-row: span 2; }
.prose .cb-note h3 { margin: 0; }
.prose .cb-note p { margin: 0; }

@media (max-width: 767.98px) {
  .prose .cb-grid, .prose .cb-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .prose .cb-letter { grid-template-columns: minmax(0, 1fr); }
  .prose .cb-letter__photo { max-width: 13rem; }
}

/* Contact: the agents card spans the row and lists its offices in a grid. */
.contact-cards .info-card:has(.gsa-list) { grid-column: 1 / -1; }
.gsa-list { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.gsa-list li { padding: 1rem 1.1rem; background: var(--ja-cream); border: 1px solid var(--ja-line-soft); border-radius: var(--r-md); font-size: 0.9rem; line-height: 1.55; color: var(--ja-text); }
.gsa-list .gsa-list__country { display: block; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ja-gold-ink); }
.gsa-list .gsa-list__name { display: block; margin-bottom: 0.35rem; font-family: var(--font-head); font-weight: 600; color: var(--ja-navy); }
.info-card__list .info-card__cta { display: inline-flex; gap: 0.35rem; align-items: center; margin-top: 0.5rem; font-weight: 600; color: var(--ja-gold-ink); }
.contact-panel__intro h2 { margin: 0 0 0.6rem; }
.contact-panel__intro p { margin: 0 0 1rem; color: var(--ja-text); }
.contact-panel__intro ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; font-size: 0.95rem; }
.contact-panel__intro a { color: var(--ja-navy); text-decoration: none; }
.contact-panel__intro a:hover { color: var(--ja-gold-ink); }

/* The pinned "On this page" list stays above the boxes that scroll up under it, and scrolls itself when it is taller than the screen. */
.anchor-menu { z-index: 2; max-height: calc(100vh - var(--header-h) - 2rem); overflow-y: auto; }
/* A page laid out in cards uses the whole column; the 68ch measure is for running text. */
.prose:has(.cb-grid), .prose:has(.cb-stats), .prose:has(.cb-letter), .prose:has(.cb-note) { max-width: none; }
.prose .cb-letter__body { max-width: 68ch; }
.contact-panel__intro li { display: flex; align-items: center; gap: 0.6rem; }
.contact-panel__intro .ic { flex: none; width: 1.1rem; height: 1.1rem; color: var(--ja-gold-700); }
/* With the agents card spanning the row, auto-fit keeps its empty tracks; fix the columns instead. */
@media (min-width: 900px) { .contact-cards:has(.gsa-list) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Fare calendar: the border shows the price band (the airline's bands, 7 Oct 2026) —
   130 or less green, 131–160 gold, above 160 pink. A chosen day keeps its gold fill. */
.dp__day.fare-low:not(.is-start):not(.is-end)  { box-shadow: inset 0 0 0 1.5px var(--ja-green); }
.dp__day.fare-mid:not(.is-start):not(.is-end)  { box-shadow: inset 0 0 0 1.5px var(--ja-gold); }
.dp__day.fare-high:not(.is-start):not(.is-end) { box-shadow: inset 0 0 0 1.5px #FF99B3; }
/* The chosen day is filled in its band's colour too (the airline's request, 7 Oct 2026). */
.dp__day.is-start.fare-low, .dp__day.is-end.fare-low { background: var(--ja-green); color: #fff; }
.dp__day.is-start.fare-low .dp__price, .dp__day.is-end.fare-low .dp__price { color: #fff; }
.dp__day.is-start.fare-high, .dp__day.is-end.fare-high { background: #FF99B3; color: var(--ja-navy); }
.dp__day.is-start.fare-high .dp__price, .dp__day.is-end.fare-high .dp__price { color: var(--ja-navy); }
/* A day the airline does not fly: shown, crossed through, not pickable. */
.dp__day.is-noflight { color: var(--ja-muted); opacity: 0.45; cursor: not-allowed; }
.dp__day.is-noflight .dp__num { text-decoration: line-through; }

/* A fare line the airline sent without an icon keeps the same indent as the ones with one. */
.fare-list__gap { width: 1rem; flex: 0 0 auto; }
/* Hovering a priced day fills it in its band's colour, as choosing it does. */
.dp__day.fare-low:hover:not(:disabled)  { background: var(--ja-green); color: #fff; }
.dp__day.fare-low:hover:not(:disabled) .dp__price { color: #fff; }
.dp__day.fare-mid:hover:not(:disabled)  { background: var(--ja-gold); color: #000; }
.dp__day.fare-mid:hover:not(:disabled) .dp__price { color: #000; }
.dp__day.fare-high:hover:not(:disabled) { background: #FF99B3; color: var(--ja-navy); }
.dp__day.fare-high:hover:not(:disabled) .dp__price { color: var(--ja-navy); }

/* ---- Fare card header coloured by family (2026-10-08) --------------------
   As on flynas's fare cards: Business = "Premium" navy, Economy = "Value"
   teal, Promo = "Light" grey. The header bleeds to the card's edges; the
   lines below it are unchanged. */
.fare-opt__head {
  margin: calc(-1 * var(--sp-5)) calc(-1 * var(--sp-4)) 0;
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  border-radius: calc(var(--r-md) - 1px) calc(var(--r-md) - 1px) 0 0;
  color: #fff;
}
.fare-opt__head .fare-opt__name,
.fare-opt__head .fare-opt__price { color: #fff; }
.fare-opt__head .fare-opt__cabin,
.fare-opt__head .fare-opt__per { color: rgba(255, 255, 255, 0.88); }
.fare-opt__head .fare-opt__per { margin-bottom: 0; }
.fare-tone--premium { background: #34508a; }
.fare-tone--value   { background: #00b5ad; }
.fare-tone--light   { background: #b3b3b3; }
.fare-tone--value .fare-opt__price,
.fare-tone--light .fare-opt__price,
.fare-tone--value .fare-opt__name,
.fare-tone--light .fare-opt__name { text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12); }
.fare-opt:has(.fare-opt__head) { overflow: visible; }
.fare-opt:has(.fare-opt__head) .fare-list { border-top: 0; }
.fare-opt__flag { z-index: 2; }
.fare-opt:has(.fare-opt__head) .fare-opt__radio { z-index: 1; border-color: rgba(255, 255, 255, 0.9); }
.fare-opt.is-selected:has(.fare-opt__head) { box-shadow: 0 0 0 2px var(--ja-gold), var(--sh-sm); }

/* ---- Previous / next week around the date strip (2026-10-08) ------------ */
.date-nav {
  display: flex;
  align-items: stretch;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.date-nav > .date-strip { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.date-nav__btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.25rem;
  min-width: 4.5rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--ja-line);
  border-radius: var(--r-md);
  background: var(--ja-white);
  color: var(--ja-navy);
  text-decoration: none;
  margin-bottom: 0.25rem; /* lines up with the strip, which keeps room for its scrollbar */
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.date-nav__btn:hover { border-color: var(--ja-gold); background: var(--ja-gold-tint); color: var(--ja-navy); }
.date-nav__btn:focus-visible { outline: 2px solid var(--ja-gold); outline-offset: 2px; }
.date-nav__btn.is-disabled { opacity: 0.4; cursor: not-allowed; }
.date-nav__btn.is-disabled:hover { border-color: var(--ja-line); background: var(--ja-white); }
.date-nav__ic { width: 1.25rem; height: 1.25rem; }
.date-nav__txt { font-size: 0.75rem; font-weight: 600; }
[dir="rtl"] .date-nav__ic { transform: scaleX(-1); }
@media (max-width: 575.98px) {
  .date-nav { gap: var(--sp-2); }
  .date-nav__btn { min-width: 2.5rem; padding: 0.375rem; }
  .date-nav__txt { display: none; }
}
/* The days keep a readable width and the strip scrolls sideways when there is not room for
   seven - on a phone they used to be squeezed until they overlapped. */
.date-strip { grid-auto-columns: minmax(6.5rem, 1fr); }
.date-pill { min-width: 0; }
@media (max-width: 575.98px) {
  .date-strip { grid-auto-columns: minmax(5.5rem, 1fr); gap: var(--sp-2); }
  .date-pill { padding: 0.625rem 0.375rem; }
}

/* ---- Airport suggestions: one line each, matched letters in bold (2026-10-11) ---- */
.suggest-item { display: flex; align-items: baseline; gap: 0.5rem; min-width: 0; }
.suggest-item__city { flex: 0 0 auto; white-space: nowrap; }
.suggest-item__city b { font-weight: 800; color: var(--ja-gold-600, #b8873f); }
.suggest-item__meta { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- "Watch the film" readable on any photo (2026-10-11) ----------------
   It was white text on 14% white glass, which disappeared over the bright
   fuselage. Now a dark glass pill with white text, the same height as the
   "About Jordan Aviation" button beside it. */
.video-cue {
  background: rgba(12, 26, 53, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow: 0 6px 18px rgba(12, 26, 53, 0.25);
}
.video-cue:hover,
.video-cue:focus-visible { background: rgba(12, 26, 53, 0.88); border-color: var(--ja-gold); color: #fff; }
.video-cue:focus-visible { outline: 2px solid var(--ja-gold); outline-offset: 2px; }
/* ---- Flight-search loader: clean and on-brand, a preview of the results (2026-11-17) ----
   Client video note: the sky-and-clouds scene read as a cartoon. Now the page's own ground,
   our logo, the route as a dashed flight path with a small aircraft crossing it, the date and
   travellers, and three placeholder flight rows shimmering where the results will land - the
   screen the passenger is about to see. Nothing is downloaded but the logo. */
.fly-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483647; /* above the chat bubble (2147483646) and WhatsApp */
  overflow-y: auto;
  background: var(--ja-cream);
  color: var(--ja-navy);
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: calc(env(safe-area-inset-top, 0px) + 1.5rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 2rem);
}
.fly-loader.is-on { opacity: 1; }
.fly-loader[hidden] { display: none !important; }
.fly-loader__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.fly-loader__logo { display: block; height: 48px; width: auto; margin: 0 auto 0.5rem; }
.fly-loader__card {
  background: #fff;
  border: 1px solid var(--ja-line);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 10px 30px rgba(12, 26, 53, 0.06);
  text-align: center;
}
.fly-loader__route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; }
.fly-loader__end { display: flex; flex-direction: column; align-items: center; min-width: 4.5rem; }
.fly-loader__code { font-size: 2rem; font-weight: 800; letter-spacing: 0.04em; line-height: 1; color: var(--ja-navy); }
.fly-loader__city {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--ja-grey-500);
  max-width: 9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fly-loader__path { position: relative; height: 28px; }
.fly-loader__path::before {
  content: "";
  position: absolute;
  inset-inline: 6px;
  top: 50%;
  border-top: 2px dashed var(--ja-gold-300);
}
.fly-loader__path::after {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  inset-inline-end: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ja-gold);
}
.fly-loader__jet {
  position: absolute;
  top: calc(50% - 13px);
  inset-inline-start: 0;
  width: 26px;
  height: 26px;
  color: var(--ja-gold-700);
  animation: fly-jet 2.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.fly-loader__jet svg { display: block; width: 100%; height: 100%; transform: rotate(90deg); }
[dir="rtl"] .fly-loader__jet svg { transform: rotate(-90deg); }
@keyframes fly-jet {
  0% { inset-inline-start: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { inset-inline-start: calc(100% - 26px); opacity: 0; }
}
.fly-loader__meta { margin: 1rem 0 0; font-size: 0.875rem; color: var(--ja-grey-600); }
.fly-loader__meta:empty { display: none; }
.fly-loader__text { margin: 0.5rem 0 0; font-weight: 600; color: var(--ja-gold-ink); }
.fly-loader--noroute .fly-loader__route { display: none; }
.fly-loader--noroute .fly-loader__text { margin-top: 0; }

.fly-skel {
  background: #fff;
  border: 1px solid var(--ja-line);
  border-radius: 14px;
  padding: 1.125rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
}
.fly-skel__times { display: flex; align-items: center; gap: 0.75rem; }
.fly-skel__side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.fly-skel i {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #EEF0F3 25%, #F8F9FB 50%, #EEF0F3 75%);
  background-size: 200% 100%;
  animation: fly-shimmer 1.3s linear infinite;
}
.fly-skel .w-time { width: 3.25rem; height: 20px; }
.fly-skel .w-line { flex: 1; height: 2px; }
.fly-skel .w-sub { width: 7rem; margin-top: 0.625rem; }
.fly-skel .w-price { width: 5.5rem; height: 22px; }
.fly-skel .w-btn { width: 6.5rem; height: 34px; border-radius: 8px; }
@keyframes fly-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 575.98px) {
  .fly-loader__code { font-size: 1.5rem; }
  .fly-loader__card { padding: 1.25rem 1rem 1rem; }
  .fly-skel { grid-template-columns: 1fr; }
  .fly-skel__side { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .fly-loader__jet { animation: none; inset-inline-start: calc(50% - 13px); }
  .fly-skel i { animation: none; }
}

/* ---- About Jordan Aviation: full width, no side menu (2026-10-12) --------
   Theme "about" (Views/Shared/CategoryThemes/_About.cshtml). Designed blocks
   keep their own look across the full width; the chairman's letter sits in a
   card; plain-text sections become icon panels, two to a row, a long one
   across the row with its text in two columns. */
.about-page { display: grid; gap: clamp(2.5rem, 1.75rem + 2.5vw, 4rem); }
.about-page .anchor-section + .anchor-section { margin-top: 0; }
.about-page .prose { max-width: none; }
.about-title {
  position: relative;
  padding-bottom: 0.65rem;
  margin-bottom: 0.25rem;
}
.about-title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 3rem;
  height: 3px;
  border-radius: 3px;
  background: var(--ja-gold);
}

/* The chairman's letter, as a letter: one card, photo beside the text. */
.about-block:has(.cb-letter) .prose {
  background: var(--ja-white);
  border: 1px solid var(--ja-line-soft);
  border-top: 4px solid var(--ja-gold);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: clamp(1.25rem, 0.75rem + 2vw, 2.5rem);
}
.about-block .prose .cb-letter { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(1.25rem, 0.75rem + 2vw, 2.75rem); }
.about-block .prose .cb-letter__body { max-width: 75ch; }

/* Plain-text sections as panels. */
.about-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
  align-items: stretch;
}
.about-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--ja-white);
  border: 1px solid var(--ja-line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: clamp(1.25rem, 0.9rem + 1.2vw, 2rem);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.about-panel--wide { grid-column: 1 / -1; }
.about-panel__head { display: flex; align-items: center; gap: 0.85rem; }
.about-panel__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: var(--ja-gold-tint, #fbf4e8);
  color: var(--ja-gold-600, #c08f48);
}
.about-panel__icon .ic { width: 1.35rem; height: 1.35rem; }
.about-panel__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.3;
  color: var(--ja-navy);
}
.about-panel__body { font-size: 0.975rem; line-height: 1.75; }
.about-panel__body > * + * { margin-top: 0.85em; }
.about-panel--wide .about-panel__body { column-count: 2; column-gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.about-panel--wide .about-panel__body > * { break-inside: avoid; }
.about-panel--wide .about-panel__body > * + * { margin-top: 0; margin-bottom: 0.85em; }
.about-panel--wide .about-panel__body > :first-child { margin-bottom: 0.85em; }

@media (max-width: 767.98px) {
  .about-panels { grid-template-columns: minmax(0, 1fr); }
  .about-panel--wide .about-panel__body { column-count: 1; }
  .about-block .prose .cb-letter { grid-template-columns: minmax(0, 1fr); }
}
/* A wide panel with pictures: the text across the panel, the pictures as one row of tiles under
   it - flowing them through two text columns scattered them down the right-hand side. */
.about-panel--wide .about-panel__body:has(> img) {
  column-count: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}
.about-panel--wide .about-panel__body:has(> img) > :not(img) { grid-column: 1 / -1; margin: 0; max-width: 95ch; }
.about-panel__body > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--ja-cream);
  border: 1px solid var(--ja-line-soft);
  border-radius: var(--r-md);
  margin-top: 0.5rem;
}
.about-panel__body h3,
.about-panel__body h4 { font-family: var(--font-head); color: var(--ja-navy); line-height: 1.35; }
.about-panel__body h3 { font-size: 1.05rem; margin-top: 0.5rem; }
.about-panel__body h4 { font-size: 0.975rem; color: var(--ja-gold-ink, #8a6420); }
@media (max-width: 767.98px) {
  .about-panel--wide .about-panel__body:has(> img) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Redesign phase 1 (2026-10-13): quick-links row + BOOK NOW --------------
   A thin navy row above the sticky header for Manage Booking / Check-in /
   Flight Status; it scrolls away, so the header's height is unchanged. */
.header-util {
  background: var(--ja-navy);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8125rem;
}
.header-util__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 2.25rem;
}
.header-util__links { display: flex; align-items: center; gap: clamp(1rem, 0.5rem + 1.5vw, 2rem); }
.header-util a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  padding-block: 0.35rem;
  transition: color var(--t-fast) var(--ease);
}
.header-util a:hover, .header-util a:focus-visible { color: #fff; }
.header-util a:focus-visible { outline: 2px solid var(--ja-gold); outline-offset: 2px; border-radius: 4px; }
.header-util .ic { width: 0.95rem; height: 0.95rem; color: var(--ja-gold); flex: 0 0 auto; }
.header-util__phone { font-weight: 600; }
@media (max-width: 1024px) {
  .header-util { display: none; }
}

/* BOOK NOW: the header's one strong call to action. */
.header-tools .header-book { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
[dir="rtl"] .header-tools .header-book { text-transform: none; letter-spacing: 0; }

/* ---- Redesign phase 1: colour system for the four fare families (brief §1) ----
   Supporting colours only — the logo and its own colours stay the base of the site.
   Used by the fare cards in phase 2; defined here so every page reads one source. */
:root {
  --fare-start: #F7F5F0;      --fare-start-2: #292929;     /* Ivory / Charcoal */
  --fare-comfort: #B7A48C;    --fare-comfort-2: #F4EFE7;   /* Warm Taupe / Cream */
  --fare-signature: #702C3B;  --fare-signature-2: #D7C2A0; /* Deep Burgundy / Champagne */
  --fare-business: #17263D;   --fare-business-2: #C6AA78;  /* Midnight Navy / Champagne Gold */
}

/* ---- Quick links under the booking form (brief 2.4) ---- */
.quick-links { padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.5rem) 0; }
.quick-links__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
}
.quick-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
  padding: 1rem 1.15rem;
  background: var(--ja-white);
  border: 1px solid var(--ja-line-soft);
  border-radius: var(--r-lg);
  color: var(--ja-navy);
  text-decoration: none;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.quick-link:hover, .quick-link:focus-visible { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--ja-gold-200); }
.quick-link:focus-visible { outline: 2px solid var(--ja-gold); outline-offset: 2px; }
.quick-link__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: var(--ja-gold-100, #fbf4e8);
  color: var(--ja-gold-700, #9a7333);
}
.quick-link__icon .ic { width: 1.3rem; height: 1.3rem; }
.quick-link__text { display: grid; gap: 0.15rem; min-width: 0; }
.quick-link__title { font-family: var(--font-head); font-weight: 700; font-size: 1.1875rem; line-height: 1.25; }
.quick-link__sub { font-size: 0.9375rem; font-weight: 600; color: var(--ja-text); line-height: 1.4; }
@media (max-width: 1024px) { .quick-links__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .quick-links__grid { gap: var(--sp-3); }
  .quick-link { padding: 0.85rem; gap: 0.7rem; }
  .quick-link__sub { display: none; }
}
@media (prefers-reduced-motion: reduce) { .quick-link, .quick-link:hover { transition: none; transform: none; } }

/* ---- Promo code on the search form (brief 2.3) ---- */
.promo-row__input {
  /* A width, not a flex basis: the row stacks into a column on phones, where a basis
     became a 16rem-tall box (QA 2026-10-13). */
  flex: 0 1 auto;
  width: 16rem;
  max-width: 100%;
  min-width: 0;
  height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px solid var(--ja-line);
  border-radius: var(--r-md);
  background: var(--ja-white);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ja-navy);
}
.promo-row__input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ja-muted); }
.promo-row__input:focus { outline: none; border-color: var(--ja-gold); box-shadow: 0 0 0 3px rgba(211, 163, 94, 0.25); }

/* SEARCH FLIGHTS, as the brief writes it. */
.search-widget__submit .btn-ja--primary span { text-transform: uppercase; letter-spacing: 0.05em; }
[dir="rtl"] .search-widget__submit .btn-ja--primary span { text-transform: none; letter-spacing: 0; }

/* ---- Redesign phase 1: one footer, five columns (brief §8) ---- */
.footer-main { grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)); }
.footer-col__toggle {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  cursor: default;
}
.footer-col__toggle:focus-visible { outline: 2px solid var(--ja-gold); outline-offset: 3px; border-radius: 4px; }
.footer-col__chev { display: none; width: 1rem; height: 1rem; transition: transform var(--t-fast) var(--ease); }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; font-size: 0.8125rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: 0.4rem; color: inherit; text-decoration: none; opacity: 0.9; }
.footer-contact a:hover { opacity: 1; color: var(--ja-gold); }
.footer-contact .ic { width: 0.95rem; height: 0.95rem; color: var(--ja-gold); }

@media (max-width: 1280px) {
  .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
/* Phones: each column folds behind its title. */
@media (max-width: 768px) {
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .footer-brand { margin-bottom: var(--sp-5); }
  .footer-col { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .footer-col__title { margin: 0; }
  .footer-col__toggle { cursor: pointer; padding-block: 0.95rem; }
  .footer-col__chev { display: block; }
  .footer-col__toggle[aria-expanded="true"] .footer-col__chev { transform: rotate(180deg); }
  .footer-col__list { display: none; padding-bottom: 0.9rem; }
  .footer-col.is-open .footer-col__list { display: grid; }
  .footer-contact { justify-content: center; }
}

/* Redesign phase 1: the seven-item menu fits a laptop, so it stays visible down to 1281px
   (it used to collapse behind the menu button below 1440px, i.e. on most laptops). */
@media (min-width: 1281px) and (max-width: 1440px) {
  .nav-primary { display: block; }
  .nav-toggle { display: none; }
  .header-tools { margin-inline-start: 0; }
  .nav-primary__list, .header-bar .nav-primary > ul { gap: 1.1rem; }
  .nav-link, .header-bar .nav-primary a { font-size: 0.875rem; }
}
@media (min-width: 1281px) and (max-width: 1380px) {
  .nav-primary__list, .header-bar .nav-primary > ul { gap: 0.8rem; }
  .header-tools { gap: 0.25rem; }
  .header-tools .tool-btn--login > span, .header-tools .tool-btn--lang > span { display: none; }
  .header-tools .header-book { padding-inline: 1.15rem; }
}

/* ---- Fare families: START / COMFORT / SIGNATURE / BUSINESS (redesign brief §3, 2026-10-13)
   Every family carries its own colours as --fam (main), --fam-2 (supporting) and --fam-ink
   (the text that reads on --fam), set inline from admin. Nothing below names a family. */

/* Fare card header on the flight list */
.fare-opt__head--family { background: var(--fam); color: var(--fam-ink); }
.fare-opt__head--family .fare-opt__name,
.fare-opt__head--family .fare-opt__price { color: var(--fam-ink); }
.fare-opt__head--family .fare-opt__cabin,
.fare-opt__head--family .fare-opt__per { color: var(--fam-ink); opacity: 0.82; }
.fare-opt__head--family .fare-opt__name { letter-spacing: 0.08em; }
.fare-opt__head--family .fare-opt__sub {
  margin: -0.15rem 0 var(--sp-2);
  font-size: var(--fs-body-sm);
  color: var(--fam-ink);
  opacity: 0.9;
}
.fare-opt__head--family::after {
  content: "";
  display: block;
  height: 3px;
  margin: var(--sp-3) calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4));
  background: var(--fam-2);
}
.fare-opt:has(.fare-opt__head--family) .fare-opt__radio { border-color: var(--fam-2); }

.fare-opt__more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-3);
}

/* Small text buttons: "Watch Experience" and "Compare Fares" */
.fare-watch,
.fare-compare-open {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0;
  border: 0;
  background: none;
  font: 600 var(--fs-body-sm) / 1.3 var(--font-body);
  color: var(--ja-navy);
  text-decoration: underline;
  text-decoration-color: var(--ja-gold-300);
  text-underline-offset: 0.25em;
  cursor: pointer;
}
.fare-watch .ic,
.fare-compare-open .ic { width: 1rem; height: 1rem; color: var(--ja-gold-700); }
.fare-watch:hover,
.fare-compare-open:hover { color: var(--ja-gold-ink); text-decoration-color: currentColor; }
.fare-watch:focus-visible,
.fare-compare-open:focus-visible { outline: 2px solid var(--ja-gold); outline-offset: 2px; border-radius: 2px; }

/* Family cards: home "Choose your way to fly" and the fare-types page */
.fare-families { background: var(--ja-cream); }
.fam-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* With SIGNATURE there are four families: two by two on tablets, so none sits alone on a row,
   then all in one row on wide screens (client notes 2026-10-22, point 11). */
@media (min-width: 640px) { .fam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .fam-grid { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); } }
.fam-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-sm);
}
.fam-card__media {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 11rem;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  background: var(--fam);
  color: var(--fam-ink);
  border-bottom: 4px solid var(--fam-2);
}
/* No photo yet: a colour band, not an empty picture frame. */
.fam-card__media:not(:has(img)) { aspect-ratio: auto; min-height: 8.5rem; }
.fam-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fam-card__media:has(img)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, var(--fam) 0%, transparent 70%);
}
.fam-card__brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: var(--sp-5);
}
.fam-card__name {
  font: 800 var(--fs-h3) / 1.1 var(--font-head);
  letter-spacing: 0.14em;
}
.fam-card__tagline { font-size: var(--fs-body-sm); opacity: 0.9; }
.fam-card__soon {
  position: absolute;
  inset-block-start: var(--sp-3);
  inset-inline-end: var(--sp-3);
  z-index: 2;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--fam-2);
  color: var(--fam);
  font: 700 var(--fs-eyebrow) / 1.4 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fam-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
}
.fam-card__idea { margin: 0; color: var(--ja-text); font-size: var(--fs-body); line-height: 1.6; }
.fam-card__facts { display: grid; gap: var(--sp-2); margin: 0; }
.fam-card__facts > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--sp-2); }
.fam-card__facts dt {
  font: 600 var(--fs-eyebrow) / 1.6 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ja-muted);
}
.fam-card__facts dd { margin: 0; font-size: var(--fs-body-sm); color: var(--ja-navy); }
.fam-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  margin-top: auto;
}
.fare-types__compare-title { margin: var(--sp-10) 0 var(--sp-5); font-size: var(--fs-h2); color: var(--ja-navy); }

/* Comparison table — inline on the fare-types page, and inside the pop-up */
.fare-compare { overflow-x: auto; border: 1px solid var(--ja-line); border-radius: var(--r-md); background: #fff; }
.fare-compare__table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: var(--fs-body-sm); }
.fare-compare__table th,
.fare-compare__table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--ja-line-soft);
  text-align: start;
  vertical-align: top;
  color: var(--ja-text);
}
.fare-compare__table tbody th {
  width: 9rem;
  font-weight: 600;
  color: var(--ja-navy);
  background: var(--ja-cream);
}
.fare-compare__table .fare-compare__family {
  background: var(--fam);
  color: var(--fam-ink);
  border-bottom: 4px solid var(--fam-2);
}
.fare-compare__name { display: block; font: 800 var(--fs-h5) / 1.2 var(--font-head); letter-spacing: 0.12em; }
.fare-compare__tagline { display: block; margin-top: 0.15rem; font-weight: 400; font-size: var(--fs-eyebrow); opacity: 0.9; }
.fare-compare__soon {
  display: inline-block;
  margin-top: var(--sp-2);
  padding: 0.1rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--fam-2);
  color: var(--fam);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
}
.fare-compare__note { margin: var(--sp-3) 0 0; font-size: var(--fs-body-sm); color: var(--ja-muted); }

.fare-compare-dialog {
  width: min(64rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
}
.fare-compare-dialog::backdrop { background: rgba(12, 26, 53, 0.6); }
.fare-compare-dialog > * { margin-inline: var(--sp-5); }
.fare-compare-dialog > :last-child { margin-bottom: var(--sp-5); }
.fare-compare-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-block: 0 var(--sp-4);
  padding-block: var(--sp-5) 0;
}
.fare-compare-dialog__title { margin: 0; font-size: var(--fs-h3); color: var(--ja-navy); }
.fare-compare-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--ja-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ja-navy);
  cursor: pointer;
}
.fare-compare-dialog__close:hover { background: var(--ja-gold-100); }
.fare-compare-dialog__close .ic { width: 1rem; height: 1rem; }

@media (max-width: 575.98px) {
  .fam-card__media { min-height: 9rem; }
  .fare-compare-dialog > * { margin-inline: var(--sp-4); }
}
/* ---- Redesign phase 3 (2026-10-13): offers, destinations, JAV EXTRAS, FAQ ---------------- */

/* Offer validity on the cards */
.offer-card__valid {
  margin: 0.35rem 0 0;
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--ja-gold-ink);
}
.offer-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); }

/* Destination cards: Explore + Book Now side by side */
.promo-card__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* The booking box on an offer or a destination page */
.trip-panel {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  padding: var(--sp-5);
  border: 1px solid var(--ja-gold-300);
  border-radius: var(--r-lg);
  background: var(--ja-gold-100);
}
.trip-panel__title { margin: 0; font-size: var(--fs-h4); color: var(--ja-navy); }
.trip-panel__route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  font-weight: 700;
  color: var(--ja-navy);
}
.trip-panel__route .ic { width: 1.1rem; height: 1.1rem; color: var(--ja-gold-700); }
[dir="rtl"] .trip-panel__route .ic { transform: scaleX(-1); }
.trip-panel__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; margin: 0; color: var(--ja-text); }
.trip-panel__price strong { font: 800 var(--fs-h3) / 1.2 var(--font-head); color: var(--ja-navy); }
.trip-panel__price small,
.trip-panel__price a { font-size: var(--fs-body-sm); }
.trip-panel__price a { color: var(--ja-gold-ink); }
.trip-panel__valid { margin: 0; font-weight: 600; color: var(--ja-gold-ink); }
.trip-panel__valid.is-ended { color: var(--ja-red); }
.trip-panel__from { display: grid; gap: var(--sp-1); margin: 0; padding: 0; list-style: none; font-size: var(--fs-body-sm); color: var(--ja-navy); }
.trip-panel__from li { display: flex; flex-wrap: wrap; gap: 0.4rem; }
[dir="rtl"] .trip-panel__from li span[aria-hidden] { transform: scaleX(-1); display: inline-block; }
.trip-panel__none,
.trip-panel__note { margin: 0; font-size: var(--fs-body-sm); color: var(--ja-grey-500); }

/* JAV EXTRAS cards — the page and the home band */
.extras-band { background: var(--ja-white); }
.extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.extra-grid > li { display: flex; }
.extra-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ja-line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-xs);
}
.extra-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  background: var(--ja-cream);
  border-bottom: 1px solid var(--ja-line-soft);
}
.extra-card__media img { width: 100%; height: 9rem; object-fit: cover; }
.extra-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--ja-gold-100);
  color: var(--ja-gold-700);
}
.extra-card__icon .ic { width: 1.6rem; height: 1.6rem; }
.extra-card__soon {
  position: absolute;
  inset-block-start: var(--sp-3);
  inset-inline-end: var(--sp-3);
  padding: 0.15rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--ja-navy);
  color: #fff;
  font: 700 var(--fs-eyebrow) / 1.5 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.extra-card.is-soon .extra-card__icon { background: var(--ja-line-soft); color: var(--ja-grey-500); }
.extra-card__body { display: flex; flex: 1; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); }
.extra-card__name { margin: 0; font-size: var(--fs-h4); color: var(--ja-navy); }
.extra-card__summary { margin: 0; font-size: var(--fs-body); color: var(--ja-text); line-height: 1.55; }
.extra-card__facts { display: grid; gap: var(--sp-2); margin: 0; }
.extra-card__facts dt {
  font: 600 var(--fs-eyebrow) / 1.4 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ja-muted);
}
.extra-card__facts dd { margin: 0.1rem 0 0; font-size: var(--fs-body-sm); color: var(--ja-navy); }
.extra-card__cta { align-self: flex-start; margin-top: auto; }
.extras-page__note { max-width: 70ch; margin: var(--sp-7) 0 0; font-size: var(--fs-body-sm); color: var(--ja-grey-500); }

/* FAQ: search and topic chips */
.faq-tools { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-7); }
.faq-tools__search {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--ja-line-cool-2);
  border-radius: var(--r-md);
  background: #fff;
  font: inherit;
  color: var(--ja-navy);
}
.faq-tools__search:focus { outline: 2px solid var(--ja-gold); outline-offset: 1px; border-color: var(--ja-gold); }
.faq-topics { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.faq-topics__chip {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--ja-gold-300);
  border-radius: var(--r-pill);
  background: var(--ja-white);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--ja-navy);
  text-decoration: none;
}
.faq-topics__chip:hover,
.faq-topics__chip:focus-visible { background: var(--ja-gold-100); border-color: var(--ja-gold); }
.faq-tools__empty { margin: 0; color: var(--ja-grey-500); }
.acc-group-title { scroll-margin-top: 7rem; }
/* QA 2026-10-13: destination descriptions stay on the coloured wash (about half the card at the
   copy's height) and stop at three lines, so no sentence runs over the photograph. */
.promo-card__text {
  max-width: 64%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
/* Booking banner: city names are longer than codes - let a long pair wrap on a phone (2026-10-14). */
.trip-route { flex-wrap: wrap; row-gap: 0.4rem; }

/* Weekly spending tier on the account dashboard (client spec 2026-10-20) */
.tier-card { margin: 0 0 1.5rem; padding: 1.25rem 1.5rem 1.1rem; border: 1px solid var(--ja-line, #E9E3D9); border-radius: 1rem; background: #fff; box-shadow: 0 10px 30px -22px rgba(23, 38, 61, 0.35); }
.tier-card__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 0.9rem; }
.tier-card__eyebrow { margin: 0 0 0.2rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ja-muted, #6B7280); }
.tier-card__name { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 1.5rem; color: var(--ja-navy, #0C1A35); }
.tier-card__dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--tier); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tier) 22%, transparent); }
.tier-card__spent { display: grid; justify-items: end; text-align: end; }
.tier-card__amount { font-size: 1.6rem; font-weight: 800; color: var(--ja-navy, #0C1A35); line-height: 1.1; }
.tier-card__amount small { font-size: 0.8rem; font-weight: 700; color: var(--ja-muted, #6B7280); }
.tier-card__label { font-size: 0.8rem; color: var(--ja-muted, #6B7280); }
.tier-bar { position: relative; height: 0.7rem; border-radius: 999px; background: #EEF0F3; overflow: hidden; }
.tier-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tier), var(--next, var(--tier))); transition: width 0.6s ease; }
[dir="rtl"] .tier-bar > span { background: linear-gradient(270deg, var(--tier), var(--next, var(--tier))); }
.tier-card__note { margin: 0.55rem 0 0.9rem; font-size: 0.92rem; font-weight: 600; color: var(--ja-navy, #0C1A35); }
.tier-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.5rem; margin: 0 0 0.7rem; padding: 0; list-style: none; }
.tier-step { display: grid; gap: 0.1rem; padding: 0.5rem 0.75rem; border: 1px solid var(--ja-line, #E9E3D9); border-inline-start: 4px solid var(--step); border-radius: 0.6rem; background: #FCFBF8; }
.tier-step.is-current { border-color: var(--step); background: color-mix(in srgb, var(--step) 10%, #fff); }
.tier-step__name { font-weight: 700; color: var(--ja-navy, #0C1A35); }
.tier-step__range { font-size: 0.8rem; color: var(--ja-muted, #6B7280); }
[dir="rtl"] .tier-step__range { text-align: right; }
.tier-card__week { margin: 0; font-size: 0.78rem; color: var(--ja-muted, #6B7280); }
@media (prefers-reduced-motion: reduce) { .tier-bar > span { transition: none; } }

/* "Need more discount?" (client spec 2026-10-20) */
.disc-cta { margin-bottom: 1.5rem; padding: 1.25rem; border-radius: 1rem; color: #fff; background: radial-gradient(18rem 9rem at 100% 0%, rgba(198, 170, 120, 0.35), transparent 70%), linear-gradient(140deg, #17263D, #22385E); box-shadow: 0 16px 34px -22px rgba(23, 38, 61, 0.6); }
.disc-cta__eyebrow { margin: 0 0 0.25rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #C6AA78; }
.disc-cta__title { margin: 0 0 0.5rem; font-size: 1.2rem; color: #fff; }
.disc-cta__status { margin: 0 0 0.75rem; font-size: 0.88rem; color: rgba(255, 255, 255, 0.82); }
.disc-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .disc-layout { grid-template-columns: minmax(0, 1fr); } }
.disc-history { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.disc-item { padding: 0.75rem 0.9rem; border: 1px solid var(--ja-line, #E9E3D9); border-radius: 0.75rem; background: #fff; }
.disc-item__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem; }
.disc-item__date { font-size: 0.8rem; color: var(--ja-muted, #6B7280); }
.disc-item__msg { margin: 0 0 0.35rem; font-size: 0.9rem; color: var(--ja-text, #4A5361); white-space: pre-line; }
.disc-item__note { margin: 0 0 0.35rem; padding: 0.4rem 0.6rem; border-radius: 0.5rem; background: #F6F3EC; font-size: 0.86rem; }
.disc-badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.disc-badge.is-ok { background: #E5F4EC; color: #125C41; }
.disc-badge.is-no { background: #FBE8EB; color: #9B1C31; }
.disc-badge.is-wait { background: #FFF2D6; color: #744A0B; }
.disc-code { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.4rem 0; padding: 0.55rem 0.7rem; border: 1px dashed #C6AA78; border-radius: 0.6rem; background: #FCF8EF; }
.disc-code__label { font-size: 0.8rem; color: var(--ja-muted, #6B7280); }
.disc-code__value { font-weight: 800; letter-spacing: 0.08em; color: var(--ja-navy, #0C1A35); }
.disc-code__copy { margin-inline-start: auto; padding: 0.2rem 0.7rem; border: 1px solid var(--ja-navy, #0C1A35); border-radius: 999px; background: transparent; font-size: 0.8rem; font-weight: 700; cursor: pointer; }

/* Affiliate card on the account dashboard (client spec 2026-10-20) */
.aff-card { margin-bottom: 1.5rem; padding: 1.25rem; border: 1px solid #E4DCCB; border-radius: 1rem; background: linear-gradient(160deg, #FFFDF8, #F7F1E4); }
.aff-card__title { margin: 0 0 0.6rem; font-size: 1.15rem; color: var(--ja-navy, #0C1A35); }
.aff-card__note { margin: 0 0 0.75rem; font-size: 0.88rem; color: var(--ja-text, #4A5361); }
.aff-card__money { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0 0 0.6rem; font-size: 0.85rem; font-weight: 700; color: var(--ja-navy, #0C1A35); }
.aff-card__more { font-size: 0.85rem; font-weight: 700; }
.aff-link { display: flex; gap: 0.4rem; margin-bottom: 0.75rem; }
.aff-link__input { flex: 1; min-width: 0; padding: 0.45rem 0.6rem; border: 1px dashed #C6AA78; border-radius: 0.5rem; background: #fff; font-size: 0.82rem; color: var(--ja-navy, #0C1A35); }
.aff-link__copy { padding: 0.4rem 0.8rem; border: 0; border-radius: 0.5rem; background: var(--ja-navy, #0C1A35); color: #fff; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.aff-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0 0 0.75rem; }
.aff-stats > div { padding: 0.45rem 0.5rem; border-radius: 0.5rem; background: #fff; text-align: center; }
.aff-stats dt { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ja-muted, #6B7280); }
.aff-stats dd { margin: 0.15rem 0 0; font-size: 1.05rem; font-weight: 800; color: var(--ja-navy, #0C1A35); }

/* Today's figures on the account dashboard (client spec 2026-10-20) */
.kpi-strip { margin: 0 0 1.5rem; }
.kpi-strip__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; margin-bottom: 0.6rem; }
.kpi-strip__title { margin: 0; font-size: 1.1rem; color: var(--ja-navy, #0C1A35); }
.kpi-strip__day { font-size: 0.8rem; color: var(--ja-muted, #6B7280); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.6rem; }
.kpi { display: grid; gap: 0.15rem; padding: 0.8rem 0.9rem; border: 1px solid var(--ja-line, #E9E3D9); border-radius: 0.8rem; background: #fff; }
.kpi--aff { background: #FCF8EF; border-color: #EADFC8; }
.kpi__value { font-size: 1.35rem; font-weight: 800; line-height: 1.15; color: var(--ja-navy, #0C1A35); }
.kpi__value small { font-size: 0.72rem; font-weight: 700; color: var(--ja-muted, #6B7280); }
.kpi__label { font-size: 0.78rem; color: var(--ja-muted, #6B7280); }

/* Inline form errors (client spec 2026-10-20): beside the field, the field outlined */
.has-error > .field-error, .field-error[data-inline] { margin: 0.35rem 0 0; color: var(--ja-red, #DC1737); font-size: 0.85rem; font-weight: 600; line-height: 1.35; }
.search-fields .field.has-error { border-color: var(--ja-red, #DC1737) !important; box-shadow: 0 0 0 3px rgba(220, 23, 55, 0.12); }
.search-fields .field .field-error[data-inline] { font-size: 0.78rem; margin-top: 0.2rem; }
.form-select.is-invalid, textarea.is-invalid, input.is-invalid { border-color: var(--ja-red, #DC1737); }
.check-ja.has-error .check-ja__box, .form-check.has-error .form-check-input { border-color: var(--ja-red, #DC1737); }
.field-pw__box { position: relative; }
.field-pw input.is-invalid { background-image: none; }

/* Home band "Enhance your journey", option "spotlight" (shown to the client 2026-10-21 with
   ?extras=spotlight). The service that can be booked today gets the space; the ones still to come
   sit in a quiet list beside it, each carrying its fare family's colour as a thin stripe
   (SIGNATURE burgundy, COMFORT taupe, SMART ivory, then round again). */
.extras-band--spotlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(60rem 26rem at 88% -12%, rgba(198, 170, 120, 0.18), transparent 62%),
    linear-gradient(180deg, #121F33 0%, #0B1422 100%);
  color: #fff;
}
.extras-band--spotlight .eyebrow { color: #C6AA78; letter-spacing: 0.24em; }
.extras-band--spotlight .section-head h2 { color: #fff; }
.extras-band--spotlight .section-head .btn-ja--outline { --btn-bg: transparent; --btn-fg: #E9D9B8; --btn-bd: rgba(198, 170, 120, 0.6); }
.extras-band--spotlight .section-head .btn-ja--outline:hover { --btn-bg: #C6AA78; --btn-fg: #17263D; --btn-bd: #C6AA78; }

.xs-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.xs-layout--list { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 899.98px) { .xs-layout { grid-template-columns: minmax(0, 1fr); } }

/* The one thing a passenger can do today. */
.xs-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 2rem 2.1rem;
  border: 1px solid rgba(198, 170, 120, 0.45);
  border-radius: 1.5rem;
  background: linear-gradient(155deg, #24395E 0%, #17263D 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 28px 56px -30px rgba(0, 0, 0, 0.75);
}
.xs-feature::before {
  content: "";
  position: absolute;
  inset-inline: 2rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C6AA78, transparent);
}
.xs-feature__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.xs-feature__icon {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #F3E7CD 0%, #C6AA78 55%, #977A47 100%);
  color: #17263D;
  box-shadow: 0 0 0 7px rgba(198, 170, 120, 0.14), 0 14px 28px -12px rgba(0, 0, 0, 0.55);
}
.xs-feature__icon .ic { width: 1.8rem; height: 1.8rem; }
.xs-feature__now {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(46, 160, 110, 0.16);
  color: #9FE0BF;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.xs-feature__now::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #4CC38A; box-shadow: 0 0 0 3px rgba(76, 195, 138, 0.25); }
.xs-feature__name { margin: 0.25rem 0 0; color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.005em; }
.xs-feature__summary { margin: 0; max-width: 46ch; color: rgba(255, 255, 255, 0.8); font-size: 1.02rem; line-height: 1.55; }
.xs-feature__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.9rem 1.5rem; margin: 0.25rem 0 0; padding-top: 1.1rem; border-top: 1px solid rgba(198, 170, 120, 0.25); }
.xs-feature__facts dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #C6AA78; }
.xs-feature__facts dd { margin: 0.25rem 0 0; color: rgba(255, 255, 255, 0.94); font-size: 0.95rem; line-height: 1.5; }
.xs-feature__cta { align-self: flex-start; margin-top: auto; }
.extras-band--spotlight .xs-feature .btn-ja--primary,
.extras-band--spotlight .xs-feature .btn-ja--primary:hover { --btn-bg: #C6AA78; --btn-fg: #17263D; --btn-bd: #C6AA78; background: #C6AA78; border-color: #C6AA78; color: #17263D; }
.extras-band--spotlight .xs-feature .btn-ja--primary:hover { filter: brightness(1.08); }

/* What is coming: quiet rows, one fare colour each. */
.xs-next { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.xs-next__label { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(233, 217, 184, 0.75); }
.xs-list { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.xs-list > li:nth-child(3n + 1) { --row-accent: #B85A70; } /* SIGNATURE burgundy */
.xs-list > li:nth-child(3n + 2) { --row-accent: #CBBBA5; } /* COMFORT taupe */
.xs-list > li:nth-child(3n + 3) { --row-accent: #F4EFE7; } /* SMART ivory */
.xs-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  padding-inline-start: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.xs-row::before {
  content: "";
  position: absolute;
  inset-block: 0.85rem;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--row-accent, #C6AA78);
}
.xs-row:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(198, 170, 120, 0.3); }
.xs-row__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--row-accent, #C6AA78);
  box-shadow: inset 0 0 0 1.5px var(--row-accent, #C6AA78);
}
.xs-row__icon .ic { width: 1.25rem; height: 1.25rem; }
.xs-row__name { margin: 0; color: #fff; font-size: 1.05rem; }
.xs-row__summary { margin: 0.2rem 0 0; color: rgba(255, 255, 255, 0.68); font-size: 0.88rem; line-height: 1.45; }
.xs-row__soon {
  padding: 0.22rem 0.65rem;
  border: 1px solid rgba(198, 170, 120, 0.45);
  border-radius: 999px;
  color: #E9D9B8;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.xs-row__go { color: #C6AA78; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.xs-row__go:hover { color: #F3E7CD; }
@media (max-width: 479.98px) {
  .xs-feature { padding: 1.5rem 1.25rem 1.6rem; }
  .xs-row { grid-template-columns: auto minmax(0, 1fr); }
  .xs-row__soon, .xs-row__go { grid-column: 2; justify-self: start; }
}
.extras-band--spotlight a:focus-visible { outline: 2px solid #C6AA78; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .xs-row { transition: none; } }

/* The "coming soon" list as a slider (client notes 2026-10-22): a window three rows tall, the
   list moving up inside it. On wide screens main.js sizes the rows to the featured card. */
.xs-next__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.xs-next__nav { display: flex; gap: 0.4rem; }
.xs-next__btn { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid rgba(198, 170, 120, 0.5); border-radius: 50%; background: transparent; color: #E9D9B8; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.xs-next__btn .ic { width: 0.85rem; height: 0.85rem; }
.xs-next__up { transform: rotate(180deg); }
.xs-next__btn:hover { background: #C6AA78; color: #17263D; }
.xs-next__btn:focus-visible { outline: 2px solid #C6AA78; outline-offset: 2px; }
.xs-viewport { --xs-row: 7rem; position: relative; overflow: hidden; height: calc(var(--xs-row) * 3 + 0.75rem * 2); }
/* On a phone the status chip sits under the text, so a row needs more height. */
@media (max-width: 479.98px) { .xs-viewport { --xs-row: 9.5rem; } }
/* Wide screens: the window takes whatever height the featured card leaves it (height 0 + flex),
   so the rows hidden below never make the band taller. */
@media (min-width: 900px) { .xs-viewport { flex: 1 1 0; height: 0; min-height: calc(6.25rem * 3 + 1.5rem); } }
.xs-viewport .xs-list { grid-auto-rows: var(--xs-row); transition: transform 0.7s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.xs-viewport .xs-row { height: 100%; }
.xs-viewport .xs-row__summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .xs-viewport .xs-list { transition: none; } }


/* "Why fly with Jordan Aviation?", option "editorial" (shown to the client 2026-10-21 with
   ?why=editorial): the heading has its own column, the reasons sit beside it as a quiet 2 x 2 list
   with hairlines instead of boxes and outlined icons instead of gold tiles. */
.why-ed {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
@media (max-width: 991.98px) { .why-ed { grid-template-columns: minmax(0, 1fr); } }
.why-ed__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
@media (min-width: 992px) { .why-ed__intro { position: sticky; top: 7rem; } }
.why-ed__eyebrow { color: var(--ja-gold-ink, #74501D); letter-spacing: 0.22em; }
/* Arabic letters join: spacing them out breaks the words apart. */
[dir="rtl"] .why-ed__eyebrow { letter-spacing: 0; font-size: 0.85rem; }
.why-ed__title { margin: 0; font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.6rem); line-height: 1.15; text-wrap: balance; }
.why-ed__rule { display: block; width: 3.5rem; height: 3px; border-radius: 3px; background: var(--ja-gold, #D3A35E); }
.why-ed__lead { margin: 0; max-width: 34ch; color: #5E6B76; font-size: 1.02rem; line-height: 1.6; }
.why-ed__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(116, 80, 29, 0.35);
  color: var(--ja-gold-ink, #74501D);
  font-weight: 700;
}
.why-ed__more .ic { width: 1.05rem; height: 1.05rem; transition: transform 0.25s ease; }
.why-ed__more:hover { border-color: var(--ja-gold-ink, #74501D); }
.why-ed__more:hover .ic { transform: translateX(3px); }
[dir="rtl"] .why-ed__more:hover .ic { transform: translateX(-3px); }

.why-ed__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 1rem + 2vw, 2.75rem) clamp(1.5rem, 1rem + 2vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 575.98px) { .why-ed__list { grid-template-columns: minmax(0, 1fr); } }
.why-ed__item { position: relative; padding-top: 1.5rem; border-top: 1px solid rgba(15, 25, 33, 0.12); }
.why-ed__item::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--ja-gold, #D3A35E);
  transition: width 0.4s var(--ease, ease);
}
.why-ed__item:hover::before { width: 100%; }
.why-ed__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: var(--ja-gold-ink, #74501D);
  box-shadow: inset 0 0 0 1.5px var(--ja-gold, #D3A35E);
  background: rgba(211, 163, 94, 0.08);
}
.why-ed__icon .ic { width: 1.3rem; height: 1.3rem; }
.why-ed__name { margin: 0 0 0.45rem; font-size: 1.15rem; line-height: 1.35; color: var(--ja-navy, #0C1A35); }
.why-ed__text { margin: 0; color: #4E5B66; font-size: 0.95rem; line-height: 1.65; max-width: 40ch; }
.why-ed__more:focus-visible { outline: 2px solid var(--ja-gold, #D3A35E); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .why-ed__item::before, .why-ed__more .ic { transition: none; }
}

/* Home destinations with no flights right now (client notes 2026-10-22, point 4): greyed out,
   after the others, no hover lift; the note replaces the description when asked "why". */
/* 2026-11-15: a card with no flights keeps its own colour from the rotation (the client: new
   destinations all came out the same grey). The pill, the "why" button and the black-and-white
   picture are what say it cannot be booked yet. */
.rail--promo .promo-card.promo-card--off { cursor: pointer; }
.promo-card--off .promo-card__img { filter: grayscale(1) brightness(0.92) contrast(0.95); }
.promo-card--off:hover { transform: none; box-shadow: var(--sh-sm); }
.promo-card--off:hover .promo-card__img { transform: none; }
.promo-card--off:hover .promo-card__wash { clip-path: polygon(0 0, 60.6% 0, 47.2% 100%, 0 100%); }
.promo-card__pill--off { background: rgba(255, 255, 255, 0.94); color: #3D434B; }
.promo-card__note {
  max-width: 64%;
  margin: 0 0 var(--sp-3);
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.95);
  color: #2B3138;
  font-size: 0.8rem;
  line-height: 1.45;
}
.promo-card--off.is-noted .promo-card__text { display: none; }
@media (max-width: 479.98px) { .promo-card__note { max-width: none; } }

/* Promo pop-up (client notes 2026-10-22, point 8): a centred card on a soft navy veil; a bottom
   sheet on phones. Picture or film on top, then the line and one button. */
.promo-pop { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 1rem; }
.promo-pop[hidden] { display: none; }
.promo-pop__backdrop { position: absolute; inset: 0; background: rgba(12, 26, 53, 0.55); opacity: 0; transition: opacity 0.25s ease; }
.promo-pop__card {
  position: relative;
  width: min(34rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(12, 26, 53, 0.6);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(.2, .7, .2, 1);
}
.promo-pop.is-open .promo-pop__backdrop { opacity: 1; }
.promo-pop.is-open .promo-pop__card { opacity: 1; transform: none; }
.promo-pop__close {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #17263D;
  box-shadow: 0 4px 14px rgba(12, 26, 53, 0.25);
  cursor: pointer;
}
.promo-pop__close .ic { width: 1rem; height: 1rem; }
.promo-pop__close:focus-visible, .promo-pop__cta:focus-visible { outline: 2px solid var(--ja-gold, #D3A35E); outline-offset: 3px; }
.promo-pop__media { aspect-ratio: 16 / 10; background: #17263D; }
.promo-pop__media img, .promo-pop__media video, .promo-pop__media iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.promo-pop__body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 1.4rem 1.5rem 1.6rem; }
.promo-pop__card > .promo-pop__body:first-of-type { padding-top: 3.25rem; }
.promo-pop__title { margin: 0; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); line-height: 1.25; color: var(--ja-navy, #0C1A35); }
.promo-pop__text { margin: 0; color: var(--ja-text); font-size: 0.98rem; line-height: 1.6; }
.promo-pop__cta { margin-top: 0.35rem; }
html.promo-pop-open { overflow: hidden; }
@media (max-width: 575.98px) {
  .promo-pop { place-items: end center; padding: 0; }
  .promo-pop__card { width: 100%; max-height: 88vh; border-radius: 1.25rem 1.25rem 0 0; transform: translateY(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .promo-pop__backdrop, .promo-pop__card { transition: none; }
}

/* Photo + video gallery (client notes 2026-10-22, point 9). */
.media-tabs { display: inline-flex; gap: 0.35rem; margin: 0 0 1.75rem; padding: 0.3rem; border-radius: 999px; background: var(--ja-beige, #F4EFE7); }
.media-tabs__tab { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 1.15rem; border-radius: 999px; color: var(--ja-navy, #0C1A35); font-weight: 700; font-size: 0.92rem; text-decoration: none; transition: background 0.2s ease, color 0.2s ease; }
.media-tabs__tab .ic { width: 1rem; height: 1rem; }
.media-tabs__tab:hover { background: rgba(255, 255, 255, 0.7); }
.media-tabs__tab.is-current { background: #17263D; color: #fff; }
.media-tabs__tab:focus-visible { outline: 2px solid var(--ja-gold, #D3A35E); outline-offset: 2px; }

/* Mosaic: the first photo of every six is large, the fourth tall; dense flow fills the gaps. */
.photo-mosaic {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  grid-auto-rows: 13rem;
  grid-auto-flow: dense;
}
.photo-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--ja-beige, #F4EFE7);
  isolation: isolate;
}
.photo-mosaic > .photo-tile:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.photo-mosaic > .photo-tile:nth-child(6n + 4) { grid-row: span 2; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(.2, .7, .2, 1); }
.photo-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 26, 53, 0) 50%, rgba(12, 26, 53, 0.72) 100%); opacity: 0.85; transition: opacity 0.3s ease; }
.photo-tile__caption { position: absolute; z-index: 1; inset-inline: 1rem; bottom: 0.85rem; color: #fff; font-weight: 700; font-size: 0.98rem; line-height: 1.3; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.photo-tile__zoom {
  position: absolute; z-index: 1; top: 0.75rem; inset-inline-end: 0.75rem;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); color: #17263D;
  opacity: 0; transform: scale(0.85); transition: opacity 0.25s ease, transform 0.25s ease;
}
.photo-tile__zoom .ic { width: 1rem; height: 1rem; }
.photo-tile:hover img { transform: scale(1.06); }
.photo-tile:hover .photo-tile__zoom, .photo-tile:focus-visible .photo-tile__zoom { opacity: 1; transform: none; }
.photo-tile:focus-visible { outline: 3px solid var(--ja-gold, #D3A35E); outline-offset: 3px; }
.photo-mosaic--wide { grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); grid-auto-rows: 17rem; }
.photo-mosaic--masonry { display: block; columns: 4 15rem; column-gap: 0.75rem; }
.photo-mosaic--masonry > .photo-tile { margin-bottom: 0.75rem; break-inside: avoid; }
.photo-mosaic--masonry .photo-tile img { height: auto; }
@media (max-width: 575.98px) {
  .photo-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 9.5rem; gap: 0.5rem; }
  .photo-mosaic > .photo-tile:nth-child(6n + 4) { grid-row: span 1; }
  .photo-tile__caption { font-size: 0.85rem; inset-inline: 0.7rem; bottom: 0.6rem; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1400; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 3.5rem 1rem 2.5rem; background: rgba(8, 14, 26, 0.94); opacity: 0; transition: opacity 0.25s ease; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; min-width: 0; height: 100%; justify-content: center; touch-action: pan-y; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 0.5rem; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); user-select: none; -webkit-user-drag: none; }
.lightbox__caption { color: rgba(255, 255, 255, 0.9); font-size: 1rem; text-align: center; max-width: 60ch; }
.lightbox__count { position: absolute; top: 1.1rem; inset-inline-start: 1.25rem; margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.lightbox__close, .lightbox__nav { display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; transition: background 0.2s ease; }
.lightbox__close { position: absolute; top: 0.75rem; inset-inline-end: 0.75rem; width: 2.75rem; height: 2.75rem; }
.lightbox__nav { width: 3.25rem; height: 3.25rem; }
.lightbox__nav[hidden] { visibility: hidden; display: grid; }
.lightbox__close .ic, .lightbox__nav .ic { width: 1.2rem; height: 1.2rem; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__close:focus-visible, .lightbox__nav:focus-visible { outline: 2px solid var(--ja-gold, #D3A35E); outline-offset: 2px; }
html.lightbox-open { overflow: hidden; }
@media (max-width: 575.98px) {
  .lightbox { grid-template-columns: minmax(0, 1fr); padding-inline: 0.5rem; }
  .lightbox__nav { position: absolute; bottom: 1rem; width: 2.75rem; height: 2.75rem; }
  .lightbox__nav--prev { inset-inline-start: 1rem; }
  .lightbox__nav--next { inset-inline-end: 1rem; }
}

/* Videos: a lone film is not stretched across the page; the play button sits dead centre in
   both directions (the old inset-inline-start + translate pushed it off-centre in Arabic). */
.video-grid { grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); }
.video-grid:has(> .video-card:only-child) { max-width: 52rem; }
.video-card__play { inset-inline-start: auto; left: 50%; width: 4.25rem; height: 4.25rem; }
@media (prefers-reduced-motion: reduce) {
  .photo-tile img, .photo-tile__zoom, .lightbox, .media-tabs__tab { transition: none; }
}

/* Explore Jordan (client notes 2026-10-22, point 10): a deep navy band; the words and arrows at
   the start, arch-topped photographs passing beside them, bleeding off the end of the page. */
.explore-arch {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 4vw, 6rem);
  background:
    radial-gradient(50rem 30rem at 0% 0%, rgba(198, 170, 120, 0.16), transparent 60%),
    linear-gradient(160deg, #17263D 0%, #0C1A35 70%);
  color: #fff;
}
.explore-arch__grid { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.explore-arch__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.explore-arch__eyebrow { color: #C6AA78; letter-spacing: 0.24em; }
.explore-arch__title { margin: 0; color: #fff; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.1; text-wrap: balance; }
.explore-arch__lead { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 1.02rem; line-height: 1.6; max-width: 32ch; }
.explore-arch__nav { margin-top: 0.5rem; }
.explore-arch .rail-arrow { background: transparent; border-color: rgba(198, 170, 120, 0.55); color: #E9D9B8; }
.explore-arch .rail-arrow:hover { background: #C6AA78; border-color: #C6AA78; color: #17263D; }
.explore-arch .rail-arrow:focus-visible { outline: 2px solid #C6AA78; outline-offset: 3px; }
/* The rail runs from its column to the page edge. */
.explore-arch__rail { margin-inline: 0 calc(var(--container-pad) * -1); }
.explore-arch__track { margin: 0; padding-block: 0.5rem 1rem; padding-inline: 0 var(--container-pad); list-style: none; gap: 1.25rem; }
.arch-card { width: clamp(14rem, 11rem + 9vw, 18rem); }
.arch-card__link { display: flex; flex-direction: column; gap: 1rem; color: inherit; text-decoration: none; }
.arch-card__photo {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 999px 999px 1.25rem 1.25rem;
  background: #24395E;
  box-shadow: inset 0 0 0 1px rgba(198, 170, 120, 0.35), 0 26px 50px -30px rgba(0, 0, 0, 0.8);
}
.arch-card__photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 6px rgba(12, 26, 53, 0.35); pointer-events: none; }
.arch-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.arch-card__link:hover .arch-card__photo img { transform: scale(1.06); }
.arch-card__body { display: flex; flex-direction: column; gap: 0.3rem; padding-inline: 0.25rem; }
.arch-card__where { color: #C6AA78; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.arch-card__name { color: #fff; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.arch-card__text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.arch-card__link:focus-visible { outline: none; }
.arch-card__link:focus-visible .arch-card__photo { outline: 3px solid #C6AA78; outline-offset: 4px; }
@media (max-width: 991.98px) {
  .explore-arch__grid { grid-template-columns: minmax(0, 1fr); }
  .explore-arch__rail { margin-inline: calc(var(--container-pad) * -1); }
  .explore-arch__track { padding-inline: var(--container-pad); }
  .explore-arch__lead { max-width: 52ch; }
}
@media (prefers-reduced-motion: reduce) { .arch-card__photo img { transition: none; } }

/* "Change trip" on the booking steps (client notes 2026-10-22, point 5). */
.trip-banner__change {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-block: 0.35rem 0.5rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(12, 26, 53, 0.35);
  color: #fff; font-weight: 700; font-size: 0.88rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.trip-banner__change .ic { width: 0.95rem; height: 0.95rem; }
.trip-banner__change:hover { background: #C6AA78; border-color: #C6AA78; color: #17263D; }
.trip-banner__change:focus-visible { outline: 2px solid #C6AA78; outline-offset: 3px; }
.trip-edit {
  width: min(64rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 1.25rem 1.5rem 1.5rem;
  border: 0;
  border-radius: 1.25rem;
  background: var(--ja-cream, #FBF8F2);
  box-shadow: 0 40px 90px -30px rgba(12, 26, 53, 0.6);
  overflow: auto;
}
.trip-edit::backdrop { background: rgba(12, 26, 53, 0.55); }
.trip-edit__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.trip-edit__title { margin: 0; font-size: 1.35rem; color: var(--ja-navy, #0C1A35); }
.trip-edit__close { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: #fff; color: #17263D; box-shadow: 0 2px 8px rgba(12, 26, 53, 0.15); cursor: pointer; }
.trip-edit__close .ic { width: 1rem; height: 1rem; }
.trip-edit__note { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0 0 1rem; padding: 0.7rem 0.9rem; border-radius: 0.75rem; background: #FFF6E5; color: #5A4310; font-size: 0.9rem; line-height: 1.5; }
.trip-edit__note .ic { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; }
/* Only the flights search belongs here: managing, check-in and status are other journeys. */
.trip-edit .search-tabs { display: none; }
@media (max-width: 575.98px) {
  .trip-edit { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; padding: 1rem; }
}

/* Currency menu and approximate prices (client notes 2026-10-22, point 2). */
.flag { display: inline-block; flex: 0 0 auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(12, 26, 53, 0.12); vertical-align: middle; }
.cur-menu { position: relative; }
.cur-menu > summary { list-style: none; cursor: pointer; }
.cur-menu > summary::-webkit-details-marker { display: none; }
.tool-btn--cur { gap: 0.4rem; }
.cur-menu__caret { width: 0.7rem; height: 0.7rem; opacity: 0.6; transition: transform 0.2s ease; }
.cur-menu[open] .cur-menu__caret { transform: rotate(180deg); }
.cur-menu__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  z-index: 60;
  width: 17rem;
  padding: 0.6rem;
  border: 1px solid var(--ja-line, #E9E3D9);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 24px 48px -20px rgba(12, 26, 53, 0.35);
}
.cur-menu__title { margin: 0.2rem 0.5rem 0.4rem; color: var(--ja-muted, #6B7280); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.cur-menu__list { display: grid; gap: 0.1rem; margin: 0; padding: 0; list-style: none; max-height: 18rem; overflow: auto; }
.cur-menu__item { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.55rem; border-radius: 0.55rem; color: var(--ja-navy, #0C1A35); text-decoration: none; font-size: 0.92rem; }
.cur-menu__item:hover { background: var(--ja-beige, #F4EFE7); }
.cur-menu__item.is-current { background: #17263D; color: #fff; }
.cur-menu__name { flex: 1; }
.cur-menu__code { font-weight: 700; font-size: 0.8rem; opacity: 0.8; }
.cur-menu__note { margin: 0.5rem 0.5rem 0.2rem; color: var(--ja-muted, #6B7280); font-size: 0.75rem; line-height: 1.45; }
.cur-menu--drawer { margin-top: 0.5rem; }
.cur-menu--drawer > summary { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.cur-menu--drawer .cur-menu__panel { position: static; width: auto; margin-top: 0.5rem; box-shadow: none; }
.cur-menu > summary:focus-visible, .cur-menu__item:focus-visible { outline: 2px solid var(--ja-gold, #D3A35E); outline-offset: 2px; }
.money-alt { display: block; margin-top: 0.1rem; color: var(--ja-muted, #6B7280); font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.dual-total { display: block; color: var(--ja-muted, #6B7280); font-size: 0.85rem; font-weight: 600; }
.charge-note { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.75rem 0 0; padding: 0.7rem 0.85rem; border-radius: 0.7rem; background: #F2F6FB; color: #17263D; font-size: 0.9rem; line-height: 1.5; }
.charge-note .ic { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; }
.footer-bottom__credit a { color: inherit; opacity: 0.75; }

/* Seat step: "seat selection is optional" pop-up (client request 2026-10-22). */
.seat-optional {
  /* A plain width with a floor, so no browser can shrink it to one word a line (seen 2026-11-15). */
  box-sizing: border-box;
  width: 28rem;
  max-width: calc(100vw - 2rem);
  min-width: min(20rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 2rem 1.75rem 1.6rem;
  border: 0;
  border-radius: 1.25rem;
  background: #fff;
  color: var(--ja-ink, #1C2530);
  text-align: center;
  box-shadow: 0 40px 90px -30px rgba(12, 26, 53, 0.6);
}
.seat-optional::backdrop { background: rgba(12, 26, 53, 0.55); }
.seat-optional__close { position: absolute; top: 0.75rem; inset-inline-end: 0.75rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: var(--ja-beige, #F4EFE7); color: #17263D; cursor: pointer; }
.seat-optional__close .ic { width: 0.9rem; height: 0.9rem; }
.seat-optional__icon { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 0.75rem; border-radius: 50%; background: rgba(198, 170, 120, 0.18); color: #74501D; }
.seat-optional__icon .ic { width: 1.6rem; height: 1.6rem; }
.seat-optional__title { margin: 0 0 0.5rem; font-size: 1.35rem; color: var(--ja-navy, #0C1A35); }
.seat-optional__text { margin: 0 0 1.4rem; color: var(--ja-text, #3E4A55); line-height: 1.65; }
.seat-optional__actions { display: grid; gap: 0.6rem; }
.seat-optional__actions .btn-ja { width: 100%; justify-content: center; }
.seat-optional__choose { border: 0; background: none; color: var(--ja-navy, #0C1A35); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0.35rem; }
.seat-optional__close:focus-visible, .seat-optional__choose:focus-visible { outline: 2px solid var(--ja-gold, #D3A35E); outline-offset: 2px; }

/* Explore Jordan place pages (client feedback 2026-10-22): the practical facts as a card, then
   the way to book. Written in the page body in the admin, so styled by class here. */
.prose .place-facts { margin: 1.75rem 0 1.25rem; padding: 1.1rem 1.35rem 0.6rem; border: 1px solid var(--ja-line, #E9E3D9); border-inline-start: 4px solid var(--ja-gold, #D3A35E); border-radius: 0.9rem; background: var(--ja-cream, #FBF8F2); }
.prose .place-facts h3 { margin: 0 0 0.6rem; font-size: 1.1rem; color: var(--ja-navy, #0C1A35); }
.prose .place-facts ul { margin: 0; padding: 0; list-style: none; }
.prose .place-facts li { padding: 0.45rem 0; border-top: 1px solid var(--ja-line, #E9E3D9); }
.prose .place-facts li:first-child { border-top: 0; }
.prose .place-facts strong { color: var(--ja-navy, #0C1A35); }
.prose .place-cta { margin: 1.25rem 0 0; }
.prose .place-cta a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.4rem; border-radius: 999px; background: var(--ja-gold, #D3A35E); color: #17263D; font-weight: 700; text-decoration: none; }
.prose .place-cta a:hover { filter: brightness(1.06); }
.prose .place-cta a:focus-visible { outline: 2px solid #17263D; outline-offset: 3px; }

/* Phones (review 2026-10-25): the header has room for search, Book Now and the menu only — the
   currency button pushed it past the screen and the whole page slid sideways. On phones the
   currency is chosen in the side menu, like the language and the login already are. */
@media (max-width: 767.98px) {
  .header-tools .cur-menu { display: none; }
}
@media (max-width: 400px) {
  .header-tools { gap: 0.25rem; }
  .header-tools .header-book { padding-inline: 0.85rem; font-size: 0.8rem; }
}
@media (max-width: 350px) {
  /* The smallest phones (320px): a smaller logo and tighter controls so the bar fits. */
  :root { --logo-h: 2rem; }
  .header-tools .tool-btn--search { padding-inline: 0.3rem; }
  .header-tools .header-book { padding-inline: 0.65rem; font-size: 0.75rem; }
  html { overflow-x: clip; }
}

/* Home "mobile app" band with the client's banner (2026-10-26). The picture is drawn at the band's
   height and only its left part is shown (the phone and its four cards), so it can never reach the
   words; it melts into the band's cream (#FFFCF7, the picture's own background). The words keep to
   the right edge in both languages. Below 1200px the picture sits on top, cropped around the phone. */
.appsec--banner { background: #FFFCF7; display: flex; align-items: center; padding-block: 2.5rem; min-height: clamp(26rem, 6rem + 26vw, 38rem); }
.appsec--banner > .ja-container { position: relative; z-index: 1; width: 100%; }
.appsec__art { position: absolute; inset-block: 0; left: 0; height: 100%; aspect-ratio: 1650 / 984; max-width: 70%; z-index: 0; }
.appsec__art picture, .appsec__art img { display: block; width: 100%; height: 100%; }
.appsec__art img {
  object-fit: cover;
  object-position: left center;
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 100%);
          mask-image: linear-gradient(to right, #000 82%, transparent 100%);
}
.appsec--banner .appsec__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.appsec--banner .appsec__copy { grid-column: 2; justify-self: end; max-width: 30rem; }
[dir="rtl"] .appsec--banner .appsec__copy { grid-column: 1; justify-self: start; }
@media (max-width: 1199.98px) {
  .appsec--banner { display: block; min-height: 0; padding-top: 0; }
  .appsec__art { position: relative; width: 100%; max-width: none; aspect-ratio: auto; height: clamp(15rem, 52vw, 26rem); }
  .appsec__art img { object-position: 14% center; -webkit-mask-image: none; mask-image: none; }
  .appsec--banner .appsec__grid { grid-template-columns: minmax(0, 1fr); }
  .appsec--banner .appsec__copy, [dir="rtl"] .appsec--banner .appsec__copy { grid-column: 1; justify-self: stretch; max-width: 40rem; padding-top: 1.75rem; }
}

/* About Us content (client notes 2026-10-29). "Core Values" heading inside the merged Vision,
   Mission & Values page, and the certificates as document cards: what it is, who issued it, how
   long it is valid, and a clear way to open the PDF. */
.prose .cb-section-title { margin: 2.25rem 0 0; font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); color: var(--ja-navy, #0C1A35); }
.prose:has(.cb-docs) { max-width: none; }
.prose .cb-docs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); margin-top: 0.5rem; }
.prose .cb-doc {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--ja-line, #E9E3D9);
  border-radius: 1rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.prose .cb-doc:hover { border-color: var(--ja-gold, #D3A35E); box-shadow: 0 16px 32px -22px rgba(12, 26, 53, 0.45); transform: translateY(-2px); }
.prose .cb-doc:focus-visible { outline: 2px solid var(--ja-gold, #D3A35E); outline-offset: 3px; }
.prose .cb-doc__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.8rem; background: #17263D; color: #E9D9B8; }
.prose .cb-doc__icon .ic { width: 1.35rem; height: 1.35rem; }
.prose .cb-doc__body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.prose .cb-doc__kind { color: var(--ja-gold-ink, #74501D); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.prose .cb-doc__title { color: var(--ja-navy, #0C1A35); font-size: 1.02rem; line-height: 1.35; }
.prose .cb-doc__text { color: var(--ja-text, #3E4A55); font-size: 0.88rem; line-height: 1.5; }
.prose .cb-doc__meta { color: var(--ja-muted, #6B7280); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.prose .cb-doc__go { padding: 0.45rem 0.9rem; border: 1px solid var(--ja-gold, #D3A35E); border-radius: 999px; color: var(--ja-gold-ink, #74501D); font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.prose .cb-doc:hover .cb-doc__go { background: var(--ja-gold, #D3A35E); color: #17263D; }
@media (max-width: 479.98px) {
  .prose .cb-doc { grid-template-columns: auto minmax(0, 1fr); }
  .prose .cb-doc__go { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .prose .cb-doc { transition: none; } .prose .cb-doc:hover { transform: none; } }

/* ---- PDF flip-book viewer (js/flipbook.js, client request 2026-10-29) ----
   A full-screen dark stage; the book sits in the middle and keeps its own
   proportions. The stage is always left-to-right, on the Arabic site too. */
html.flipbook-open { overflow: hidden; }
.flipbook {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; flex-direction: column;
  background: rgba(10, 18, 34, 0.97);
  color: #fff;
  opacity: 0; transition: opacity 0.25s ease;
}
.flipbook.is-open { opacity: 1; }
.flipbook__bar {
  display: flex; align-items: center; gap: 1rem;
  padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.flipbook__title { flex: 1 1 auto; min-width: 0; margin: 0; font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flipbook__count { margin: 0; color: #E9D9B8; font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.flipbook__download {
  flex: none; padding: 0.45rem 0.9rem; border: 1px solid rgba(211, 163, 94, 0.6); border-radius: 999px;
  color: #E9D9B8; font-size: 0.85rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.flipbook__download:hover, .flipbook__download:focus-visible { background: #D3A35E; border-color: #D3A35E; color: #0C1A35; }
.flipbook__close, .flipbook__nav {
  flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer;
}
.flipbook__close:hover, .flipbook__nav:hover { background: #D3A35E; color: #0C1A35; }
.flipbook__close:focus-visible, .flipbook__nav:focus-visible, .flipbook__download:focus-visible { outline: 2px solid #D3A35E; outline-offset: 3px; }
.flipbook__close .ic, .flipbook__nav .ic { width: 1.2rem; height: 1.2rem; }
.flipbook.is-single .flipbook__nav { display: none; }
.flipbook__stage {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
}
.flipbook__book { flex: 0 1 auto; width: min(100%, 76rem); height: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; }
.flipbook__book .stf__parent { margin: 0 auto; }
.flipbook__page { background: #fff; overflow: hidden; }
.flipbook__page img { display: block; width: 100%; height: 100%; object-fit: fill; user-select: none; pointer-events: none; }
.flipbook__status {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  padding: 1rem; text-align: center; color: #E9D9B8; font-size: 0.95rem;
}
.flipbook__status a { color: #D3A35E; font-weight: 600; }
.flipbook__spinner { width: 1.4rem; height: 1.4rem; border: 2px solid rgba(233, 217, 184, 0.3); border-top-color: #D3A35E; border-radius: 50%; animation: flipbook-spin 0.8s linear infinite; }
@keyframes flipbook-spin { to { transform: rotate(360deg); } }
@media (max-width: 767.98px) {
  .flipbook__nav { position: absolute; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 2; background: rgba(12, 26, 53, 0.8); }
  .flipbook__nav--prev { left: 1rem; }
  .flipbook__nav--next { right: 1rem; }
  .flipbook__stage { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
  .flipbook__download { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
}
@media (max-width: 479.98px) { .flipbook__count { display: none; } }
@media (prefers-reduced-motion: reduce) { .flipbook { transition: none; } .flipbook__spinner { animation-duration: 2s; } }

/* ---- Passengers and fare pop-over (client note 2026-10-29) ----
   The fare is chosen at the top of the passenger pop-over, as on the big travel sites: a
   labelled dropdown, square steppers below it and one full-width "Apply". */
.pax-pop { width: min(24rem, calc(100vw - 2rem)); }
.pax-fare { display: grid; gap: 0.5rem; padding-bottom: 1rem; margin-bottom: 0.25rem; border-bottom: 1px solid var(--ja-line-soft); }
.pax-fare__label { font-family: var(--font-head); font-size: var(--fs-body); font-weight: 700; color: var(--ja-navy); }
.pax-fare__box { position: relative; display: block; }
.pax-fare__select {
  width: 100%; height: 3.25rem;
  padding-block: 0; padding-inline: 1rem 2.75rem;
  border: 1px solid var(--ja-grey-300); border-radius: 0.625rem;
  background: var(--ja-white); color: var(--ja-navy);
  font: inherit; font-size: var(--fs-body);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.pax-fare__select:hover { border-color: var(--ja-gold); }
.pax-fare__select:focus-visible { outline: none; border-color: var(--ja-gold); box-shadow: 0 0 0 3px var(--ja-gold-100); }
.pax-fare__box .ic {
  position: absolute; top: 50%; inset-inline-end: 1rem; width: 0.9rem; height: 0.9rem;
  transform: translateY(-50%); color: var(--ja-navy); pointer-events: none;
}
.pax-pop .pax-row { padding: 0.875rem 0; }
.pax-pop .pax-row + .pax-row { border-top: 0; }
.pax-pop .pax-step__btn {
  width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 0.5rem;
  background: var(--ja-line-cool-2); color: var(--ja-navy);
}
.pax-pop .pax-step__btn:hover:not(:disabled) { background: var(--ja-gold-200); }
.pax-pop .pax-step__btn:disabled { opacity: 0.45; }
.pax-pop .pax-step__btn .ic { width: 0.9rem; height: 0.9rem; }
.pax-pop .pax-pop__foot { display: block; margin-top: 1rem; }
.pax-pop .pax-pop__done { display: block; width: 100%; min-height: 3.25rem; border-radius: 0.625rem; font-size: var(--fs-body); }

/* ---- Checked baggage on a fare card (client note 2026-11-02) ----
   The allowance Videcom quote for this fare on this route, filled by booking-flow.js
   (initFareAllowance) above the fare's own lines. */
.fare-opt__bag { display: flex; align-items: center; gap: 0.5rem; margin: var(--sp-3) 0 0; padding: 0.5rem 0.75rem; border-radius: 0.625rem; background: var(--ja-gold-100); color: var(--ja-navy); font-size: var(--fs-body-sm); font-weight: 700; line-height: 1.4; }
.fare-opt__bag[hidden] { display: none; }
.fare-opt__bag .ic { flex: none; width: 1.05rem; height: 1.05rem; color: var(--ja-gold-ink); }

/* ---- Fields for Latin data on the Arabic site (client note 2026-11-02) ----
   Codes, e-mails, phone and passport numbers keep dir="ltr" so what is typed reads in its own
   order, but the field itself sits to the right like every other Arabic field — and so does its
   Arabic placeholder («أدخل الرمز»), which used to start from the left. */
input[dir="ltr"]:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea[dir="ltr"] { text-align: right; }
input[dir="ltr"]::placeholder,
textarea[dir="ltr"]::placeholder { direction: rtl; text-align: right; }


/* ---- Places to visit (theme "places", Explore Jordan - client 2026-11-09) -------------- */
.place-grid {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.place-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--ja-white);
  box-shadow: 0 0 2.25rem rgba(113, 113, 113, 0.14);
  color: inherit;
  text-decoration: none;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.place-card:hover { transform: translateY(-0.3rem); box-shadow: var(--sh-xl); color: inherit; }
.place-card:focus-visible { outline: 2px solid var(--ja-gold); outline-offset: 3px; }
.place-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ja-ink); }
.place-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
.place-card:hover .place-card__media img { transform: scale(1.06); }
.place-card__region {
  position: absolute;
  inset-block-end: 0.875rem; inset-inline-start: 0.875rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(12, 26, 53, 0.72);
  backdrop-filter: blur(4px);
  color: var(--ja-white);
  font-size: 0.75rem; font-weight: 600;
}
.place-card__region .ic { width: 0.85rem; height: 0.85rem; color: var(--ja-gold-300); }
.place-card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.1rem, 0.9rem + 0.6vw, 1.5rem); }
.place-card__title { font-size: clamp(1.15rem, 1rem + 0.4vw, 1.4rem); margin: 0 0 0.45rem; }
.place-card__text {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: var(--fs-body-sm); line-height: 1.65; color: var(--ja-text);
  margin-bottom: 1rem;
}
.place-card__more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; font-size: 0.9375rem; color: var(--ja-gold-700);
}
.place-card__more .ic { width: 1rem; height: 1rem; transition: transform var(--t-base) var(--ease); }
.place-card:hover .place-card__more .ic { transform: translateX(0.2rem); }
[dir="rtl"] .place-card:hover .place-card__more .ic { transform: scaleX(-1) translateX(0.2rem); }
@media (max-width: 1024px) { .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .place-grid { grid-template-columns: minmax(0, 1fr); } }


/* ---- Reference guide (theme "guide", the baggage policy - client 2026-11-09) ------------ */
.guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
}
.guide__aside { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1.25rem; }
.guide__aside .anchor-menu { position: static; }
.guide__tools { display: flex; justify-content: flex-end; margin-bottom: 0.75rem; }
.guide__toggle {
  border: 1px solid var(--ja-line); background: var(--ja-white); border-radius: 999px;
  padding: 0.4rem 0.95rem; font-weight: 600; font-size: 0.875rem; color: var(--ja-navy); cursor: pointer;
}
.guide__toggle:hover { border-color: var(--ja-gold); }
.guide__item { background: var(--ja-white); border: 1px solid var(--ja-line); border-radius: var(--r-lg); margin: 0; }
.guide__item + .guide__item { margin-top: 0.75rem; }
.guide__item[open] { border-color: var(--ja-gold-300); box-shadow: 0 0 2rem rgba(113, 113, 113, 0.10); }
.guide__head { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.25rem; }
.guide__head::-webkit-details-marker { display: none; }
.guide__head:focus-visible { outline: 2px solid var(--ja-gold); outline-offset: 2px; border-radius: var(--r-lg); }
.guide__icon {
  flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 0.75rem; background: var(--ja-gold-100); color: var(--ja-gold-700);
}
.guide__icon .ic { width: 1.25rem; height: 1.25rem; }
.guide__title-wrap { flex: 1; min-width: 0; }
.guide__title { margin: 0; font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem); }
.guide__sub { display: block; margin-top: 0.15rem; font-size: var(--fs-body-sm); color: var(--ja-muted); }
.guide__chev { flex: none; width: 1.1rem; height: 1.1rem; color: var(--ja-muted); transition: transform var(--t-base) var(--ease); }
.guide__item[open] .guide__chev { transform: rotate(180deg); }
.guide__body { max-width: none; padding: 0 1.25rem 1.25rem; padding-inline-start: calc(1.25rem + 2.5rem + 0.9rem); }
/* A wide table (the hand-luggage items) scrolls inside its card, never the page. */
.guide__body table { display: block; max-width: 100%; overflow-x: auto; }
@media (max-width: 1024px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  .guide__aside { position: static; }
  .guide__nav { display: none; }
  .guide__body { padding-inline-start: 1.25rem; }
}

/* A long section (the hand-luggage rules) brings its own headings: sized for a card, not a page. */
.guide__body h2 { font-size: 1.15rem; margin: 1.25rem 0 0.5rem; }
.guide__body h3 { font-size: 1.05rem; margin: 1.1rem 0 0.4rem; }
.guide__body h4 { font-size: 0.975rem; margin: 0.9rem 0 0.35rem; }
.guide__body > :first-child { margin-top: 0; }
.guide__body :is(p, h2, h3, h4):empty { display: none; }


/* ---- WhatsApp button and chatbot (client requirements 2026-11-10, §14) ---------------------
   The chatbot's own bubble sits bottom-right (20px, 56px wide), so WhatsApp stands just above it on
   the same side, and back-to-top moves to the bottom-left - one corner, one button each. */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 2147483645;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform var(--t-base) var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float:focus-visible { outline: 3px solid var(--ja-gold); outline-offset: 3px; }
.wa-float--alone { bottom: 20px; }
.to-top { inset-inline-end: auto; right: auto; left: clamp(1rem, 0.4rem + 1vw, 1.75rem); }
@media (max-width: 600px) {
  .wa-float { width: 50px; height: 50px; right: 16px; bottom: 84px; }
  .wa-float--alone { bottom: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
}
@media print { .wa-float { display: none; } }

/* ==========================================================================
   Services & products on the extras step (requirements 2026-11-10, 6.4)
   ========================================================================== */
.addon-group__title {
  margin: var(--sp-6) 0 var(--sp-3);
  font-family: var(--font-head);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--ja-navy);
}
.addon-group__title:first-of-type { margin-top: var(--sp-2); }
.addon-grid--products + .addon-group__title { margin-top: var(--sp-6); }
.addon--product { padding: 0; overflow: hidden; }
.addon--product > :not(.addon__img) { margin-inline: var(--sp-5); }
.addon--product > .addon__name { margin-top: var(--sp-4); }
.addon--product > .addon__foot { padding-bottom: var(--sp-5); }
.addon__img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ja-line-cool);
}
.addon__was {
  margin-inline-start: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ja-grey-500);
}
.addon-note {
  margin: var(--sp-3) 0 var(--sp-6);
  font-size: 0.75rem;
  color: var(--ja-grey-500);
}
.sum-row[hidden] { display: none; }

/* Manage Booking: services bought after the booking (requirements 6.5) */
.manage-services { border-top: 1px solid var(--ja-line-cool); padding-top: var(--sp-5); }
.addon__qty--plain { flex-direction: column; align-items: stretch; gap: 0.25rem; min-width: 5.5rem; }
.addon__qty--plain .select-ja { min-width: 5.5rem; }

/* --- Complaints form (/complaints) --- */
.complaint-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.complaint-done__ref {
  display: inline-block;
  margin: 0 0 var(--sp-3, 1rem);
  padding: 0.4rem 1rem;
  border-radius: var(--r-pill, 999px);
  background: var(--ja-navy);
  color: var(--ja-white);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* --- Extras: services as compact rows (2026-11-15) -------------------------------------
   The large picture cards meant scrolling past one or two services a screen. Each service is
   now one row: a small square picture, the name and description, then price and Add at the
   end of the row; on a phone the price and Add move under the text. Same markup and controls. */
.addon-grid--products { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
.addon--product {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  grid-template-areas: 'img name foot' 'img desc foot';
  grid-template-rows: auto 1fr;
  align-items: center;
  column-gap: var(--sp-4);
  row-gap: 0.15rem;
  min-height: 0;
  padding: 0.75rem var(--sp-4);
  overflow: visible;
}
.addon--product:not(:has(> .addon__img)) {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'name foot' 'desc foot';
}
.addon--product > :not(.addon__img) { margin-inline: 0; }
.addon--product > .addon__img {
  grid-area: img;
  width: 5.5rem;
  height: 5.5rem;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-sm, 0.5rem);
  align-self: center;
}
.addon--product > .addon__name { grid-area: name; margin: 0; align-self: end; }
.addon--product > .addon__desc { grid-area: desc; margin: 0; align-self: start; }
.addon--product > .addon__foot {
  grid-area: foot;
  margin: 0;
  padding: 0;
  gap: var(--sp-4);
  align-self: center;
}
.addon--product .addon__price { text-align: end; }
@media (max-width: 575.98px) {
  .addon--product {
    grid-template-columns: 4rem minmax(0, 1fr);
    grid-template-areas: 'img name' 'img desc' 'foot foot';
    grid-template-rows: auto auto auto;
    padding: 0.75rem;
  }
  .addon--product:not(:has(> .addon__img)) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'name' 'desc' 'foot';
  }
  .addon--product > .addon__img { width: 4rem; height: 4rem; align-self: start; }
  .addon--product > .addon__foot {
    justify-content: space-between;
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 1px solid var(--ja-line-cool);
  }
  .addon--product .addon__price { text-align: start; }
}

.valu-mobile { margin-bottom: var(--sp-4); }
.valu-mobile__row { display: flex; gap: 0.5rem; align-items: stretch; }
.valu-mobile__row .input-ja { flex: 1 1 auto; min-width: 0; }
.valu-mobile .pay-methods__note { margin: 0.5rem 0 0; }

/* ---- Shop with Jordan Aviation — the home banner after the offers (client notes 2026-11-19) ----
   Navy card, the picture on the far side under a veil that deepens towards the copy, gold
   eyebrow and button. Logical properties only, so the Arabic page mirrors it with no extra rule;
   the veil's direction is the one thing flipped, through [dir=rtl]. Hidden until a link is set
   in Admin (Home.cshtml, 02c). */
.shop-band { padding-block: clamp(1.5rem, 0.8rem + 2.5vw, 3.5rem); }
.shop-band__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(15rem, 10rem + 12vw, 22rem);
  border-radius: var(--r-xl);
  background: radial-gradient(120% 140% at 100% 0%, #1B2B47 0%, var(--ja-ink, #0F1921) 60%);
  color: #fff;
  box-shadow: 0 1.25rem 2.5rem -1.5rem rgba(15, 25, 33, 0.55);
}
[dir="rtl"] .shop-band__card { background: radial-gradient(120% 140% at 0% 0%, #1B2B47 0%, var(--ja-ink, #0F1921) 60%); }
.shop-band__img {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.shop-band__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--ja-ink, #0F1921) 0%, var(--ja-ink, #0F1921) 38%, rgba(15, 25, 33, 0.55) 62%, rgba(15, 25, 33, 0.05) 100%);
}
[dir="rtl"] .shop-band__veil {
  background: linear-gradient(270deg, var(--ja-ink, #0F1921) 0%, var(--ja-ink, #0F1921) 38%, rgba(15, 25, 33, 0.55) 62%, rgba(15, 25, 33, 0.05) 100%);
}
/* No picture yet: a gold arc on the far side so the card still has a shape. */
.shop-band__card--plain .shop-band__veil {
  background: radial-gradient(circle at 92% 50%, rgba(211, 163, 94, 0.28) 0 18%, transparent 18.2%),
              radial-gradient(circle at 92% 50%, rgba(211, 163, 94, 0.12) 0 30%, transparent 30.2%);
}
[dir="rtl"] .shop-band__card--plain .shop-band__veil {
  background: radial-gradient(circle at 8% 50%, rgba(211, 163, 94, 0.28) 0 18%, transparent 18.2%),
              radial-gradient(circle at 8% 50%, rgba(211, 163, 94, 0.12) 0 30%, transparent 30.2%);
}
.shop-band__copy {
  position: relative;
  max-width: 34rem;
  padding: clamp(1.5rem, 0.9rem + 2.6vw, 3.5rem);
}
.shop-band__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 var(--sp-3);
  font-family: var(--font-head);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ja-gold);
}
[dir="rtl"] .shop-band__eyebrow { letter-spacing: 0; }
.shop-band__eyebrow .ic { width: 1.125rem; height: 1.125rem; }
.shop-band__title {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-head);
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  color: #fff;
}
.shop-band__title .text-gold { color: var(--ja-gold); }
.shop-band__text {
  margin: 0 0 var(--sp-6);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}
/* The whole card opens the shop: a second, hidden link under the copy (the button keeps its own
   shine and focus ring; the text above stays readable and only the button takes the click). */
.shop-band__hit { position: absolute; inset: 0; z-index: 0; }
.shop-band__copy { z-index: 1; pointer-events: none; }
.shop-band__btn { pointer-events: auto; }
.shop-band__card:hover .shop-band__btn { background: var(--ja-gold-600); border-color: var(--ja-gold-600); }
.shop-band__card:hover .shop-band__img { transform: scale(1.03); }
.shop-band__img { transition: transform 0.6s ease; }
.shop-band__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .shop-band__img { transition: none; } .shop-band__card:hover .shop-band__img { transform: none; } }
@media (max-width: 767.98px) {
  .shop-band__card { flex-direction: column; align-items: stretch; min-height: 0; }
  .shop-band__img { position: relative; inset: auto; width: 100%; height: 11rem; z-index: -2; }
  .shop-band__veil,
  [dir="rtl"] .shop-band__veil { background: linear-gradient(180deg, rgba(15, 25, 33, 0) 0, rgba(15, 25, 33, 0) 7rem, var(--ja-ink, #0F1921) 11rem); }
  .shop-band__copy { max-width: none; padding-top: var(--sp-5); }
  .shop-band__btn { align-self: flex-start; }
}

/* ---- Phone: no 0 as the first digit (client notes 2026-11-19) — the hint lights up when main.js
   has just taken a leading zero off. */
.phone-hint { display: block; margin-top: 0.375rem; transition: color 0.2s ease; }
.phone-hint.is-flash { color: var(--ja-gold-ink, #74501D); font-weight: 600; }

/* ---- Fare cards (client 2026-11-22): the four fares side by side, five services each with ✓ / ×,
   then the extras a passenger can buy. Logical properties, so the same rules serve both directions. */
.ftc { margin-block-end: var(--sp-10, 3rem); }
.ftc__lead { margin: 0 auto var(--sp-6, 2rem); max-width: 44rem; text-align: center; color: var(--ja-muted); font-size: 1.0625rem; }
.ftc__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ftc-card {
  display: flex; flex-direction: column;
  background: var(--ja-white, #fff);
  border: 1px solid var(--ja-line, #e6e1d8);
  border-block-start: 4px solid var(--fam, var(--ja-navy));
  border-radius: 1rem;
  padding: 1.25rem 1.125rem 1.125rem;
  box-shadow: 0 6px 20px rgba(23, 38, 61, 0.06);
}
.ftc-card__head { text-align: center; padding-block-end: 0.875rem; border-block-end: 1px solid var(--ja-line, #e6e1d8); margin-block-end: 0.25rem; }
.ftc-card__name { display: block; font-family: var(--font-head); font-size: 1.375rem; font-weight: 800; color: var(--ja-navy); line-height: 1.2; }
.ftc-card__alt { display: block; margin-block-start: 0.125rem; font-size: 0.9375rem; font-weight: 600; color: var(--ja-muted); }
.ftc-card__list { list-style: none; margin: 0 0 1rem; padding: 0; flex: 1 1 auto; }
.ftc-feat {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 1.75rem; align-items: center; gap: 0.625rem;
  padding-block: 0.75rem; border-block-end: 1px solid var(--ja-line-soft, #f0ece4);
}
.ftc-feat:last-child { border-block-end: 0; }
.ftc-feat__ic { width: 1.75rem; height: 1.75rem; color: var(--ja-navy); }
.ftc-feat__txt { display: flex; flex-direction: column; min-width: 0; }
.ftc-feat__name { font-weight: 700; color: var(--ja-ink, #1b1f24); line-height: 1.3; }
.ftc-feat__line { font-size: 0.8125rem; color: var(--ja-muted); line-height: 1.35; }
.ftc-feat__mark { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; }
.ftc-feat__mark .ic { width: 1rem; height: 1rem; }
.ftc-feat.is-yes .ftc-feat__mark { background: var(--ja-green-tint, #e6f3ec); color: var(--ja-green-ink, #1e6b45); }
.ftc-feat.is-no .ftc-feat__mark { background: #f8e9e9; color: var(--ja-red, #b23b3b); }
.ftc-feat.is-no .ftc-feat__ic, .ftc-feat.is-no .ftc-feat__name { color: var(--ja-muted); }
.ftc-card__cta { margin-block-start: auto; }
.ftc-card__soon { display: block; margin-block-start: auto; padding: 0.75rem; text-align: center; border-radius: 0.75rem; background: var(--ja-cream, #f6f1e7); color: var(--ja-muted); font-weight: 600; }

.ftc-addons { margin-block-start: 1.75rem; padding: 1.25rem 1.5rem; border: 1px solid var(--ja-line, #e6e1d8); border-radius: 1rem; background: var(--ja-cream, #f6f1e7); }
.ftc-addons__title { margin: 0 0 1rem; font-size: 1.25rem; color: var(--ja-navy); }
.ftc-addons__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ftc-addons__item { display: flex; align-items: flex-start; gap: 0.875rem; padding: 0.875rem 1rem; background: var(--ja-white, #fff); border-radius: 0.75rem; }
.ftc-addons__ic { flex: 0 0 auto; width: 2rem; height: 2rem; color: var(--ja-gold-700, #8a6a35); }
.ftc-addons__txt { display: flex; flex-direction: column; gap: 0.125rem; }
.ftc-addons__name { font-weight: 700; color: var(--ja-navy); }
.ftc-addons__price { color: var(--ja-ink, #1b1f24); }

.ftc-more { margin-block-start: var(--sp-8, 2.5rem); }
.ftc-more__summary { cursor: pointer; font-weight: 700; color: var(--ja-navy); padding-block: 0.5rem; }
.ftc-more[open] .ftc-more__summary { margin-block-end: 1rem; }

@media (max-width: 1100px) { .ftc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ftc__grid, .ftc-addons__list { grid-template-columns: minmax(0, 1fr); }
  .ftc-addons { padding: 1rem; }
}

/* ---- Plan & Book fare cards (client 2026-11-22): the airline's copy on each card, four across. */
.fare-fam-sub { margin: -0.25rem 0 0.5rem; font-weight: 700; color: var(--ja-gold-ink, #74501D); }
.fare-family--n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fare-fam__alt { display: block; margin-block-start: 0.125rem; font-family: var(--font-body, inherit); font-size: 0.8125rem; font-weight: 600; color: var(--ja-muted); }
.fare-fam__tagline { margin: 0; font-weight: 700; color: var(--ja-navy); line-height: 1.5; }
.fare-fam__text { margin: 0; font-size: 0.9063rem; line-height: 1.65; color: var(--ja-muted); }
.fare-fam__cta { align-self: end; margin-block-start: 0.5rem; }
.fare-fam__soon { display: block; padding: 0.625rem; text-align: center; border-radius: 0.75rem; background: var(--ja-cream, #f6f1e7); color: var(--ja-muted); font-weight: 600; }
@media (max-width: 1100px) { .fare-family--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fare-family--n4 { grid-template-columns: minmax(0, 1fr); } }

/* ---- Travel documents (client 2026-11-22): four cards with an icon each, then the passenger's
   responsibility. The page text holds only classes; icons are CSS masks in the site's stroke style. */
.prose .doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.75rem 0; }
.prose .doc-card { padding: 1.5rem 1.25rem 1.25rem; border: 1px solid var(--ja-line, #e6e1d8); border-radius: 1rem; background: var(--ja-white, #fff); }
.prose .doc-card::before {
  content: ""; display: block; width: 1.75rem; height: 1.75rem; margin: 0 auto 0.625rem;
  background-color: var(--ja-navy, #17263D);
  -webkit-mask: var(--doc-ic) center / contain no-repeat; mask: var(--doc-ic) center / contain no-repeat;
}
.prose .doc-card--passport { --doc-ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'5'%20y%3D'3'%20width%3D'14'%20height%3D'18'%20rx%3D'2'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'10'%20r%3D'2.6'%2F%3E%3Cpath%20d%3D'M8.6%2015.6c.8-1.4%202-2%203.4-2s2.6.6%203.4%202M9%2018h6'%2F%3E%3C%2Fsvg%3E"); }
.prose .doc-card--visa { --doc-ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M14%203H7a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h10a2%202%200%200%200%202-2V8z'%2F%3E%3Cpath%20d%3D'M14%203v5h5'%2F%3E%3Cpath%20d%3D'm9.2%2014.2%202%202%203.6-3.8'%2F%3E%3C%2Fsvg%3E"); }
.prose .doc-card--child { --doc-ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12.5'%20r%3D'8'%2F%3E%3Cpath%20d%3D'M12%204.5c-1.2%200-2%20.8-2%201.7s.9%201.4%201.7%201.1'%2F%3E%3Ccircle%20cx%3D'9.3'%20cy%3D'11.6'%20r%3D'.6'%20fill%3D'black'%2F%3E%3Ccircle%20cx%3D'14.7'%20cy%3D'11.6'%20r%3D'.6'%20fill%3D'black'%2F%3E%3Cpath%20d%3D'M9.6%2015.2c1.4%201.2%203.4%201.2%204.8%200'%2F%3E%3C%2Fsvg%3E"); }
.prose .doc-card--extra { --doc-ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'5'%20y%3D'4.5'%20width%3D'14'%20height%3D'16.5'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M9%203h6v3H9z'%2F%3E%3Cpath%20d%3D'M8.5%2010.5h.01M11%2010.5h4.5M8.5%2014h.01M11%2014h4.5M8.5%2017.5h.01M11%2017.5h4.5'%2F%3E%3C%2Fsvg%3E"); }
.prose .doc-card__title { margin: 0 0 0.75rem; text-align: center; font-size: 1.125rem; color: var(--ja-navy, #17263D); }
.prose .doc-card p { margin: 0 0 0.5rem; font-size: 0.9375rem; line-height: 1.75; color: var(--ja-text, #3b4350); }
.prose .doc-card p:last-child { margin-bottom: 0; }
.prose .doc-note { margin-top: 1.75rem; padding: 1.25rem 1.5rem; border-radius: 1rem; background: var(--ja-cream, #f6f1e7); border-inline-start: 4px solid var(--ja-gold, #C6AA78); }
.prose .doc-note__title { margin: 0 0 0.5rem; font-size: 1.125rem; color: var(--ja-navy, #17263D); }
.prose .doc-note p { margin: 0 0 0.5rem; }
.prose .doc-note p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .prose .doc-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---- Restricted & prohibited items (client 2026-11-22): the Travel documents cards, own icons. */
.prose .doc-card--battery { --doc-ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'3'%20y%3D'7'%20width%3D'16'%20height%3D'10'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M21%2010.5v3'%2F%3E%3Cpath%20d%3D'm11.5%209-2%203h3l-2%203'%2F%3E%3C%2Fsvg%3E"); }
.prose .doc-card--sharp { --doc-ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'6'%20cy%3D'6'%20r%3D'3'%2F%3E%3Ccircle%20cx%3D'6'%20cy%3D'18'%20r%3D'3'%2F%3E%3Cpath%20d%3D'M20%204%208.1%2015.9M14.5%2014.5%2020%2020M8.1%208.1%2012%2012'%2F%3E%3C%2Fsvg%3E"); }
.prose .doc-card--flame { --doc-ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%2022c3.9%200%207-2.9%207-6.8%200-3-1.8-5.2-3.4-7-.3%201.8-1.2%203-2.6%203.6.4-3.2-.8-6.4-3.5-8.8C9%206.8%205%209.7%205%2015.2%205%2019.1%208.1%2022%2012%2022Z'%2F%3E%3Cpath%20d%3D'M12%2022c-1.7%200-3-1.3-3-3%200-1.9%201.6-3.1%203-4.5%201.4%201.4%203%202.6%203%204.5%200%201.7-1.3%203-3%203Z'%2F%3E%3C%2Fsvg%3E"); }
.prose .doc-card--liquid { --doc-ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%202.8s6%206.5%206%2011.2a6%206%200%200%201-12%200c0-4.7%206-11.2%206-11.2Z'%2F%3E%3Cpath%20d%3D'M9.5%2015a2.6%202.6%200%200%200%202.5%202.4'%2F%3E%3C%2Fsvg%3E"); }

/* ---- Offer cards both ways (client 2026-11-22): outbound and return, each with its arrow and price. */
.offer-legs { display: grid; gap: 0.5rem; margin-block: 0.25rem 0.375rem; }
.offer-leg {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.625rem;
  padding: 0.625rem 0.75rem; border: 1px solid var(--ja-line, #e6e1d8); border-radius: 0.75rem; background: var(--ja-white, #fff);
}
.offer-leg__dir { padding: 0.125rem 0.5rem; border-radius: 999px; background: var(--ja-gold-100, #f5ecd9); color: var(--ja-gold-ink, #74501D); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.offer-leg__route { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; min-width: 0; font-weight: 700; color: var(--ja-navy, #17263D); line-height: 1.3; }
.offer-leg__route .ic { width: 1rem; height: 1rem; color: var(--ja-gold, #C6AA78); flex: 0 0 auto; }
.offer-leg__price { text-align: end; line-height: 1.1; white-space: nowrap; }
.offer-leg__from { display: block; font-size: 0.6875rem; color: var(--ja-muted); }
.offer-leg__value { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; color: var(--ja-gold-700, #8a6a35); }
.offer-leg__cur { margin-inline-start: 0.25rem; font-size: 0.75rem; color: var(--ja-muted); }
.offer-leg__price--none { font-size: 0.75rem; color: var(--ja-muted); white-space: normal; }
