/* megatrvl — design tokens
   navy-950 #061433  navy-900 #0A1F44  navy-800 #13306B  royal-600 #1F4FD8  royal-500 #3366F0
   mist #EEF3FB  line #D6DFEE  ink #0A1F44  muted #4E5D7A  gold #C9A227
   Type: Sora (display), Figtree (text), IBM Plex Sans Arabic (Arabic)
   All spacing uses logical properties so Arabic (RTL) mirrors automatically. */

:root {
  --navy-950: #061433;
  --navy-900: #0a1f44;
  --navy-800: #13306b;
  --royal-600: #1f4fd8;
  --royal-700: #183fb0;
  --royal-500: #3366f0;
  --royal-100: #e4ecff;
  --mist: #eef3fb;
  --line: #d6dfee;
  --ink: #0a1f44;
  --muted: #4e5d7a;
  --white: #fff;
  --gold: #c9a227;
  --danger: #b4233c;
  --danger-bg: #fdeef1;
  --success: #17694a;
  --success-bg: #e6f5ee;

  --font-display: "Sora", "Figtree", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow-card: 0 1px 2px rgba(6, 20, 51, .06), 0 8px 24px rgba(6, 20, 51, .08);
  --shadow-panel: 0 24px 60px -12px rgba(6, 20, 51, .45);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.75; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; font-weight: 600; }
html[lang="ar"] :is(h1, h2, h3, .chip-code, .tl-code, .dest-name, .logo-word, .step-n, .big-code) { font-family: var(--font-ar); letter-spacing: 0; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
a { color: var(--royal-600); text-underline-offset: .2em; }
a:hover { color: var(--royal-700); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--royal-500); outline-offset: 2px; border-radius: 4px; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .ico-dir, [dir="rtl"] .tl-line::after { transform: scaleX(-1); }

/* Hide translatable text until the chosen language loads (max 1.2s, then show regardless). */
.i18n-pending body { animation: reveal 0s 1.2s forwards; opacity: 0; }
@keyframes reveal { to { opacity: 1; } }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.wrap-mid { max-width: calc(920px + 2 * var(--gutter)); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--navy-900); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.25em; border-radius: var(--r-md);
  border: 1.5px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--royal-600); color: var(--white); }
.btn-primary:hover { background: var(--royal-700); color: var(--white); }
.btn-outline { background: var(--white); color: var(--royal-600); border-color: var(--line); }
.btn-outline:hover { border-color: var(--royal-600); color: var(--royal-700); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--royal-600); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: .4em; padding: 8px 0; }
.btn-link:hover { color: var(--royal-700); text-decoration: underline; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-900); color: var(--white); }
.header-in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.logo:hover { color: var(--white); }
.logo-mark { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; }
.logo-mark circle:last-child { fill: var(--royal-500); stroke: none; }
.logo-mark path { stroke: var(--royal-500); stroke-width: 2.2; stroke-linecap: round; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; }
html[lang="ar"] .logo-word { font-family: var(--font-display); }
.site-nav { margin-inline-start: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: var(--r-sm); display: block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .08); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; display: inline-flex; align-items: center; gap: 6px; padding-inline: 10px 4px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r-sm); height: 40px; cursor: pointer; }
.lang select { appearance: none; background: transparent; border: 0; color: var(--white); padding-inline-end: 8px; font-weight: 500; cursor: pointer; height: 100%; }
.lang select option { color: var(--ink); }
.lang:focus-within { outline: 3px solid var(--royal-500); outline-offset: 2px; }
.lang select:focus-visible { outline: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--white); border-radius: var(--r-sm); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ico { width: 26px; height: 26px; }
.nav-toggle .ico-close, .nav-open .nav-toggle .ico-open { display: none; }
.nav-open .nav-toggle .ico-close { display: block; }

@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; }
  .header-tools { margin-inline-start: auto; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, .1); padding: 8px var(--gutter) 24px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility 0s .18s; margin: 0; }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; transition: opacity .18s, transform .18s; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { font-size: 1.15rem; padding: 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
  .nav-open { overflow: hidden; }
}

