/* ==========================================================================
   LebTrip — ليب تريب  |  Design system
   Palette: Mediterranean ink, Jounieh sea, cedar, saffron, stone.
   Type: Fraunces (display) · Figtree (UI/body) · IBM Plex Sans Arabic (AR)
   ========================================================================== */

:root {
  --ink: #10304E;
  --ink-2: #1C4668;
  --ink-3: #2B5B83;
  --sea: #2A7DA6;
  --sea-soft: #DCEEF5;
  --cedar: #3B7D5B;
  --cedar-soft: #E3F0E8;
  --saffron: #E8B33B;
  --saffron-deep: #B9840F;
  --saffron-soft: #FBF1D6;
  --clay: #C44536;
  --clay-soft: #F7E1DD;
  --stone: #F3F6F3;
  --stone-2: #E8EDE8;
  --paper: #FFFFFF;
  --line: #D6DED9;
  --line-strong: #B9C5BE;
  --muted: #5C6B75;
  --text: #15222C;

  --font-display: "Fraunces", "IBM Plex Sans Arabic", Georgia, serif;
  --font-body: "Figtree", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Figtree", system-ui, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-ticket: 16px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: 1.95rem;
  --step-4: 2.6rem;
  --step-5: clamp(2.6rem, 5.2vw, 3.9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--text);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { font-family: var(--font-ar); }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] .display { font-family: var(--font-ar); letter-spacing: 0; }

img, svg { display: block; max-width: 100%; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--saffron-soft); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 0.5em; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: var(--step-5); font-variation-settings: "opsz" 144, "SOFT" 40; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.measure { max-width: 68ch; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--stone-2); padding: 0.1em 0.35em; border-radius: 4px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section-tight { padding-block: clamp(1.5rem, 4vw, 3rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.section-head p { margin: 0; }

.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 0.5rem 1rem; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; font-style: italic; line-height: 1; letter-spacing: -0.02em; }
.brand-ar { font-family: var(--font-ar); font-weight: 600; font-size: 0.9rem; color: var(--sea); line-height: 1; margin-inline-start: 0.45rem; vertical-align: 2px; }
.nav-links { display: flex; gap: 0.25rem; margin-inline-start: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; padding: 0.55rem 0.75rem; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { background: var(--stone); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--saffron); border-radius: 0; }
.nav-tools { display: flex; align-items: center; gap: 0.5rem; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--paper); }
.lang-toggle button { border: 0; background: transparent; padding: 0.35rem 0.7rem; font-weight: 600; color: var(--muted); font-size: 0.85rem; }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.nav-burger { display: none; border: 1px solid var(--line-strong); background: var(--paper); border-radius: var(--r-sm); width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--ink); box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink); }
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; inset-inline: 0; top: 68px; background: var(--paper); flex-direction: column; padding: 0.75rem var(--gutter) 1rem; border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(16,48,78,.08); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 0.5rem; font-size: 1.05rem; }
  .nav-burger { display: inline-flex; }
}

