/* Golden Sand — design system
   Layout concept: left-aligned editorial grid (max 1200px). One bold element per page:
   the "horizon" poster art (sun disc over sea and dunes) paired with a slab-serif display face
   — slab serifs were called "Egyptians" when they appeared in the 1810s. Everything else stays quiet.
   Palette: the materials of ancient Egyptian jewellery — lapis lazuli, turquoise faience, gold, carnelian —
   on white and papyrus. */

@font-face {
  font-family: "Rokkitt";
  src: url("../fonts/rokkitt-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
/* Latin Extended letters (Polish ą ę ł ś ż …) from the same font version (@fontsource-variable 5.3.0).
   Declared after the base faces, so these are used first for the characters in their unicode-range. */
@font-face {
  font-family: "Rokkitt";
  src: url("../fonts/rokkitt-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ffffff;
  --papyrus: #f5efe3;
  --ink: #13213c;
  --muted: #56607a;
  --line: #e2dacb;
  --lapis: #23408e;
  --faience: #0e7f7a;
  --gold: #e3a72f;
  --gold-ink: #13213c;
  --carnelian: #b5462c;
  --wa: #187a43;
  --wa-ink: #ffffff;
  --card: #ffffff;
  --shadow: 0 1px 2px rgb(19 33 60 / 6%), 0 8px 24px -12px rgb(19 33 60 / 18%);

  --font-display: "Rokkitt", "Rockwell", "Roboto Slab", "DejaVu Serif", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 4rem);

  --radius: 14px;
  --radius-sm: 8px;
  --gutter: clamp(16px, 4vw, 32px);
  --wrap: 1200px;
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c1830;
    --papyrus: #12223f;
    --ink: #eee8dc;
    --muted: #a7b1c6;
    --line: #233658;
    --lapis: #a9bdf2;
    --faience: #45c4ba;
    --gold: #f0bb4b;
    --gold-ink: #0c1830;
    --carnelian: #e8896d;
    --wa: #2aa860;
    --wa-ink: #06140c;
    --card: #10203b;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 28px -14px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c1830;
  --papyrus: #12223f;
  --ink: #eee8dc;
  --muted: #a7b1c6;
  --line: #233658;
  --lapis: #a9bdf2;
  --faience: #45c4ba;
  --gold: #f0bb4b;
  --gold-ink: #0c1830;
  --carnelian: #e8896d;
  --wa: #2aa860;
  --wa-ink: #06140c;
  --card: #10203b;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 28px -14px rgb(0 0 0 / 60%);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; } /* <picture> (WebP) must not change the layout: the <img> styles apply as before */
a { color: var(--lapis); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--gold-ink); padding: 10px 14px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--papyrus { background: var(--papyrus); }
.section--tight { padding-top: clamp(24px, 3vw, 36px); }
.section__head { display: grid; gap: 10px; max-width: 46rem; margin-bottom: clamp(24px, 3vw, 36px); }
.section__head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.section__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 3vw, 36px); }
.section__row .section__head { margin-bottom: 0; }
.stack { display: grid; gap: 16px; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 40rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer;
  background: var(--gold); color: var(--gold-ink);
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--wa { background: var(--wa); color: var(--wa-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: var(--paper); } }
.site-header__bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 750; font-size: 1.55rem; letter-spacing: -0.01em; line-height: 1; }
.brand__tag { display: block; font: 600 0.72rem/1 var(--font-body); color: var(--muted); letter-spacing: 0.04em; margin-top: 3px; }
/* Golden Sand's own logo (assets/brand/): colour version in the header, gold-only version on the dark footer */
.brand__logo { display: block; width: auto; height: 48px; }
.footer-brand .brand__logo { height: 60px; }
@media (max-width: 480px) { .site-header .brand__logo { height: 42px; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__link, .nav-menu > summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; cursor: pointer;
}
.nav__link:hover, .nav-menu > summary:hover, .nav__link[aria-current="page"] { background: var(--papyrus); }
.nav-menu { position: relative; }
.nav-menu > summary { list-style: none; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s ease;
}
.nav-menu[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-menu__panel {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 300px; padding: 14px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; gap: 2px;
}
.nav-menu__panel a { display: grid; gap: 1px; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.nav-menu__panel a:hover { background: var(--papyrus); }
.nav-menu__panel strong { font-weight: 650; }
.nav-menu__panel span { font-size: var(--step--1); color: var(--muted); }
.nav-menu__panel--wide { grid-template-columns: 1fr 1fr; min-width: 520px; }
.nav__cta { margin-left: 8px; min-height: 44px; padding: 10px 16px; }
.nav-toggle {
  display: none; margin-left: auto; min-height: 44px; min-width: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center; gap: 8px; padding: 0 14px; font: 600 0.95rem var(--font-body);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1180px) {
  /* backdrop-filter would make the header the containing block of the fixed menu and squeeze it to 0 px */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
    background: var(--paper); padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; flex-direction: column; align-items: stretch; gap: 8px; margin: 0;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link, .nav-menu > summary { font-size: 1.15rem; min-height: 52px; border-radius: var(--radius-sm); }
  .nav-menu__panel, .nav-menu__panel--wide {
    position: static; transform: none; min-width: 0; box-shadow: none; border: 0; padding: 0 0 8px 12px;
    grid-template-columns: 1fr; background: transparent;
  }
  .nav__cta { margin: 12px 0 0; width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Language switcher (header): flag + name, current language marked ---------- */
.flag { width: 21px; height: 14px; flex: none; display: inline-block; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgb(19 33 60 / 18%); }
.lang-menu > summary { gap: 8px; }
.lang-menu > summary svg { width: 18px; height: 18px; flex: none; }
.lang-menu .nav-menu__panel { left: auto; right: 0; transform: none; min-width: 220px; }
.lang-menu__panel a { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.lang-menu__panel .lang-menu__label { flex: 1; color: var(--ink); font-size: 0.98rem; }
.lang-menu__check { width: 18px; height: 18px; flex: none; color: var(--faience); }
.lang-menu__panel a[aria-current="true"] { background: var(--papyrus); font-weight: 750; }
@media (max-width: 1180px) {
  .lang-menu .nav-menu__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lang-menu__panel a { min-height: 44px; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { padding-top: 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--step--1); color: var(--muted); }
.crumbs li { display: inline-flex; gap: 6px; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--papyrus); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(36px, 6vw, 72px); }
.hero__copy { display: grid; gap: 22px; }
.hero__copy h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.1rem); line-height: 0.98; }
.hero__art { border-radius: 22px; overflow: hidden; aspect-ratio: 6 / 5; box-shadow: var(--shadow); background: var(--papyrus) center / cover no-repeat; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__dests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 34rem; }
.dest-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 650;
}
.dest-pill:hover { border-color: var(--ink); }
.dest-pill small { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero__note { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: var(--step--1); }
.hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.hero__note svg { width: 16px; height: 16px; color: var(--faience); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; aspect-ratio: 16 / 9; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--papyrus); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding-block: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 56px); }
.page-head__copy { display: grid; gap: 16px; }
.page-head__art { border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--papyrus) center / cover no-repeat; }
.page-head__art img { width: 100%; height: 100%; object-fit: cover; }
.page-head--plain .page-head__grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) {
  .page-head__grid { grid-template-columns: 1fr; }
  .page-head__art { aspect-ratio: 16 / 9; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.card__media { position: relative; aspect-ratio: 3 / 2; background: var(--papyrus) center / cover no-repeat; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__tag {
  position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: 0.78rem; font-weight: 700;
}
.card__body { display: grid; align-content: start; gap: 8px; padding: 16px 18px 18px; }
.card__title { font-size: 1.28rem; line-height: 1.15; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--step--1); color: var(--muted); }
.card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1; }
.price small { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-right: 4px; }
.price--ask { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; color: var(--carnelian); }
.card__excerpt { color: var(--muted); font-size: 0.97rem; }

/* Destination cards */
.dest-card { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.dest-card__media { aspect-ratio: 4 / 3; background: var(--papyrus) center / cover no-repeat; }
.dest-card__media img { width: 100%; height: 100%; object-fit: cover; }
.dest-card__body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.dest-card h3 { font-size: 1.6rem; }
.dest-card h3 a { color: inherit; text-decoration: none; }
.dest-card h3 a::after { content: ""; position: absolute; inset: 0; }
.dest-card p { color: var(--muted); font-size: 0.97rem; }
.count { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--faience); font-size: var(--step--1); }

/* Category tiles */
.type-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.type-tile {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.type-tile:hover { border-color: var(--ink); }
.type-tile img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.type-tile__media { display: block; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--papyrus) center / cover no-repeat; }
.type-tile strong { display: block; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; }
.type-tile span { color: var(--muted); font-size: var(--step--1); }

/* Steps (a real sequence) */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.steps li { counter-increment: step; display: grid; gap: 8px; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--gold-ink); font: 700 1.2rem/1 var(--font-display);
}
.steps p { color: var(--muted); }

/* Contact channels */
.channels { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.channel { display: grid; gap: 4px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.channel__label { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.channel__value { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; word-break: break-word; }
.channel__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 0.88rem var(--font-body);
  text-decoration: none; cursor: pointer;
}
.chip-btn:hover { border-color: var(--ink); }

/* Band (callout) */
.band { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 20px 32px; align-items: center; padding: clamp(22px, 4vw, 40px); border-radius: 20px; background: var(--lapis); color: #fff; }
.band h2, .band h3 { color: #fff; }
.band p { color: rgb(255 255 255 / 86%); }
:root[data-theme="dark"] .band { background: #1b2f63; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: #1b2f63; } }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

/* ---------- Filters ---------- */
.filters { display: grid; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); margin-bottom: 24px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters__label { font-size: var(--step--1); font-weight: 700; color: var(--muted); margin-right: 4px; min-width: 88px; }
.chip {
  min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); font: 600 0.92rem var(--font-body); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters__tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.input, .select, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font: 500 1rem var(--font-body);
}
textarea.input { min-height: 110px; resize: vertical; }
.filters__search { flex: 1 1 240px; }
.filters__sort { flex: 0 1 220px; }
.result-count { font-weight: 700; font-variant-numeric: tabular-nums; }
.empty { padding: 28px; border-radius: var(--radius); border: 1px dashed var(--line); text-align: center; color: var(--muted); }

/* ---------- Tour page ---------- */
.tour-head { display: grid; gap: 14px; padding-block: 18px 8px; }
.tour-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--papyrus); font-size: 0.92rem; font-weight: 600; }
.facts svg { width: 16px; height: 16px; color: var(--faience); }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-top: 18px; }
.gallery__main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--papyrus) center / cover no-repeat; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.gallery__thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--papyrus); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery--single { grid-template-columns: 1fr; }
.gallery--single .gallery__main { aspect-ratio: 12 / 5; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } .gallery__side { grid-template-columns: repeat(4, 1fr); } .gallery--single .gallery__main, .feature-img { aspect-ratio: 16 / 9; } }