/* ---------------------------------------------------------------- media + image fallback */
.media { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-800), var(--navy-900) 55%, var(--royal-700)); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-failed img { display: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; z-index: 3; color: var(--white); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6, 20, 51, .92) 0%, rgba(6, 20, 51, .72) 45%, rgba(10, 31, 68, .35) 100%); }
[dir="rtl"] .hero-media::after { background: linear-gradient(-100deg, rgba(6, 20, 51, .92) 0%, rgba(6, 20, 51, .72) 45%, rgba(10, 31, 68, .35) 100%); }
.hero-in { padding-block: clamp(48px, 9vw, 112px) clamp(40px, 6vw, 80px); }
.hero-compact .hero-in { padding-block: clamp(36px, 6vw, 72px) clamp(32px, 5vw, 56px); }
.hero-title { font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-weight: 600; max-width: 15ch; letter-spacing: -0.025em; margin-bottom: .35em; }
.hero-compact .hero-title { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 20ch; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .86); max-width: 54ch; margin-bottom: clamp(28px, 4vw, 44px); }

/* ---------------------------------------------------------------- search widget ("boarding pass") */
.search-widget { color: var(--ink); position: relative; z-index: 5; }
.sw-panel { container: sw / inline-size; }
.sw-tabs { display: flex; gap: 4px; }
.sw-tabs [role="tab"] {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  padding: 12px 20px; font-weight: 600; border-radius: var(--r-md) var(--r-md) 0 0;
  background: rgba(10, 31, 68, .72); color: rgba(255, 255, 255, .9); backdrop-filter: blur(6px);
}
.sw-tabs [role="tab"][aria-selected="true"] { background: var(--white); color: var(--navy-900); }
.sw-tabs [role="tab"]:focus-visible { outline-offset: -3px; }
.sw-panel { background: var(--white); border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg); box-shadow: var(--shadow-panel); }
[dir="rtl"] .sw-panel { border-radius: var(--r-lg) 0 var(--r-lg) var(--r-lg); }
.plan .sw-tabs [role="tab"]:not([aria-selected="true"]), .edit .sw-tabs [role="tab"]:not([aria-selected="true"]) { background: var(--navy-900); }
.plan .sw-panel, .edit .sw-panel { box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.plan .sw-tabs [aria-selected="true"], .edit .sw-tabs [aria-selected="true"] { border: 1px solid var(--line); border-bottom: 0; margin-bottom: -1px; position: relative; z-index: 1; }

.sf { padding: clamp(16px, 2.4vw, 24px); }
.sf-summary { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--danger-bg); color: var(--danger); font-weight: 600; font-size: .95rem; }

.seg-control { border: 0; padding: 0; margin: 0 0 16px; display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--muted); transition: all .15s; }
.seg input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--royal-500); outline-offset: 2px; }

/* grid: round trip uses display:contents so legs, return date, travellers and button share one row */
.sf-grid { display: grid; gap: 10px; align-items: stretch; }
.sf-flights:not([data-trip="multi"]) .legs, .sf-flights:not([data-trip="multi"]) .leg { display: contents; }
.sf-flights[data-trip="round"] .sf-grid { grid-template-columns: minmax(0, 3fr) minmax(136px, 1fr) minmax(136px, 1fr) minmax(0, 1.3fr) auto; }
.sf-flights[data-trip="oneway"] .sf-grid { grid-template-columns: minmax(0, 3fr) minmax(136px, 1.2fr) minmax(0, 1.5fr) auto; }
.sf-flights[data-trip="multi"] .sf-grid { grid-template-columns: minmax(0, 1fr) auto; }
.sf-flights[data-trip="multi"] .legs { grid-column: 1 / -1; display: grid; gap: 14px; }
.sf-flights[data-trip="multi"] .leg { display: grid; grid-template-columns: minmax(0, 2.7fr) minmax(136px, 1fr) 44px; gap: 10px; align-items: stretch; }
.sf-flights[data-trip="multi"] .leg-title { grid-column: 1 / -1; margin: 0; font-weight: 700; font-size: .85rem; color: var(--muted); }
.sf-flights[data-trip="multi"] .field-pop { max-width: 380px; width: 100%; }
.sf-hotels .sf-grid { grid-template-columns: minmax(0, 2.2fr) minmax(136px, 1fr) minmax(136px, 1fr) minmax(0, 1.5fr) auto; }