/* ---------- Buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.2rem; border-radius: var(--r-md); border: 1px solid transparent; font-weight: 600; text-decoration: none; line-height: 1.1; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-saffron { background: var(--saffron); color: var(--ink); }
.btn-saffron:hover { background: #F0C050; color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink-2); }
.btn-sm { padding: 0.45rem 0.8rem; font-size: 0.9rem; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.22rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; line-height: 1.3; border: 1px solid transparent; white-space: nowrap; }
.chip-ok { background: var(--cedar-soft); color: #245A3E; }
.chip-warn { background: var(--saffron-soft); color: #7A5607; }
.chip-bad { background: var(--clay-soft); color: #8E2E23; }
.chip-info { background: var(--sea-soft); color: #1B5F80; }
.chip-neutral { background: var(--stone-2); color: var(--ink-2); }
.chip-outline { background: transparent; border-color: var(--line-strong); color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; }
.hero .wrap { position: relative; padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem); }
.hero h1 { max-width: 17ch; margin-bottom: 0.6rem; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--sea); }
.hero .lead { margin-bottom: 1.75rem; }

.hero-center { text-align: center; }
.hero-center h1 { margin-inline: auto; max-width: 20ch; }
.hero-center .lead { margin-inline: auto; text-align: center; }
.hero-center .search { max-width: 1040px; margin-inline: auto; text-align: start; }
.hero-compact .wrap { padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.hero-compact h1 { margin-bottom: 1rem; }
.trip-type { display: flex; gap: 1.2rem; padding: 0 0.2rem; }
.trip-type label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.quick { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; align-items: center; margin-top: 0.9rem; }
.edit-search { font-size: 0.85rem; font-weight: 600; }
.quick-label { font-size: 0.85rem; color: var(--muted); margin-inline-end: 0.3rem; }
.quick button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 0.35rem 0.8rem 0.35rem 0.6rem; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 0.4rem; }
.quick button:hover { border-color: var(--ink-3); color: var(--ink); }
.quick .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.quick .dot.visa-free { background: var(--cedar); } .quick .dot.visa-evisa, .quick .dot.visa-voa { background: var(--saffron); } .quick .dot.visa-required { background: var(--clay); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.strip-item { display: grid; gap: 0.25rem; text-decoration: none; color: inherit; padding: 1rem; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.strip-item:hover { border-color: var(--ink-3); color: inherit; }
.strip-item b { color: var(--ink); }
.strip-item span:last-child { font-size: 0.9rem; color: var(--muted); }
.strip-ico { font-size: 1.3rem; }
@media (max-width: 900px) { .strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .strip { grid-template-columns: 1fr; } }
.alt-links { text-align: start; margin: 0.9rem 0 0; color: var(--muted); }
.alt-links a { color: var(--ink-2); font-weight: 600; }
details.plain { background: transparent; border: 0; padding: 0; }
details.plain summary { font-family: var(--font-display); font-size: var(--step-2); color: var(--ink); }
details.plain[open] summary { border: 0; }
#search-results { text-align: start; }

/* ---------- Search panel ---------- */
.search { background: var(--stone); border: 1px solid var(--line); border-radius: var(--r-ticket); padding: 0.6rem; position: relative; z-index: 5; }
.search-tabs { display: flex; gap: 0.25rem; padding: 0.2rem 0.3rem 0.6rem; flex-wrap: wrap; justify-content: center; }
.search-tabs button { border: 0; background: transparent; padding: 0.5rem 0.9rem; border-radius: var(--r-md); font-weight: 600; color: var(--muted); }
.search-tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.search-form { background: var(--paper); border-radius: var(--r-md); padding: 0.75rem; display: grid; gap: 0.6rem; grid-template-columns: repeat(12, 1fr); align-items: end; }
.field { display: grid; gap: 0.3rem; }
.field label { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.field input, .field select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.65rem 0.7rem; background: var(--paper); min-height: 44px; }
.field input:focus, .field select:focus { border-color: var(--sea); outline: 2px solid var(--sea-soft); }
.col-1 { grid-column: span 1; } .col-3 { grid-column: span 3; } .col-2 { grid-column: span 2; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; } .col-12 { grid-column: span 12; }
@media (max-width: 760px) { .col-4, .col-6 { grid-column: span 12; } .col-3, .col-2, .col-1 { grid-column: span 6; } .search-form .field[style*="align-self"] { grid-column: span 12; } }
.search-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.7rem 0.4rem 0.2rem; font-size: 0.85rem; color: var(--muted); }
.partner-logos { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }
.partner-logos span { font-weight: 600; color: var(--ink-2); }
.toggle-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; grid-column: span 12; padding: 0.2rem 0.2rem 0; }
.toggle-row label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: var(--ink-2); }

/* Destination autocomplete */
.ac { position: absolute; inset-inline: 0; top: calc(100% + 4px); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: 0 18px 40px -20px rgba(16,48,78,.35); z-index: 60; max-height: 320px; overflow: auto; text-align: start; min-width: 280px; }
.ac-item { display: grid; grid-template-columns: 44px 1fr; gap: 0 .5rem; padding: .55rem .7rem; cursor: pointer; align-items: center; }
.ac-item + .ac-item { border-top: 1px solid var(--line); }
.ac-item:hover, .ac-item.is-active { background: var(--sea-soft); }
.ac-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: .8rem; color: var(--ink-2); }
.ac-main { font-size: .95rem; color: var(--ink); }
.ac-sub { grid-column: 2; font-size: .78rem; color: var(--muted); }
.ac-item:has(.ac-code:empty) { grid-template-columns: 1fr; } .ac-item:has(.ac-code:empty) .ac-sub { grid-column: 1; }

/* Results (partner buttons) */
.results { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 1rem; }
.result { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; display: grid; gap: 0.5rem; align-content: start; }
.result strong { font-size: 1.05rem; color: var(--ink); }
.result .meta { color: var(--muted); font-size: 0.88rem; }
.result-note { grid-column: 1 / -1; font-size: 0.88rem; color: var(--muted); }