.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: start; padding-block: 32px 64px; }
.tour-main { display: grid; gap: 40px; min-width: 0; }
.tour-main section { display: grid; gap: 14px; }
.tour-main h2 { font-size: var(--step-2); }
@media (max-width: 960px) { .tour-layout { grid-template-columns: 1fr; } }

.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--faience);
}
.checklist li::after {
  content: ""; position: absolute; left: 7px; top: calc(0.3em + 4px); width: 6px; height: 10px;
  border-right: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(45deg);
}
.checklist--no li::before { background: var(--carnelian); }
.checklist--no li::after {
  content: "\00d7"; left: 0; top: 0.3em; width: 20px; height: 20px; border: 0; transform: none;
  color: var(--paper); font: 700 17px/20px var(--font-body); text-align: center;
}
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }

.timeline { list-style: none; counter-reset: t; display: grid; gap: 0; }
.timeline li { counter-increment: t; position: relative; display: grid; gap: 4px; padding: 0 0 22px 52px; }
.timeline li::before {
  content: counter(t); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 2px solid var(--faience); color: var(--faience);
  font: 700 1rem/1 var(--font-display);
}
.timeline li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline strong { font-weight: 700; }
.timeline p { color: var(--muted); }

.booking { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.booking__price { display: grid; gap: 2px; }
.booking__price .price { font-size: 2rem; }
.booking__note { font-size: var(--step--1); color: var(--muted); }
.booking__form { display: grid; gap: 12px; }
.booking__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.booking__alt { display: grid; gap: 6px; font-size: 0.92rem; color: var(--muted); }
.booking__alt a { font-weight: 700; }
.booking__embed { display: grid; gap: 12px; }
@media (max-width: 960px) { .booking { position: static; } }

.mobile-book {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgb(0 0 0 / 35%);
  align-items: center; justify-content: space-between; gap: 12px;
}
@media (max-width: 960px) { .mobile-book { display: flex; } .has-mobile-book { padding-bottom: 76px; } }

/* ---------- Prose (Markdown) ---------- */
.prose { display: grid; gap: 1em; max-width: 44rem; }
.prose h2 { font-size: var(--step-2); margin-top: 0.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 0.5em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.4em; }
.prose li::marker { color: var(--faience); }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); color: var(--muted); }

