/* ===== Transit brand tokens ===== */
:root{
  --dark:#3f4145;
  --dark-2:#2c2e31;
  --orange:#f7931e;
  --orange-d:#e07d0a;
  --yellow:#ffc20e;
  --blue:#29abe2;
  --blue-d:#1f8fbf;
  --ink:#22252a;
  --muted:#6b7280;
  --line:#e7e9ee;
  --bg:#f6f8fb;
  --white:#fff;
  --radius:16px;
  --shadow:0 10px 30px rgba(24,32,54,.10);
  --shadow-lg:0 24px 60px rgba(24,32,54,.18);
  --grad-cta:linear-gradient(135deg,var(--orange),var(--yellow));

  /* ===== §28 — THE LAYER SCALE. Five names, one order, and no number outside this block. =====
     The bug this exists for: `.header` (the site header, which CONTAINS the account dropdown) and
     `.ck__head` (the checkout stepper) were BOTH `z-index:40`. Equal z-index resolves by document
     order, the checkout header comes later, so it painted over the site header — and because
     `.header` is `position:sticky` with a z-index it is a STACKING CONTEXT, the dropdown's own
     `z-index:50` could never escape it. The menu was therefore drawn UNDER a bar it visually sits
     on top of, and no z-index inside `.acct` could ever have fixed it.
     The rule that replaces it: a dropdown belongs to the header, so the header must outrank every
     sticky element on the page, and nothing may declare a raw number to jump the queue.
       content  <  sticky (in-page bars)  <  header  <  popover  <  modal  <  toast          */
  --z-content:0;
  --z-sticky:20;
  --z-header:40;
  --z-popover:60;
  --z-modal:100;
  --z-toast:200;
}

*{box-sizing:border-box}
/* component classes below set their own display — keep [hidden] authoritative */
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{
  margin:0;font-family:"Cairo",system-ui,sans-serif;color:var(--ink);
  background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(1180px,92%);margin-inline:auto}