/* ---------- The Clear Terms Card (boarding pass) ---------- */
.ticket { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-ticket); position: relative; overflow: visible; box-shadow: 0 18px 40px -28px rgba(16,48,78,.35); }
.ticket::before, .ticket::after { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--stone); border: 1px solid var(--line-strong); top: -14px; left: calc(53.5% - 13px); }
.ticket::after { top: auto; bottom: -14px; }
.ticket .stub, .ticket .main { padding: clamp(1rem, 2.5vw, 1.6rem); }
.ticket .main { border-inline-end: 2px dashed var(--line-strong); }
html[dir="rtl"] .ticket::before, html[dir="rtl"] .ticket::after { left: auto; right: calc(53.5% - 13px); }
.ticket-route { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem; }
.ticket-route .code { font-family: var(--font-display); font-size: var(--step-4); font-weight: 700; line-height: 1; color: var(--ink); }
.ticket-route .city { display: block; font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); font-weight: 500; margin-top: 0.25rem; }
.ticket-route .path { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); position: relative; }
.ticket-route .path::after { content: "✈"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%); background: var(--paper); padding: 0 0.3rem; color: var(--sea); font-size: 1rem; }
html[dir="rtl"] .ticket-route .path::after { transform: translate(50%, -55%) scaleX(-1); }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; color: var(--muted); font-size: 0.9rem; }
.ticket-meta b { color: var(--ink); font-weight: 600; }
.terms-grid { display: grid; gap: 0.7rem; }
.term { display: grid; grid-template-columns: 34px 1fr; gap: 0.6rem; align-items: start; }
.term-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--stone); color: var(--ink); }
.term-ico.ok { background: var(--cedar-soft); color: #245A3E; }
.term-ico.warn { background: var(--saffron-soft); color: #7A5607; }
.term-ico.bad { background: var(--clay-soft); color: #8E2E23; }
.term h4 { margin: 0 0 0.1rem; font-size: 0.92rem; }
.term p { margin: 0; font-size: 0.92rem; color: var(--ink-2); max-width: none; }
.stub-foot { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
@media (max-width: 760px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket .main { border-inline-end: 0; border-bottom: 2px dashed var(--line-strong); }
  .ticket::before, .ticket::after { display: none; }
}

/* ---------- Pillars as a route ---------- */
.route { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; padding-top: 1.75rem; }
.route::before { content: ""; position: absolute; top: 9px; left: 12.5%; right: 12.5%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.stop { position: relative; }
.stop::before { content: ""; position: absolute; top: -1.75rem; left: 50%; transform: translate(-50%, 2px); width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--sea); }
.stop h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.25rem; text-align: center; }
.stop p { text-align: center; color: var(--ink-2); font-size: 0.95rem; margin: 0 auto; max-width: 28ch; }
@media (max-width: 820px) {
  .route { grid-template-columns: 1fr 1fr; }
  .route::before { display: none; }
  .stop::before { display: none; }
  .stop h3, .stop p { text-align: start; }
}
@media (max-width: 480px) { .route { grid-template-columns: 1fr; } }

/* ---------- Destination tiles ---------- */
.tiles { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1rem 0.9rem; text-decoration: none; color: inherit; display: grid; gap: 0.45rem; border-inline-start: 5px solid var(--sea); transition: border-color .15s ease, transform .15s ease; }
.tile:hover { border-color: var(--ink-3); color: inherit; }
.tile[data-visa="free"] { border-inline-start-color: var(--cedar); }
.tile[data-visa="evisa"], .tile[data-visa="voa"] { border-inline-start-color: var(--saffron); }
.tile[data-visa="required"] { border-inline-start-color: var(--clay); }
.tile h3 { margin: 0; font-size: 1.15rem; }
.tile .sub { color: var(--muted); font-size: 0.88rem; }
.tile .row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.85rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: 0.35rem; vertical-align: middle; }

/* ---------- Generic panels, lists, tables ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1rem, 2.5vw, 1.6rem); }
.panel-ink { background: var(--ink); color: #E9F0F5; border-color: var(--ink); }
.panel-ink h2, .panel-ink h3 { color: #fff; }
.panel-ink a { color: var(--saffron); }
.panel-ink .btn-saffron { color: var(--ink); }
.panel-ink .btn-saffron:hover { color: var(--ink); }
.panel-ink .muted { color: #B8C7D3; }
.panel-cedar { background: var(--cedar-soft); border-color: #C9DED1; }
.panel-saffron { background: var(--saffron-soft); border-color: #EBD59A; }
.panel-sea { background: var(--sea-soft); border-color: #BBDCEA; }
.two-col { display: grid; gap: 1.5rem; grid-template-columns: 1.2fr 0.8fr; align-items: start; }
.two-col-even { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; align-items: start; }
.three-col { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .two-col, .two-col-even, .three-col { grid-template-columns: 1fr; } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 0.8rem; align-items: start; }
.steps li::before { content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.steps li p { margin: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: start; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--stone); color: var(--ink-2); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .chip { margin: 0.1rem 0; }

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.checks li { padding-inline-start: 1.7rem; position: relative; }
.checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: var(--cedar); font-weight: 700; }

details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.2rem 1rem; }
details + details { margin-top: 0.6rem; }
summary { cursor: pointer; font-weight: 600; padding: 0.7rem 0; color: var(--ink); }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 0.5rem; }

.notice { border-inline-start: 4px solid var(--saffron); background: var(--saffron-soft); padding: 0.8rem 1rem; border-radius: var(--r-sm); font-size: 0.93rem; }
.notice-sea { border-inline-start-color: var(--sea); background: var(--sea-soft); }
.notice-clay { border-inline-start-color: var(--clay); background: var(--clay-soft); }

.kpi-row { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.9rem 1rem; }
.kpi b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.kpi span { color: var(--muted); font-size: 0.85rem; }

/* Emergency number blocks */
.numbers { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.number { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.75rem 0.9rem; }
.number b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--clay); line-height: 1.05; }
.number span { font-size: 0.85rem; color: var(--ink-2); }

/* Page header */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { font-size: var(--step-4); max-width: 20ch; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
.crumbs a { color: var(--muted); }

/* Planner */
.planner { display: grid; grid-template-columns: 280px 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .planner { grid-template-columns: 1fr; } }
.trip-list button { width: 100%; text-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.7rem 0.8rem; margin-bottom: 0.4rem; }
.trip-list button[aria-current="true"] { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--saffron); }
html[dir="rtl"] .trip-list button[aria-current="true"] { box-shadow: inset -4px 0 0 var(--saffron); }
.day-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.day-tabs button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 0.35rem 0.8rem; font-weight: 600; color: var(--ink-2); font-size: 0.9rem; }
.day-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.item { display: grid; grid-template-columns: 60px 1fr auto; gap: 0.8rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.item:last-child { border-bottom: 0; }
.item time { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.item .type { font-size: 0.78rem; font-weight: 700; color: var(--sea); }
.item .cost { font-weight: 600; white-space: nowrap; }
.item-actions { display: flex; gap: 0.3rem; }
.icon-btn { border: 1px solid var(--line); background: var(--paper); width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { color: var(--clay); border-color: var(--clay); }
.form-grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(12, 1fr); }
.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }

/* Guides */
.guide-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.guide-nav a { text-decoration: none; border: 1px solid var(--line); background: var(--paper); padding: 0.35rem 0.8rem; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 0.9rem; }
.guide-nav a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.fact-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.8rem 0.9rem; }
.fact span { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-bottom: 0.2rem; }
.fact b { color: var(--ink); font-weight: 600; }