.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: var(--step--1); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 56px); padding-block: 32px 64px; align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.toc { display: grid; gap: 8px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); }
.toc ol { list-style: none; display: grid; gap: 6px; font-size: 0.95rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc h2 { font-size: 1.15rem; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } }
.feature-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 12 / 5; background: var(--papyrus) center / cover no-repeat; margin-top: 18px; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }

.aside-box h2 { font-size: 1.25rem; }
.plain-list { list-style: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 48rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative;
  font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font: 600 1.5rem/1 var(--font-display); color: var(--faience);
}
.faq details[open] summary::after { content: "–"; }
.faq .faq__a { padding: 0 18px 18px; color: var(--muted); display: grid; gap: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: #0c1830; color: #d9dfeb; padding-block: 56px 28px; margin-top: 0; }
.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h2 { font-size: 1.1rem; color: #ffffff; margin-bottom: 12px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.01em; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand .brand { color: #ffffff; }
.footer-brand .brand__tag { color: #a7b1c6; }
.footer-brand address { font-style: normal; display: grid; gap: 4px; color: #d9dfeb; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #2b416b; }
.footer-social svg { width: 20px; height: 20px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #22355a; font-size: var(--step--1); color: #a7b1c6; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Language links (footer) */
.footer-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 32px; padding-top: 16px; border-top: 1px solid #22355a; font-size: var(--step--1); }
.footer-langs__label { display: inline-flex; align-items: center; gap: 6px; color: #a7b1c6; font-weight: 600; }
.footer-langs__label svg { width: 16px; height: 16px; }
.footer-langs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 14px; }
.footer-langs a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.footer-langs a[aria-current="true"] { font-weight: 700; text-decoration: underline; text-underline-offset: 0.25em; }
.footer-langs + .footer-base { margin-top: 16px; }

/* ---------- Misc ---------- */
.notice { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--papyrus); border-left: 4px solid var(--gold); font-size: 0.95rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--papyrus); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.tags a:hover { background: var(--line); }
.mt-0 { margin-top: 0; }
img.is-broken { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Header fit: one line in every language ---------- */
.nav__link, .nav-menu > summary, .nav__cta { white-space: nowrap; }
.nav__cta-short { display: none; }
@media (min-width: 1181px) {
  /* compact call to action on desktop: "WhatsApp" instead of the full text (the language keeps flag + name) */
  .nav__cta-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
  }
  .nav__cta-short { display: inline; }
  /* a little less air between items so long words (it, fr, ru) still fit on one line */
  .nav__list { gap: 0; }
  .nav__link, .nav-menu > summary { padding: 8px 10px; }
  .nav__cta { padding: 10px 14px; }
}

/* ---------- Right-to-left (Arabic): mirror the direction-dependent rules above. LTR pages are untouched. ---------- */
:root[lang="ar"] {
  --font-display: "Rokkitt", "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Roboto, Arial, sans-serif;
}
/* Arabic letters join: no letter-spacing, and more line height for the taller script */
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3, :root[lang="ar"] h4,
:root[lang="ar"] .brand__tag, :root[lang="ar"] .footer-grid h2 { letter-spacing: 0; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3, :root[lang="ar"] h4 { line-height: 1.3; }
[dir="rtl"] .skip-link { left: auto; right: 12px; }
[dir="rtl"] .card__tag { left: auto; right: 12px; }
[dir="rtl"] .price small { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .filters__label { margin-right: 0; margin-left: 4px; }
[dir="rtl"] .checklist li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .checklist li::before { left: auto; right: 0; }
[dir="rtl"] .checklist li::after { left: auto; right: 7px; }
[dir="rtl"] .checklist--no li::after { left: auto; right: 0; }
[dir="rtl"] .timeline li { padding: 0 52px 22px 0; }
[dir="rtl"] .timeline li::before { left: auto; right: 0; }
[dir="rtl"] .timeline li::after { left: auto; right: 16px; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] .prose blockquote { padding: 4px 18px 4px 0; border-left: 0; border-right: 3px solid var(--gold); }
[dir="rtl"] .faq summary { padding: 16px 18px 16px 52px; }
[dir="rtl"] .faq summary::after { right: auto; left: 18px; }
[dir="rtl"] .notice { border-left: 0; border-right: 4px solid var(--gold); }
@media (min-width: 1181px) {
  [dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
  [dir="rtl"] .nav__cta { margin-left: 0; margin-right: 8px; }
  [dir="rtl"] .lang-menu .nav-menu__panel { right: auto; left: 0; }
}
@media (max-width: 1180px) {
  [dir="rtl"] .nav-toggle { margin-left: 0; margin-right: auto; }
  [dir="rtl"] .nav-menu__panel, [dir="rtl"] .nav-menu__panel--wide { padding: 0 12px 8px 0; }
}

/* ---------- Language switcher for 14 languages (kept last so it also wins over the RTL rules above) ---------- */
/* Desktop: two columns, and never taller than the window – it scrolls if the window is very low */
@media (min-width: 1181px) {
  .lang-menu .nav-menu__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 380px;
    max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; overscroll-behavior: contain;
  }
}
/* Phones and tablets: the switcher sits in the header bar next to "Menu" (flag + code), not inside the menu */
.header-lang { display: none; }
@media (max-width: 1180px) {
  .site-header__bar { gap: 10px; }
  .header-lang { display: block; margin-inline-start: auto; }
  .header-lang + .nav-toggle { margin-left: 0; margin-right: 0; }
  .nav__lang { display: none; }
  .header-lang .lang-menu > summary {
    min-height: 44px; padding: 0 12px; gap: 6px; font-size: 0.95rem;
    border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  }
  .lang-menu__code { font-weight: 700; letter-spacing: 0.02em; }
  .header-lang .nav-menu__panel {
    position: fixed; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 6px); left: var(--gutter); right: var(--gutter);
    min-width: 0; transform: none; z-index: 60;
    padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: calc(100vh - var(--header-h) - 32px); max-height: calc(100dvh - var(--header-h) - 32px);
    overflow-y: auto; overscroll-behavior: contain;
  }
}
/* Very narrow phones: the menu button shows only its icon (the text stays for screen readers) */
@media (max-width: 374px) {
  .nav-toggle { gap: 0; padding: 0 12px; font-size: 0; }
}

/* ---- Our guests: photos and videos from guests (content/guest-media.json) ---- */
.guests { list-style: none; margin: 0; padding: 0; column-width: 150px; column-gap: 12px; }
.guests__item { margin: 0 0 12px; position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--papyrus); box-shadow: var(--shadow); break-inside: avoid; }
.guests__item img, .guests__item video { display: block; width: 100%; background: #0c1830; }
.guests__item img { height: auto; }
.guests__item video { height: 100%; }
.guests__item--video.guests__item--landscape { aspect-ratio: 16 / 9; }
.guests__item--video.guests__item--portrait { aspect-ratio: 9 / 16; }
.guests__item--video video { object-fit: contain; }
@media (min-width: 700px) {
  .guests { column-width: 220px; column-gap: 16px; }
  .guests__item { margin-bottom: 16px; border-radius: var(--radius); }
}
.tour-main .guests-block { gap: 18px; }
.guests-block .section__head { margin-bottom: 0; }

/* ---------- Child price / group price in the booking box ---------- */
.booking__child { display: block; margin-top: 4px; font-weight: 650; color: var(--ink); font-size: 0.98rem; }
/* The same price in USD and EGP under the euro price (cards, booking box, mobile bar) */
.price-box { display: inline-flex; flex-direction: column; gap: 4px; }
.price__alt { font-size: 0.82rem; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.2; }
.booking__price .price__alt { font-size: 1rem; color: var(--ink); }
.mobile-book .price__alt { font-size: 0.78rem; }
/* Guest reviews on tour pages */
.reviews { margin-top: 32px; }
.reviews__avg { font-weight: 700; }
.stars { color: #d99a1e; letter-spacing: 1px; }
.reviews__list { list-style: none; padding: 0; display: grid; gap: 14px; margin: 14px 0; }
.review { padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.review p { margin: 0; }
.review__head { margin-bottom: 6px !important; }
.review-form { margin-top: 14px; }
.review-form summary { list-style: none; cursor: pointer; display: inline-flex; }
.review-form summary::-webkit-details-marker { display: none; }
.review-form form { display: grid; gap: 12px; margin-top: 14px; max-width: 560px; }
.review-msg { padding: 12px 14px; border-radius: 10px; background: #e5f4ec; font-weight: 600; }
.review-msg--error { background: #fdeceb; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