/* ===== Buttons ===== */
.btn{
  font-family:inherit;font-weight:700;cursor:pointer;border:none;
  border-radius:12px;padding:.7rem 1.3rem;font-size:.95rem;
  display:inline-flex;align-items:center;gap:.4rem;justify-content:center;
  transition:.18s ease;white-space:nowrap;
}
.btn--primary{background:var(--grad-cta);color:#fff;box-shadow:0 8px 20px rgba(247,147,30,.35)}
.btn--primary:hover{filter:brightness(1.05);transform:translateY(-1px)}
.btn--ghost{background:transparent;color:var(--dark);border:1.5px solid var(--line)}
.btn--ghost:hover{border-color:var(--blue);color:var(--blue)}
.btn--sm{padding:.45rem .9rem;font-size:.85rem}
.btn--block{width:100%}
.btn--search{padding:.95rem 2rem;font-size:1.05rem;border-radius:14px}

.chip{
  font-family:inherit;font-weight:700;font-size:.85rem;background:#f1f3f7;
  border:none;border-radius:20px;padding:.4rem .9rem;cursor:pointer;color:var(--dark);
}
.chip:hover{background:#e6e9f0}

/* ===== Topbar ===== */
.topbar{background:var(--dark);color:#e8eaee;font-size:.82rem}
.topbar__inner{display:flex;justify-content:space-between;align-items:center;padding:.45rem 0}
.topbar__links{display:flex;gap:.5rem;align-items:center}
.topbar__links a:hover{color:var(--yellow)}
.topbar .dot{opacity:.5}

/* ===== Header ===== */
.header{position:sticky;top:0;z-index:var(--z-header);background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.05)}
.header__inner{display:flex;align-items:center;gap:1.5rem;padding:.6rem 0}
.brand__logo{height:46px;width:auto}
.nav{display:flex;gap:.3rem;margin-inline-start:auto}
.nav__link{font-weight:700;color:var(--dark);padding:.5rem .8rem;border-radius:10px;font-size:.95rem;position:relative}
.nav__link:hover{background:#f4f6fa;color:var(--blue)}
.nav__link.active{color:var(--blue)}
.nav__link.active::after{content:"";position:absolute;inset-inline:.8rem;bottom:.15rem;height:3px;border-radius:3px;background:var(--grad-cta)}
/* min-height = the login button's box (.7rem padding + 1.5px border + one line at .95rem),
   so the header keeps exactly the same height whether a visitor or an account is signed in */
.header__actions{display:flex;align-items:center;gap:.5rem;min-height:3.34rem}

.hamburger{display:none;flex-direction:column;gap:4px;background:none;border:none;cursor:pointer;padding:.4rem}
.hamburger span{width:22px;height:2.5px;background:var(--dark);border-radius:2px}

/* ===== Hero ===== */
.hero{
  position:relative;color:#fff;padding:4.5rem 0 4rem;
  background:#12212b url("/assets/hero.jpg") center 30%/cover no-repeat;
}
.hero::before{
  content:"";position:absolute;inset:0;z-index:0;
  background:linear-gradient(115deg,rgba(15,26,34,.92) 0%,rgba(20,40,55,.72) 45%,rgba(31,111,143,.55) 100%);
}
.hero__inner{position:relative;z-index:2;text-align:center}
.hero__title{font-size:clamp(1.9rem,4vw,3rem);font-weight:900;margin:.2rem 0 .5rem}
.hero__title span{color:var(--yellow)}
.hero__subtitle{max-width:640px;margin:0 auto 1.8rem;opacity:.92;font-size:clamp(.95rem,2vw,1.15rem)}

/* ===== Search card ===== */
.search{background:#fff;color:var(--ink);border-radius:22px;box-shadow:var(--shadow-lg);max-width:960px;margin-inline:auto;overflow:visible;text-align:start}
.search__tabs{display:flex;gap:.3rem;padding:.6rem .6rem 0}
.tab{
  flex:0 0 auto;font-family:inherit;font-weight:800;font-size:1rem;cursor:pointer;
  border:none;background:transparent;color:var(--muted);padding:.8rem 1.4rem;border-radius:12px 12px 0 0;
  display:flex;align-items:center;gap:.4rem;
}
.tab.active{color:var(--dark);background:#f6f8fb}
/* At 320px the two fixed-width tabs together are 4px wider than the viewport, which puts the
   whole page into horizontal scroll before the customer has typed anything. */
@media(max-width:360px){ .tab{padding:.8rem 1rem;font-size:.94rem} }
.tab__icon{font-size:1.1rem}

.search__panel{display:none;padding:1.2rem;background:#f6f8fb;border-radius:0 0 22px 22px}
.search__panel.active{display:block}

/* A fieldset, so it is a real radio group — but it must not inherit a browser's default border,
   margin or padding, or the search card grows a box around its first row. */
.triptype{display:flex;gap:1.2rem;margin:0 0 1rem;padding:0;border:0;flex-wrap:wrap}
.radio{display:flex;align-items:center;gap:.4rem;font-weight:700;font-size:.9rem;cursor:pointer;color:var(--dark);min-height:44px}
.radio input{accent-color:var(--orange);width:18px;height:18px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ===== §A2 — multi-city legs =====
   Stacked rows inside the form. No popup, no modal: the customer sees the whole trip at once and
   every row is the same three fields they already know. */
.mcity{margin-bottom:.9rem}
.mcleg{background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:.7rem .8rem;margin-bottom:.6rem}
.mcleg__h{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}
.mcleg__t{font-weight:800;font-size:.88rem;color:var(--dark)}
.mcleg__t small{color:var(--muted);font-weight:600;margin-inline-start:.4rem}
.mcleg__rm{background:#fff;border:1.5px solid var(--line);color:var(--muted);border-radius:10px;
  min-width:44px;min-height:44px;cursor:pointer;font-size:1.1rem;line-height:1;transition:.15s}
.mcleg__rm:hover{border-color:#e0857e;color:#a32d24;background:#fdf5f4}
.mcleg__f{display:flex;gap:.6rem;flex-wrap:wrap}
.mcleg__f .field{flex:1 1 170px}
.mcity__foot{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}
.mcity__note{font-size:.8rem;color:var(--muted)}
.mcerr{display:block;font-size:.76rem;color:#a32d24;font-weight:700;margin-top:.3rem}
.mcleg--bad .field__box{border-color:#e0857e}
@media(max-width:560px){ .mcleg__f .field{flex:1 1 100%} }

/* ===== §B1 — cabin as a radio group, never a dropdown =====
   The input itself is moved out of sight rather than hidden, so it keeps keyboard focus and a
   screen reader still announces it; the drawn box is the label. Selection is a filled pill AND a
   heavier weight — never colour alone. */
.cabins{border:0;padding:.7rem 0 0;margin:.5rem 0 0;border-top:1px solid #f0f1f4}
.cabins legend{font-size:.78rem;color:var(--muted);font-weight:800;padding:0;margin-bottom:.45rem}
.cabins__g{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}
.cabin{position:relative;display:block;cursor:pointer}
.cabin input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.cabin span{display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px;
  padding:.4rem .5rem;border:1.5px solid var(--line);border-radius:11px;background:#fff;
  font-weight:700;font-size:.84rem;color:var(--dark);transition:.15s;line-height:1.25}
.cabin input:checked + span{border-color:var(--blue);background:#eef7fc;color:#12628f;font-weight:800;
  box-shadow:0 0 0 1px var(--blue) inset}
.cabin input:focus-visible + span{outline:2px solid var(--blue);outline-offset:2px}
.cabin span:hover{border-color:var(--blue)}
/* §4 — THERE IS NO DISABLED CABIN. The greyed-out state and the note under the group are both
   gone: a dimmed «أولى» reads as "we don't sell this", which is not what it ever meant — it meant
   a channel had not declared the parameter, which is an ops fact the customer cannot act on. All
   four options carry the same weight; selection is the only state this control has. */
/* Desktop has room for one row of four; a phone keeps the 2×2 grid. */
@media(min-width:900px){ .cabins__g{grid-template-columns:repeat(4,1fr)} }

.fields{display:flex;gap:.7rem;align-items:stretch;flex-wrap:wrap}
.field{flex:1 1 180px;position:relative;min-width:0}
.field--grow{flex:2 1 300px}
.field--swap{flex:2.4 1 360px;display:flex;align-items:stretch;gap:0}
.field--swap .field__box{flex:1}
.field--pax{flex:1.2 1 220px}

.field__box{
  background:#fff;border:1.5px solid var(--line);border-radius:12px;
  padding:.55rem .85rem;height:100%;cursor:pointer;transition:.15s;
}
.field__box:focus-within,.field__box:hover{border-color:var(--blue)}
.field__label{display:block;font-size:.72rem;color:var(--muted);font-weight:700;margin-bottom:.1rem}
.field__box input,.field__box select{
  width:100%;border:none;background:transparent;font-family:inherit;font-weight:700;
  font-size:1rem;color:var(--ink);padding:0;outline:none;
}
.field__value{font-weight:700;font-size:1rem}

/* §10/§30 — the origin/destination swap, at a real thumb size. It was 38px, which is under the
   44px a finger reliably hits, on a control that sits between two text fields where a near-miss
   types into one of them instead. */
.swap{
  align-self:center;background:#fff;border:1.5px solid var(--line);color:var(--blue);
  width:44px;height:44px;min-width:44px;border-radius:50%;cursor:pointer;
  display:grid;place-items:center;
  margin:0 -8px;z-index:2;position:relative;transition:.2s;
}
.swap svg{width:19px;height:19px;display:block}
.swap:hover{background:var(--blue);color:#fff;transform:rotate(180deg)}
.swap:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* autocomplete dropdown */
.ac{
  position:absolute;top:calc(100% + .35rem);inset-inline:0;background:#fff;border:1px solid var(--line);
  border-radius:12px;box-shadow:var(--shadow-lg);z-index:var(--z-popover);max-height:320px;overflow:auto;display:none;
}
.ac.open{display:block}
.ac__item{display:flex;align-items:center;gap:.7rem;padding:.6rem .8rem;cursor:pointer;border-bottom:1px solid #f2f3f6}
.ac__item:last-child{border-bottom:none}
.ac__item:hover,.ac__item.active{background:#f2f8fc}
.ac__code{background:var(--dark);color:#fff;font-weight:800;font-size:.72rem;border-radius:7px;padding:.25rem .45rem;min-width:44px;text-align:center;letter-spacing:.5px}
/* A city row carries the Transit hotel mark, not a code — so the pill becomes a holder for it
   rather than a coloured chip (the chip's blue fought the mark's own blue). */
.ac__code--city{background:#eef7fc;padding:.2rem;min-width:34px;display:inline-grid;place-items:center}
.ac__code--city .ti svg{width:20px;height:20px;display:block}
.ac__txt b{display:block;font-size:.92rem;line-height:1.25}
.ac__txt small{color:var(--muted);font-size:.76rem}
.ac__hint{padding:.7rem .8rem;color:var(--muted);font-size:.82rem}
.ac__group{padding:.4rem .8rem;font-size:.72rem;font-weight:800;color:var(--muted);background:#fafbfc}

/* credential / info banner */
.banner{
  border:1px dashed var(--orange);background:#fff8ef;border-radius:14px;padding:1rem 1.2rem;
  display:flex;gap:.8rem;align-items:flex-start;color:#7a4a08;
}
.banner b{color:var(--orange-d)}
.banner__ic{font-size:1.4rem}

/* §2 — the empty answer. Not a warning banner: nothing went wrong, the search simply found
   nothing, and the two ways out are the content. Centred, quiet, and never wider than a column. */
.nores{background:#fff;border:1px solid var(--line);border-radius:18px;padding:2rem 1.25rem;
  text-align:center;display:grid;justify-items:center;gap:.5rem}
.nores__ic{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;
  background:#eef4fb;color:var(--blue);margin-bottom:.35rem}
.nores__ic svg{width:26px;height:26px;display:block}
.nores h3{margin:0;font-size:1.02rem;line-height:1.5}
.nores p{margin:0;color:var(--muted);font-size:.88rem}
.nores__acts{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;margin-top:.7rem}
.nores__acts .btn{min-height:44px}

.spinner{display:inline-block;width:18px;height:18px;border:2.5px solid rgba(255,255,255,.5);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;vertical-align:-3px}
.results .spinner{border-color:#d9dde3;border-top-color:var(--orange)}
@keyframes spin{to{transform:rotate(360deg)}}
.rcard__logo img{width:100%;height:100%;object-fit:contain;border-radius:10px}
.hcard__img img{width:100%;height:100%;object-fit:cover;border-radius:12px}
.hcard__fac{display:flex;gap:.6rem;margin-top:.5rem;flex-wrap:wrap;align-items:center}
.hcard__fac img{width:18px;height:18px}
.hcard__fac span{font-size:.76rem;color:var(--muted);display:inline-flex;align-items:center;gap:.25rem}

/* passenger menu */
/* §C — the popover is kept (it is the right control for this), but it is sized so nothing
   overflows: a fixed width on desktop, and on a phone it becomes a full-width sheet under the
   trigger with its own scroll instead of running off the screen edge. */
.paxmenu{
  position:absolute;top:calc(100% + .4rem);inset-inline-end:0;background:#fff;border:1px solid var(--line);
  border-radius:14px;box-shadow:var(--shadow-lg);padding:.9rem 1rem;width:320px;max-width:calc(100vw - 2rem);
  z-index:var(--z-popover);display:none;max-height:min(78vh,560px);overflow-y:auto;overscroll-behavior:contain;
}
.paxmenu.open{display:block}
.paxmenu--up{top:auto;bottom:calc(100% + .4rem)}
.paxrow{display:flex;justify-content:space-between;align-items:center;gap:.6rem;min-height:48px;padding:.35rem 0;border-bottom:1px solid #f0f1f4}
.paxrow:last-of-type{border-bottom:none}
.paxrow__l{font-weight:700;font-size:.92rem;line-height:1.3;min-width:0}
.paxrow small{color:var(--muted);font-weight:600;display:block;font-size:.74rem;margin-top:.1rem}
/* 44px targets: a stepper on a phone is pressed with a thumb, and 30px was a miss waiting to
   happen. The visual box stays small; the touch area is the whole button. */
.stepper{display:flex;align-items:center;gap:.35rem;flex:0 0 auto}
.stepper button{min-width:44px;min-height:44px;border-radius:10px;border:1.5px solid var(--line);background:#fff;
  font-size:1.15rem;font-weight:800;cursor:pointer;color:var(--dark);display:grid;place-items:center;transition:.15s}
.stepper button:hover:not(:disabled){border-color:var(--orange);color:var(--orange)}
.stepper button:disabled{opacity:.4;cursor:not-allowed}
.stepper b{min-width:26px;text-align:center;font-size:1rem}
.paxmenu .btn{margin-top:.8rem;width:100%;min-height:44px}
/* Hotel guests: one block per room, each with its own adults, children and children's ages. */
.paxmenu--rooms{width:340px}
.hroom{padding:.2rem 0 .6rem;border-bottom:1px solid var(--line);margin-bottom:.5rem}
.hroom__h{display:flex;justify-content:space-between;align-items:center;min-height:32px}
.hroom__h b{font-size:.95rem}
.hroom__rm{background:none;border:0;color:#c0392b;font-weight:700;font-size:.82rem;cursor:pointer;padding:.4rem .2rem;min-height:36px}
.hroom__rm:hover{text-decoration:underline}
.hroom__ages{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-top:.3rem}
.hroom__age{display:flex;flex-direction:column;gap:.2rem;font-size:.78rem;font-weight:700;color:var(--muted)}
.hroom__age select{min-height:40px;border:1.5px solid var(--line);border-radius:10px;padding:0 .5rem;font:inherit;color:var(--dark);background:#fff}
.hroom__foot{display:flex;gap:.6rem;align-items:center}
.hroom__foot .btn{flex:1}
/* On a phone the popover is NOT a popover: absolutely positioning it against the search panel put
   it below the whole card, hundreds of pixels under the trigger and half of it off-screen. It
   becomes a bottom sheet pinned to the viewport instead — the trigger stays visible, the sheet
   scrolls on its own, and «تم» is always reachable above the home indicator. */
@media(max-width:560px){
  .field--pax{position:static}
  .paxmenu,.paxmenu--up{
    position:fixed;inset-inline:0;top:auto;bottom:0;width:auto;max-width:none;
    border-radius:18px 18px 0 0;border-inline:none;border-bottom:none;
    padding:1rem 1.2rem calc(1rem + env(safe-area-inset-bottom,0px));
    max-height:85vh;z-index:var(--z-popover);box-shadow:0 -12px 40px rgba(16,24,40,.22);
  }
  .paxmenu.open{animation:paxsheet .18s ease-out}
  /* Same rule as the trip bar: the Maroof seal is a third-party fixed frame at the maximum
     z-index, bottom-start — exactly over «تم». While the sheet is open the button wins. */
  body.pax-on .sbc-seal-frame{display:none!important}
}
@keyframes paxsheet{from{transform:translateY(14px);opacity:.6}to{transform:none;opacity:1}}

.btn--search{margin-top:1rem;width:100%}

.hero__badges{display:flex;gap:1.2rem;justify-content:center;flex-wrap:wrap;margin-top:1.6rem;font-size:.9rem;font-weight:700}
.hero__badges>span{display:inline-flex;align-items:center;gap:.35rem;background:rgba(8,29,42,.9);color:#fff;padding:.45rem .9rem;border:1px solid rgba(255,255,255,.24);border-radius:20px;backdrop-filter:blur(4px)}
.hero__badges .ti{background:transparent;padding:0;border-radius:0}

/* ===== Results ===== */
.results{padding:2rem 0;background:#fff;border-bottom:1px solid var(--line)}
.results__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;flex-wrap:wrap;gap:.6rem}
.results__head h2{margin:0;font-size:1.3rem}
.results__list{display:flex;flex-direction:column;gap:.9rem}

.rcard{
  border:1px solid var(--line);border-radius:16px;padding:1.1rem 1.3rem;display:flex;
  align-items:center;gap:1.2rem;background:#fff;transition:.15s;flex-wrap:wrap;
}
.rcard:hover{box-shadow:var(--shadow);border-color:#d8dbe2}
.rcard__airline{display:flex;align-items:center;gap:.6rem;min-width:130px}
.rcard__logo{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;font-size:1.3rem;color:#fff;font-weight:900}
.rcard__airline b{font-size:.95rem}
.rcard__airline small{color:var(--muted);display:block;font-size:.75rem}
.rcard__route{display:flex;align-items:center;gap:1rem;flex:1;min-width:220px}
.rcard__time{text-align:center}
.rcard__time b{font-size:1.25rem;display:block}
.rcard__time small{color:var(--muted);font-size:.78rem}
.rcard__path{flex:1;text-align:center;color:var(--muted);font-size:.78rem;position:relative;min-width:80px}
.rcard__path::before{content:"";position:absolute;top:50%;inset-inline:0;height:2px;background:var(--line)}
.rcard__path span{background:#fff;position:relative;padding:0 .4rem}
.rcard__price{text-align:center;min-width:120px}
.rcard__price .amt{font-size:1.5rem;font-weight:900;color:var(--dark)}
.rcard__price .cur{font-size:.85rem;color:var(--muted)}
.rcard__price .btn{margin-top:.3rem}

/* hotel result card */
.hcard{display:flex;gap:1.1rem;flex-wrap:wrap}
.hcard__img{width:150px;height:110px;border-radius:12px;flex:0 0 auto;display:grid;place-items:center;font-size:2.5rem;color:#fff}
.hcard__body{flex:1;min-width:200px}
.hcard__body h3{margin:.1rem 0}
.hcard__stars{color:var(--yellow);font-size:.9rem}
.hcard__loc{color:var(--muted);font-size:.85rem}
.hcard__tags{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.5rem}
.hcard__tags span{background:#eef6fb;color:var(--blue-d);font-size:.72rem;font-weight:700;padding:.2rem .6rem;border-radius:20px}
.hcard__rating{background:var(--blue);color:#fff;font-weight:800;border-radius:8px;padding:.2rem .5rem;font-size:.85rem;display:inline-block}

/* ===== Sections ===== */
.section{padding:3.5rem 0}
.section--soft{background:#eef1f6}
.section__head{text-align:center;margin-bottom:2rem}
.section__head h2{font-size:clamp(1.5rem,3vw,2rem);margin:0 0 .3rem}
.section__head p{color:var(--muted);margin:0}

.dest-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1.1rem}
.dcard{position:relative;border-radius:18px;overflow:hidden;height:250px;cursor:pointer;box-shadow:var(--shadow);color:#fff;display:flex;align-items:flex-end;transition:transform .3s,box-shadow .3s}
.dcard:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(16,32,54,.22)}
.dcard__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.dcard:hover .dcard__img{transform:scale(1.08)}
.dcard__shade{position:absolute;inset:0;background:linear-gradient(to top,rgba(6,14,22,.85) 4%,rgba(6,14,22,.25) 45%,rgba(6,14,22,.05) 100%)}
.dcard__info{position:relative;z-index:2;padding:1rem 1.2rem .9rem;width:100%}
.dcard__info h3{margin:0;font-size:1.3rem;font-weight:900;display:flex;align-items:baseline;gap:.4rem}
.dcard__code{font-size:.72rem;font-weight:800;opacity:.7;letter-spacing:1px;background:rgba(255,255,255,.16);padding:.1rem .45rem;border-radius:6px}
.dcard__info .from{font-size:.82rem;opacity:.9;margin-top:.25rem}
.dcard__price{font-weight:900;color:var(--yellow)}
.dcard__flag{position:absolute;top:.8rem;inset-inline-start:.8rem;z-index:2;font-size:1.5rem;filter:drop-shadow(0 2px 4px rgba(0,0,0,.4))}
.dcard__cta{position:absolute;z-index:2;inset-inline-end:1.2rem;bottom:1rem;font-size:.8rem;font-weight:800;color:#fff;background:var(--grad,linear-gradient(135deg,#f7931e,#ffc20e));padding:.35rem .8rem;border-radius:20px;opacity:0;transform:translateY(6px);transition:.3s}
.dcard:hover .dcard__cta{opacity:1;transform:translateY(0)}

.deals-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.2rem}
.deal{background:#fff;border-radius:18px;overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column}
.deal__banner{height:160px;position:relative;overflow:hidden}
.deal__banner img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.deal:hover .deal__banner img{transform:scale(1.06)}
.deal__off{position:absolute;top:.7rem;inset-inline-end:.7rem;background:var(--grad,linear-gradient(135deg,#f7931e,#ffc20e));color:#231a08;font-weight:900;padding:.3rem .8rem;border-radius:20px;font-size:.8rem;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.deal__body{padding:1.1rem 1.2rem;flex:1;display:flex;flex-direction:column}
.deal__body h3{margin:0 0 .3rem}
.deal__body p{color:var(--muted);font-size:.88rem;margin:0 0 1rem;flex:1}
.deal__foot{display:flex;justify-content:space-between;align-items:center}
.deal__price b{font-size:1.3rem;color:var(--dark)}
.deal__price small{color:var(--muted);text-decoration:line-through;font-size:.8rem}

/* ===== Features ===== */
.features{padding:3rem 0;background:#fff}
.features__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem}
.feature{text-align:center;padding:1rem}
.feature__ic{font-size:2.4rem;margin-bottom:.5rem}
.feature h3{margin:.2rem 0 .3rem;font-size:1.15rem}
.feature p{color:var(--muted);font-size:.9rem;margin:0}

/* ===== App CTA ===== */
.appcta{background:linear-gradient(120deg,var(--dark),var(--dark-2));color:#fff;padding:3rem 0}
.appcta__inner{display:flex;align-items:center;justify-content:space-between;gap:2rem;flex-wrap:wrap}
.appcta__text h2{font-size:clamp(1.5rem,3vw,2rem);margin:0 0 .5rem}
.appcta__text p{opacity:.85;margin:0 0 1.2rem}
.appcta__stores{display:flex;gap:.8rem;flex-wrap:wrap}
.store{background:#fff;color:var(--ink);font-weight:800;padding:.7rem 1.3rem;border-radius:12px;font-size:.95rem}
.store:hover{background:var(--yellow)}
.appcta__logo img{height:70px;opacity:.95}

/* ===== Footer =====
   §33 — the footer is built by `public/site-footer.js` from `/api/public/config`, and these rules
   are the whole of its appearance. They live in the GLOBAL sheet rather than beside the public
   information pages, because every page in the project carries this one footer. */
.footer{background:var(--dark-2);color:#c9cdd4;font-size:.9rem}
.footer__logo{height:38px;margin-bottom:1rem}
.footer__brand p{max-width:300px;line-height:1.85;margin:0 0 1.1rem;color:#aeb4bd}
.social{display:flex;gap:.6rem;margin-top:1rem}
.social a{width:38px;height:38px;border-radius:50%;background:#3a3d42;display:grid;place-items:center;font-weight:800;color:#fff}
.social a:hover{background:var(--orange)}
.pay{display:flex;flex-wrap:wrap;gap:.5rem}
.pay span{background:#fff;color:#333;font-weight:800;font-size:.72rem;padding:.35rem .6rem;border-radius:6px}
.footer__bar{border-top:1px solid #3a3d42;font-size:.82rem}
.footer__bar-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem}

/* ---- layout, spacing and hierarchy ---- */

/* The footer's own spacing, hierarchy and alignment. Four short lists and a brand block, with the
   brand given the room it needs and the rest equal — the old 2fr/1fr/1fr/1fr/1.2fr grid put a
   five-item legal column in the narrowest track. */
/* An EXPLICIT track count, not `auto-fit`. With `auto-fit` after a fixed first track the remaining
   columns collapsed into one and the whole footer stacked down the side of the page — measured in
   the 1440px screenshot, not guessed. Four named columns is what this footer has; the media queries
   below say what happens when they no longer fit. */
.footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 2.4rem 2rem;
  padding: 3.2rem 0 2.4rem;
  align-items: start;
}
.footer__grid > * { min-width: 0; }
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: minmax(200px, 1fr) repeat(2, minmax(0, 1fr)); }
}
.footer__logo { height: 38px; margin-bottom: 1rem; }
.footer__brand p { max-width: 300px; line-height: 1.85; margin: 0 0 1.1rem; color: #aeb4bd; }
.footer__col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin: 0 0 1rem; }
.footer__col a, .footer__btn {
  display: block; padding: .38rem 0;
  color: #c9cdd4; line-height: 1.6; text-decoration: none;
}
.footer__col a:hover, .footer__btn:hover { color: var(--yellow); }
.footer__btn { background: none; border: 0; font: inherit; text-align: start; cursor: pointer; width: 100%; }
.footer__col a:focus-visible, .footer__btn:focus-visible,
.footer__legal a:focus-visible, .footer__legal button:focus-visible,
.footer__contact a:focus-visible, .social a:focus-visible {
  outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px;
}

.footer__contact { display: grid; gap: .3rem; }
.footer__contact a { color: #e2e5e9; font-weight: 700; text-decoration: none; }
.footer__contact a:hover { color: var(--yellow); }

.social a svg { width: 18px; height: 18px; }

.footer__bar-inner { padding-block: 1.1rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; }
.footer__legal a, .footer__legal button { color: #c9cdd4; }

@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.4rem; padding: 2.4rem 0 1.8rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bar-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ===== A page that ENDS at its footer =====
   A short page — an empty state, a one-row section, a profile form — is shorter than the viewport.
   The document then simply stops where its content stops, and what is painted underneath is the
   browser's own canvas: white, outside every element, and impossible to style away from inside
   the footer. That is what reads as "the footer is in the middle of the page".

   So nothing here pins the footer. The PAGE claims the viewport's height, the main region absorbs
   whatever slack is left, and the footer stays the last thing in normal flow — identical
   behaviour on a short page and on a long one, with no fixed positioning, no bottom:0 and no
   spacer element. Opt-in (`<body class="shell">`), because the homepage and the checkout own
   their own flow and must not inherit a flex container. */
body.shell{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body.shell>main{flex:1 0 auto;min-height:0}
/* The safe area belongs INSIDE the footer — a spacer under it would recreate the very gap this
   rule removes. Zero on every device that has no notch. */
body.shell>.footer{margin-top:auto;flex-shrink:0;padding-bottom:env(safe-area-inset-bottom,0px)}

/* ===== Modal ===== */
.modal{position:fixed;inset:0;z-index:var(--z-modal);display:grid;place-items:center}
.modal[hidden]{display:none}
.modal__backdrop{position:absolute;inset:0;background:rgba(20,24,30,.55);backdrop-filter:blur(2px)}
.modal__card{position:relative;background:#fff;border-radius:20px;padding:2rem;width:min(400px,92%);box-shadow:var(--shadow-lg);text-align:center;animation:pop .25s ease}
@keyframes pop{from{transform:translateY(14px) scale(.97);opacity:0}to{transform:none;opacity:1}}
.modal__x{position:absolute;top:.8rem;inset-inline-end:1rem;background:none;border:none;font-size:1.6rem;cursor:pointer;color:var(--muted)}
.modal__logo{height:40px;margin:0 auto 1rem}
.modal__card h3{margin:0 0 .3rem}
.modal__sub{color:var(--muted);margin:0 0 1.3rem;font-size:.9rem}
.authvia{display:flex;gap:.25rem;background:#f4f6fa;border:1.5px solid var(--line);border-radius:12px;padding:.25rem;margin:.75rem 0}
.authvia__b{flex:1;border:0;background:transparent;border-radius:9px;padding:.55rem .5rem;font:inherit;font-weight:800;color:var(--muted,#64748b);cursor:pointer;transition:background .18s,color .18s}
.authvia__b:hover{color:var(--ink,#0f172a)}
.authvia__b.is-on{background:#fff;color:var(--ink,#0f172a);box-shadow:0 1px 3px rgba(15,23,42,.12)}
.authvia__b:focus-visible{outline:2px solid var(--brand,#2563eb);outline-offset:2px}
.phoneRow{display:flex;border:1.5px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:1rem}
.phoneRow .cc{background:#f4f6fa;padding:.75rem .9rem;font-weight:800;border-inline-start:1.5px solid var(--line)}
.phoneRow input{flex:1;border:none;padding:.75rem;font-family:inherit;font-size:1rem;font-weight:700;outline:none;text-align:start;direction:ltr}
.modal__or{display:flex;align-items:center;gap:.8rem;color:var(--muted);margin:1.1rem 0}
.modal__or::before,.modal__or::after{content:"";flex:1;height:1px;background:var(--line)}
.modal__terms{font-size:.75rem;color:var(--muted);margin:1rem 0 0}

/* ===== Toast ===== */
.toast{position:fixed;bottom:1.5rem;inset-inline:0;margin-inline:auto;width:max-content;max-width:90%;
  background:var(--dark-2);color:#fff;padding:.8rem 1.4rem;border-radius:12px;box-shadow:var(--shadow-lg);
  z-index:var(--z-toast);font-weight:600;animation:pop .25s ease}
.toast[hidden]{display:none}
/* While a checkout sheet is open the toast would sit on top of the primary action — the one
   control the customer needs next. Lift it clear of the sticky footer instead. */

/* ===== Responsive ===== */
@media(max-width:860px){
  .nav{display:none}
  .hamburger{display:flex}
  .header__actions .chip--currency{display:none}
  .footer__grid{grid-template-columns:1fr 1fr}
  .footer__brand{grid-column:1/-1}
}
@media(max-width:560px){
  .topbar__inner{font-size:.72rem}
  .field--swap{flex-direction:column}
  .swap{transform:rotate(90deg);margin:-6px auto}
  .swap:hover{transform:rotate(270deg)}
  .loginBtn{display:none}
  .footer__grid{grid-template-columns:1fr}
  .hero__badges{gap:.5rem;font-size:.78rem}
}

/* ============================================================
   PRO RESULTS — layout, filters, flight cards, hotels, detail
   ============================================================ */
.hl-b{color:var(--blue)} .hl-o{color:var(--orange)}
.results{padding:1.6rem 0 3rem;background:var(--bg);border-bottom:1px solid var(--line)}
.results__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.1rem;flex-wrap:wrap;gap:.6rem}
.results__head h2{margin:0;font-size:1.4rem}
.results__head .sub{color:var(--muted);font-weight:600;font-size:.9rem}
/* 300px, not 270: at 270 a real carrier name ("الخطوط السعودية") had to be ellipsised to fit its
   own price on the same row. */
.results__layout{display:grid;grid-template-columns:300px 1fr;gap:1.3rem;align-items:start}
.results__layout--full{grid-template-columns:1fr}
.results__main{min-width:0}

.loadbox{text-align:center;padding:3rem 1rem;color:var(--muted)}
.loadbox p{margin:.8rem 0 0;font-weight:600}

/* filters sidebar */
.filters{position:sticky;top:80px;max-height:calc(100vh - 96px);display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}
.fdr__b::-webkit-scrollbar{width:8px}
.fdr__b::-webkit-scrollbar-thumb{background:#d7dce3;border-radius:8px}
.fdr__b::-webkit-scrollbar-thumb:hover{background:#c2c9d2}
.fbox{padding:.7rem 0;border-bottom:1px solid var(--line)}
.fbox:first-child{padding-top:0}
.fbox h4{margin:0 0 .6rem;font-size:.95rem}
/* The control and its label stay together; only the count is pushed to the far edge. Using
   space-between instead threw the label across the row whenever there was no count — which reads
   as a broken row in LTR, where the eye starts at the control. */
.frow{display:flex;align-items:center;justify-content:flex-start;gap:.5rem;padding:.32rem 0;font-size:.88rem;font-weight:600;cursor:pointer;color:var(--dark)}
.frow>span{display:flex;align-items:center;gap:.4rem;min-width:0;flex:1}
.frow small{color:var(--muted);font-weight:700;margin-inline-start:auto}
.frow input{accent-color:var(--orange);flex:0 0 auto}
.fair-logo{width:20px;height:20px;object-fit:contain;border-radius:4px}
.frange{display:flex;justify-content:space-between;align-items:baseline;font-size:.8rem;color:var(--muted);margin-top:.35rem}
.frange b{color:var(--dark)}
input[type=range]{width:100%;accent-color:var(--orange);cursor:pointer}
.filters .btn{margin-top:.8rem}

/* toolbar / sort */
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:.8rem;margin-bottom:.9rem;flex-wrap:wrap}
.toolbar__count{font-weight:800;color:var(--dark)}
.segmented{display:inline-flex;background:#eef1f6;border-radius:11px;padding:3px}
.segmented button{border:none;background:none;font-family:inherit;font-weight:700;font-size:.85rem;padding:.45rem .9rem;border-radius:8px;cursor:pointer;color:var(--muted)}
.segmented button.on{background:#fff;color:var(--dark);box-shadow:0 2px 6px rgba(0,0,0,.08)}

/* hotel card (Booking-style) */
.hc{display:grid;grid-template-columns:220px 1fr 200px;gap:0;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:1rem;transition:.15s}
.hc:hover{box-shadow:var(--shadow);border-color:#d5d9e0}
.hc__img{position:relative;background:#e9edf3}
.hc__img img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.hc__img.noimg::after{content:"";position:absolute;inset:0;background:linear-gradient(145deg,var(--blue),#0876aa)}
.hc__body{padding:1rem 1.1rem}
.hc__head{display:flex;justify-content:space-between;align-items:flex-start;gap:.6rem}
.hc__head h3{margin:0;font-size:1.15rem;color:#0f4c81}
.hc__stars{color:var(--yellow);font-size:.9rem;white-space:nowrap}
.hc__loc{color:var(--muted);font-size:.83rem;margin:.4rem 0 .6rem}
.hc__facs{display:flex;flex-wrap:wrap;gap:.4rem}
.hc__fac{display:inline-flex;align-items:center;gap:.28rem;font-size:.74rem;font-weight:700;color:var(--blue-d);background:#eef6fb;border-radius:20px;padding:.24rem .6rem}
.hc__fac img{width:15px;height:15px}
.hc__side{border-inline-start:1px solid var(--line);padding:1rem;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;text-align:end;gap:.5rem}
.hc__price small{color:var(--muted);font-size:.74rem;display:block}
.hc__price b{font-size:1.55rem;font-weight:900;color:var(--dark);display:block;line-height:1.1}
.hc__price i{font-style:normal;font-size:.8rem;color:var(--muted)}
.hc__pn{font-size:.75rem;color:var(--muted)}
.hc__side .btn{width:100%}

/* hotel detail overlay */
.hoverlay{position:fixed;inset:0;z-index:calc(var(--z-modal) + 20);background:rgba(15,20,28,.6);backdrop-filter:blur(3px);display:grid;place-items:center;padding:2vh 1rem}
.hoverlay[hidden]{display:none}
.ho__wrap{position:relative;background:#fff;width:min(1000px,100%);max-height:96vh;overflow:auto;border-radius:18px;box-shadow:var(--shadow-lg);animation:pop .25s ease}
.ho__close{position:absolute;top:.7rem;inset-inline-end:.9rem;z-index:5;width:38px;height:38px;border-radius:50%;border:none;background:#fff;box-shadow:var(--shadow);cursor:pointer;color:var(--dark);
  display:grid;place-items:center;padding:0}
.ho__close svg{width:18px;height:18px;display:block}
.ho__gallery{padding:1rem 1rem 0}
.ho__main{height:340px;border-radius:14px;overflow:hidden;background:#e9edf3}
.ho__main img{width:100%;height:100%;object-fit:cover}
.ho__thumbs{display:flex;gap:.5rem;overflow-x:auto;padding:.6rem 0}
.ho__thumbs img{width:90px;height:64px;object-fit:cover;border-radius:9px;cursor:pointer;flex:0 0 auto;opacity:.7;border:2px solid transparent}
.ho__thumbs img.on,.ho__thumbs img:hover{opacity:1;border-color:var(--orange)}
.ho__info{padding:.4rem 1.3rem 1rem;border-bottom:1px solid var(--line)}
.ho__title{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.ho__title h2{margin:0;font-size:1.5rem}
.ho__loc{color:var(--muted);font-size:.88rem;margin:.4rem 0 .7rem}
.ho__facs{display:flex;flex-wrap:wrap;gap:.4rem}
.ho__rooms{padding:1.2rem 1.3rem 1.6rem}
.ho__rooms>h3{margin:0 0 1rem;font-size:1.25rem}
.ho__rooms>h3 small{color:var(--muted);font-weight:600;font-size:.85rem}
.ro{border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:1rem}
.ro__head{display:flex;gap:.9rem;align-items:center;padding:.9rem 1rem;background:#f6f8fb}
.ro__thumb{width:72px;height:56px;border-radius:9px;overflow:hidden;background:#e9edf3;flex:0 0 auto}
.ro__thumb img{width:100%;height:100%;object-fit:cover}
.ro__head h4{margin:0;font-size:1.02rem}
.ro__meta{color:var(--muted);font-size:.8rem;margin-top:.2rem}
.ro__opts{padding:.3rem 1rem}
.ro__opt{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 0;border-bottom:1px solid #f0f1f4;flex-wrap:wrap}
.ro__opt:last-child{border-bottom:none}
.ro__optinfo{display:flex;flex-direction:column;gap:.35rem}
.ro__basis{font-weight:800;font-size:.92rem}
.ro__cancel{font-size:.8rem;font-weight:700}
.ro__cancel.ok{color:#16a34a}
.ro__cancel.no{color:var(--muted)}
.ro__optbuy{display:flex;align-items:center;gap:1rem}
.ro__price{text-align:end}
.ro__price b{font-size:1.35rem;font-weight:900;color:var(--dark)}
.ro__price i{font-style:normal;font-size:.8rem;color:var(--muted)}
.ro__price small{display:block;color:var(--muted);font-size:.7rem}

@media(max-width:900px){
  .results__layout{grid-template-columns:1fr}
  .filters{position:static}
  .hc{grid-template-columns:1fr}
  .hc__img{height:180px}
  .hc__side{border-inline-start:none;border-top:1px solid var(--line);flex-direction:row;justify-content:space-between;align-items:center}
  .hc__side .btn{width:auto}
  .ho__main{height:220px}
}

/* steps indicator */
.steps{display:flex;align-items:center;gap:.5rem;margin:0 0 1rem;font-weight:800;color:var(--muted);font-size:.9rem}
.steps__i{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#e7e9ee;color:var(--muted);font-size:.85rem}
.steps__i.on{background:var(--grad-cta);color:#fff}
.steps i{font-style:normal}
.steps__line{flex:0 0 40px;height:2px;background:var(--line)}

/* chosen outbound summary row */
.chosen{display:flex;align-items:center;gap:.8rem;background:#eef6fb;border:1px solid #cfe6f3;border-radius:12px;padding:.6rem .9rem;margin-bottom:1rem;flex-wrap:wrap}
.chosen__tag{background:#16a34a;color:#fff;font-weight:800;font-size:.78rem;padding:.25rem .6rem;border-radius:20px}
/* ===== §CX9 — THE BOTTOM BAR: ONE FACT, ONE ACTION =====
   It used to restate both legs in full under the two summaries that already said it, in a block
   tall enough to cover the second of them on a 390px screen. What belongs pinned to the bottom is
   the number the customer will pay and the way forward — nothing else. */
.tripbar{position:sticky;bottom:10px;margin-top:.9rem;background:#fff;border:1px solid var(--line);
  border-radius:14px;box-shadow:0 10px 26px rgba(24,32,54,.14);padding:.6rem .7rem .6rem 1rem;
  display:flex;align-items:center;justify-content:space-between;gap:.9rem;z-index:var(--z-sticky);
  padding-bottom:calc(.6rem + env(safe-area-inset-bottom,0px))}
.tripbar__price{text-align:start;min-width:0}
.tripbar__price small{display:block;color:var(--muted);font-size:.72rem;font-weight:700}
.tripbar__price b{font-size:1.25rem;font-weight:900;display:inline-flex;align-items:baseline;gap:.22rem}
.tripbar__price i{font-style:normal;font-size:.8rem;color:var(--muted);font-weight:700}
.tripbar__go{flex:0 0 auto;min-height:46px;padding-inline:1.4rem}
.tripbar__d{display:block;text-decoration:none;font-size:.72rem;font-weight:700;color:var(--muted);margin-top:.12rem}
.btn[disabled]{opacity:.5;cursor:not-allowed;filter:grayscale(.3)}
.step-lbl{color:var(--orange-d)}

/* On a phone it stays ONE row — the label/total on one side, the action on the other. Stacking it
   made a 150px block that covered the leg it was summarising (§CX9). */
@media(max-width:900px){
  .tripbar{padding:.55rem .6rem .55rem .85rem;bottom:8px;gap:.6rem;
    padding-bottom:calc(.55rem + env(safe-area-inset-bottom,0px))}
  .tripbar__price b{font-size:1.15rem}
  .tripbar__go{min-height:44px;padding-inline:1.1rem}
}

/* skeleton */
.loadhint{color:var(--muted);font-weight:600;margin-bottom:.9rem}
.skel-card{display:flex;align-items:center;gap:1rem;background:#fff;border:1px solid var(--line);border-radius:14px;padding:1rem 1.2rem;margin-bottom:.8rem}
.skel-box{width:60px;height:44px;border-radius:9px;background:linear-gradient(90deg,#eef1f5 25%,#e2e6ec 37%,#eef1f5 63%);background-size:400% 100%;animation:shim 1.3s infinite}
.skel-box--sm{width:110px;height:34px;margin-inline-start:auto}
.skel-lines{flex:1;display:flex;flex-direction:column;gap:.5rem}
.skel-line{height:12px;border-radius:6px;background:linear-gradient(90deg,#eef1f5 25%,#e2e6ec 37%,#eef1f5 63%);background-size:400% 100%;animation:shim 1.3s infinite}
.skel-line.w60{width:60%}.skel-line.w40{width:40%}
@keyframes shim{0%{background-position:100% 0}100%{background-position:-100% 0}}

/* The filter drawer's own layer lives at the end of this file (FILTER DRAWER). */
@media(max-width:900px){
  .filterbtn{display:inline-flex;align-items:center;gap:.4rem}
  .segmented--val{width:100%;justify-content:space-between}
  .segmented--val button{flex:1;min-width:0}
}


/* The Maroof trust seal is a third-party fixed iframe pinned at the maximum z-index, bottom-left —
   exactly over the sticky "continue" button on a 390px screen. It stays on the site and is hidden
   only while a full-screen checkout flow is open. */
body.ck-on .sbc-seal-frame,
body.noscroll .sbc-seal-frame{display:none!important}

.bmuted{color:var(--muted);font-size:.9rem;margin:0 0 1rem}

/* itinerary leg summary */

/* fare rules */

/* price breakdown */
.bpr{background:#fff;border:1px solid var(--line);border-radius:14px;padding:1rem 1.1rem}
.bpr__row{display:flex;justify-content:space-between;padding:.35rem 0;color:var(--muted);font-weight:600;font-size:.92rem}
.bpr__total{display:flex;justify-content:space-between;align-items:center;border-top:1px dashed var(--line);margin-top:.5rem;padding-top:.7rem;font-weight:800}
.bpr__total b{font-size:1.4rem;color:var(--dark)}
.bpr__total i{font-style:normal;font-size:.85rem;color:var(--muted)}


/* passenger forms */
.paxform{background:#fff;border:1px solid var(--line);border-radius:14px;padding:1rem 1.1rem;margin-bottom:.9rem}
.paxform__h{font-weight:800;display:flex;align-items:center;gap:.5rem;margin-bottom:.8rem}
.paxform__n{width:26px;height:26px;border-radius:50%;background:var(--grad-cta);color:#fff;display:grid;place-items:center;font-size:.85rem}
.pgrid{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}
.pgrid label{display:flex;flex-direction:column;gap:.3rem;font-size:.82rem;font-weight:700;color:var(--dark)}
.pgrid input,.pgrid select{font-family:inherit;font-weight:600;font-size:.95rem;padding:.6rem .7rem;border:1.5px solid var(--line);border-radius:10px;outline:none;background:#fff}
.pgrid input:focus,.pgrid select:focus{border-color:var(--blue)}
.pgrid .err{border-color:#e0483d;background:#fdf3f2}

/* review */


.bdone{text-align:center;padding:1.5rem 1rem}
.bdone__ic{font-size:3.5rem}
.bdone h2{margin:.5rem 0}
.bdone p{margin:.3rem 0}

@media(max-width:640px){ .pgrid{grid-template-columns:1fr} }

/* ================= Fateen smart search ================= */
.smart{background:linear-gradient(120deg,#1f2937,#243b46 60%,#1f6f8f);color:#fff;border-radius:16px;padding:1.1rem 1.2rem;margin-bottom:1.1rem;box-shadow:var(--shadow)}
.smart__head{display:flex;align-items:flex-start;gap:.7rem;margin-bottom:.8rem}
.smart__ic{font-size:1.6rem;line-height:1}
.smart__head b{font-size:1.1rem}
.smart__badge{background:var(--grad-cta);color:#1b1e24;font-size:.68rem;font-weight:900;padding:.1rem .5rem;border-radius:20px;vertical-align:middle;margin-inline-start:.3rem}
.smart__head small{display:block;opacity:.85;font-size:.85rem;margin-top:.15rem}
.smart__form{display:flex;gap:.6rem}
.smart__form input{flex:1;font-family:inherit;font-weight:600;font-size:1rem;padding:.75rem 1rem;border:none;border-radius:12px;outline:none;background:#fff;color:var(--ink)}
.smart__form .btn{flex:0 0 auto}
.smart__ex{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;margin-top:.7rem;font-size:.82rem;opacity:.9}
.smart__chip{font-family:inherit;font-weight:700;font-size:.78rem;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);color:#fff;border-radius:20px;padding:.3rem .7rem;cursor:pointer;transition:.15s}
.smart__chip:hover{background:rgba(255,255,255,.26)}
.smart__out:not(:empty){margin-top:.8rem}
.smart__applied{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;background:rgba(255,255,255,.12);border-radius:12px;padding:.6rem .8rem;font-weight:700;font-size:.85rem}
.smart__tag{background:#16a34a;color:#fff;border-radius:20px;padding:.2rem .6rem;font-size:.76rem}
.smart__clear{margin-inline-start:auto;background:none;border:1px solid rgba(255,255,255,.4);color:#fff;font-family:inherit;font-weight:800;border-radius:8px;padding:.25rem .7rem;cursor:pointer;font-size:.78rem}
.smart__unsup{font-size:.8rem;opacity:.85;margin-top:.4rem;background:rgba(255,255,255,.08);border-radius:10px;padding:.5rem .7rem}
.smart__note{font-size:.75rem;opacity:.7;margin-top:.7rem}
.smart .spinner{border-color:rgba(255,255,255,.4);border-top-color:#fff}
@media(max-width:560px){ .smart__form{flex-direction:column} .smart__form .btn{width:100%} }

/* ================= flight legs: choose → collapse → next leg =================
   One leg at a time, stacked. A chosen leg keeps its place in the page and shrinks to a summary,
   so the customer never loses the thread of where they are — and on a phone this is the same
   layout, not a second one. */
.flegs{display:flex;flex-direction:column;gap:1.5rem}
/* An OPEN leg is a heading and a list of cards — deliberately not a box around boxes. A bordered
   section wrapped around twenty bordered cards is the card-inside-a-card the redesign removes. */
.fleg--open{background:none;border:none}
.fleg--open .fleg__list{padding:0}
/* A CHOSEN or LOCKED leg is a single block, so it is allowed to be one card. */
.fleg--done{background:#fff;border:1px solid #cfe8d8;border-radius:18px;box-shadow:0 4px 18px rgba(18,121,60,.07)}
.fleg--locked{background:#fff;border:1px dashed #dde4ee;border-radius:18px}
.fleg__head{display:flex;align-items:center;gap:.6rem;padding:0 .15rem .75rem}
.fleg--done .fleg__head,.fleg--locked .fleg__head{padding:1rem 1.15rem .1rem}
.fleg__n{flex:0 0 auto;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#eaeff7;color:var(--blue-d)}
.fleg__head.is-done .fleg__n{background:#12793c;color:#fff}
.fleg__t{min-width:0;flex:1}
.fleg__t b{font-size:1.02rem;font-weight:900;display:block;color:var(--dark)}
.fleg__t small{display:block;color:var(--muted);font-size:.8rem;font-weight:600;margin-top:.1rem}
.fleg__lock{margin:0;padding:.6rem 1.15rem 1.2rem;color:var(--muted);font-weight:600;font-size:.88rem}
/* §RT7 — one line above the return list saying what the "+120" on every card is measured against.
   Quiet, but not optional: a column of differences with no stated reference is worse than a column
   of full prices. */
.fleg__note{display:flex;align-items:flex-start;gap:.4rem;margin:0;padding:.1rem 1.15rem .9rem;
  color:var(--muted);font-weight:600;font-size:.82rem;line-height:1.55}
.fleg__note .ti{flex:0 0 auto;margin-top:.15rem;color:var(--blue)}
/* §RT9 — a return the server would not keep after the outbound changed. */
.fleg__drop{display:flex;align-items:flex-start;gap:.4rem;margin:0 1.15rem .7rem;padding:.6rem .75rem;
  background:#fff7ed;border:1.5px solid #fed7aa;border-radius:12px;
  color:#9a3412;font-weight:700;font-size:.83rem;line-height:1.55}
.fleg__drop .ti{flex:0 0 auto;margin-top:.1rem}
.fleg__list .fc:last-child{margin-bottom:0}

/* infinite-scroll sentinel */
.fsent{min-height:44px;display:grid;place-items:center;padding:.7rem 0 .2rem}
.fsent__load{display:none;align-items:center;gap:.45rem;color:var(--muted);font-size:.83rem;font-weight:700}
.fsent--busy .fsent__load{display:inline-flex}
.fsent__end{color:var(--muted);font-size:.79rem;font-weight:700}
.spinner--xs{width:12px;height:12px;border-width:2px;display:inline-block;vertical-align:-1px}
@media(max-width:640px){
  .fleg__list{padding:.6rem}
}
/* compact smart search inside the filters sidebar (right in RTL) */
.smart--side{padding:.8rem;margin-bottom:.9rem;border-radius:12px}
.smart--side .smart__head{align-items:center;margin-bottom:.6rem;gap:.4rem}
.smart--side .smart__ic{font-size:1.15rem}
.smart--side .smart__head b{font-size:.95rem}
.smart--side .smart__badge{margin-inline-start:0}
.smart--side .smart__form{flex-direction:column;gap:.5rem}
.smart--side .smart__form input{padding:.55rem .7rem;font-size:.88rem}
.smart--side .smart__form .btn{width:100%}
.smart--side .smart__ex{gap:.35rem;margin-top:.6rem;font-size:0}
.smart--side .smart__chip{font-size:.71rem;padding:.55rem .6rem;min-height:36px}
.smart--side .smart__out:not(:empty){margin-top:.6rem}
.smart--side .smart__applied{padding:.5rem .6rem;font-size:.76rem;gap:.3rem}
.smart--side .smart__tag{font-size:.68rem;padding:.15rem .5rem}
.smart--side .smart__clear{padding:.2rem .5rem;font-size:.7rem}
.smart--side .smart__unsup{font-size:.7rem;padding:.4rem .55rem}
.smart--side .smart__note{font-size:.66rem;margin-top:.5rem;opacity:.7}

/* ===== auth modal (multi-role) ===== */
.authpick__h{margin:0 0 1.1rem}
.authpick{display:grid;gap:.8rem;margin-bottom:.3rem}
.authbox{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:.9rem;align-items:center;text-align:start;
  border:1.6px solid var(--line);background:#fff;border-radius:15px;padding:1rem 1.1rem;cursor:pointer;font-family:inherit;transition:.15s}
.authbox:hover{border-color:var(--orange);box-shadow:0 8px 22px rgba(247,147,30,.15);transform:translateY(-2px)}
.authbox__ic{grid-row:1/3;width:48px;height:48px;border-radius:13px;display:grid;place-items:center;font-size:1.7rem;background:#fef2e6}
.authbox--b2b .authbox__ic{background:#e8f5fc}
.authbox--hotel .authbox__ic{background:#eafaf0}
.authbox__t{font-weight:900;font-size:1.05rem;color:var(--dark)}
.authbox__s{color:var(--muted);font-size:.82rem;font-weight:600;line-height:1.35}
.authback{background:none;border:none;color:var(--blue);font-family:inherit;font-weight:800;font-size:.85rem;cursor:pointer;padding:0;margin-bottom:.7rem;display:inline-block}
#authBody h3{margin-bottom:.2rem}
#authBody h3{margin-bottom:.2rem}
.cc-fixed{display:flex;align-items:center;background:#f4f6fa;border-inline-end:1.5px solid var(--line);padding:.75rem .85rem;font-weight:800;font-size:.95rem;color:var(--dark);direction:ltr}
.cc-sel{background:#f4f6fa;border:none;border-inline-end:1.5px solid var(--line);padding:.75rem .5rem;font-family:inherit;font-weight:700;font-size:.85rem;outline:none;max-width:120px}
.auth-in{width:100%;padding:.8rem;margin-bottom:.7rem;border:1.5px solid var(--line);border-radius:11px;font-family:inherit;font-weight:700;font-size:.95rem;outline:none}
.auth-in:focus{border-color:var(--blue)}
.auth-err{color:#dc2626;font-weight:700;font-size:.85rem;margin:.3rem 0}
.otpbox{margin-top:1rem}
.otp-inp{text-align:center;letter-spacing:.6rem;font-size:1.4rem;font-weight:900}
.otp-dev{background:#fff8ef;border:1px dashed var(--orange);color:#8a5008;border-radius:10px;padding:.6rem;font-size:.82rem;margin-bottom:.7rem;font-weight:700}
.otp-dev b{font-size:1.1rem;color:var(--orange-d)}
.auth-ok{text-align:center;padding:1rem 0}
.auth-ok__icon{width:64px;height:64px;margin:0 auto 1rem;border-radius:50%;display:grid;place-items:center;background:#eafaf0}
/* customer profile: first / last name side by side, each a normal RTL field */
.namesRow{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
.namesRow .auth-in{margin-bottom:0}
@media (max-width:400px){.namesRow{grid-template-columns:1fr}}

/* ===== modern range date picker ===== */
.datetrig{display:flex;flex-direction:column;justify-content:center}
.datetrig .field__value{font-size:.95rem}
.datetrig .field__value:empty::before,.datetrig .field__value{color:var(--ink)}
.cal{z-index:var(--z-popover);background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 50px rgba(16,28,54,.28);padding:.9rem;width:max-content;max-width:96vw;animation:calpop .16s ease}
@keyframes calpop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.cal__top{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:.6rem;padding:0 .2rem}
.cal__ttl{font-weight:800;font-size:.92rem;color:var(--ink)}
.cal__nav{width:34px;height:34px;border-radius:50%;border:1.5px solid var(--line);background:#fff;color:var(--blue);font-size:1.3rem;line-height:1;cursor:pointer;font-family:inherit;transition:.15s}
.cal__nav:hover{background:var(--blue);color:#fff;border-color:var(--blue)}
.cal__months{display:flex;gap:1.4rem}
.cal__m{min-width:246px}
.cal__mh{text-align:center;font-weight:800;margin-bottom:.5rem;color:var(--ink);font-size:.9rem}
.cal__wd{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:.25rem}
.cal__wd span{text-align:center;font-size:.68rem;font-weight:800;color:var(--muted);padding:.2rem 0}
.cal__grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.cal__d{aspect-ratio:1;border:none;background:none;font-family:inherit;font-weight:700;font-size:.85rem;color:var(--ink);cursor:pointer;border-radius:9px;position:relative;transition:background .12s,color .12s}
.cal__d--out{visibility:hidden}
.cal__d:not(.cal__d--dis):not(.cal__d--start):not(.cal__d--end):hover{background:#fff2e3}
.cal__d--dis{color:#cdd3dc;cursor:not-allowed}
.cal__d--today{box-shadow:inset 0 0 0 1.5px var(--blue)}
.cal__d--in{background:#ffe9cf;border-radius:0;color:#8a4a00}
.cal__d--start,.cal__d--end{background:var(--grad,linear-gradient(135deg,#f7931e,#ffc20e));color:#231a08;font-weight:900}
.cal__d--start{border-radius:9px 0 0 9px}
.cal__d--end{border-radius:0 9px 9px 0}
.cal__d--start.cal__d--end{border-radius:9px}
.cal__foot{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-top:.7rem;padding-top:.7rem;border-top:1px solid var(--line);flex-wrap:wrap}
.cal__info{font-size:.82rem;font-weight:700;color:var(--muted)}
.cal__acts{display:flex;gap:.5rem}
.cal__clear{background:none;border:none;color:var(--muted);font-family:inherit;font-weight:800;cursor:pointer;font-size:.85rem;padding:.45rem .6rem}
.cal__ok{background:var(--grad,linear-gradient(135deg,#f7931e,#ffc20e));border:none;color:#231a08;font-family:inherit;font-weight:900;cursor:pointer;font-size:.85rem;padding:.45rem 1.2rem;border-radius:10px}
@media(max-width:639px){
  .cal{width:100%;max-width:100%;border-radius:20px 20px 0 0;padding:1rem 1rem 1.4rem}
  .cal__months{flex-direction:column;gap:1rem}
  .cal__m{min-width:0}
}

/* ===== B2B agency-commission banner on flight results ===== */
.b2bcomm{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap;
  background:linear-gradient(135deg,#fff6ec,#fef2e6);border:1.5px solid #f7c98a;color:#8a4a00;
  font-weight:800;font-size:.9rem;padding:.7rem 1rem;border-radius:12px;margin-bottom:1rem}
.b2bcomm__t{background:var(--grad,linear-gradient(135deg,#f7931e,#ffc20e));border:none;color:#231a08;
  font-family:inherit;font-weight:800;font-size:.82rem;padding:.4rem .9rem;border-radius:9px;cursor:pointer}

/* ===== Charter flights panel in results ===== */
.chpanel{background:linear-gradient(135deg,#eef8ff,#f0fbff);border:1.5px solid #bfe3f5;border-radius:14px;padding:1rem;margin-bottom:1rem}
.chpanel__hd{font-weight:900;color:#0f5c8a;margin-bottom:.8rem;display:flex;align-items:center;gap:.5rem}
.chpanel__hd span{background:#0f5c8a;color:#fff;border-radius:999px;font-size:.75rem;padding:.1rem .5rem}
.chcard{display:flex;align-items:center;gap:1rem;background:#fff;border:1px solid #d7ecf7;border-radius:12px;padding:.8rem 1rem;margin-bottom:.6rem;position:relative;flex-wrap:wrap}
.chcard:last-child{margin-bottom:0}
.chcard__badge{background:linear-gradient(135deg,#29abe2,#1f6f8f);color:#fff;font-weight:800;font-size:.72rem;padding:.25rem .6rem;border-radius:8px;white-space:nowrap}
.chcard__main{flex:1;min-width:200px}
.chcard__air{font-size:.95rem}.chcard__route{font-size:1.05rem;font-weight:800;margin:.15rem 0;color:var(--ink)}
.chcard__meta{font-size:.8rem;color:var(--muted);font-weight:700}
.chcard__seats{color:#0f7a3d}.chcard__seats.low{color:#c0392b}
.chcard__buy{text-align:center;display:flex;flex-direction:column;gap:.4rem;align-items:stretch}
.chcard__price{font-size:1.3rem;font-weight:900;color:var(--orange-d,#d97706)}.chcard__price small{font-size:.7rem;color:var(--muted);font-weight:700}

/* ===== hotel results: name search + pro filters ===== */
.hsearch{width:100%;padding:.6rem .8rem;border:1.5px solid var(--line);border-radius:10px;font-family:inherit;font-weight:700;font-size:.9rem;outline:none;background:#fff}
.hsearch:focus{border-color:var(--blue)}
.toolbar__search{flex:1 1 220px;min-width:160px;margin:0 .6rem}
.fprice2{display:flex;gap:.5rem;margin-bottom:.6rem}
.fprice2 label{flex:1;display:flex;flex-direction:column;font-size:.72rem;color:var(--muted);font-weight:800;gap:.25rem}
.fprice2 input{width:100%;padding:.45rem .5rem;border:1.5px solid var(--line);border-radius:8px;font-family:inherit;font-weight:700;outline:none}
.fprice2 input:focus{border-color:var(--blue)}
.filterbtn b{background:var(--orange);color:#fff;border-radius:999px;padding:0 .4rem;font-size:.72rem;margin-inline-start:.3rem}
@media(max-width:760px){.toolbar__search{order:3;flex-basis:100%;margin:.5rem 0 0}}


/* ===== hotel checkout ===== */
.hco{padding:1.6rem!important}
.hco__h{margin:0 0 1rem}
.hco__sum{display:flex;justify-content:space-between;align-items:center;gap:1rem;background:#f6f8fb;border:1px solid var(--line);border-radius:14px;padding:1rem;margin-bottom:.6rem}
.hco__sum small{display:block;color:var(--muted);font-weight:600;font-size:.82rem;margin-top:.2rem}
.hco__price{text-align:end}.hco__price b{font-size:1.4rem;color:var(--orange-d,#d97706)}.hco__price i{font-size:.8rem;color:var(--muted);font-style:normal}
.hco__price small{color:var(--muted)}
.hco__row{display:flex;justify-content:space-between;background:#fff6ec;border:1px solid #f7c98a;color:#8a4a00;font-weight:700;font-size:.85rem;padding:.5rem .8rem;border-radius:10px;margin-bottom:.6rem}
.hco__foot{display:flex;justify-content:space-between;gap:.6rem;margin-top:1rem}
.hco__note{text-align:center;color:var(--muted);font-size:.82rem;font-weight:600;margin-top:.8rem}

/* ===== "Direct from the owner" badge on locally-registered properties ===== */
.hc__own,.ho__own{display:inline-block;background:#e7f7ee;color:#0f7a3d;border:1px solid #b7e6c9;
  font-size:.74rem;font-weight:800;padding:.14rem .55rem;border-radius:999px;margin-inline-end:.35rem}

/* Property with no photo yet (owner-registered listing) — a designed placeholder, never a grey box */
/* A listing with no photo yet gets the Transit hotel mark on a card of white, never an emoji and
   never a grey box. The mark ships in full colour, so it sits on white rather than on the gradient. */
.hc__img.noimg{background:linear-gradient(135deg,#1f6f8f,#29abe2);display:grid;place-items:center}
.hc__img .hc__mark{display:none;width:64px;height:64px;border-radius:18px;background:#fff;
  box-shadow:0 6px 18px rgba(10,30,50,.18);display:grid;place-items:center}
.hc__img.noimg .hc__mark{display:grid}
.hc__mark .ti svg{width:34px;height:34px;display:block}
.ho__main.noimg{background:linear-gradient(135deg,#1f6f8f,#29abe2);position:relative;min-height:220px}
.ho__main.noimg::after{content:"";position:absolute;inset:0;background:linear-gradient(145deg,var(--blue),#0876aa)}

/* ===== Header account (signed-in state) — occupies the login button's slot exactly,
   adds no vertical space and no banner anywhere on the page ===== */
.acct{position:relative}
/* same box as .btn--ghost so the header height is identical for a visitor and an account */
.acct__btn{display:inline-flex;align-items:center;gap:.45rem;font-family:inherit;font-weight:700;font-size:.95rem;
  color:var(--dark);background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:.7rem .9rem;
  cursor:pointer;transition:border-color .18s,color .18s,background .18s;max-width:250px}
.acct__btn:hover,.acct__btn.on{border-color:var(--blue);color:var(--blue);background:#f7fbfe}
.acct__ic svg{width:17px;height:17px;display:block}
.acct__ic{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#eef4fb;color:var(--blue);flex:0 0 auto}
.acct__btn:hover .acct__ic,.acct__btn.on .acct__ic{background:var(--blue);color:#fff}
.acct__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct__chev svg{width:14px;height:14px;display:block;transition:transform .18s}
.acct__btn.on .acct__chev svg{transform:rotate(180deg)}
.acct__menu{position:absolute;top:calc(100% + .5rem);inset-inline-end:0;min-width:220px;background:#fff;
  border:1px solid var(--line);border-radius:14px;box-shadow:0 16px 40px rgba(20,26,40,.14);padding:.35rem;z-index:var(--z-popover);
  animation:acctIn .16s ease-out}
@keyframes acctIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.acct__item{display:flex;align-items:center;gap:.6rem;width:100%;text-align:start;font-family:inherit;font-weight:700;
  font-size:.9rem;color:var(--dark);background:none;border:none;border-radius:10px;padding:.6rem .7rem;cursor:pointer;
  text-decoration:none;transition:background .15s,color .15s}
.acct__item:hover{background:#f4f6fa;color:var(--blue)}
.acct__iic{display:grid;place-items:center;color:var(--muted);flex:0 0 auto}
.acct__iic svg{width:17px;height:17px;display:block}
.acct__item:hover .acct__iic{color:inherit}
.acct__item--out{color:#c0392b;border-top:1px solid var(--line);border-radius:0 0 10px 10px;margin-top:.15rem}
.acct__item--out:hover{background:#fdeaea;color:#c0392b}

/* Mobile: the account lives inside the navigation drawer, never twice */
.navacct{display:none}
@media(max-width:860px){
  .acct{display:none}
  .nav.nav--open{display:flex;flex-direction:column;align-items:stretch;gap:.15rem;position:absolute;top:100%;
    inset-inline-end:4%;min-width:230px;background:#fff;padding:.5rem;border-radius:14px;
    box-shadow:0 16px 40px rgba(20,26,40,.16);border:1px solid var(--line);margin:0}
  .nav.nav--open .nav__link{padding:.6rem .7rem;border-radius:10px}
  .navacct{display:block;border-bottom:1px solid var(--line);padding-bottom:.4rem;margin-bottom:.25rem}
  .navacct__who{display:flex;align-items:center;gap:.5rem;padding:.5rem .7rem;font-size:.9rem;color:var(--dark)}
  .navacct__ic{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#eef4fb;color:var(--blue);flex:0 0 auto}
  .navacct__ic svg{width:16px;height:16px;display:block}
  .navacct__who b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .navacct__link{display:block;width:100%;text-align:start;font-family:inherit;font-weight:700;font-size:.88rem;
    color:var(--dark);background:none;border:none;border-radius:10px;padding:.55rem .7rem;cursor:pointer;text-decoration:none}
  .navacct__link:hover{background:#f4f6fa;color:var(--blue)}
  .navacct__link--out{color:#c0392b}
  .navacct__link--out:hover{background:#fdeaea;color:#c0392b}
}

/* =========================================================================
   FLIGHT CHECKOUT — four real pages
   Mobile is the design, not the adaptation: one column, a sticky stepper that
   always names the step, and the primary action pinned where a thumb already
   is. The desktop layout is the same page with the price summary lifted into
   a sticky second column.

   Simplification is a rule here, not a preference (§32): sections are separated
   by whitespace and a single hairline, not by boxes inside boxes. The only
   filled surfaces are the ones a customer acts on.
   ========================================================================= */
/* The delivered pack's palette, in one place — sampled from the artwork, not guessed. */
:root{ --ti-blue:#0099e6; --ti-ink:#474a4c; --ti-orange:#fc8a00; --ti-amber:#fdda00; --ck-cta-h:76px }

/* While the checkout owns the screen, the marketing page around it steps aside. */
body.ck-on .topbar,body.ck-on .hero,body.ck-on .results,body.ck-on .section,
body.ck-on .features,body.ck-on .appcta,body.ck-on .footer{display:none!important}
body.ck-on{background:var(--bg)}
/* /flights/search is the results page: the hero search bar stays, the brochure below it goes. */
body.ck-search .section,body.ck-search .features,body.ck-search .appcta{display:none!important}

/* ===== Transit icons =====
   A fixed size system, so no call site invents its own: xs 16 · sm 20 · md 24 · lg 32. The marks
   carry the brand palette themselves (they are two-tone, blue + dark grey, with the orange
   accent) — they are not glyphs that take the colour of the text beside them. */
.ti{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;line-height:0;vertical-align:-.15em}
.ti svg{width:24px;height:24px;display:block}
.ti--xs svg{width:16px;height:16px}
.ti--sm svg{width:20px;height:20px}
.ti--md svg{width:24px;height:24px}
.ti--lg svg{width:32px;height:32px}

.ck{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:var(--bg)}
/* §CX19 — THE HEADER IS CHROME, NOT CONTENT.
   A sticky header is paid for on every screen of every step: at 119px it was taking one seventh of
   a 390×844 phone before the customer read a word of their own booking. The title row and the
   stepper are on the SAME line now — they are both "where am I", said twice, and there is no
   reason for them to be stacked — which brings the whole thing to roughly 60px without making a
   single control smaller than the 44px a thumb needs. */
.ck__head{position:sticky;top:0;z-index:var(--z-sticky);background:#fff;border-bottom:1px solid var(--line);
  padding:.4rem 1rem;box-shadow:0 1px 0 rgba(20,30,50,.02);
  display:flex;align-items:center;gap:.9rem}
.ck__headin{display:flex;align-items:center;gap:.5rem;flex:0 0 auto}
/* 44px is the smallest a thumb reliably hits — every control in the checkout meets it, including
   the ones whose visible box looks smaller. */
.ck__back{width:44px;height:44px;min-width:44px;border:none;background:#f2f4f8;border-radius:12px;
  display:grid;place-items:center;cursor:pointer;color:var(--dark);font-size:1rem;transition:.16s}
/* The chevron points the way the page reads: back is towards the start of the line, so it is
   mirrored for an LTR document exactly like the route arrow. */
.ckback__i{display:block;width:18px;height:18px;line-height:0;transform:scaleX(-1)}
[dir="ltr"] .ckback__i{transform:none}
.ckback__i svg{width:100%;height:100%;display:block}
.ck__back:hover{background:#e6eaf1;color:var(--blue)}
.ck__ttl{font-weight:800;font-size:.98rem}

/* ---- stepper: compact on a phone, but every label stays readable ----
   Beside the title rather than under it, and laid out as a row per step (mark then label) instead
   of a column, so four steps cost one line of height instead of two. */
.ckstep{display:flex;align-items:center;justify-content:space-between;gap:.15rem;
  flex:1 1 auto;max-width:520px;margin-inline-start:auto;min-width:0}
/* §10/§27 — a completed step is a BUTTON that goes back to it, so it needs a thumb-sized hit area.
   The mark stays 25px; the padding around it is what a finger actually lands on, and the negative
   inline margin keeps the four steps at the same visual spacing on a 320px screen. */
/* §10/§27 — a completed step is a BUTTON that goes back to it, so it gets a thumb-sized hit area.
   The padding is on the BLOCK axis only: four steps plus a page title share one line on a 320px
   screen, and inline padding there pushed the last mark 4px past the edge and scrolled the whole
   page sideways (measured at 375). Vertical is the dimension that was actually failing — the mark
   is 25px tall — so 25×44 is the target, and the row's height is unchanged because the header was
   already taller than that. */
.ckstep__i{display:flex;flex-direction:row;align-items:center;gap:.3rem;flex:0 0 auto;
  background:none;border:none;padding:.55rem 0;min-height:44px;
  font-family:inherit;cursor:default}
button.ckstep__i{cursor:pointer}
.ckstep__n{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;
  font-weight:800;font-size:.78rem;background:#e9edf3;color:var(--muted);transition:.18s}
.ckstep__n .ti svg{width:22px;height:22px}
.ckstep__l{font-size:.68rem;font-weight:700;color:var(--muted);white-space:nowrap;transition:.18s}
.ckstep__i.is-current .ckstep__n{background:var(--grad-cta);color:#fff;box-shadow:0 4px 10px rgba(247,147,30,.35)}
.ckstep__i.is-current .ckstep__l{color:var(--ink)}
.ckstep__i.is-done .ckstep__n{background:none}
.ckstep__n--check{background:none!important}
.ckstep__i.is-done .ckstep__l{color:var(--ink)}
button.ckstep__i:hover .ckstep__l{color:var(--blue)}
.ckstep__bar{flex:1 1 auto;height:2px;background:var(--line);min-width:8px;border-radius:2px}
/* On a phone only the CURRENT step keeps its word; the other three are their marks, and the
   customer reads «2 المسافرون» — which is the whole message of a stepper. Four Arabic labels plus
   a page title do not fit beside each other under ~560px, and the way that failure shows up is a
   horizontally scrolling page, so the labels go rather than the layout. */
@media(max-width:559px){
  .ckstep__l{display:none}
  .ckstep__i.is-current .ckstep__l{display:inline}
  .ckstep{gap:.1rem}
  /* A long step title gives up its own width before the stepper does — `min-width:0` is what
     actually lets a nowrap/ellipsis child shrink inside a flex row; without it the title keeps its
     full intrinsic width and the page scrolls sideways instead. */
  .ck__ttl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
  .ck__headin{min-width:0;flex:0 1 auto}
  .ck__head{gap:.5rem;padding-inline:.75rem}
}

.ck__wrap{flex:1;width:min(1120px,100%);margin-inline:auto;padding:1.1rem 1rem 0;
  display:grid;grid-template-columns:minmax(0,1fr);gap:1.1rem;align-content:start}
.ck__col{min-width:0}
.ck__intro{margin:0 0 1.1rem}
.ck__intro h1{font-size:1.32rem;margin:0 0 .25rem;letter-spacing:-.01em}
.ck__intro p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.65}

/* ---- section: a heading, a hairline, and air. No card. ---- */
.cks{margin:0 0 1.6rem;padding:0 0 1.5rem;border-bottom:1px solid var(--line)}
.cks:last-child{border-bottom:none;padding-bottom:.5rem}
.cks__h{display:flex;align-items:center;gap:.5rem;margin:0 0 .85rem;font-size:1.02rem;font-weight:800}
.cks__h .ti{color:var(--blue);font-size:1.15rem}
.cks__h .lnk--h{margin-inline-start:auto;font-size:.82rem;min-height:44px}
.cks__sub{margin:-.55rem 0 .8rem;color:var(--muted);font-size:.85rem;line-height:1.6}
.cks__tag{display:inline-block;font-size:.72rem;font-weight:800;color:var(--blue-d);
  background:#eaf6fd;border-radius:20px;padding:.15rem .6rem;margin-bottom:.5rem}
.cks__note{display:flex;align-items:flex-start;gap:.4rem;margin:.6rem 0 0;color:var(--muted);font-size:.82rem;line-height:1.55}
.cks__note .ti{color:var(--blue);margin-top:.15rem}

/* ---- links / small actions ---- */
.lnk{display:inline-flex;align-items:center;gap:.35rem;background:none;border:none;font-family:inherit;
  font-weight:700;font-size:.86rem;color:var(--blue-d);cursor:pointer;padding:.3rem .5rem;min-height:44px;
  margin-inline:-.5rem;transition:.15s}
.lnk:hover{color:var(--orange-d)}
.lnk .ti{font-size:1.05rem}
.lnk--wide{width:100%;justify-content:center;border:1.5px dashed var(--line);border-radius:12px;
  padding:.7rem;margin-top:.55rem;min-height:44px}
.lnk--wide:hover{border-color:var(--blue);background:#f7fbfe}

/* ===================== 2 · passengers ===================== */
.paxlist{display:flex;flex-direction:column;gap:.9rem;margin-bottom:1.6rem}
.paxc{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;transition:.2s}
.paxc--ready{border-color:#bfe6cd;background:linear-gradient(#fff,#fbfefc)}
.paxc--review{border-color:#f5d9a8}
.paxc__h{display:flex;align-items:center;gap:.6rem;padding:.85rem 1rem;border-bottom:1px solid var(--line)}
.paxc--ready .paxc__h{border-bottom-color:#e7f4ec}
.paxc__n{width:28px;height:28px;min-width:28px;border-radius:50%;display:grid;place-items:center;
  background:#eef1f6;color:var(--dark);font-weight:800;font-size:.85rem}
.paxc__n--check{background:none}
.paxc__n .ti svg{width:26px;height:26px}
.paxc__t b{display:block;font-size:.95rem;line-height:1.3}
.paxc__t small{color:var(--muted);font-size:.78rem;font-weight:700}
.paxc__h .lnk{margin-inline-start:auto}
.paxc__b{padding:1rem}
.paxc__b--sum{padding:.9rem 1rem}
.paxc__err,.paxc__warn,.paxc__ask{display:flex;align-items:flex-start;gap:.5rem;border-radius:12px;
  padding:.6rem .75rem;margin:0 0 .75rem;font-size:.85rem;font-weight:600;line-height:1.55}
.paxc__err{background:#fef2f2;color:#b91c1c}
.paxc__warn{background:#fffbeb;color:#92400e;margin:.7rem 0 0}
.paxc__ask{background:#fff7ed;color:#9a3412}
.paxc__ask em{display:block;font-style:normal;font-weight:600;opacity:.85;font-size:.78rem}
.paxc__err .ti,.paxc__warn .ti,.paxc__ask .ti{margin-top:.1rem;font-size:1.05rem}
.paxc__note{margin:.7rem 0 0;color:var(--muted);font-size:.8rem;line-height:1.55}
.paxc__priv{display:flex;align-items:flex-start;gap:.4rem;margin:.85rem 0 0;color:var(--muted);font-size:.75rem;line-height:1.5}
.paxc__priv .ti{color:#16a34a;margin-top:.1rem}
.paxc__acts{display:flex;flex-wrap:wrap;gap:.2rem 1rem;margin-top:.7rem}

/* ===== §E3 the saved travellers, ABOVE the scan button =====
   A returning customer should not re-scan a passport they already gave us, so this is the first
   thing on an empty card — quieter than the scan button, because it is a list rather than an
   action, and each row states the document's state so an expired one is not picked by accident. */
.paxsaved{margin-bottom:.9rem}
.paxsaved h4{display:flex;align-items:center;gap:.4rem;margin:0 0 .5rem;font-size:.85rem;color:var(--muted)}
.paxsaved__r{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.7rem;
  background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:.65rem .8rem;margin-bottom:.4rem;
  cursor:pointer;font-family:inherit;text-align:start;transition:.15s;min-height:56px}
.paxsaved__r:hover{border-color:var(--blue);background:#f7fcff}
.paxsaved__r.is-bad{border-color:#f5c9c5;background:#fdf8f7}
.paxsaved__t{min-width:0}
.paxsaved__t b{display:block;font-size:.95rem;line-height:1.35}
.paxsaved__t small{display:block;color:var(--muted);font-size:.78rem;margin-top:.1rem}
.paxsaved__t i{display:block;font-style:normal;font-size:.76rem;font-weight:700;color:#9a5b00;margin-top:.15rem}
.paxsaved__r.is-bad .paxsaved__t i{color:#a32d24}
.paxsaved__p{flex:0 0 auto;font-size:.82rem;font-weight:800;color:var(--blue)}

/* The consent tick. Unchecked, and nothing is saved without it. */
.paxsave{display:flex;align-items:flex-start;gap:.55rem;margin-top:.8rem;padding-top:.7rem;
  border-top:1px dashed var(--line);cursor:pointer;min-height:44px}
.paxsave input{width:20px;height:20px;margin-top:.15rem;accent-color:var(--orange);flex:0 0 auto}
.paxsave span{font-size:.86rem;line-height:1.55;font-weight:700;color:var(--dark-2)}
.paxsave small{display:block;color:var(--muted);font-size:.76rem;font-weight:600;margin-top:.1rem}

/* the one action that matters on an empty card */
.scan{width:100%;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;
  gap:.1rem .8rem;align-items:center;text-align:start;background:linear-gradient(135deg,#eaf6fd,#f6fbff);
  border:1.5px solid #bfe4f7;border-radius:14px;padding:1rem;cursor:pointer;font-family:inherit;transition:.18s;min-height:88px}
.scan:hover{border-color:var(--blue);box-shadow:0 8px 22px rgba(41,171,226,.16);transform:translateY(-1px)}
.scan__ic{grid-row:1/3;width:46px;height:46px;border-radius:13px;background:#fff;display:grid;place-items:center;
  color:var(--blue);box-shadow:0 3px 10px rgba(41,171,226,.2)}
.scan__ic .ti svg{width:24px;height:24px}
.scan__t{font-weight:800;font-size:1rem;color:var(--dark-2)}
.scan__s{font-size:.78rem;color:var(--muted);font-weight:600;line-height:1.45}

/* a completed traveller */
.psum{margin:0 0 .7rem}
.psum__name{font-size:1.08rem;letter-spacing:.02em;display:block}
.psum__meta{color:var(--muted);font-size:.83rem;font-weight:600;margin-top:.15rem}
.psum--doc{padding-top:.7rem;border-top:1px dashed var(--line);margin-bottom:0}
.psum--doc b{font-size:.98rem;letter-spacing:.06em;display:block;margin-top:.1rem}
.psum__lbl{display:inline-flex;align-items:center;gap:.35rem;color:var(--muted);font-size:.76rem;font-weight:700}
.psum__lbl .ti{color:var(--blue)}
/* the one question a clean read still asks: is this the name on the passport */
/* the scanned passport, put back to the customer to check — rows, not boxes */
.pchk{display:grid;gap:.1rem}
.pchk__r{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;padding:.42rem 0;
  border-bottom:1px dashed var(--line);font-size:.88rem}
.pchk__r:last-child{border-bottom:0}
.pchk__r span{color:var(--muted);font-weight:600;flex:none}
.pchk__r b{font-weight:800;text-align:end;letter-spacing:.01em}
/* The name gets its own line: it is the longest value on the card and the one being checked,
   and squeezing four given names into the right half of a 390px row makes it unreadable. */
.pchk__r--name{flex-direction:column;align-items:flex-start;gap:.12rem;padding-bottom:.55rem}
.pchk__r--name b{font-size:1.08rem;text-align:start;line-height:1.4}
.paxc__note--check{margin:.9rem 0 0;color:var(--ink);font-weight:700;font-size:.85rem}
.paxc__ok{display:flex;align-items:center;justify-content:center;gap:.45rem;width:100%;min-height:48px;
  margin:.9rem 0 0;border:0;border-radius:14px;background:var(--blue);color:#fff;font:inherit;font-weight:800;
  cursor:pointer;transition:background .18s ease,transform .18s ease}
.paxc__ok:hover{background:var(--blue-d)}
.paxc__ok:active{transform:translateY(1px)}
.paxc__ok .ti{font-size:1.05rem}
.paxkv{display:grid;gap:.15rem;margin:.8rem 0 0;padding-top:.7rem;border-top:1px dashed var(--line)}
.paxkv__r{display:flex;justify-content:space-between;gap:1rem;font-size:.84rem}
.paxkv__r span{color:var(--muted);font-weight:600}
.paxkv__r b{font-weight:700;text-align:end}

/* ---- fields ---- */
.paxg{display:grid;gap:.7rem}
.paxg+.paxg{margin-top:1.1rem;padding-top:1rem;border-top:1px dashed var(--line)}
.paxg h4{display:flex;align-items:center;gap:.4rem;margin:0;font-size:.85rem;color:var(--muted)}
.paxg h4 .ti{color:var(--blue);font-size:1rem}
.fld{display:block}
.fld__l{display:block;font-size:.8rem;font-weight:700;color:var(--dark);margin-bottom:.3rem}
.fld__l em{display:block;font-style:normal;font-weight:600;font-size:.74rem;color:#b45309;margin-top:.1rem}
.fld input,.fld select{width:100%;font-family:inherit;font-size:.95rem;font-weight:600;color:var(--ink);
  border:1.5px solid var(--line);border-radius:11px;padding:.65rem .8rem;background:#fff;min-height:46px;transition:.15s}
.fld input:focus,.fld select:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(41,171,226,.14)}
.fld input.is-bad,.fld select.is-bad{border-color:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.12)}
.fld--ask{background:#fffdf7;border:1px solid #f5d9a8;border-radius:13px;padding:.7rem;margin-bottom:.6rem}
.fld--bad input,.fld--bad select{border-color:#dc2626}
/* §33 — the refusal sits under its own input, in the reading direction of the page, and is
   announced rather than only coloured: colour alone is not a message. */
.fld__err{display:block;margin-top:.35rem;font-size:.8rem;font-weight:700;line-height:1.5;color:#b91c1c;text-align:start}
/* §32 — the age rule, stated before the picker is opened rather than after the form is filled. */
.fld__hint{display:block;margin-top:.3rem;font-size:.76rem;font-weight:600;line-height:1.5;color:var(--muted);text-align:start}
/* The date the browser understood, written back in words. The native control's own field order is
   the browser's locale, not ours (Chromium renders mm/dd/yyyy even under ar-SA), so this is the
   one place the customer can check that 04/12 was read as the day they meant. */
.fld__echo{display:block;margin-top:.3rem;font-size:.8rem;font-weight:700;line-height:1.5;color:var(--ink);text-align:start}
.fld__ok{margin-top:.5rem;display:inline-flex;align-items:center;gap:.3rem;background:#16a34a;color:#fff;
  border:none;border-radius:10px;padding:.5rem .95rem;font-family:inherit;font-weight:800;font-size:.82rem;cursor:pointer;min-height:44px}
.fld__ok:hover{filter:brightness(1.06)}

/* loyalty: collapsed, optional, out of the way */
.loy{margin-top:.85rem;padding-top:.7rem;border-top:1px dashed var(--line)}
.loy__t{display:flex;align-items:center;gap:.4rem;width:100%;background:none;border:none;padding:.35rem 0;
  font-family:inherit;font-weight:700;font-size:.84rem;color:var(--dark);cursor:pointer;min-height:44px}
.loy__t .ti{color:var(--blue)}
.loy__t small{margin-inline-start:auto;color:var(--muted);font-weight:600;font-size:.74rem}
.loy__b{display:grid;gap:.6rem;margin-top:.5rem}

/* ===================== 3 · review ===================== */
.leg+.leg{margin-top:1.1rem;padding-top:1.1rem;border-top:1px dashed var(--line)}
.leg__h{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin-bottom:.25rem}
.leg__tag{font-size:.75rem;font-weight:800;color:#fff;background:var(--blue);border-radius:20px;padding:.15rem .7rem}
.leg__date{display:inline-flex;align-items:center;gap:.3rem;font-size:.83rem;font-weight:700;color:var(--dark)}
.leg__date .ti{color:var(--blue)}
.leg__meta{color:var(--muted);font-size:.8rem;font-weight:600;margin-bottom:.75rem}
.leg__meta .ti{margin-inline-end:.22rem}
.leg__meta .ti svg{width:14px;height:14px;vertical-align:-2px}
.seg+.seg{margin-top:.6rem}
.seg__air{display:flex;align-items:center;gap:.55rem;margin-bottom:.5rem;flex-wrap:wrap}
.seg__air img{width:26px;height:26px;object-fit:contain;border-radius:6px}
.seg__ph{width:26px;height:26px;display:grid;place-items:center;color:var(--blue);background:#eaf6fd;border-radius:6px}
.seg__air b{font-size:.87rem;display:block;line-height:1.3}
.seg__air small{font-size:.76rem;color:var(--muted);font-weight:700;letter-spacing:.03em}
.seg__op{font-size:.72rem;font-weight:700;color:#92400e;background:#fffbeb;border-radius:20px;padding:.12rem .55rem}
.seg__tl{display:grid;grid-template-columns:auto 1fr;gap:.1rem .75rem;padding-inline-start:.2rem}
.pt{display:contents}
.pt__t{grid-column:1;font-size:1.02rem;font-weight:800;font-variant-numeric:tabular-nums;padding-top:.05rem}
.pt__p{grid-column:2;font-size:.85rem;line-height:1.45;padding-bottom:.15rem}
.pt__p b{font-weight:800;letter-spacing:.03em}
.pt__p span{color:var(--muted);font-weight:600}
.pt__p small{display:block;color:var(--blue-d);font-weight:700;font-size:.75rem}
.seg__mid{grid-column:1/3;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;
  padding:.35rem 0 .35rem .2rem;color:var(--muted);font-size:.78rem;font-weight:600}
.seg__ln{width:2px;height:20px;background:linear-gradient(var(--blue),#cfe9f7);border-radius:2px;margin-inline-start:.55rem}
.seg__dur{display:inline-flex;align-items:center;gap:.25rem}
.seg__dur .ti{color:var(--blue)}
.seg__ac{opacity:.9}
.lay{display:flex;align-items:center;gap:.45rem;margin:.6rem 0 0;background:#fff7ed;border-radius:11px;
  padding:.5rem .75rem;font-size:.8rem;font-weight:700;color:#9a3412}
.lay .ti{color:var(--orange-d)}

/* baggage — the section customers scan for first */
.bagg+.bagg{margin-top:.9rem}
.bag{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:.6rem 0;border-bottom:1px dashed var(--line)}
.bag:last-child{border-bottom:none}
.bag b{font-size:.88rem;font-weight:700;color:var(--muted)}
.bag span{font-size:.95rem;color:var(--ink);font-weight:800;text-align:end}
.bag.none span{color:#b91c1c}
/* §10 — an allowance nobody quoted. Present, readable, and visibly not a promise. */
.bag.soft span{color:var(--muted);font-weight:600;font-style:italic}
.bag.included span{color:#15803d}
.bag.unknown span{color:var(--muted)}
.bag em{margin-inline-start:auto;font-style:normal;font-size:.72rem;font-weight:800;color:#92400e;
  background:#fffbeb;border-radius:20px;padding:.15rem .6rem;white-space:nowrap}

/* fare conditions */
.cond+.cond{margin-top:1rem;padding-top:.9rem;border-top:1px dashed var(--line)}
.cond__r{display:flex;align-items:center;gap:.55rem;padding:.5rem 0}
.cond__r{justify-content:space-between}
.cond__l{font-size:.88rem;color:var(--muted);font-weight:700}
.cond__r b{font-size:.9rem;text-align:end;font-weight:800}
.cond__r.is-yes b{color:#15803d}
.cond__r.is-no b{color:#b91c1c}
.cond__r.is-unk b{color:var(--muted);font-weight:700}
.cond__d{margin-top:.6rem;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.cond__dh,.cond__dr{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:.4rem;padding:.55rem .7rem;font-size:.78rem}
.cond__dh{background:#f6f8fb;color:var(--muted);font-weight:800}
.cond__dr{border-top:1px solid var(--line);font-weight:600}
.cond__dr .yes{color:#15803d;font-weight:800}
.cond__dr .no{color:#b91c1c;font-weight:800}
.lnk--wide.is-open .ti--chevron svg{transform:rotate(180deg)}

/* ===== §24–§31 — THE REVIEW PAGE ===========================================================
   One card per subject, nothing nested deeper than that, and separation carried by WHITESPACE
   rather than by more borders. The rhythm is fixed: 20–24px between cards, 14–16px inside them,
   one radius, one type scale, exactly one orange button on the page. */
.rv__intro{margin-bottom:1.25rem}
.rvc{background:#fff;border:1px solid var(--line);border-radius:16px;margin:0 0 1.35rem;overflow:hidden}
.rvc__h{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:0;
  padding:.95rem 1rem .55rem;font-size:1rem;font-weight:800;letter-spacing:-.01em}
.rvc__h .lnk{font-size:.82rem;font-weight:700;padding:0}
.rvc__b{padding:0 1rem 1rem}
.rvc--price{border:none;background:none}
.rvc--price .rvc__b{padding:0}

/* one leg */
.rvl{padding:.9rem 0;border-top:1px solid var(--line)}
.rvl:first-child{border-top:none;padding-top:.2rem}
.rvl__h{display:flex;align-items:baseline;justify-content:space-between;gap:.6rem;margin-bottom:.6rem}
.rvl__tag{font-weight:800;font-size:.92rem}
.rvl__date{color:var(--muted);font-size:.8rem;font-weight:600}
.rvl__air{display:flex;align-items:center;gap:.5rem;margin-bottom:.7rem}
.rvl__air img{width:26px;height:26px;object-fit:contain;border-radius:6px;background:#fff}
.rvl__ph{display:grid;place-items:center;width:26px;height:26px;border-radius:6px;background:#f1f5f9;color:var(--muted)}
.rvl__air b{font-size:.88rem;font-weight:700}
.rvl__air .fno{color:var(--muted);font-size:.8rem;font-weight:700;direction:ltr}
.rvl__route{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.6rem;
  padding:.7rem .85rem;background:#f8fafc;border-radius:12px}
.rvl__pt b{display:block;font-size:1.18rem;font-weight:800;line-height:1.2}
.rvl__pt .tcode{display:block;font-size:.82rem;font-weight:800;color:var(--ink);direction:ltr}
.rvl__pt small{display:block;color:var(--muted);font-size:.75rem;font-weight:600}
.rvl__pt--end{text-align:end}
.rvl__mid{display:grid;justify-items:center;gap:.15rem;color:var(--muted);font-size:.72rem;font-weight:700}
.rvl__mid .tiarrow{display:block;width:100%;color:var(--line-d,#cbd5e1)}
.rvl__mid .tiarrow svg{width:100%;height:14px}
.rvl__facts{margin-top:.75rem;display:grid;gap:.4rem}
.rvl__bag{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;font-size:.85rem}
.rvl__bag span{color:var(--muted);font-weight:600}
.rvl__bag b{font-weight:800;text-align:end}
.rvl__bag.is-soft b{color:var(--muted);font-weight:700}
/* §10/§33 — the accordion trigger is a 44px target. It was 26px tall: a link-sized control that a
   thumb misses, on the one action that opens the flight the customer is about to buy. The padding
   is negative-margined back out so the 44px is HIT AREA and the row does not grow. */
.rvl__more{margin-top:.5rem;display:inline-flex;align-items:center;gap:.3rem;background:none;border:none;
  padding:.6rem 0;margin-inline:-.35rem;padding-inline:.35rem;min-height:44px;
  font-family:inherit;font-size:.84rem;font-weight:800;color:var(--blue-d);cursor:pointer}
.rvl__more .ti{transition:transform .2s}
.rvl__more.is-open .ti{transform:rotate(180deg)}
.rvl__d{margin-top:.7rem}
.rvl__d .leg{border:none;padding:0;margin:0}

/* contact */
.rvct{margin:0;font-size:.95rem;font-weight:700}
.rvct--sub{margin-top:.3rem;font-size:.86rem;font-weight:600;color:var(--muted)}

/* §29 — the sticky bar: the total, and one action. Nothing else. */
.rvbar{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.rvbar__p{display:grid;line-height:1.25}
.rvbar__p span{color:var(--muted);font-size:.76rem;font-weight:700}
.rvbar__p b{font-size:1.12rem;font-weight:800}
.rvbar .btn{flex:1;max-width:62%;min-height:50px}

/* passengers + contact on review */
.rvpax{display:flex;align-items:center;gap:.6rem;padding:.6rem 0;border-bottom:1px dashed var(--line)}
.rvpax:last-child{border-bottom:none}
.rvpax__n{width:26px;height:26px;min-width:26px;border-radius:50%;background:#eaf6fd;color:var(--blue-d);
  display:grid;place-items:center;font-weight:800;font-size:.8rem}
.rvpax__b{min-width:0}
.rvpax__b b{display:block;font-size:.92rem;letter-spacing:.02em}
.rvpax__b small{display:block;color:var(--muted);font-size:.78rem;font-weight:600}
.rvpax__doc{direction:ltr;text-align:start;unicode-bidi:plaintext}
.rvpax .lnk{margin-inline-start:auto}
.rvrow{display:flex;flex-wrap:wrap;gap:.4rem 1.4rem;font-size:.92rem;font-weight:700}
.rvrow span{display:inline-flex;align-items:center;gap:.35rem}

/* ---- the price. Rendered ONCE: in the flow on a phone, sticky column on a desktop. ---- */
/* §CX10 — a price SUMMARY: a plain heading, tight rows, one emphasis (the total). */
.pricebox{background:#fff;border:1px solid var(--line);border-radius:14px;padding:.9rem 1rem}
.pricebox__h{font-weight:800;font-size:.92rem;margin-bottom:.5rem}
.pricebox__wait{display:flex;align-items:center;gap:.45rem;color:var(--muted);font-size:.82rem;margin:0 0 .5rem}
.pricebox__rows{display:grid;gap:.05rem}
.pricebox__r{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;padding:.26rem 0;
  font-size:.87rem;color:var(--muted);font-weight:600;font-variant-numeric:tabular-nums}
.pricebox__r b{color:var(--ink);font-weight:700}
/* Money OFF is not a fee in a different colour — it is a different sign, and the row says which. */
.pricebox__r--off b{color:#15803d}
.pricebox__r--muted b{color:var(--muted)}
.pricebox__t{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;
  border-top:1px dashed var(--line);margin-top:.55rem;padding-top:.7rem;font-weight:800}
.pricebox__t b{font-size:1.28rem;color:var(--orange-d);display:inline-flex;align-items:baseline;gap:.22rem}
.pricebox__t i{font-size:.78rem;font-style:normal;color:var(--muted)}
.pricebox__pax{margin:.3rem 0 0;color:var(--muted);font-size:.76rem}
/* ===== §15 — THE PROMO FIELD, inside the price summary ======================================
   It sits between the rows and the total because that is where it acts: the customer reads the
   subtotal, applies a code, and watches the total underneath it move. Placed above the rows it
   would be a form floating over a price; placed below the total it would be a control for a number
   that has already been stated.
   The input is `dir="ltr"` (a promo code is a Latin token even on an Arabic screen) inside an RTL
   block, and the row is a grid rather than a flex so the button keeps its width when the
   placeholder is longer in English. Both controls are 44px — this is a tap target on a phone. */
.promo{margin:.7rem 0 0;padding:.7rem 0 0;border-top:1px dashed var(--line)}
.promo__l{display:block;margin:0 0 .4rem;font-size:.8rem;font-weight:800;color:var(--ink)}
.promo__row{display:grid;grid-template-columns:1fr auto;gap:.4rem}
.promo__in{min-height:44px;padding:.5rem .7rem;border:1px solid var(--line);border-radius:10px;
  font:inherit;font-size:.9rem;letter-spacing:.04em;background:#fff;color:var(--ink);width:100%}
.promo__in:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(0,153,230,.14)}
.promo__btn{min-height:44px;padding:0 1rem;border:1px solid var(--line);border-radius:10px;
  background:var(--bg-soft,#f4f6f8);font:inherit;font-size:.86rem;font-weight:800;color:var(--ink);
  cursor:pointer;transition:background .18s ease,border-color .18s ease}
.promo__btn:hover:not(:disabled){background:#eaeef2;border-color:var(--blue)}
.promo__btn:disabled{opacity:.6;cursor:default}
.promo__err{margin:.45rem 0 0;color:#991b1b;font-size:.78rem;font-weight:700;line-height:1.5}
/* Applied: a chip, not a form. The code is shown back in the capitalisation the campaign owns,
   with one way out beside it — «إزالة» is a link-weight control on purpose, because removing a
   discount should never look like the primary action in this box. */
.promo--on .promo__chip{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;
  padding:.55rem .7rem;border-radius:10px;background:#eefbf3;border:1px solid #bbf0d0}
.promo--on .promo__chip b{font-size:.9rem;letter-spacing:.04em;color:#14532d}
.promo--on .promo__chip span{font-size:.78rem;font-weight:700;color:#15803d}
.promo__rm{margin-inline-start:auto;min-height:36px;padding:0 .5rem;border:0;background:none;
  font:inherit;font-size:.8rem;font-weight:800;color:#991b1b;cursor:pointer;text-decoration:underline}
.pricebox__note{display:flex;align-items:flex-start;gap:.35rem;margin:.6rem 0 0;color:var(--muted);font-size:.76rem;line-height:1.5}
.pricebox__note .ti{color:var(--blue);margin-top:.1rem}
/* §3 — the price we could not confirm. Stated plainly, with the way out directly under it; there
   is deliberately no total and no pay button on this state. */
.pricebox__fail{margin:.2rem 0 .8rem;padding:.7rem .8rem;border-radius:12px;background:#fef2f2;
  color:#991b1b;font-size:.86rem;font-weight:700;line-height:1.6}
.pricebox__pay{margin-top:.9rem;padding-top:.9rem;border-top:1px solid var(--line)}
.paysafe{display:flex;align-items:center;justify-content:center;gap:.4rem;margin:0 0 .6rem;
  font-size:.85rem;font-weight:800;color:#15803d}
.paysafe .ti{color:#16a34a;font-size:1.1rem}

/* ---- sticky primary action ---- */
.ck__cta{position:sticky;bottom:0;z-index:var(--z-sticky);background:rgba(255,255,255,.97);backdrop-filter:blur(8px);
  border-top:1px solid var(--line);padding:.7rem 1rem calc(.7rem + env(safe-area-inset-bottom));margin-top:1.2rem}
.ck__ctain{width:min(1120px,100%);margin-inline:auto}
.ck__cta .btn{min-height:50px;font-size:1rem}
.btn.is-waiting{filter:grayscale(.35);opacity:.85}
.btn.is-busy{pointer-events:none;opacity:.7}
.ckwait{display:grid;place-items:center;padding:3rem 0}

/* ---- confirmation ---- */
.done{text-align:center;padding:1.5rem 0 1.8rem}
.done__ic{width:64px;height:64px;margin:0 auto .8rem;border-radius:50%;display:grid;place-items:center;
  background:#eaf7ef;color:#16a34a;font-size:1.9rem}
.done__ic--wait{background:#fff7ed;color:var(--orange-d)}
.done h1{font-size:1.35rem;margin:0 0 .35rem}
.done p{margin:0;color:var(--muted);font-size:.9rem}
.done__ref{display:inline-flex;align-items:center;gap:.6rem;margin-top:1rem;background:#fff;
  border:1px dashed var(--line);border-radius:12px;padding:.6rem 1.1rem}
.done__ref span{color:var(--muted);font-size:.8rem;font-weight:700}
.done__ref b{font-size:1.05rem;letter-spacing:.06em}
.done__acts{margin-top:1.2rem}

/* ===================== the scan sheet ===================== */
.pscan{position:fixed;inset:0;z-index:calc(var(--z-modal) + 50);background:rgba(12,18,28,.72);display:flex;align-items:flex-end;justify-content:center}
.pscan__panel{background:var(--bg);width:min(520px,100%);height:100dvh;max-height:100dvh;
  display:flex;flex-direction:column;animation:sheetup .26s ease}
@keyframes sheetup{from{transform:translateY(3%)}to{transform:none}}
.pscan__bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#fff;
  border-bottom:1px solid var(--line);padding:.85rem 1rem;font-size:1rem}
.pscan__x{width:44px;height:44px;border:none;border-radius:12px;background:#f2f4f8;display:grid;place-items:center;cursor:pointer;color:var(--dark)}
.pscan__body{flex:1;overflow:auto;padding:1rem;display:flex;flex-direction:column}
.pscan__priv{display:flex;align-items:flex-start;gap:.4rem;margin:.9rem 0 0;color:var(--muted);font-size:.75rem;line-height:1.5}
.pscan__priv .ti{color:#16a34a;margin-top:.1rem}

.pscam{display:flex;flex-direction:column;flex:1}
.pscam__frame{position:relative;aspect-ratio:1.42/1;width:100%;background:#0d1117;border-radius:16px;
  overflow:hidden;box-shadow:0 12px 34px rgba(10,18,30,.28);transition:box-shadow .2s}
.pscam__frame.is-ok{box-shadow:0 0 0 3px #16a34a,0 12px 34px rgba(22,163,74,.28)}
.pscam__frame.is-shot{filter:brightness(1.6);transition:filter .12s}
.pscam__frame video{width:100%;height:100%;object-fit:cover;display:block}
.pscam__load{position:absolute;inset:0;display:grid;place-items:center;background:#0d1117}
.pscam__mask{position:absolute;inset:0;pointer-events:none}
/* White brackets over a pale passport page are invisible — the shadow is what makes the frame
   readable against a document that is itself almost white. */
.pscam__c{position:absolute;width:30px;height:30px;border:3px solid rgba(255,255,255,.95);border-radius:4px;
  filter:drop-shadow(0 0 3px rgba(0,0,0,.65))}
.pscam__c--tl{top:12px;left:12px;border-right:none;border-bottom:none}
.pscam__c--tr{top:12px;right:12px;border-left:none;border-bottom:none}
.pscam__c--bl{bottom:12px;left:12px;border-right:none;border-top:none}
.pscam__c--br{bottom:12px;right:12px;border-left:none;border-top:none}
.pscam__mrz{position:absolute;left:8%;right:8%;bottom:9%;height:17%;border:2px dashed var(--orange);
  border-radius:6px;display:flex;flex-direction:column;justify-content:center;gap:16%;padding:0 6%}
.pscam__mrz i{display:block;height:3px;background:rgba(247,147,30,.6);border-radius:2px}
.pscam__hint{margin:.85rem 0 .6rem;text-align:center;font-weight:700;font-size:.92rem;color:var(--dark);
  min-height:2.6em;display:flex;align-items:center;justify-content:center;line-height:1.5}
.pscam__hint.is-ok{color:#15803d}
.pscam__acts{display:grid;gap:.45rem;margin-top:auto}
.pscam__acts .btn{min-height:50px}

.psup{display:flex;flex-direction:column;flex:1}
.psup__frame{position:relative;aspect-ratio:1.42/1;width:100%;background:#fff;border:2px dashed var(--line);
  border-radius:16px;display:grid;place-items:center;color:#cfd6e2}
.psup__frame .ti svg{width:64px;height:64px}
.psup__mrz{position:absolute;left:10%;right:10%;bottom:11%;display:flex;flex-direction:column;gap:7px}
.psup__mrz i{display:block;height:5px;background:#e7e9ee;border-radius:3px}
.psup__why{display:flex;align-items:flex-start;gap:.45rem;margin:.9rem 0 .4rem;font-size:.88rem;font-weight:700;line-height:1.6}
.psup__why .ti{color:var(--blue);margin-top:.1rem}
.psup__how{margin:0 0 1rem;color:var(--muted);font-size:.82rem;line-height:1.6}

.pswork{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem 0}
.pswork h3{margin:.9rem 0 .3rem;font-size:1.1rem}
.pswork p{margin:0;color:var(--muted);font-size:.88rem}
.pswork__ring{color:var(--blue);animation:spin 1.6s linear infinite}
.pswork__ring .ti svg{width:52px;height:52px}
.pswork__ic{width:58px;height:58px;border-radius:50%;background:#fef2f2;color:#dc2626;display:grid;place-items:center}
.pswork__ic .ti svg{width:28px;height:28px}
.pswork--fail{justify-content:flex-start;padding-top:2.5rem}
.pswork__msg{margin:.4rem 0 0!important;color:var(--dark)!important;font-weight:600;line-height:1.6;max-width:34ch}
.psmeter{width:min(240px,80%);height:6px;background:#eef1f6;border-radius:4px;overflow:hidden;margin:1rem 0}
.psmeter i{display:block;height:100%;background:var(--grad-cta)}
.pswork--fail .pscam__acts{width:100%;margin-top:1.4rem}
@keyframes spin{to{transform:rotate(360deg)}}
.spinner--sm{width:15px;height:15px;border-width:2px}

/* ===================== responsive ===================== */
@media(min-width:1000px){
  /* §26 — THE STEPPER IS CENTRED ON THE VIEWPORT, NOT PUSHED TO THE FAR END.
     It used to be `flex:1 1 auto; margin-inline-start:auto`, i.e. "whatever is left after the back
     control and the title" — so it sat 376px off centre at 1440 (measured), and moved every time
     the step's own title changed length. A three-column grid whose outer tracks are both `1fr`
     puts the middle track dead centre by construction, independently of the title beside it, the
     back control, and whatever the content columns below are doing. The third track is an empty
     `::after` and exists only to balance the first. */
  .ck__head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:.6rem 1.5rem;max-width:none}
  .ck__head::after{content:"";grid-column:3}
  .ck__headin{grid-column:1;justify-self:start;margin-bottom:0;min-width:0}
  .ckstep{grid-column:2;justify-self:center;margin-inline:0;flex:0 0 auto;width:min(640px,100%);max-width:640px}
  .ckstep__n{width:30px;height:30px;font-size:.88rem}
  .ckstep__l{font-size:.8rem}
  .ck__wrap{grid-template-columns:minmax(0,1fr) 340px;gap:2.2rem;padding:1.8rem 1.5rem 2.5rem;align-items:start}
  .ck__side{position:sticky;top:6.6rem}
  .ck__intro h1{font-size:1.6rem}
  .ck--sidecta .ck__cta{display:none}
  .ck__cta{position:static;background:none;border:none;backdrop-filter:none;padding:0;margin-top:1.4rem}
  .ck__cta .btn{max-width:340px}
  .pscan{align-items:center}
  .pscan__panel{height:auto;max-height:92vh;border-radius:18px;overflow:hidden}
}
@media(max-width:359px){
  .ckstep__l{font-size:.62rem}
  .ckstep__n{width:23px;height:23px;font-size:.72rem}
  /* 320px is the narrowest phone still in use, and it is the width where the title, the back
     control and four step marks stop fitting on one line: the last mark was pushed 21px past the
     edge and the whole page scrolled sideways. The page's own <h1> names the step directly below,
     so the header's copy of it is the part that goes. */
  .ck__ttl{display:none}
  .ckstep{max-width:none}
  .ck__wrap{padding-inline:.75rem}
  .scan{padding:.85rem;min-height:80px}
  .scan__ic{width:40px;height:40px}
  .cond__dh,.cond__dr{grid-template-columns:1fr .8fr .8fr;font-size:.72rem;padding:.45rem .5rem}
}

/* One primary action per screen. On a phone the sticky bar IS the action, so the copy of it that
   lives in the price summary (which is the desktop's sticky checkout column) stays hidden — the
   reassurance line above it does not, because that belongs with the price either way. */
/* §29 — on a phone the ONE action is the sticky bar, so the price card's copy of it goes away
   entirely. Hiding only the button left its «الدفع الآمن» line sitting under the total with
   nothing to reassure about — a label for a control that is not there. */
@media(max-width:999px){ .pricebox__pay{display:none} }
.seg__ac span[dir=ltr]{unicode-bidi:isolate}
/* Fills the space between the instruction and the buttons with the one thing the customer would
   otherwise have to guess: that they do not have to press anything. */
.pscam__auto{display:flex;align-items:center;justify-content:center;gap:.4rem;margin:0;
  color:var(--muted);font-size:.78rem;font-weight:600;text-align:center;line-height:1.5}
.pscam__auto .ti{color:var(--blue)}
/* Transit marks inside the flight results, which are sized by their surrounding text. */
.filterbtn .ti svg{width:1.15em;height:1.15em}
.chcard__badge .ti svg,.chpanel__hd .ti svg,.b2bcomm .ti svg,.smart__note .ti svg{width:1em;height:1em}
.fleg__n svg{width:.95em;height:.95em}
.bdone__ic svg{width:44px;height:44px}
.smart__ic svg{width:18px;height:18px}
.banner__ic svg{width:28px;height:28px;color:var(--blue)}

/* ===== Transit icons in place =====
   Sizes come from the .ti--xs/sm/md/lg system; these rules only handle alignment, and the two
   spots where a mark sits inside a coloured container. */
[data-ti] svg{width:24px;height:24px;display:inline-block;vertical-align:-.3em}
.ti-inline{display:inline-flex;align-items:center;margin-inline-end:.35rem}
.ti-inline svg,.tab__icon[data-ti] svg{width:20px;height:20px}
.feature__ic[data-ti] svg{width:36px;height:36px}
.banner__ic svg{width:28px;height:28px}
.bdone__ic svg{width:40px;height:40px}
.fleg__n svg{width:16px;height:16px}
.ck-line__t .ti svg{vertical-align:-.25em}

/* The route line under a leg's label: the one place the airport mark earns its keep, because it
   names the two airports rather than decorating a row that already says them. */
.leg__route{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;margin:.15rem 0 .3rem;font-size:.9rem}
.leg__route b,.leg__route bdi{font-weight:800;letter-spacing:.04em}
.leg__route span{color:var(--muted);font-weight:600;font-size:.85rem}
/* The connector was `color:var(--line)` — the page's hairline grey — because it was a dash doing
   the job of a rule. As an arrow it is carrying meaning (which way round the trip goes), so it
   takes the muted text ink: quieter than the codes, readable on its own. */
.leg__route i{font-style:normal;color:var(--muted);margin-inline:.15rem}
.cks__h--plain{padding-inline-start:.1rem}

/* ==========================================================================
   FLIGHT RESULTS — presentation layer v3
   Written against one rule: a result is ONE card, and the eye must land on
   airline+number, times, duration, cabin, price, in that order, without a
   border telling it where to go. Density comes down by removing boxes, not by
   removing information: everything the old card showed in a grey pill is
   either still here in plain type, or was never true (see §baggage below).
   ========================================================================== */

/* Flights own their header: the generic results title would repeat the route. */
.results--fl .results__head{display:none}
.results--fl{padding-top:1.2rem}

/* ---- search summary (route · date · pax · cabin) ---- */
.shead{display:flex;align-items:baseline;flex-wrap:wrap;gap:.15rem 1rem;margin:0 0 1rem}
.shead__rt{display:flex;align-items:baseline;gap:.5rem;font-size:1.45rem;font-weight:900;color:var(--dark);letter-spacing:-.01em}
.shead__rt i{font-style:normal;color:var(--orange);font-size:1.1rem}
/* A multi-city chain: several LTR pairs on one RTL line. `flex-wrap` so six legs do not push the
   "تعديل البحث" button off the card, and a smaller size because it is a longer string. */
.shead__rt--multi{flex-wrap:wrap;gap:.4rem;font-size:1.15rem}
.shead__pair{display:inline-flex;align-items:baseline;gap:.3rem}
.shead__sep{color:var(--muted);font-style:normal;font-size:.9rem}
.shead__m{color:var(--muted);font-size:.9rem;font-weight:600;flex:1 1 100%}
.shead__ed{margin-inline-start:auto;background:none;border:none;padding:.6rem 0;min-height:44px;font-family:inherit;font-weight:800;font-size:.88rem;color:var(--blue-d);cursor:pointer;align-self:center}
.shead__ed:hover{text-decoration:underline}
@media(max-width:560px){
  .shead{gap:.2rem}
  .shead__rt{font-size:1.25rem;flex:1 1 auto}
  .shead__ed{order:2;flex:0 0 auto;font-size:.82rem}
  .shead__m{order:3;font-size:.84rem}
}

/* ---- sort · filters · count ---- */
.tbar{display:flex;align-items:center;gap:.7rem;margin-bottom:.5rem}
.tbar__sort{display:inline-flex;background:#eceff5;border-radius:12px;padding:3px;flex:1 1 auto;max-width:340px}
.tbar__sort button{flex:1;border:none;background:none;font-family:inherit;font-weight:800;font-size:.88rem;padding:.5rem .6rem;border-radius:9px;cursor:pointer;color:var(--muted);transition:.15s;min-height:44px}
.tbar__sort button.on{background:#fff;color:var(--dark);box-shadow:0 1px 4px rgba(16,28,54,.12)}
.tbar__f{display:none;align-items:center;gap:.4rem;flex:0 0 auto;font-family:inherit;font-weight:800;font-size:.88rem;
  border:1.5px solid var(--line);background:#fff;border-radius:12px;padding:.5rem 1rem;min-height:44px;cursor:pointer;color:var(--dark)}
.tbar__f b{background:var(--orange);color:#fff;border-radius:999px;min-width:19px;height:19px;display:grid;place-items:center;font-size:.72rem}
@media(max-width:900px){ .tbar__f{display:inline-flex} .tbar__sort{max-width:none} }
.tbar2{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem;flex-wrap:wrap}
.tbar2__n{margin-inline-start:auto;color:var(--muted);font-size:.8rem;font-weight:700;white-space:nowrap}
.qbar{display:flex;gap:.45rem;flex-wrap:wrap}
.qc{font-family:inherit;font-weight:700;font-size:.84rem;background:#fff;border:1.5px solid var(--line);color:var(--dark);
  border-radius:999px;padding:.42rem .95rem;min-height:44px;cursor:pointer;transition:.15s}
.qc:hover{border-color:#b9c2d0}
.qc.on{background:var(--dark);border-color:var(--dark);color:#fff}
.qc--clr{color:#b91c1c;border-color:#f0d3cf;background:#fff}

/* ---- airline logo: a reserved box that cannot shift ----
   The initials are painted by the box itself; the <img> lies on top and only
   hides them once it has actually decoded. A carrier with no logo therefore
   costs zero pixels of movement, which is what stopped the matrix flickering. */
.lgb{position:relative;flex:0 0 auto;display:grid;place-items:center;background:#f4f6fa;border-radius:10px;overflow:hidden;
  width:var(--lg,40px);height:var(--lg,40px);font-weight:900;font-size:calc(var(--lg,40px)*.32);color:#8892a4;letter-spacing:.02em}
.lgb::before{content:attr(data-code)}
.lgb img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff;opacity:0;transition:opacity .15s}
.lgb--img img{opacity:1}

/* ---- THE card ---- */
.fc{position:relative;background:#fff;border:1px solid #e9edf3;border-radius:18px;padding:1.05rem 1.15rem .5rem;margin-bottom:.75rem;
  transition:border-color .15s,box-shadow .15s}
.fc:hover{border-color:#d3dbe7;box-shadow:0 6px 22px rgba(16,28,54,.07)}
.fc--on{border-color:var(--orange);box-shadow:0 6px 22px rgba(247,147,30,.16)}

.fc__hd{display:flex;align-items:center;gap:.65rem;margin-bottom:.85rem}
.fc__who{min-width:0;display:flex;align-items:baseline;flex-wrap:wrap;gap:.1rem .5rem}
.fc__who>b{font-size:1rem;font-weight:800;color:var(--dark);line-height:1.2}
/* §6 — the flight number is not small grey text. Same line, same weight class,
   tabular so XY57 and SV1023 line up between cards. */
.fno{font-weight:800;font-size:.93rem;color:var(--blue-d);letter-spacing:.03em;font-variant-numeric:tabular-nums;
  direction:ltr;unicode-bidi:isolate;white-space:nowrap}
.fc__op{flex:1 1 100%;color:var(--muted);font-size:.76rem;font-weight:600}
.fc__tag{margin-inline-start:auto;flex:0 0 auto;font-size:.71rem;font-weight:800;padding:.22rem .6rem;border-radius:999px;
  background:#eef2f8;color:var(--blue-d)}
.fc__tag--low{background:#e9f7ee;color:#12793c}

/* route: two ends and the line between them, no boxes */
.fc__route{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.9rem}
.fc__end{min-width:58px}
.fc__end time{display:block;font-size:1.6rem;font-weight:800;line-height:1;color:var(--dark);font-variant-numeric:tabular-nums}
.fc__end time sup{color:#b91c1c;font-size:.52em;font-weight:800;margin-inline-start:2px}
.fc__end b{display:block;font-size:.86rem;font-weight:800;color:var(--dark);letter-spacing:.05em;margin-top:.2rem}
.fc__end small{display:block;color:var(--muted);font-size:.76rem;font-weight:600;margin-top:.05rem;
  max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fc__end--to{text-align:end}
.fc__path{text-align:center;min-width:0;padding-bottom:.2rem}
.fc__dur{display:block;color:var(--muted);font-size:.78rem;font-weight:700}
.fc__ln{display:flex;align-items:center;justify-content:center;gap:4px;height:14px;margin:.15rem 0;position:relative}
.fc__ln::before{content:"";position:absolute;inset-inline:0;top:50%;height:1.5px;background:#e3e8f0}
.fc__ln i{position:relative;width:6px;height:6px;border-radius:50%;background:var(--orange)}
.fc__stop{display:block;font-size:.78rem;font-weight:700;color:#b45309}
.fc__stop.is-direct{color:#12793c}

/* the money row: cabin on one side, price + action on the other */
.fc__buy{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin-top:.9rem}
.fc__cabin{display:inline-flex;align-items:center;gap:.32rem;color:var(--muted);font-size:.85rem;font-weight:700}
/* Baggage is on every card (§11). A quoted allowance reads as a fact; an unquoted one is drawn
   lighter and in italics, so the two are not mistaken for the same promise. */
.fc__bag{display:inline-flex;align-items:center;gap:.32rem;color:var(--dark);font-size:.85rem;font-weight:700}
.fc__bag.is-soft{color:var(--muted);font-weight:600;font-style:italic}
.fc__bag .ti svg{width:1.05em;height:1.05em}
.fc__bag .ti{vertical-align:-.15em;color:var(--blue)}
.fdx__soft{font-style:italic;color:var(--muted);font-weight:600}
.fc__price{margin-inline-start:auto;font-size:1.55rem;font-weight:900;color:var(--dark);line-height:1;
  display:inline-flex;align-items:baseline;gap:.25rem;font-variant-numeric:tabular-nums}
.fc__price i{font-style:normal;font-size:.8rem;font-weight:700;color:var(--muted)}
.fc__price em{font-style:normal;font-size:.68rem;font-weight:700;color:var(--muted)}
/* ---- §RT — the three round-trip price states -------------------------------------------------
   The hierarchy is the requirement, not a preference: on a return card the DELTA is the decision
   and the total is only confirmation, so they must not carry the same visual weight. And none of
   the three states may be legible by COLOUR alone (§RT18) — the sign, the word underneath and the
   weight all carry it, which is also why the up/down tints are deliberately quiet. */
.fc__price--trip{flex-wrap:wrap;justify-content:flex-end;row-gap:.05rem}
.fc__price--trip em{flex-basis:100%;text-align:end;font-size:.7rem}
.fc__price--delta{flex-direction:column;align-items:flex-end;gap:.18rem;text-align:end;line-height:1.35}
.fc__price--delta b{font-size:1.55rem;font-weight:900;line-height:1;font-variant-numeric:tabular-nums;
  display:inline-flex;align-items:baseline;gap:.25rem;flex-wrap:nowrap;white-space:nowrap}
.fc__price--delta b i{font-style:normal;font-size:.8rem;font-weight:700;color:var(--muted)}
.fc__price--delta b bdi{unicode-bidi:isolate}
.fc__price--delta.is-up b{color:var(--dark)}
.fc__price--delta.is-same b{color:#12793c}
.fc__price--delta.is-down b{color:#12793c}
.fc__dl{font-style:normal;font-size:.7rem;font-weight:700;color:var(--muted);line-height:1.35}
.fc__price--delta.is-down .fc__dl,.fc__price--delta.is-same .fc__dl{color:#12793c}
/* The confirming total: same family, one step down in size and weight, muted. */
.fc__tot{text-decoration:none;font-size:.76rem;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums;line-height:1.35}
.fc__price--off{font-size:.85rem;font-weight:700}
.fc__na{color:#b45309;font-weight:700;font-size:.82rem;line-height:1.4;text-align:end;max-width:190px}
.fc--gone .fc__price--off{opacity:.9}

.fc__pick{flex:0 0 auto;min-height:44px;padding-inline:1.5rem;border-radius:12px}

.fc__more{display:flex;gap:1.1rem;border-top:1px solid #f1f4f8;margin-top:.85rem;padding:.15rem 0}
.lnk2{background:none;border:none;font-family:inherit;font-weight:700;font-size:.83rem;color:var(--blue-d);cursor:pointer;
  padding:.6rem 0;min-height:44px}
.lnk2:hover{text-decoration:underline}

@media(max-width:560px){
  .fc{padding:.95rem 1rem .35rem;border-radius:16px}
  .fc__end time{font-size:1.4rem}
  .fc__end small{max-width:78px}
  .fc__price{font-size:1.4rem}
  .fc__pick{padding-inline:1.15rem}
  .fc__buy{gap:.45rem}
}

/* ---- the chosen leg (§26) ---- */
/* ===== §CX8 — A SETTLED LEG, IN THREE LINES =====
   Two of these are on screen at once on a round trip, and a chosen flight must never be as tall as
   an unchosen one. Logo · who is flying it · route+times+meta · the chosen fare — then the actions,
   ranked and INSIDE the block they act on (§CX13/§CX14).
   The route is laid out by flex with each code in its own `<bdi>`: written as one text run the
   bidi algorithm reordered «RUH 10:00 ← JED 11:40» destination-first, and the summary then told
   the customer they were flying the wrong way. */
.fsum{display:flex;align-items:flex-start;gap:.75rem;flex-wrap:wrap;padding:.85rem 1rem 1rem}
.fsum__logo{--lg:38px}
.fsum__b{min-width:0;flex:1 1 200px}
.fsum__who{display:flex;align-items:baseline;gap:.4rem;flex-wrap:wrap}
.fsum__who b{font-size:.92rem;font-weight:800;color:var(--dark)}
.fsum__who .fno{color:var(--muted);font-size:.76rem;font-weight:700;letter-spacing:.03em}
.fsum__rt{display:flex;align-items:baseline;gap:.45rem;flex-wrap:wrap;margin-top:.15rem;
  font-size:1rem;font-weight:800;color:var(--dark);font-variant-numeric:tabular-nums}
.fsum__pt{display:inline-flex;align-items:baseline;gap:.3rem}
.fsum__pt bdi{letter-spacing:.04em}
.fsum__pt em{font-style:normal;font-weight:700}
.fsum__rt i{font-style:normal;color:var(--blue);font-size:.9em}
.fsum__rt sup{color:#b91c1c;font-size:.6em}
.fsum__rt small{flex-basis:100%;color:var(--muted);font-size:.79rem;font-weight:600;letter-spacing:0}
.fsum__fare{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin-top:.4rem;
  color:var(--dark);font-size:.84rem}
.fsum__fare b{font-weight:800}
/* A label, not a picture: a baggage glyph beside a fare NAME is decoration (§CX15). */
.fsum__fl{color:var(--muted);font-weight:700;font-size:.79rem}
/* §CX13 — THE ACTIONS SIT UNDER THE LEG THEY ACT ON, AT EVERY WIDTH.
   This block used to be pushed to the opposite edge with `margin-inline-start:auto`. On a phone
   that was harmless (there is no opposite edge worth the name); on a 1440 card it put «تغيير
   الرحلة» roughly 700px away from the flight it changes, at the far end of a line whose other end
   held the flight — so the customer had to work out which of the two legs that button belonged to
   by tracing a horizontal rule. It now closes the block it belongs to: a divider, then the
   actions, in the same column as everything else about this leg. */
.fsum__r{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:.35rem;
  width:100%;margin-top:.25rem;padding-top:.6rem;border-top:1px solid var(--line)}
.fsum__acts{display:flex;align-items:center;gap:.7rem}
/* §10 — «تغيير الرحلة» sits on the one card a customer taps to change their mind; 42px measured is
   two pixels short of a reliable thumb target and there is room for them. */
.fsum__acts .btn--sm{min-height:44px}
.fsum__p{font-size:1.15rem;font-weight:900;color:var(--dark);display:inline-flex;align-items:baseline;gap:.22rem;
  flex-wrap:wrap;justify-content:flex-end;row-gap:.05rem}
.fsum__p i{font-style:normal;font-size:.74rem;font-weight:700;color:var(--muted)}
/* «ذهاب وعودة · من» under the collapsed outbound's price — the summary must say WHICH price it is. */
.fsum__p em{flex-basis:100%;text-align:end;font-style:normal;font-size:.68rem;font-weight:700;color:var(--muted)}
/* §CX25 — and the leg block itself does not stretch to the full width of a 1920 screen. A three-
   line summary spread across 1800px is not a card, it is a rule with words at both ends. */
.fleg--done .fsum{max-width:760px}

/* §30 — the DEV source badge. Neutral on purpose: this is scaffolding, and scaffolding that wears
   a brand colour is scaffolding nobody notices is still up. It never ships — the server omits the
   field it renders from outside a debug environment (see canonical.sourceTraceEnabled). */
.dbgsrc{display:inline-flex;align-items:center;margin-inline-start:auto;padding:1px 5px;border-radius:4px;
  background:#eef1f5;color:#6b7280;border:1px solid #dde2ea;
  font:600 10px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.02em;
  white-space:nowrap;flex:0 0 auto;unicode-bidi:isolate;direction:ltr}

/* ---- price comparison (§19-§25) — REBUILT AS A REAL TABLE ----
   Three geometry rules, and every one of them is why the old version broke:
     1. ONE element owns the rows. The old build put the labels in a flex column and the prices in
        a separate CSS grid, synchronised by two height variables, and `grid-auto-rows` silently
        overrode the header's 58px with 42px — every price sat 16px above its own label, at every
        width. A <table> cannot do that: a row is a row.
     2. THE AIRLINE HEADER RESERVES ITS SPACE. The logo box is a fixed 26px and the name has a
        fixed two-line box, so a 404ing logo or a long name changes nothing about the column's
        width — which is what used to make the header disagree with the cells after image load.
     3. THE SCROLLER IS THE COMPONENT'S. `overflow-x` lives on `.cmp__scroll` and nowhere else, so
        eight airlines on a 320px phone scroll the table and never the page (§16). The row header
        is sticky inside that scroller, which is what "frozen first column" means — with an opaque
        background and `background-clip:padding-box` so a price never shows through it. */
.cmp{background:#fff;border:1px solid #e9edf3;border-radius:16px;margin-bottom:1rem;overflow:hidden}
.cmp__t{display:flex;align-items:center;gap:8px;width:100%;border:none;background:none;font-family:inherit;
  padding:14px 16px;cursor:pointer;font-weight:800;font-size:.95rem;color:var(--dark);text-align:start;min-height:44px}
.cmp__t small{color:var(--muted);font-weight:700;font-size:.76rem}
.cmp__t i{margin-inline-start:auto;width:9px;height:9px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
  transform:rotate(45deg);margin-block:0 4px;transition:transform .18s;flex:0 0 auto}
.cmp.is-open .cmp__t i{transform:rotate(225deg);margin-block:4px 0}
.cmp__body{display:none}
.cmp.is-open .cmp__body{display:block}

/* The fade sits on the WRAPPER (not the scroller) so it can never cover a value, and it is drawn
   on the inline-end edge — which `inset-inline-end` mirrors for LTR without a second rule (§38). */
.cmp__wrap{position:relative;padding:0 0 12px}
.cmp__wrap::after{content:"";position:absolute;inset-block:0 12px;inset-inline-end:0;width:28px;pointer-events:none;
  background:linear-gradient(to var(--cmp-fade,left),rgba(255,255,255,0),#fff)}
[dir="ltr"] .cmp__wrap{--cmp-fade:right}
.cmp__scroll{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;
  scrollbar-width:thin;scrollbar-color:#c9d2de transparent}
.cmp__scroll:focus-visible{outline:2px solid var(--blue);outline-offset:-2px;border-radius:10px}
/* An intentional scrollbar, not the OS default overlay appearing and vanishing (§21). */
.cmp__scroll::-webkit-scrollbar{height:6px}
.cmp__scroll::-webkit-scrollbar-thumb{background:#cfd7e2;border-radius:99px}
.cmp__scroll::-webkit-scrollbar-track{background:transparent}

.cmp__tb{border-collapse:separate;border-spacing:0;table-layout:fixed;width:auto;min-width:100%}
/* Reserved dimensions, per §23: the airline column never resizes because of its content. */
.cmp__tb th,.cmp__tb td{padding:0;text-align:center;vertical-align:middle}
.cmp__corner,.cmp__row{width:104px;min-width:104px;max-width:104px;
  position:sticky;inset-inline-start:0;z-index:1;background:#fff;background-clip:padding-box}
.cmp__corner{border-bottom:1px solid #eef1f6}
.cmp__row{text-align:start;padding:0 16px 0 12px;padding-inline:16px 12px;font-size:.8rem;font-weight:800;
  color:var(--muted);height:48px;border-bottom:1px solid #f4f6fa}
.cmp__tb tbody tr:last-child .cmp__row{border-bottom:none}
.cmp__air{width:96px;min-width:96px;max-width:96px;height:78px;padding:0 4px 8px;
  border-bottom:1px solid #eef1f6;vertical-align:bottom}
.cmp__logo{--lg:26px;border-radius:6px;margin:0 auto 4px}
/* Two lines maximum, and the full name is on the element's title (§23) — never an ellipsis that
   turns «الخطوط السعودية» into «الخطوط السعود…» with no way to read the rest. */
/* `line-height` is 1.65 and not the 1.3 a Latin face would take: an Arabic line BOX is taller than
   its nominal line-height (descenders on ي/ج/ط plus the dot cluster), so at 1.3 the clamp's own
   `overflow:hidden` was shaving the bottom 3px off every single-line airline name — invisible in a
   screenshot, real in a measurement, and the kind of thing that turns into a visibly chopped name
   on the next font update. The box is sized from the same number, so two lines always fit. */
.cmp__name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  font-size:.68rem;line-height:1.65;font-weight:700;color:var(--muted);max-height:3.3em;padding:0 2px;word-break:break-word}
.cmp__c{width:96px;min-width:96px;max-width:96px;height:48px;border-bottom:1px solid #f4f6fa;
  font-weight:800;font-size:.9rem;color:var(--dark);font-variant-numeric:tabular-nums}
.cmp__tb tbody tr:last-child .cmp__c{border-bottom:none}
.cmp__c button{width:100%;height:44px;border:none;background:none;font:inherit;color:inherit;
  cursor:pointer;border-radius:9px;transition:background .12s}
.cmp__c button:hover{background:#f3f6fb}
.cmp__c button:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
/* §24 — a subtle highlight on the row's lowest price. Colour is not the only signal: the cell
   also carries a visually-hidden «الأقل في هذا الصف» for a screen reader. */
.cmp__c.is-low button{color:#12793c;background:#eef8f1;font-weight:900}
.cmp__c.is-low button:hover{background:#e3f3e9}
.cmp__c--x{color:#cbd2dc}
@media(max-width:430px){
  .cmp__corner,.cmp__row{width:88px;min-width:88px;max-width:88px}
  .cmp__row{padding-inline:12px 8px;font-size:.75rem}
  .cmp__air,.cmp__c{width:86px;min-width:86px;max-width:86px}
}
/* Desktop: the table is centred in its own container and only scrolls when it genuinely cannot
   fit — `min-width:100%` on a `width:auto` table is what makes three airlines fill the width
   instead of huddling at one edge, and eight overflow the component instead of the page (§22). */
@media(min-width:901px){
  .cmp__t{padding:16px 20px}
  .cmp__wrap{padding-inline:8px}
  .cmp__corner,.cmp__row{width:132px;min-width:132px;max-width:132px}
  .cmp__row{font-size:.85rem;height:52px}
  .cmp__air{width:auto;min-width:110px;max-width:none;height:86px}
  .cmp__c{width:auto;min-width:110px;max-width:none;height:52px;font-size:.95rem}
  .cmp__name{font-size:.74rem}
  .cmp__logo{--lg:30px}
}

/* ---- flight details (§10/§11) — ONE RAIL, THREE SECTIONS, NOTHING NESTED ----
   What this replaces: a header whose close button floated over the route, then a timeline whose
   every segment was an endpoint + a bordered grey CARD + an endpoint, then two sections separated
   from it and from each other by their own rules. On a 390px phone a single direct flight filled
   the sheet with five boxes to say four facts. Spacing is 8/12/16/24 and nothing else; the only
   borders are the rail itself and the hairlines inside the key/value list. */
/* `overflow:auto` on the shared `.ho__wrap` would scroll the header away with the body; the flight
   sheet keeps its own header pinned and scrolls `.fdt__b` instead. */
.fdt{max-width:620px;display:flex;flex-direction:column;max-height:min(92vh,900px);overflow:hidden}
.fdt__h{padding:16px 24px 12px;flex:0 0 auto;border-bottom:1px solid #f1f4f8}
.fdt__hr{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.fdt__hr small{color:var(--muted);font-size:.78rem;font-weight:800;letter-spacing:.01em}
/* In the header row, not over the content: a 44px target that cannot land on a long city name. */
.fdt__x{width:44px;height:44px;margin:-8px -8px -8px 0;margin-inline-end:-8px;border:none;background:none;
  border-radius:12px;display:grid;place-items:center;cursor:pointer;color:var(--muted);transition:.15s;flex:0 0 auto}
.fdt__x:hover{background:#f2f4f8;color:var(--dark)}
/* Focus moves into the sheet when it opens (a dialog the keyboard can leave is a trap in reverse),
   so the ring is seen on every open — it wears the site's own ring, not the browser's default. */
.fdt__x:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:12px}
.fdt__x svg{width:20px;height:20px;display:block}
.fdt__h h2{margin:0;font-size:1.32rem;line-height:1.35;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
/* The route arrow between the two city names takes the heading's own ink, quietly. It used to be
   a text «←» painted in the brand orange, which made the loudest thing in the heading the
   connector rather than either endpoint (§CX16 — no icon carries an accent colour of its own). */
.fdt__h h2 i{font-style:normal;color:inherit}
.fdt__h h2 .tiarrow{width:.75em;height:.75em;flex:0 0 auto}
.fdt__h p{margin:4px 0 0;color:var(--muted);font-weight:600;font-size:.88rem}
.fdt__b{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}

/* THE RAIL. One border-inline-start down the whole list; the dots sit on it and the airline row
   sits beside it. No card, no fill, no second radius. */
.tl{list-style:none;margin:0;padding:16px 24px 8px}
.tl>li{position:relative;padding-inline-start:24px;border-inline-start:2px solid #e6ebf2;margin-inline-start:5px}
.tl__p{display:flex;align-items:baseline;gap:12px;padding-block:0}
.tl__dot{position:absolute;inset-inline-start:-7px;top:6px;width:12px;height:12px;border-radius:50%;
  background:#fff;border:2.5px solid var(--blue)}
.tl__p--end .tl__dot{border-color:var(--orange)}
.tl__t{font-size:1.18rem;font-weight:800;color:var(--dark);font-variant-numeric:tabular-nums;
  flex:0 0 auto;min-width:4.2em;line-height:1.3}
.tl__ap{min-width:0}
.tl__ap b{display:block;font-size:.98rem;font-weight:800;color:var(--dark);line-height:1.35}
.tl__ap span{display:block;font-size:.85rem;color:var(--dark);opacity:.75;line-height:1.45}
.tl__ap small{display:block;color:var(--muted);font-size:.78rem;font-weight:700;margin-top:2px}
/* The airline is a LINE on the rail, not a box on top of it. */
.tl__leg{display:flex;align-items:center;gap:12px;padding-block:16px}
.tl__logo{--lg:28px;border-radius:6px;flex:0 0 auto}
.tl__who{min-width:0}
.tl__who b{display:block;font-size:.9rem;font-weight:800;color:var(--dark);line-height:1.4}
.tl__who small{display:block;color:var(--muted);font-size:.79rem;font-weight:600;margin-top:2px}
.tl__cs{color:var(--blue-d)!important}
/* The break in the line IS the connection — the most important thing on a multi-leg itinerary. */
.tl__lay{display:flex;align-items:center;gap:8px;margin-block:12px;padding:8px 12px;
  background:#fff8ef;border:1px dashed #f0b968;color:#95500a;border-radius:11px;font-size:.83rem;font-weight:700}
.tl__lay .ti svg{width:15px;height:15px}

.fdx{padding:16px 24px 0}
.fdx:last-child{padding-bottom:24px}
.fdx h3{margin:0 0 12px;font-size:1rem}
.fdx__l{margin:0;display:grid;gap:2px}
/* The sheet's conditions are the SAME rows as a fare card (§CX11) — one component, one reading. */
ul.fdx__l{list-style:none;padding:0;gap:8px}
ul.fdx__l .fben{font-size:.89rem}
.fdx__l--kv{gap:0}
.fdx__l>div{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid #f1f4f8}
.fdx__l>div:last-child{border-bottom:none}
.fdx__l dt{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.86rem;font-weight:700;margin:0}
.fdx__l dd{margin:0 0 0 auto;margin-inline-start:auto;font-size:.88rem;font-weight:800;color:var(--dark)}
/* §CX11 — A CODE IS A CODE: Latin, left-to-right, and isolated from the Arabic around it.
   A booking class («Y»), a flight number («XY123») and an IATA code are strings from the airline's
   own alphabet — they mean those exact characters and nothing else. Inside an Arabic paragraph two
   things can quietly change them: the webfont's `anum` feature, which substitutes Arabic-Indic
   forms for ASCII digits, and bidi reordering, which can move a trailing digit run away from the
   letters it belongs to. Both are switched off here rather than left to depend on whether a
   particular value happens to START with a letter (which is what currently keeps «XY123» Latin —
   a property of that value, not a rule). */
.tcode{font-feature-settings:"anum" 0;font-variant-numeric:lining-nums tabular-nums;
  letter-spacing:.02em;unicode-bidi:isolate;direction:ltr}
.fdx__l dt svg{width:17px;height:17px;color:var(--blue)}
@media(max-width:560px){
  .fdt{max-height:92vh}
  .fdt__h{padding:12px 16px 12px}
  .fdt__h h2{font-size:1.18rem}
  .tl{padding:16px 16px 8px}
  .fdx{padding:16px 16px 0}
}

/* icon sizing inside the new flight layer */
.fc__cabin .ti svg,.fc__stop .ti svg,.fbox h4 .ti svg{width:1.05em;height:1.05em}
.fc__cabin .ti{vertical-align:-.15em}
.fbox h4{display:flex;align-items:center;gap:.4rem}
.fbox h4 .ti{color:var(--blue)}
.fleg__n .ti svg{width:15px;height:15px}
.fair-logo{--lg:20px;border-radius:5px}

/* The search header must not land under the sticky site header when results open. */
#results{scroll-margin-top:84px}
.fleg,.fleg__head,.cmp{scroll-margin-top:84px}

/* One scrollable row of quick filters on a phone — wrapping them made a three-line chip wall
   above the first result, which is exactly the "many chips before any flight" problem. */
@media(max-width:640px){
  .tbar2{flex-wrap:wrap;gap:.4rem}
  .qbar{flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-block:2px}
  .qbar::-webkit-scrollbar{display:none}
  .qc{flex:0 0 auto}
  /* Its own line, muted: the count must not compete with the filters (§15). */
  .tbar2__n{flex:1 1 100%;margin:0;text-align:start}
}

/* Desktop: the price and its action take the right-hand column instead of leaving the card's
   whole width to a route line that does not need it. Same DOM, one card, no extra boxes. */
@media(min-width:901px){
  .fc{display:grid;grid-template-columns:1fr 200px;column-gap:1.5rem;align-items:center;padding:1.1rem 1.25rem .45rem}
  .fc__hd{grid-column:1;grid-row:1;margin-bottom:.6rem}
  .fc__route{grid-column:1;grid-row:2;max-width:560px}
  .fc__buy{grid-column:2;grid-row:1 / span 2;flex-direction:column;align-items:flex-end;justify-content:center;
    gap:.45rem;margin:0;height:100%;border-inline-start:1px solid #f1f4f8;padding-inline-start:1.3rem}
  .fc__price{margin:0}
  .fc__pick{width:100%}
  .fc__more{grid-column:1 / -1;grid-row:3}
}

/* the sticky trip bar's mini itinerary — same flex rule, same reason */

/* The filter drawer owns the screen while it is open — the sticky trip bar underneath it was
   showing through at the bottom edge. */
body.flt-on{overflow:hidden}
body.flt-on .tripbar,body.flt-on .sbc-seal-frame{display:none!important}
body.fdt-on .sbc-seal-frame{display:none!important}
@media(max-width:900px){ .filters.filters--open{z-index:calc(var(--z-modal) - 5)} }
/* The Maroof seal is pinned bottom-start at the maximum z-index, directly over the trip bar's
   "continue" button. While a trip is being assembled the button wins. */
body.trip-on .sbc-seal-frame{display:none!important}

/* §21 — when the preparations did not agree on the spelling, the NAME is the question, not one
   row of seven. Nothing here explains why; the customer reads it and taps. */
.pname{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;background:#fff8ef;border:1px solid #f3d3a3;
  border-radius:13px;padding:.8rem .95rem;margin-bottom:.8rem}
.pname>span{flex:1 1 100%;color:#8a5008;font-size:.84rem;font-weight:700}
.pname>b{font-size:1.12rem;font-weight:900;color:var(--dark);letter-spacing:.02em}
.pname .lnk{margin-inline-start:auto}
.pname label{flex:1 1 160px}

/* ============================================================
   FILTER DRAWER — one component, two homes
   ------------------------------------------------------------
   On a desktop it is the sidebar beside the results; on a phone it is a full-height sheet that
   slides in from the start edge. Same markup, same three parts:

       .fdr__h   fixed header — the title and a close control, nothing else
       .fdr__b   the ONLY scrolling area (so there is no nested scroll trap)
       .fdr__f   sticky footer — the secondary reset and the primary action

   The old panel had a lone orange "تم" pinned at the TOP of a scrolling page: the primary action
   was the furthest thing from a thumb, and the content started flush against the screen edge.
   ============================================================ */

.fdr__h{display:flex;align-items:center;gap:.6rem;padding:.85rem 1.05rem;border-bottom:1px solid var(--line);
  background:#fff;flex:0 0 auto}
.fdr__ttl{font-size:1.05rem;font-weight:900;color:var(--dark)}
.fdr__x{margin-inline-start:auto;display:grid;place-items:center;width:40px;height:40px;border:none;
  background:#f3f5f9;border-radius:12px;cursor:pointer;padding:0;transition:background .15s}
.fdr__x:hover{background:#e8ebf1}
.fdr__x:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.fdr__x svg{width:20px;height:20px}

.fdr__b{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:.2rem 1.05rem 1rem;
  -webkit-overflow-scrolling:touch}

.fdr__f{flex:0 0 auto;display:flex;align-items:center;gap:.7rem;padding:.75rem 1.05rem;background:#fff;
  border-top:1px solid var(--line);box-shadow:0 -8px 24px rgba(24,32,54,.07)}
.fdr__reset{font-family:inherit;font-weight:800;font-size:.9rem;color:var(--muted);background:none;border:none;
  padding:.7rem .3rem;cursor:pointer;border-radius:10px;flex:0 0 auto;text-decoration:underline;text-underline-offset:3px}
.fdr__reset:hover{color:var(--dark)}
.fdr__reset[hidden],.fdr__f[hidden]{display:none}
.fdr__apply{flex:1 1 auto;font-family:inherit;font-weight:900;font-size:.98rem;color:#fff;border:none;cursor:pointer;
  background:var(--grad-cta);border-radius:13px;min-height:50px;padding:.6rem 1rem;box-shadow:0 6px 16px rgba(247,147,30,.28);
  transition:filter .15s,transform .1s}
.fdr__apply:hover{filter:brightness(1.04)}
.fdr__apply:active{transform:translateY(1px)}
.fdr__reset:focus-visible,.fdr__apply:focus-visible{outline:2px solid var(--dark);outline-offset:2px}

/* ---- a section: a title, air, its options. No box around each one. ---- */
.fsec{padding:1.05rem 0 .35rem;border-bottom:1px solid var(--line)}
.fsec:last-of-type{border-bottom:none}
.fsec__h{display:flex;align-items:center;gap:.45rem;margin:0 0 .15rem;font-size:.98rem;font-weight:900;color:var(--dark)}
.fsec__h .ti{color:var(--blue)}
.fsec__h .ti svg{width:1.05em;height:1.05em}
.fsec__sub{margin:.1rem 0 .5rem;font-size:.78rem;color:var(--muted);font-weight:600}
.fsec__b{display:flex;flex-direction:column;gap:.1rem;padding-top:.35rem}

/* ---- one option row ----
   A real <input> keeps the keyboard, the screen reader and the form semantics; it is moved out of
   sight rather than replaced, and the Transit box is drawn beside it. The whole row is the label,
   so the entire 48px strip is the touch target — not just the box. */
.fopt{position:relative;display:flex;align-items:center;gap:.65rem;min-height:48px;padding:.35rem .5rem;
  margin-inline:-.5rem;border-radius:12px;cursor:pointer;font-size:.92rem;font-weight:700;color:var(--dark);
  transition:background .15s}
.fopt:hover{background:#f7f9fc}
.fopt__in{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.fopt__bx{flex:0 0 auto;position:relative;width:22px;height:22px;border:2px solid #cbd2dc;border-radius:7px;
  background:#fff;transition:background .15s,border-color .15s}
.fopt input[type=radio]+.fopt__bx{border-radius:50%}
/* The tick is drawn, not coloured in: the selected state must not be carried by colour alone. */
.fopt__bx::after{content:"";position:absolute;inset:0;margin:auto;width:6px;height:11px;border:solid #fff;
  border-width:0 2.5px 2.5px 0;transform:rotate(45deg) translate(-1px,-1px);opacity:0;transition:opacity .12s}
.fopt.is-on .fopt__bx{background:var(--orange);border-color:var(--orange)}
.fopt.is-on .fopt__bx::after{opacity:1}
.fopt.is-on .fopt__l{font-weight:900}
.fopt__in:focus-visible+.fopt__bx{outline:2px solid var(--dark);outline-offset:2px}
.fopt__l{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:.4rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fopt__l em{font-style:normal;color:var(--muted);font-weight:600;font-size:.85em}
/* The count/price sits at the row's own end — inside the row, never floated off in a column of
   its own: a price detached from its airline reads as a different piece of data. */
.fopt__s{flex:0 0 auto;margin-inline-start:auto;color:var(--muted);font-weight:700;font-size:.82rem;
  font-variant-numeric:tabular-nums;white-space:nowrap}
.fopt__s b{color:var(--dark);font-weight:900;font-size:1.02rem}
.fopt--air .fopt__l{font-weight:800}
/* The "from" price belongs to the airline on that row, not to a column of numbers off at the
   screen edge — a hairline leader carries the eye from the name to the figure, which is the whole
   complaint about the old panel. Aligned AND attached, rather than one or the other. */
.fopt--air .fopt__l{overflow:visible}
.fopt--air .fopt__l::after{content:"";flex:1 1 12px;min-width:10px;height:0;margin-inline:.55rem;
  border-bottom:1px dotted #dde3ec;transform:translateY(-2px)}
/* The name shrinks with an ellipsis before anything else does — a carrier's name must never be
   cut mid-word by a price that could not fit. */
.fopt__t{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fsec__cur{font-style:normal;display:none}
@media(min-width:901px){
  .fopt__s i{display:none}          /* the currency is said once, in the section line */
  .fsec__cur{display:inline}
}
.fopt__logo{flex:0 0 auto;width:26px;height:26px;border-radius:6px}

.frange{display:flex;justify-content:space-between;align-items:baseline;font-size:.8rem;color:var(--muted);margin-top:.35rem;padding-bottom:.5rem}
.frange b{color:var(--dark)}

/* ---- the phone sheet ---- */
@media(max-width:900px){
  .filters{display:none}
  .filters.filters--open{
    display:flex;flex-direction:column;position:fixed;inset:0;z-index:calc(var(--z-modal) - 5);max-height:none;
    border:none;border-radius:0;margin:0;box-shadow:none;
    /* iOS: the home indicator sits over the footer, and the notch over the header. */
    padding-bottom:env(safe-area-inset-bottom,0);padding-top:env(safe-area-inset-top,0);
    animation:fdrIn .18s ease-out}
  .fdr__h{padding-inline:1.15rem}
  .fdr__b{padding-inline:1.15rem}
  .fdr__f{padding:.8rem 1.15rem calc(.8rem + env(safe-area-inset-bottom,0))}
  .fopt{min-height:52px}
}
@keyframes fdrIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* On a desktop the sidebar applies as you tick, so there is no footer to press and no sheet to
   close — the header and footer belong to the phone. */
@media(min-width:901px){
  .fdr__h{display:none}
  .fdr__b{padding:.2rem 1rem 1rem}
  .fsec:first-child{padding-top:.9rem}
  /* No apply button beside the results — a tick IS the apply there. What stays is the way out of
     a filtered list, and only while there is one (the footer hides itself otherwise). */
  .fdr__apply{display:none}
  .fdr__f{padding:.6rem 1rem}
  .fdr__reset{flex:1 1 auto;text-align:center;border:1.5px solid var(--line);text-decoration:none;font-weight:800}
}

/* ============================================================
   CONTACT — a required number, an optional e-mail
   The asterisk and the "(اختياري)" are the whole explanation: one field blocks the checkout and
   the other cannot. Nothing here is a card, a banner or a paragraph.
   ============================================================ */
.fld__req{font-style:normal;color:#dc2626;font-weight:900}
.fld__opt{font-style:normal;color:var(--muted);font-weight:600}
.fld__l em.fld__opt{display:inline;margin:0;font-size:.95em;color:var(--muted)}

/* One visual field, two parts: the dial code the platform stores with, and the number the
   customer knows. The code is not an input — there is nothing to get wrong in it. */
.telin{display:flex;align-items:stretch;border:1.5px solid var(--line);border-radius:12px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.telin:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(41,171,226,.14)}
.telin__cc{display:grid;place-items:center;padding-inline:.75rem;background:#f3f5f9;color:var(--muted);
  font-weight:800;font-size:.88rem;border-inline-end:1.5px solid var(--line);font-variant-numeric:tabular-nums}
.telin input{flex:1 1 auto;min-width:0;border:none;border-radius:0;background:transparent}
.telin input:focus{outline:none;box-shadow:none;border-color:transparent}
.telin:has(input.is-bad){border-color:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.12)}

/* ============================================================
   FARE RECHECK — the two decisions that can interrupt a checkout
   A price that moved and a seat that went are not errors: they are answers, and each gets a
   sheet with the numbers and a way forward. Nothing here appears unless the supplier said so.
   ============================================================ */
.cksheet{position:fixed;inset:0;z-index:calc(var(--z-modal) + 20);display:grid;place-items:end center;background:rgba(18,24,38,.55);
  backdrop-filter:blur(2px);animation:ckFade .15s ease-out}
@media(min-width:701px){ .cksheet{place-items:center} }
.cksheet__box{width:min(520px,100%);background:#fff;border-radius:20px 20px 0 0;box-shadow:var(--shadow-lg);
  padding:1.15rem 1.15rem calc(1.15rem + env(safe-area-inset-bottom,0));animation:ckUp .2s ease-out}
@media(min-width:701px){ .cksheet__box{border-radius:20px} }
.cksheet__h{display:flex;align-items:center;gap:.6rem;margin-bottom:.7rem}
.cksheet__h b{font-size:1.12rem;font-weight:900;color:var(--dark)}
.cksheet__b{margin-bottom:1rem}
.cksheet__f{display:flex;flex-direction:column;gap:.55rem}
.cksheet__f .btn{min-height:50px}
@keyframes ckFade{from{opacity:0}to{opacity:1}}
@keyframes ckUp{from{transform:translateY(14px);opacity:.6}to{transform:none;opacity:1}}

/* ===== B2B PHASE 5 §36 — THE PAYMENT DISCLOSURE, INSIDE THE SHEET =============================
   Three rows — قيمة الحجز · رسوم الدفع · الإجمالي — with the total set apart by weight and a
   rule above it rather than by colour, so the breakdown reads the same in the RTL layout, on a
   390px phone and in a print/greyscale screenshot. Logical properties throughout: this block is
   rendered inside an `dir="rtl"` document and must not carry a left/right assumption. */
.ckrow{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:.55rem 0;border-bottom:1px dashed var(--line)}
.ckrow:last-of-type{border-bottom:none}
.ckrow span{font-size:.9rem;font-weight:700;color:var(--muted)}
.ckrow b{font-size:1rem;font-weight:800;color:var(--dark);font-variant-numeric:tabular-nums;white-space:nowrap}
.ckrow--total{border-top:2px solid var(--line);border-bottom:none;margin-top:.25rem;padding-top:.7rem}
.ckrow--total span{color:var(--dark);font-weight:800}
.ckrow--total b{font-size:1.2rem;font-weight:900}
.ckchips{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:.9rem}
.ckchip{border:1.5px solid var(--line);background:#fff;font-family:inherit;font-weight:800;font-size:.86rem;
  color:var(--dark);padding:.5rem .9rem;border-radius:12px;cursor:pointer;transition:border-color .18s,background .18s,color .18s}
.ckchip:hover{border-color:var(--orange,#f7931e)}
.ckchip:focus-visible{outline:2px solid var(--blue,#29abe2);outline-offset:2px}
.ckchip.on{background:var(--dark);border-color:var(--dark);color:#fff}
.cknote{margin-top:.7rem;font-size:.82rem;font-weight:700;color:var(--muted);line-height:1.7}

/* Both numbers, then the difference. The old price is struck through exactly once — the customer
   has to be able to check our arithmetic at a glance. */
.pchg{border:1px solid var(--line);border-radius:14px;overflow:hidden}
.pchg__r{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:.7rem .9rem;border-bottom:1px solid var(--line)}
.pchg__r:last-child{border-bottom:none}
.pchg__r span{font-size:.88rem;font-weight:700;color:var(--muted)}
.pchg__r b{font-size:1.05rem;font-weight:900;color:var(--dark);font-variant-numeric:tabular-nums}
.pchg__old{color:var(--muted)!important;text-decoration:line-through}
.pchg__new{color:var(--dark)}
.pchg__r--d{background:#fff8ef}
.pchg__r--d b{color:#b45309}
.pchg__list{list-style:none;margin:.2rem 0 0;padding:0;display:flex;flex-direction:column;gap:.4rem}
.pchg__list li{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;font-size:.9rem}
.pchg__list li span{color:var(--muted);font-weight:700}
.pchg__list li b{font-weight:800;color:var(--dark)}
.pchg__list s{color:var(--muted);font-weight:600}
.sheet__note{margin:.8rem 0 0;font-size:.84rem;color:var(--muted);line-height:1.6}

/* §3 — the wait has words. The button says what is being checked and cannot be pressed again. */
.ckbusy{display:inline-flex;align-items:center;gap:.5rem;justify-content:center}
.ckbusy .ti svg{width:1.05em;height:1.05em;animation:ckTick 1.6s steps(8) infinite}
@keyframes ckTick{to{transform:rotate(360deg)}}
.btn.is-busy{opacity:.92;cursor:progress}

/* An offer the supplier refused at recheck: still readable, no longer choosable. */
.fc--gone{opacity:.62}
.fc--gone .fc__pick{background:#e7e9ee!important;color:var(--muted)!important;box-shadow:none!important}

/* ===== §26 — THE FARE DRAWER ==================================================================
   One sheet, one job: the fare PRODUCTS on the flight the customer is looking at, with prices.
   It borrows the filter sheet's geometry on purpose (full-height on a phone, centred card on a
   desktop, one scrolling area) so it is not a second thing to learn — and, like that sheet, its
   only scroller is the list, so there is no nested scroll trap.

   Nothing here has a place to put a supplier name, which is the point: the markup cannot leak
   what the DTO never carried. */
/* ===== §BFU — THE FARE STAGE =================================================================
   It sits INSIDE the leg, under the flight it belongs to. It used to be a fixed-position sheet
   opened from a button on every result card; both the button and the sheet are gone. A step of a
   flow that has to be answered should not be a layer floating over the answer it is about — and on
   a phone a modal you must answer is a trap.

   The redesign's whole argument in one line: WHITESPACE AND TYPE, NOT BOXES (§BFU23). One card per
   product, one hairline inside it, one accent colour with one meaning. No card inside a card, no
   pill around every word, no border per row — the comparison is made by four rows that line up
   across the cards, and every extra frame is one more thing between the eye and that alignment. */
.fstage{padding:.15rem 1rem 1.1rem}
.fstage__h{padding:.15rem 0 .55rem}
.fstage__h b{display:block;font-size:1.02rem;font-weight:800;letter-spacing:-.01em}
.fstage__h small{display:block;color:var(--muted);font-size:.8rem;margin-top:.15rem;line-height:1.5}
.fleg--fare{border-color:var(--orange)}

/* §CX7 — the chosen flight, as a ROW and not a card inside a card. A bordered box nested in the
   leg's own bordered box reads as a second object to deal with; a hairline says "context". */
.fpick{display:flex;align-items:center;gap:.6rem;padding:0 0 .7rem;margin-bottom:.8rem;
  border-bottom:1px solid var(--line)}
.fpick__logo{--lg:32px}
.fpick__b{min-width:0;flex:1 1 auto}
.fpick__who{display:flex;align-items:baseline;gap:.35rem;flex-wrap:wrap;font-size:.88rem;font-weight:800;line-height:1.3}
.fpick__who .fno{color:var(--muted);font-size:.74rem;font-weight:700;letter-spacing:.03em}
.fpick__rt{display:flex;align-items:center;gap:.28rem;flex-wrap:wrap;margin-top:.1rem;
  font-size:.8rem;font-weight:800;color:var(--dark)}
.fpick__rt i{font-style:normal;color:var(--blue);font-weight:700}
.fpick__rt em{font-style:normal;font-weight:700;color:var(--muted);margin-inline-start:.3rem;
  font-variant-numeric:tabular-nums}
.fpick__ch{flex:0 0 auto;min-height:44px}

/* ---- the products, side by side where there is room (§BFU11) ---- */
.farelist{display:grid;gap:.65rem}
@media(min-width:820px){
  /* 2 and 3 get a column each; 4+ wrap into a grid rather than a horizontal scroller, because a
     comparison you have to scroll sideways is a comparison you cannot make. */
  .farelist{grid-template-columns:repeat(auto-fit,minmax(228px,1fr))}
  .farelist[data-n="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
  .farelist[data-n="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
  /* Four or more: 2×2, not four narrow columns. Squeezed to ~200px a card stops being readable —
     «أمتعة مسجّلة» and its value wrap onto three lines and the rows stop lining up, which is the
     one thing the layout exists to do. Two rows of two keeps every line intact and the pairs
     still compare. */
  .farelist[data-n="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.fare{display:flex;flex-direction:column;gap:.55rem;background:#fff;border:1.5px solid var(--line);
  border-radius:14px;padding:.75rem .85rem .8rem;transition:border-color .18s ease,box-shadow .18s ease}
.fare:hover{border-color:#cfd6e2;box-shadow:0 6px 18px rgba(24,32,54,.07)}
.fare:focus-within{border-color:var(--blue)}
/* §CX5/§CX16 — the name and its price on ONE line, one hairline under them, then the comparison. */
.fare__h{display:flex;align-items:flex-start;justify-content:space-between;gap:.6rem;
  padding-bottom:.55rem;border-bottom:1px solid var(--line)}
.fare__t{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;min-width:0}
.fare__name{font-size:.97rem;font-weight:800;line-height:1.35;letter-spacing:-.01em}
/* A FACT about the prices on this screen — not «الأفضل», not «الأكثر شعبية» (§BFU8). */
.fare__low{flex:0 0 auto;font-size:.68rem;font-weight:800;color:#15803d;
  background:#eaf7ef;border-radius:20px;padding:.11rem .45rem;white-space:nowrap}

/* §BFU7 — the DIFFERENCE is the headline; the total, where one leg is the whole price, is a
   quieter second line. The sign is welded to its number inside `dir="ltr"` so an Arabic line
   cannot reorder «+110» into «110+». */
.fare__price{display:flex;flex-direction:column;align-items:flex-end;gap:.1rem;flex:0 0 auto;text-align:end}
.fare__price>b{display:inline-flex;align-items:baseline;gap:.22rem;font-size:1.15rem;font-weight:900;
  letter-spacing:-.02em;white-space:nowrap}
.fare__price>b i{font-style:normal;font-size:.72rem;font-weight:700;color:var(--muted)}
.fare__price bdi{unicode-bidi:isolate}
.fare--low .fare__price>b{color:#15803d}
.fare__tot{color:var(--muted);font-size:.74rem;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}

.fare__ben,.fare__det{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
/* §CX14 — A ROW IS A GRID OF THREE CELLS: the category icon, the label, the answer.
   It used to be a wrapping flexbox, and that is what broke it: the stacked variant gave the label
   `flex:1 1 100%`, which wraps it to a line of its own BELOW the icon — so an unknown baggage
   allowance rendered as three stacked lines (a lone icon, then the label, then the value) instead
   of the two the layout intends. A grid places the cells instead of letting them wrap into each
   other, and the stacked case is then one rule: the icon spans both rows and the answer moves
   under its own label, still aligned to the same text column. */
.fben{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;
  column-gap:.5rem;row-gap:.1rem;font-size:.86rem;line-height:1.5}
.fben__i{grid-column:1;color:#8f97a4}
.fben__k{grid-column:2;min-width:0;color:var(--muted);font-weight:600}
/* The VALUE is what is being compared across the cards, so it keeps the end of the row and is the
   last thing allowed to wrap. */
.fben__v{grid-column:3;display:inline-flex;align-items:center;justify-content:flex-end;gap:.32rem;
  text-align:end;font-weight:700}
.fben__v b{font-weight:800}
/* Colour is the LAST of three signals, never the only one: the mark's shape and the row's words
   both say the same thing (§25). */
.fben.is-included .fst{color:#15803d}
.fben.is-included .fben__v b{color:var(--ink)}
.fben.is-excluded .fst{color:#b91c1c}
.fben.is-excluded .fben__v b{color:var(--dark)}
.fben.is-unknown .fst{color:#9aa1ad}
.fben.is-unknown .fben__v b{color:var(--muted);font-weight:600}
/* A fact, not an entitlement: no mark, and the value keeps the ordinary ink. */
.fben--info .fben__v b{color:var(--dark)}
/* §CX5/§CX14 — a long answer sits UNDER its own label, in the same text column, instead of being
   pushed to the opposite edge of the card and wrapping mid-sentence. Two columns, two rows, and
   the icon spanning them — so «الأمتعة المسجلة / حسب سياسة شركة الطيران» is the two lines it
   should be and never three. */
.fben--stack{grid-template-columns:18px minmax(0,1fr);align-items:start}
.fben--stack .fben__i{grid-row:1/3;margin-top:.15rem}
.fben--stack .fben__k{grid-column:2;grid-row:1}
.fben--stack .fben__v{grid-column:2;grid-row:2;justify-content:flex-start;text-align:start;
  font-weight:700;line-height:1.45}
.fbi{display:inline-flex;flex:0 0 auto;width:18px;height:18px;line-height:0}
.fbi svg{width:100%;height:100%;display:block}
.fst{display:inline-flex;flex:0 0 auto;width:15px;height:15px;line-height:0}
.fst svg{width:100%;height:100%;display:block}
/* The one glyph in the set that POINTS, and so follows the writing direction. */
[dir="ltr"] .fbi--dir svg{transform:scaleX(-1)}

/* §CX11 — THE ROUTE ARROW between two airport codes. Drawn pointing the way the page reads (left,
   in Arabic) and mirrored for an LTR document, so the direction is a property of the layout rather
   than a translated character. Sized to the cap height of the codes beside it and inheriting their
   colour at 55% strength: the arrow says WHICH WAY, the codes say where, and the arrow is never
   the loudest thing on the line. */
.tiarrow{display:inline-flex;flex:0 0 auto;width:1.05em;height:1.05em;line-height:0;
  opacity:.55;align-self:center}
.tiarrow svg{width:100%;height:100%;display:block}
[dir="ltr"] .tiarrow svg{transform:scaleX(-1)}

/* §BFU13 — the door: same card, small, and it says which way it is about to go. */
.fare__more{align-self:start;display:inline-flex;align-items:center;gap:.3rem;background:none;border:none;
  padding:.3rem 0;min-height:44px;font-family:inherit;font-weight:700;font-size:.82rem;
  color:var(--blue-d);cursor:pointer}
.fare__more:hover{color:var(--orange-d)}
.fare__more svg{width:15px;height:15px;transition:transform .18s ease}
.fare__more[aria-expanded="true"] svg{transform:rotate(180deg)}
.fare__det{margin-top:-.4rem;padding:.7rem .8rem;background:#f8fafc;border-radius:12px}

.fare__cta{margin-top:auto;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:.4rem}
/* §BFU15 — the answer, acknowledged: border, tick, and the button says it out loud. No movement. */
.fare.is-picked{border-color:var(--orange);box-shadow:0 8px 22px rgba(247,147,30,.16)}
.fare.is-picked .fare__cta{background:#16a34a;box-shadow:none;opacity:1;filter:none;transform:none}
.fare.is-picked .fare__cta .fst{color:#fff;width:17px;height:17px}

/* §BFU19 — waiting, shaped like the answer. */
.farelist--load{grid-template-columns:repeat(auto-fit,minmax(228px,1fr))}
.fskel{border:1.5px solid var(--line);border-radius:16px;padding:.95rem 1rem;display:grid;gap:.55rem}
.fskel span{display:block;border-radius:8px;background:linear-gradient(90deg,#eef1f6,#f7f9fc,#eef1f6);
  background-size:200% 100%;animation:fskel 1.3s ease-in-out infinite}
.fskel__t{height:15px;width:56%}
.fskel__p{height:24px;width:40%;margin-bottom:.2rem}
.fskel__r{height:11px}
.fskel__b{height:44px;border-radius:12px;margin-top:.35rem}
@keyframes fskel{from{background-position:0 0}to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.fskel span{animation:none}}

/* §BFU20 — the failure, in the customer's terms and with both ways out. */
.ferr{border:1.5px solid #f5d9a8;background:#fffdf7;border-radius:14px;padding:.95rem 1rem}
.ferr p{margin:0 0 .8rem;font-size:.9rem;font-weight:700;line-height:1.6}
.ferr__a{display:flex;flex-wrap:wrap;gap:.5rem}
.ferr__a .btn{min-height:44px}

/* The one place the fare label still gets a link: inside a leg already chosen, to reopen the
   chooser without reopening the flight list (§BFU16). */
.lnk2--fare{font-weight:700;padding:.2rem 0;min-height:0;font-size:.78rem}
.lnk2--fare svg{vertical-align:-.2em;margin-inline-end:.25rem}
.fsum__fare{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin-top:.3rem;
  color:var(--dark);font-size:.84rem;font-weight:700}
.fsum__fare .ti{color:var(--blue)}
/* §CX13 — «تغيير الفئة» is an ACTION sitting in a line of facts, so it needs a gap the eye reads
   as a break. Without it «الفئة: المرنة تغيير الفئة» is one run of Arabic words and the customer
   has to work out which two of the five are the button. */
.lnk2--fare{margin-inline-start:.45rem}
/* "من" before the headline price — smaller and lighter, because the number is the message. */
.fc__price u{text-decoration:none;font-size:.72rem;font-weight:600;color:var(--muted);margin-inline-end:.28rem}



/* ===== §29 — the checkout legal notice =========================================================
   Three links and one sentence, styled as fine print and nothing more: it must be READABLE (it is
   the acceptance) without competing with the price or the pay button. Muted ink, the links in the
   brand colour and underlined so they are recognisable as links at this size, and the whole block
   is quieter than every card above it. */
.rvc--legal{border:0;background:transparent;box-shadow:none}
.rvc--legal .rvc__b{padding:.2rem .25rem 0}
.ck-legal p{margin:0 0 .4rem;font-size:.82rem;line-height:1.85;color:#64748b}
.ck-legal p:last-child{margin-bottom:0}
.ck-legal__sub{font-size:.78rem}
.ck-legal a{color:var(--brand,#0b5cab);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.ck-legal a:hover{text-decoration-thickness:2px}