#search, #search-results, #terms-for-route, #guide-host { scroll-margin-top: 84px; }

/* Live fare / hotel rows */
.fares { display: grid; gap: 0.6rem; }
.fare { display: grid; grid-template-columns: 150px 1fr auto; gap: 1rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.85rem 1rem; }
.fare-price b { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--ink); }
.fare-price span { display: block; margin-top: 0.2rem; }
.fare-body { display: grid; gap: 0.15rem; min-width: 0; }
.fare-cta { display: grid; gap: 0.25rem; justify-items: center; }
@media (max-width: 720px) { .fare { grid-template-columns: 1fr; } .fare-cta { justify-items: start; } }

/* Toast */
.toast { position: fixed; bottom: 1.25rem; inset-inline-start: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: var(--r-md); font-size: 0.92rem; opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 90; max-width: calc(100vw - 2rem); }
html[dir="rtl"] .toast { transform: translateX(50%); }
.toast.show { opacity: 1; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(16,48,78,.45); display: none; align-items: center; justify-content: center; padding: 1rem; z-index: 95; }
.modal.open { display: flex; }
.modal-card { background: var(--paper); border-radius: var(--r-ticket); padding: 1.25rem; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 30px 60px -30px rgba(16,48,78,.5); }

/* Voucher card */
.voucher { position: relative; border-radius: var(--r-ticket); padding: 1.4rem 1.5rem 1.2rem; color: #fff; background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%); overflow: hidden; min-height: 230px; display: grid; align-content: space-between; gap: .6rem; }
.voucher::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(232,179,59,.18); }
.voucher.honeymoon { background: linear-gradient(135deg, #5A2740 0%, #9A3B5B 100%); }
.voucher.wedding { background: linear-gradient(135deg, #3B3F7A 0%, #6E6BB3 100%); }
.voucher.graduation { background: linear-gradient(135deg, #1F5A3C 0%, #3B7D5B 100%); }
.voucher.eid, .voucher.birthday { background: linear-gradient(135deg, #7A5607 0%, #B9840F 100%); }
.voucher-top { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; position: relative; }
.voucher-brand { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.3rem; }
.voucher-brand span { font-family: var(--font-ar); font-style: normal; font-size: .95rem; color: var(--saffron); margin-inline-start: .3rem; }
.voucher-occ { background: rgba(255,255,255,.14); padding: .2rem .6rem; border-radius: 999px; font-weight: 600; }
.voucher-amount { font-family: var(--font-display); font-size: 3rem; line-height: 1; font-weight: 700; position: relative; }
.voucher-names { font-size: .95rem; position: relative; }
.voucher-msg { font-style: italic; margin: 0; font-size: .95rem; opacity: .95; position: relative; max-width: 40ch; }
.voucher-foot { display: flex; justify-content: space-between; gap: .8rem; align-items: end; font-size: .78rem; opacity: .9; position: relative; flex-wrap: wrap; }
.voucher-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; letter-spacing: .08em; background: rgba(0,0,0,.2); padding: .25rem .6rem; border-radius: 6px; }
.amounts { display: flex; flex-wrap: wrap; gap: .4rem; }
.amounts button { border: 1px solid var(--line-strong); background: var(--paper); border-radius: 999px; padding: .45rem .9rem; font-weight: 700; color: var(--ink); }
.amounts button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.progress { height: 12px; background: var(--stone-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--cedar); border-radius: 999px; }

/* Footer */
.site-footer { background: var(--ink); color: #C8D5DF; margin-top: clamp(2rem, 6vw, 5rem); }
.site-footer .wrap { padding-block: 2.5rem 1.5rem; }
.foot-grid { display: grid; gap: 1.5rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: 0.6rem; font-family: var(--font-body); }
.site-footer a { color: #E6EEF4; text-decoration: none; }
.site-footer a:hover { color: var(--saffron); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.foot-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); font-size: 0.85rem; color: #9FB1BF; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.foot-brand .brand-word { color: #fff; }
.foot-brand .brand-ar { color: var(--saffron); }
.disclosure { font-size: 0.85rem; color: #A9BAC7; max-width: 48ch; }

/* Payment methods bar under the footer */
.pay-bar { background: var(--paper); border-top: 1px solid var(--line); }
.pay-bar .wrap { padding-block: 1.1rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; }
.pay-bar-label { font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pay-badge { display: inline-flex; align-items: center; height: 30px; padding: 0 0.7rem; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--paper); font-size: 0.82rem; font-weight: 700; color: var(--ink); letter-spacing: 0.01em; }
.pay-badge.pay-card { background: var(--ink); color: #fff; border-color: var(--ink); }
.pay-badge.pay-lb { background: var(--sea-soft); border-color: #BBDCEA; color: #1B5F80; }
.pay-note { flex-basis: 100%; margin: 0; color: var(--muted); }

/* Visa badge colors inline */
.visa-free { background: var(--cedar-soft); color: #245A3E; }
.visa-evisa, .visa-voa { background: var(--saffron-soft); color: #7A5607; }
.visa-required { background: var(--clay-soft); color: #8E2E23; }

/* Utility */
.flex { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-1 { margin-bottom: 1rem; } .mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hidden { display: none !important; }
.sample-tag { font-size: 0.72rem; font-weight: 700; color: var(--saffron-deep); background: var(--saffron-soft); padding: 0.1rem 0.45rem; border-radius: 4px; vertical-align: middle; }

@media print {
  .site-header, .site-footer, .nav, .no-print, .toast { display: none !important; }
  body { background: #fff; }
  .panel, .ticket { box-shadow: none; }
}