.leg-remove { align-self: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.leg-remove:hover { color: var(--danger); border-color: var(--danger); }
.add-leg { margin-top: 10px; }

/* fields */
.field { position: relative; display: flex; flex-direction: column; min-width: 0; }
.sf .field { border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 14px 9px; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.sf .field:focus-within { border-color: var(--royal-600); box-shadow: 0 0 0 3px var(--royal-100); }
.sf .field > label, .sf .field > .label { font-size: .78rem; font-weight: 600; color: var(--muted); line-height: 1.3; }
.sf .field input[type="text"], .sf .field input[type="date"] { border: 0; padding: 4px 0 0; background: transparent; font-size: 1rem; font-weight: 600; width: 100%; min-height: 32px; outline: none; }
.sf .field input::placeholder { color: #8a97b0; font-weight: 500; }
.sf .field input[type="date"] { min-width: 0; -webkit-appearance: none; appearance: none; }
.sf .field input[type="date"]::-webkit-date-and-time-value { text-align: start; }
.sf .field-date { padding-inline: 12px; }
.sf .field.is-invalid { border-color: var(--danger); }
.sf .field.is-invalid:focus-within { box-shadow: 0 0 0 3px var(--danger-bg); }
.field-error { color: var(--danger); font-size: .82rem; font-weight: 600; margin: 4px 0 0; line-height: 1.35; }
.nights { position: absolute; inset-inline-end: 12px; top: 8px; font-size: .75rem; font-weight: 600; color: var(--royal-600); }

/* route + swap */
.route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; position: relative; }
.swap {
  position: absolute; inset-inline-start: 50%; top: 50%; translate: -50% -50%; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  color: var(--royal-600); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(6, 20, 51, .12); transition: transform .2s;
}
[dir="rtl"] .swap { translate: 50% -50%; }
.swap:hover { transform: rotate(180deg); }
.swap .ico { width: 18px; height: 18px; }

/* airport chip: the large IATA code shown once an airport is chosen */
.ac { position: relative; }
.ac-chip { display: none; }
.ac { min-height: 36px; }
.ac.has-value:not(.is-focused) .ac-chip { display: flex; position: absolute; inset: 0; align-items: center; gap: 8px; background: var(--white); cursor: text; overflow: hidden; }
.ac.has-value:not(.is-focused) input[type="text"] { color: transparent; }
.chip-code { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: .02em; line-height: 1.25; color: var(--navy-900); }
.chip-place { display: flex; flex-direction: column; min-width: 0; font-size: .76rem; font-weight: 600; line-height: 1.15; color: var(--ink); white-space: nowrap; }
.chip-place span, .chip-place { overflow: hidden; text-overflow: ellipsis; }
.chip-place span { font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.field-ac { padding-inline-end: 22px !important; }

/* autocomplete list */
.ac-list {
  position: absolute; top: calc(100% + 12px); inset-inline-start: -15px; z-index: 40;
  width: max(100% + 30px, 340px); max-height: min(380px, 60vh); overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 6px; list-style: none; background: var(--white); border-radius: var(--r-md);
  box-shadow: 0 16px 40px rgba(6, 20, 51, .22), 0 0 0 1px var(--line);
}
.ac-opt { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); cursor: pointer; }
.ac-opt[aria-selected="true"], .ac-opt:hover { background: var(--royal-100); }
.ac-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ac-city { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-sub { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-code { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--navy-900); background: var(--mist); padding: 3px 7px; border-radius: 6px; }
.ac-ico { width: 28px; height: 28px; border-radius: 50%; background: var(--mist) center / 16px no-repeat; }
.ac-ico-plane { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4fd8' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M21 15.5v-1.7l-8-5V3.5a1.5 1.5 0 0 0-3 0v5.3l-8 5v1.7l8-2.5v5.5l-2 1.5V21l3.5-1 3.5 1v-1.5l-2-1.5V13z'/%3E%3C/svg%3E"); }
.ac-ico-city, .ac-ico-pin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4fd8' stroke-width='1.8'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.ac-opt-city .ac-city { color: var(--navy-900); }
.ac-empty { padding: 12px; color: var(--muted); font-size: .92rem; }

/* travellers / guests popover */
.pop-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; border: 0; background: none; padding: 4px 0 0; min-height: 32px; font-weight: 600; text-align: start; cursor: pointer; }
.pop-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-trigger:focus-visible { outline: none; }
.ico-chev { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.is-open .ico-chev { transform: rotate(180deg); }
.pop {
  position: absolute; top: calc(100% + 10px); inset-inline-end: -1px; z-index: 45; width: 360px; max-width: calc(100vw - 32px);
  background: var(--white); border-radius: var(--r-lg); padding: 18px; box-shadow: 0 20px 50px rgba(6, 20, 51, .25), 0 0 0 1px var(--line);
}
.pop:focus { outline: none; }
.pop-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; }
.pop-backdrop { display: none; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--mist); }
.stepper-label { display: flex; flex-direction: column; line-height: 1.3; }
.stepper-label span { font-weight: 600; }
.stepper-label small { color: var(--muted); font-size: .85rem; }
.stepper-ctrl { display: flex; align-items: center; gap: 4px; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 700; font-size: 1.05rem; }
.step { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--royal-600); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.step:hover:not(:disabled) { border-color: var(--royal-600); }
.step:disabled { color: #b8c2d6; cursor: not-allowed; }
.step .ico { width: 18px; height: 18px; }
.pop-cabin { display: flex; flex-direction: column; gap: 6px; padding: 14px 0 16px; }
.pop-cabin label, .age-field label { font-weight: 600; font-size: .9rem; }
.pop select, .contact-form select { min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 12px; background: var(--white); }
.ages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 0 4px; }
.age-field { display: flex; flex-direction: column; gap: 4px; }
.pop [data-pop-done] { margin-top: 14px; }

/* the perforation before the search button */
.sf-go { display: flex; align-items: stretch; position: relative; padding-inline-start: 18px; margin-inline-start: 4px; border-inline-start: 2px dashed var(--line); }
.sf-go::before, .sf-go::after { content: ""; position: absolute; inset-inline-start: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--mist); }
.sf-go::before { top: -24px; }
.sf-go::after { bottom: -24px; }
.btn-search { min-height: 60px; height: 100%; padding-inline: 20px; font-size: 1.05rem; white-space: nowrap; }
.btn-search .ico { width: 20px; height: 20px; }
.sf-flights[data-trip="multi"] .sf-go { border: 0; padding: 0; margin: 0; }
.sf-flights[data-trip="multi"] .sf-go::before, .sf-flights[data-trip="multi"] .sf-go::after { display: none; }

/* narrower containers (tablet, or a widget inside a narrow column) */
@container sw (max-width: 1040px) {
  .sf-flights[data-trip="round"] .sf-grid, .sf-flights[data-trip="oneway"] .sf-grid, .sf-hotels .sf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sf-flights:not([data-trip="multi"]) .route, .sf-hotels .field-dest { grid-column: 1 / -1; }
  .sf-flights[data-trip="oneway"] .field-pop { grid-column: auto; }
  .sf-flights[data-trip="round"] .field-pop, .sf-hotels .field-pop { grid-column: 1 / -1; }
  .sf-go { grid-column: 1 / -1; border-inline-start: 0; border-top: 2px dashed var(--line); padding: 16px 0 0; margin: 6px 0 0; }
  .sf-go::before, .sf-go::after { top: -9px; bottom: auto; }
  .sf-go::before { inset-inline-start: -33px; }
  .sf-go::after { inset-inline-start: auto; inset-inline-end: -33px; }
  .btn-search { width: 100%; }
  .sf-flights[data-trip="multi"] .sf-grid { grid-template-columns: minmax(0, 1fr); }
}
@container sw (max-width: 600px) {
  .route { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .swap { inset-inline-start: auto; inset-inline-end: 14px; translate: 0 -50%; rotate: 90deg; }
  [dir="rtl"] .swap { translate: 0 -50%; }
  .field-ac { padding-inline-end: 56px !important; }
  .sf-flights[data-trip="multi"] .leg { grid-template-columns: minmax(0, 1fr) 44px; }
  .sf-flights[data-trip="multi"] .leg .route { grid-column: 1 / -1; }
  .sf-go::before { inset-inline-start: -25px; }
  .sf-go::after { inset-inline-end: -25px; }
}
@media (max-width: 639px) {
  .sw-tabs [role="tab"] { flex: 1; justify-content: center; padding: 12px; }
  .sw-panel, [dir="rtl"] .sw-panel { border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .ac-list { position: fixed; inset-inline: 12px; top: auto; width: auto; margin-top: 8px; }
  /* bottom sheet */
  .pop { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 85vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
  .is-open .pop-backdrop { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(6, 20, 51, .5); }
  .pop-open { overflow: hidden; }
}

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.section-head { max-width: 62ch; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head p { color: var(--muted); margin: 0; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head-row > div { max-width: 62ch; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-more .ico { width: 18px; height: 18px; }
.page-head { background: var(--mist); padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 48px); }
.page-head .lead { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.meta { color: var(--muted); margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font-size: .92rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--royal-600); text-decoration: underline; }
.crumbs a + a::before { content: "/"; margin-inline-end: 8px; color: var(--line); }
.crumbs-light a { color: rgba(255, 255, 255, .85); }
.crumbs-light a:hover { color: var(--white); }

/* destinations */
.dest-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; }
.dest-card-big { grid-column: span 2; grid-row: span 2; }
.dest-card a { position: relative; display: block; height: 100%; border-radius: var(--r-lg); overflow: hidden; color: var(--white); text-decoration: none; isolation: isolate; }
.dest-card .media { position: absolute; inset: 0; z-index: -1; }
.dest-card .media img { transition: transform .6s ease; }
.dest-card a:hover .media img { transform: scale(1.04); }
.dest-card a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(6, 20, 51, .85) 0%, rgba(6, 20, 51, .15) 55%, transparent 100%); }
.dest-text { position: absolute; inset: auto 0 0 0; padding: 18px 20px; }
.dest-text h3 { font-size: 1.35rem; margin: 0 0 2px; }
.dest-card-big .dest-text h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.dest-text p { margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .85); }
.dest-grid-even .dest-card-big { grid-column: auto; grid-row: auto; }
@media (max-width: 959px) {
  .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .dest-card-big { grid-row: span 1; grid-column: 1 / -1; }
}
@media (max-width: 479px) { .dest-grid { grid-auto-rows: 170px; gap: 10px; } .dest-text { padding: 12px 14px; } .dest-text h3 { font-size: 1.1rem; } }

/* featured hotels */
.hotels { background: var(--mist); }
.hotel-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hotel-card { background: var(--white); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.hotel-card .media { aspect-ratio: 16 / 11; }
.badge-example { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(255, 255, 255, .94); color: var(--navy-900); font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px dashed var(--navy-800); }
.hotel-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.hotel-body h3 { margin: 2px 0 2px; font-size: 1.2rem; }
.stars { color: var(--gold); letter-spacing: 2px; margin: 0; font-size: .9rem; }
.hotel-city { color: var(--muted); margin: 0 0 12px; font-size: .95rem; }
.amenities { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.amenities li { font-size: .82rem; font-weight: 600; color: var(--navy-800); background: var(--mist); padding: 4px 10px; border-radius: 999px; }
.hotel-body .btn { margin-top: auto; }
@media (max-width: 959px) {
  .hotel-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .hotel-card { flex: 0 0 min(80%, 340px); scroll-snap-align: start; }
}

/* how it works */
.how { background: var(--navy-900); color: var(--white); }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); }
.step-item p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 36ch; }
.step-item h3 { font-size: 1.3rem; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--royal-500); color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 16px; }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; } }

/* faq */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--royal-600); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); max-width: 66ch; padding-bottom: 8px; }

/* destination page */
.dest-hero { position: relative; color: var(--white); min-height: clamp(340px, 58vh, 580px); display: flex; align-items: flex-end; isolation: isolate; }
.dest-hero .media { position: absolute; inset: 0; z-index: -1; }
.dest-hero .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 20, 51, .9), rgba(6, 20, 51, .2) 60%, rgba(6, 20, 51, .35)); }
.dest-hero-in { width: 100%; padding-block: 40px; }
.dest-name { font-size: clamp(3rem, 11vw, 7.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: .95; margin: 0; }
.dest-country { font-size: 1.15rem; color: rgba(255, 255, 255, .85); margin: 10px 0 0; }
.dest-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.highlights { padding-inline-start: 1.2em; margin: 0; }
.highlights li { padding-block: 6px; }
.highlights li::marker { color: var(--royal-600); }
.facts { background: var(--mist); border-radius: var(--r-lg); padding: 24px; }
.facts h2 { font-size: 1.25rem; }
.facts dl { margin: 0; display: grid; gap: 14px; }
.facts dt { font-size: .85rem; font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.plan { background: var(--mist); }
.plan h2 { margin-bottom: 24px; }
.photo-credit { font-size: .8rem; color: var(--muted); padding-bottom: 16px; }
@media (max-width: 859px) { .dest-layout { grid-template-columns: 1fr; } }

/* results */
.res-head { background: var(--navy-900); color: var(--white); padding-block: clamp(28px, 5vw, 48px); }
.res-title { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.ticket-legs { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.ticket-leg { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center; gap: 14px; max-width: 560px; }
.tl-code { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: .02em; line-height: 1; }
.tl-line { position: relative; height: 0; border-top: 2px dashed rgba(255, 255, 255, .35); min-width: 40px; }
.tl-line::after { content: ""; position: absolute; top: -10px; inset-inline-start: calc(50% - 9px); width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233366f0'%3E%3Cpath transform='rotate(90 12 12)' d='M21 15.5v-1.7l-8-5V3.5a1.5 1.5 0 0 0-3 0v5.3l-8 5v1.7l8-2.5v5.5l-2 1.5V21l3.5-1 3.5 1v-1.5l-2-1.5V13z'/%3E%3C/svg%3E") center / contain no-repeat; }
.tl-date { grid-column: 1 / -1; color: rgba(255, 255, 255, .8); font-size: .95rem; margin-top: -4px; }
.res-dates { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 600; max-width: 560px; margin-bottom: 8px; }
.res-dates .tl-line { flex: 1; }
.res-dates .tl-line::after { display: none; }
.res-meta { color: rgba(255, 255, 255, .8); margin: 0; }
.checking { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--royal-600); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 24px; }
.notice > .ico { width: 24px; height: 24px; margin-top: 2px; }
.notice h2 { font-size: 1.15rem; margin-bottom: .35em; }
.notice p { margin: 0; }
.notice-info { background: var(--royal-100); color: var(--navy-900); }
.notice-info > .ico { color: var(--royal-600); }
.notice-error { background: var(--danger-bg); color: var(--danger); font-weight: 600; }
.notice-success { background: var(--success-bg); color: var(--success); font-weight: 600; }
.partners-h { font-size: 1.25rem; margin-top: 8px; }
.partners { list-style: none; padding: 0; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.partner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.partner + .partner { border-top: 1px solid var(--line); }
.partner-text { display: flex; flex-direction: column; min-width: 0; }
.partner-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.partner-desc { color: var(--muted); font-size: .92rem; }
.partner .btn { flex: none; }
.ico-ext { width: 16px; height: 16px; }
.disclosure { font-size: .9rem; color: var(--muted); }
.live h2 { font-size: 1.25rem; }
.live-note { color: var(--muted); font-size: .92rem; }
.offers { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.offer { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-md); }
.offer-slice { margin: 0 0 4px; }
.offer-slice span { color: var(--muted); font-size: .9rem; margin-inline-start: 6px; }
.offer-price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.op-amount { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.op-unit { font-size: .8rem; color: var(--muted); }
.edit { margin-top: 32px; }
.edit > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--royal-600); list-style: none; padding: 10px 0; margin-bottom: 12px; }
.edit > summary::-webkit-details-marker { display: none; }
@media (max-width: 599px) {
  .partner { flex-direction: column; align-items: stretch; }
  .offer { flex-direction: column; }
  .offer-price { align-items: stretch; }
}

/* prose / legal / about */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose code { background: var(--mist); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
mark.ph { background: #fff1b8; color: var(--ink); padding: 0 4px; border-radius: 4px; }
.lang-note { display: block; }
.values { list-style: none; padding: 0; display: grid; gap: 20px; margin-top: 16px; }
.values li { border-inline-start: 3px solid var(--royal-600); padding-inline-start: 18px; }
.values h3 { margin-bottom: 4px; }
.values p { margin: 0; color: var(--muted); }

/* contact */
.contact-form { display: grid; gap: 18px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .field label { font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: var(--white); font-size: 1rem; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--royal-600); box-shadow: 0 0 0 3px var(--royal-100); }
.contact-form .is-invalid :is(input, textarea) { border-color: var(--danger); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; inset-inline-start: -9999px; }
@media (max-width: 599px) { .form-row { grid-template-columns: 1fr; } .contact-form .btn { justify-self: stretch; } }

.page-404 { text-align: center; }
.page-404 .lead { margin: 0 auto 24px; }
.big-code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; color: var(--royal-600); line-height: 1; margin: 0 0 8px; letter-spacing: -0.04em; }

/* ---------------------------------------------------------------- footer + consent */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .8); padding-top: clamp(48px, 6vw, 72px); }
.foot-in { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; }
.foot-brand p { margin-top: 14px; max-width: 34ch; }
.logo-light { color: var(--white); }
.foot-col h2 { font-family: var(--font-text); font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 12px; letter-spacing: 0; }
html[lang="ar"] .foot-col h2 { font-family: var(--font-ar); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.foot-col a:hover { color: var(--white); text-decoration: underline; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px 28px; font-size: .88rem; color: rgba(255, 255, 255, .62); }
.foot-base p { margin: 0 0 6px; max-width: 90ch; }
@media (max-width: 859px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .foot-in { grid-template-columns: 1fr; } }

.consent { position: fixed; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; max-width: 560px; margin-inline: auto; background: var(--white); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: 0 20px 50px rgba(6, 20, 51, .3), 0 0 0 1px var(--line); }
.consent p { margin: 0 0 12px; font-size: .95rem; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.consent-actions a { font-size: .9rem; margin-inline-start: auto; }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .i18n-pending body { animation-delay: 1.2s !important; }
}
.offer-demo { position: relative; padding-top: 44px; border-style: dashed; }
.offer-demo .badge-example { top: 10px; }
.os-date { display: block; font-size: .85rem; color: var(--muted); }
[dir="rtl"] .os-arrow { display: inline-block; transform: scaleX(-1); }
.offer-empty { padding: 16px 20px; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--muted); }
