/* ==========================================================================
   Travela — منصة السياحة في سلطنة عُمان
   Design system & shared styles
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette — inspired by Omani sea, sand, frankincense and gold */
  --teal-950: #05231f;
  --teal-900: #08302b;
  --teal-800: #0b4038;
  --teal-700: #0e5449;
  --teal-600: #146b5d;
  --teal-500: #1c8474;
  --teal-300: #6fb8a9;
  --teal-100: #d9ece7;

  --gold-700: #9a7517;
  --gold-600: #b8912a;
  --gold-500: #c9a227;
  --gold-400: #ddba55;
  --gold-200: #f0dda4;
  --gold-100: #f8eecd;

  --sand-50: #fdfaf4;
  --sand-100: #f7f0e2;
  --sand-200: #eee2cd;
  --sand-300: #ddc9a9;

  --terracotta: #a9552f;
  --ink: #14201e;
  --ink-soft: #3d4d4a;
  --muted: #6c7b78;
  --line: rgba(20, 32, 30, .1);
  --white: #ffffff;

  /* Semantic */
  --bg: var(--sand-50);
  --surface: #ffffff;
  --text: var(--ink);
  --text-soft: var(--ink-soft);

  /* Type */
  --font-display: "Tajawal", "Segoe UI", system-ui, sans-serif;
  --font-body: "Almarai", "Tajawal", "Segoe UI", system-ui, sans-serif;

  /* Space & shape */
  --wrap: 1200px;
  --gap: clamp(1rem, 2.2vw, 2rem);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(8, 48, 43, .06);
  --shadow-sm: 0 4px 14px rgba(8, 48, 43, .07);
  --shadow-md: 0 14px 40px -18px rgba(8, 48, 43, .28);
  --shadow-lg: 0 34px 70px -30px rgba(8, 48, 43, .38);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

/* الخاصية hidden يجب أن تتغلّب على display في المكوّنات */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: clamp(.95rem, .9rem + .18vw, 1.05rem);
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
video { display: block; max-width: 100%; }

img { height: auto; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--gold-200); color: var(--teal-900); }

/* Scrollbar */
@supports (scrollbar-color: red blue) {
  html { scrollbar-color: var(--teal-300) var(--sand-100); }
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--teal-900);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.1rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { text-wrap: pretty; }

.lead {
  font-size: clamp(1.02rem, .95rem + .4vw, 1.22rem);
  color: var(--text-soft);
  line-height: 1.9;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: .75rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-500);
}

.eyebrow--onDark { color: var(--gold-400); }

/* ---------- 4. Layout ---------- */
.wrap {
  width: min(100% - clamp(1.5rem, 5vw, 4rem), var(--wrap));
  margin-inline: auto;
}

.section { padding-block: clamp(3.2rem, 6vw, 6rem); }
.section--tight { padding-block: clamp(2.4rem, 4vw, 3.6rem); }
.section--sand { background: var(--sand-100); }
.section--dark { background: var(--teal-900); color: #e8f2ef; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: rgba(232, 242, 239, .78); }

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(1.8rem, 3vw, 2.8rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow::before { display: none; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.stack > * + * { margin-top: 1rem; }

/* ---------- 5. Buttons & chips ---------- */
.btn {
  --btn-bg: var(--teal-900);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .97rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--gold {
  --btn-bg: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  --btn-fg: #241a02;
  box-shadow: 0 10px 26px -12px rgba(184, 145, 42, .8);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--teal-900);
  border-color: rgba(8, 48, 43, .22);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--teal-900);
  background: rgba(8, 48, 43, .05);
}

.btn--onDark {
  --btn-bg: rgba(255, 255, 255, .08);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
  box-shadow: none;
}

.btn--onDark:hover { background: rgba(255, 255, 255, .16); }

.btn--sm { padding: .6rem 1.05rem; font-size: .87rem; }
.btn--block { width: 100%; }

.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal-700);
  border-bottom: 1px solid transparent;
  transition: gap .2s var(--ease), border-color .2s var(--ease);
}

.link-arrow:hover { gap: .8rem; border-color: var(--gold-500); }
.link-arrow svg { width: 1em; height: 1em; transform: scaleX(-1); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .48rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .87rem;
  cursor: pointer;
  transition: all .2s var(--ease);
}

.chip:hover { border-color: var(--teal-500); color: var(--teal-800); }

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--teal-900);
  border-color: var(--teal-900);
  color: #fff;
}

.chip--gold[aria-pressed="true"] {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: #241a02;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .68rem;
  border-radius: var(--radius-pill);
  background: var(--gold-100);
  color: var(--gold-700);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .76rem;
  line-height: 1.5;
}

.badge--teal { background: var(--teal-100); color: var(--teal-800); }
.badge--glass {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .25);
}

/* ---------- 6. Header ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--teal-900);
  color: #fff;
  padding: .7rem 1.4rem;
  border-radius: 0 0 12px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  transition: transform .2s var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 244, .82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease),
              background-color .3s var(--ease);
}

.site-header.is-stuck {
  box-shadow: 0 10px 30px -22px rgba(8, 48, 43, .5);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-inline-end: auto;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--teal-900);
  line-height: 1.1;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--teal-800), var(--teal-600) 60%, var(--teal-500));
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -10px rgba(8, 48, 43, .9);
}

.brand__mark svg { width: 24px; height: 24px; }

.brand__text { display: flex; flex-direction: column; }
.brand__name { font-size: 1.16rem; letter-spacing: -.01em; }
.brand__tag {
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--gold-700);
  font-family: var(--font-body);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: .2rem;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: .55rem .8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-soft);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}

.nav__link:hover { color: var(--teal-900); background: rgba(8, 48, 43, .05); }

.nav__link[aria-current="page"] { color: var(--teal-900); font-weight: 800; }

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: .8rem;
  bottom: .24rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
}

.nav__actions { display: flex; align-items: center; gap: .5rem; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  place-items: center;
}

.nav__toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--teal-900);
  border-radius: 2px;
  position: relative;
  transition: background .2s;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 19px;
  height: 2px;
  background: var(--teal-900);
  border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}

.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: grid; }
  .nav__actions .btn { display: none; }

  .nav__links {
    position: fixed;
    inset-inline: 0;
    top: var(--header-h);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    padding: 1rem clamp(1rem, 5vw, 2rem) 1.6rem;
    background: rgba(253, 250, 244, .98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease),
                visibility .25s var(--ease);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    z-index: 120;
  }

  .nav__links.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* ترويسة أكثر تعتيمًا على الجوال حتى لا يظهر نص البطل خلفها */
  .site-header {
    background: rgba(253, 250, 244, .97);
  }

  .nav__link { padding: .85rem 1rem; font-size: 1.05rem; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] { background: rgba(201, 162, 39, .14); }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: min(88svh, 780px);
  display: grid;
  align-items: end;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: var(--teal-950);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: heroDrift 26s var(--ease) infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(0, -1.5%, 0); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(5, 35, 31, .96) 4%, rgba(5, 35, 31, .62) 38%, rgba(5, 35, 31, .22) 68%, rgba(5, 35, 31, .5) 100%),
    radial-gradient(120% 80% at 85% 10%, rgba(201, 162, 39, .22), transparent 60%);
}

.hero__inner { width: min(100% - clamp(1.5rem, 5vw, 4rem), var(--wrap)); margin-inline: auto; }

.hero__content { max-width: 44rem; }

.hero h1 { color: #fff; margin-bottom: 1rem; }

.hero h1 em {
  font-style: normal;
  color: var(--gold-400);
  position: relative;
  white-space: nowrap;
}

/* في الإنجليزية العبارة المميّزة أطول، وnowrap يسبّب تجاوزًا أفقيًا يقصّ المحتوى */
html[dir="ltr"] .hero h1 em { white-space: normal; }

/* منع التجاوز الأفقي على الجوال: عنصر بامتداد عمودين داخل شبكة بعمود واحد
   ينشئ عمودًا ضمنيًا ثانيًا فيدفع المحتوى خارج عرض الشاشة */
@media (max-width: 760px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .grid > [style*="grid-column"] { grid-column: auto !important; }
  .chart-card, .map-panel, .panel, .hero__inner { min-width: 0; max-width: 100%; }
  .hero__actions .btn { max-width: 100%; }
}

.hero h1 em::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: .08em;
  height: .09em;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  opacity: .7;
}

.hero__lead {
  font-size: clamp(1rem, .93rem + .45vw, 1.2rem);
  color: rgba(255, 255, 255, .86);
  max-width: 38rem;
  margin-bottom: 1.9rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .5rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3.2rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
  max-width: 46rem;
}

.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1.2;
}

.hero__stat span {
  font-size: .82rem;
  color: rgba(255, 255, 255, .74);
  display: block;
  line-height: 1.5;
}

.hero__scroll {
  position: absolute;
  inset-inline-end: clamp(1rem, 4vw, 2.5rem);
  bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .7);
  writing-mode: vertical-rl;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .65), transparent);
}

@media (max-width: 700px) {
  .hero__scroll { display: none; }
}

/* Compact page hero for inner pages */
.page-hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.4rem, 4vw, 3.4rem);
  color: #fff;
  background: var(--teal-900);
  overflow: hidden;
  isolation: isolate;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: .42;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, rgba(5, 35, 31, .95), rgba(11, 64, 56, .55));
}

.page-hero h1 { color: #fff; max-width: 24ch; }
.page-hero .lead { color: rgba(255, 255, 255, .82); max-width: 56ch; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .66);
  margin-bottom: 1rem;
}

.crumbs a:hover { color: var(--gold-400); }
.crumbs span { opacity: .5; }

/* ---------- 8. Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 162, 39, .45);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand-200);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.card:hover .card__media img { transform: scale(1.06); }

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 35, 31, .55), transparent 58%);
  opacity: .85;
}

.card__tags {
  position: absolute;
  inset-block-start: .75rem;
  inset-inline: .75rem;
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  z-index: 2;
}

.card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }

.card__meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-700);
  font-family: var(--font-display);
  letter-spacing: .02em;
}

.card__meta svg { width: 14px; height: 14px; }

.card__title { font-size: 1.16rem; margin: 0; }
.card__title a:hover { color: var(--teal-600); }

.card__text {
  font-size: .89rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.card__foot {
  margin-top: auto;
  padding-top: .85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  border-top: 1px dashed var(--line);
}

.card__price {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--teal-800);
  font-size: .95rem;
}

.card__price small { font-weight: 500; color: var(--muted); font-size: .73rem; }

/* Feature card (image + overlay text) */
.feature {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  color: #fff;
  isolation: isolate;
  background: var(--teal-900);
}

.feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .8s var(--ease);
}

.feature:hover img { transform: scale(1.07); }

.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(5, 35, 31, .92), rgba(5, 35, 31, .18) 62%);
}

.feature__body {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 1.3rem;
}

.feature__body h3 { color: #fff; font-size: 1.2rem; }
.feature__body p { font-size: .84rem; color: rgba(255, 255, 255, .78); line-height: 1.7; }

.feature--tall { min-height: 420px; }
.feature--tall .feature__body h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.feature--tall .feature__body p { font-size: .95rem; max-width: 40ch; }

/* Icon card */
.icon-card {
  padding: 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.icon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.icon-card__ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--teal-100);
  color: var(--teal-700);
  margin-bottom: .9rem;
}

.icon-card__ico svg { width: 22px; height: 22px; }
.icon-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.icon-card p { font-size: .87rem; color: var(--muted); line-height: 1.75; margin: 0; }

/* Stat tile */
.stat {
  padding: 1.3rem 1.2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
  font-weight: 800;
  color: var(--teal-800);
  line-height: 1.2;
}

.stat span { font-size: .84rem; color: var(--muted); }

/* ---------- 9. Interactive map ---------- */
.map-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: center;
}

@media (max-width: 900px) {
  .map-section { grid-template-columns: 1fr; }
}

.map-shell {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(111, 184, 169, .16), transparent 55%),
    linear-gradient(160deg, var(--teal-900), var(--teal-950));
  padding: clamp(.6rem, 2vw, 1.4rem);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.map-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
  pointer-events: none;
}

.map-shell--leaflet {
  padding: .55rem;
}

#leaflet-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(320px, 52vw, 460px);
  border-radius: calc(var(--radius-lg) - 6px);
  background: var(--teal-950);
  isolation: isolate;
}

/* --- طبقات Leaflet متناسقة مع الهوية --- */
.leaflet-container {
  font-family: var(--font-body);
  background: #0b4038;
  outline: none;
}

.leaflet-control-attribution {
  font-size: .62rem !important;
  background: rgba(8, 48, 43, .82) !important;
  color: #cfe3de !important;
  padding: 2px 6px !important;
  border-radius: 6px 0 0 0;
}

.leaflet-control-attribution a { color: var(--gold-200) !important; }

.leaflet-bar {
  border: none !important;
  box-shadow: var(--shadow-md) !important;
}

.leaflet-bar a {
  background: rgba(8, 48, 43, .94) !important;
  color: var(--gold-200) !important;
  border-bottom-color: rgba(255, 255, 255, .12) !important;
  font-size: 1.05rem !important;
  transition: background .18s var(--ease);
}

.leaflet-bar a:hover,
.leaflet-bar a:focus {
  background: var(--teal-700) !important;
  color: #fff !important;
}

.leaflet-control-zoom { margin-inline-start: 10px !important; margin-block-start: 10px !important; }

/* --- علامات الوجهات --- */
.om-marker {
  background: none;
  border: none;
}

.om-marker__dot {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold-400);
  border: 2.5px solid #08302b;
  box-shadow: 0 0 0 4px rgba(221, 186, 85, .28), 0 3px 8px rgba(0, 0, 0, .45);
  transition: transform .18s var(--ease), background .18s var(--ease);
}

.om-marker:hover .om-marker__dot,
.om-marker:focus .om-marker__dot {
  transform: scale(1.32);
  background: #fff;
}

.om-marker.is-active .om-marker__dot {
  background: #fff;
  box-shadow: 0 0 0 6px rgba(221, 186, 85, .45), 0 3px 10px rgba(0, 0, 0, .5);
}

/* نافذة منبثقة على الخريطة */
.leaflet-popup-content-wrapper {
  background: var(--teal-900);
  color: #eef7f4;
  border-radius: 12px;
  border: 1px solid rgba(221, 186, 85, .32);
  box-shadow: var(--shadow-lg);
}

.leaflet-popup-tip { background: var(--teal-900); }

.leaflet-popup-content {
  margin: .7rem .85rem;
  font-family: var(--font-body);
  direction: rtl;
  text-align: right;
  font-size: .82rem;
  line-height: 1.65;
}

.leaflet-popup-content b {
  font-family: var(--font-display);
  color: var(--gold-200);
  font-size: .92rem;
  display: block;
  margin-bottom: .15rem;
}

.leaflet-popup-content a {
  color: var(--gold-300);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.leaflet-popup-close-button {
  color: #9fc4bc !important;
  font-size: 1.1rem !important;
}

/* أدوات تحكم فوق الخريطة */
.map-controls {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  z-index: 500;
  display: flex;
  gap: .35rem;
}

.map-ctrl {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(221, 186, 85, .35);
  border-radius: 9px;
  background: rgba(8, 48, 43, .94);
  color: var(--gold-200);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background .18s var(--ease), transform .18s var(--ease);
}

.map-ctrl svg { width: 17px; height: 17px; }

.map-ctrl:hover { background: var(--teal-700); color: #fff; }
.map-ctrl:active { transform: scale(.94); }
.map-ctrl[aria-pressed="false"] { opacity: .55; }

/* --- تسميات المحافظات على الخريطة --- */
.om-region-label {
  background: none;
  border: none;
}

.om-region-label span {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .85), 0 0 10px rgba(8, 48, 43, .9);
  white-space: nowrap;
  pointer-events: none;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  margin-top: .8rem;
  font-size: .78rem;
  color: var(--muted);
}

.map-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  margin-inline-end: .35rem;
}

.map-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
  min-height: 220px;
}

.map-panel h3 { margin-bottom: .2rem; }
.map-panel .muted { font-size: .85rem; color: var(--muted); }

.map-panel__list { display: grid; gap: .4rem; margin-top: .9rem; }

.map-panel__list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  width: 100%;
  padding: .6rem .75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--sand-50);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  text-align: start;
  transition: all .2s var(--ease);
}

.map-panel__list button:hover {
  background: var(--teal-900);
  color: #fff;
  border-color: var(--teal-900);
}

.map-panel__list span { font-size: .76rem; color: var(--muted); font-weight: 500; }
.map-panel__list button:hover span { color: rgba(255, 255, 255, .7); }

/* ---------- 10. Explorer ---------- */
.filters {
  display: grid;
  gap: .85rem;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.6rem;
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 40;
  backdrop-filter: blur(12px);
}

@media (max-width: 700px) {
  .filters { position: static; }
}

.search-box {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .62rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--sand-50);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.search-box:focus-within {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(28, 132, 116, .12);
}

.search-box svg { width: 18px; height: 18px; color: var(--muted); flex: none; }

.search-box input {
  flex: 1;
  border: 0;
  background: none;
  outline: none;
  min-width: 0;
  font-size: .93rem;
}

.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }

.chip-row__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  color: var(--muted);
  margin-inline-end: .2rem;
}

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: 1.2rem;
  font-size: .88rem;
  color: var(--muted);
}

.results-bar b { color: var(--teal-800); font-family: var(--font-display); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: var(--gap);
}

.empty-state {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 1rem;
  border: 1px dashed var(--sand-300);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty-state h3 { margin-bottom: .4rem; }
.empty-state p { color: var(--muted); font-size: .92rem; }

/* ---------- 11. Detail modal / drawer ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(0px, 3vw, 2rem);
  background: rgba(5, 35, 31, .62);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.modal.is-open { opacity: 1; pointer-events: auto; }

.modal__dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: min(88dvh, 820px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(.98);
  transition: transform .35s var(--ease);
}

.modal.is-open .modal__dialog { transform: none; }

.modal__media {
  position: relative;
  height: clamp(180px, 26vw, 300px);
  background: var(--teal-900);
}

.modal__media img { width: 100%; height: 100%; object-fit: cover; }

.modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 35, 31, .82), transparent 65%);
}

.modal__head {
  position: absolute;
  inset-inline: clamp(1rem, 3vw, 2rem);
  bottom: 1rem;
  z-index: 2;
  color: #fff;
}

.modal__head h2 { color: #fff; margin-bottom: .25rem; }
.modal__head .card__meta { color: var(--gold-200); }

.modal__close {
  position: absolute;
  inset-block-start: .8rem;
  inset-inline-end: .8rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(5, 35, 31, .55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s, transform .2s;
}

.modal__close:hover { background: rgba(5, 35, 31, .85); transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; }

.modal__body {
  overflow-y: auto;
  padding: clamp(1rem, 2.5vw, 1.8rem);
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-content: start;
}

@media (max-width: 760px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal__dialog {
    max-height: 94dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
  }
  .modal__body { grid-template-columns: 1fr; }
}

.modal__desc { font-size: .95rem; line-height: 1.9; color: var(--text-soft); }

.fact-list { display: grid; gap: .55rem; margin-top: .6rem; }

.fact {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  padding: .55rem .7rem;
  background: var(--sand-50);
  border-radius: 10px;
  font-size: .84rem;
}

.fact dt { color: var(--muted); }
.fact dd { margin: 0; font-weight: 700; color: var(--teal-800); text-align: end; }

.tick-list { display: grid; gap: .45rem; }

.tick-list li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-size: .88rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.tick-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 3px var(--gold-100);
}

.modal__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- 12. Charts ---------- */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1rem;
  box-shadow: var(--shadow-xs);
}

.chart-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.chart-card .muted { font-size: .78rem; color: var(--muted); }

.chart-box { position: relative; height: 260px; margin-top: .9rem; }

.chart-note {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .6rem;
  opacity: .85;
}

/* ---------- 13. Planner ---------- */
.planner {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}

@media (max-width: 940px) {
  .planner { grid-template-columns: 1fr; }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
}

.panel + .panel { margin-top: 1rem; }

.panel h3 { font-size: 1.05rem; margin-bottom: .9rem; display: flex; align-items: center; gap: .5rem; }
.panel h3 svg { width: 18px; height: 18px; color: var(--gold-600); }

.field { display: grid; gap: .35rem; margin-bottom: .9rem; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: .84rem; color: var(--ink-soft); }

.field select,
.field input[type="number"],
.field input[type="text"] {
  width: 100%;
  padding: .62rem .8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sand-50);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.field select:focus,
.field input:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(28, 132, 116, .12);
}

.range-row { display: flex; align-items: center; gap: .7rem; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: var(--sand-200);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-800);
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-800);
  border: 3px solid #fff;
  cursor: pointer;
}

.range-value {
  min-width: 3.2rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--teal-800);
  background: var(--gold-100);
  border-radius: 8px;
  padding: .12rem .4rem;
  font-size: .88rem;
}

.day-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-xs);
}

.day-card__head {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1.1rem;
  background: linear-gradient(100deg, var(--teal-900), var(--teal-700));
  color: #fff;
}

.day-card__num {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  font-family: var(--font-display);
  font-weight: 800;
}

.day-card__head h4 { color: #fff; font-size: 1rem; margin: 0; }
.day-card__head p { font-size: .76rem; color: rgba(255, 255, 255, .72); margin: 0; }
.day-card__head .badge { margin-inline-start: auto; }

.slot {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1.1rem;
  border-bottom: 1px dashed var(--line);
}

.slot:last-child { border-bottom: 0; }

.slot__when {
  flex: none;
  width: 62px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold-700);
  font-family: var(--font-display);
  line-height: 1.4;
}

.slot__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  background: var(--sand-200);
}

.slot__body { flex: 1; min-width: 0; }
.slot__body h5 { font-size: .93rem; margin: 0; font-family: var(--font-display); }
.slot__body p { font-size: .76rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* مقطع الانتقال: المسافة وزمن القيادة بين محطة والتي تليها */
.slot__leg {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: .34rem 1.1rem .34rem 1.1rem;
  font-size: .74rem;
  font-weight: 700;
  color: var(--teal-700);
  background: rgba(28, 132, 116, .07);
  border-block: 1px dashed var(--line);
  /* محاذاة تحت عمود اسم المحطة لا تحت عمود الوقت */
  padding-inline-start: calc(1.1rem + 62px + .8rem);
}

.slot__leg svg { width: 15px; height: 15px; flex: none; opacity: .8; }

.slot__leg-time { font-weight: 500; color: var(--muted); }

/* تذييل اليوم: إجمالي مسافة وزمن القيادة */
.day-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .6rem 1.1rem;
  background: var(--sand-100);
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
}

.day-card__foot b {
  font-family: var(--font-display);
  color: var(--teal-900);
  font-size: .84rem;
}

/* بطاقات إجمالي الرحلة */
.trip-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.trip-metric {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .7rem .8rem;
  border-radius: 12px;
  background: var(--sand-100);
  border: 1px solid var(--line);
  text-align: center;
}

.trip-metric b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--teal-900);
  line-height: 1.25;
}

.trip-metric span {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 560px) {
  .trip-metrics { grid-template-columns: 1fr; }
  .slot__leg { padding-inline-start: 1.1rem; }
}

/* في الإنجليزية المحاذاة من اليسار */
html[dir="ltr"] .slot__leg { padding-inline-start: calc(1.1rem + 62px + .8rem); }

.day-card__head .badge { margin-inline-start: auto; }

.day-card__gmaps {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  flex: none;
  padding: .3rem .6rem;
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .32);
  transition: background .18s ease;
}

.day-card__gmaps svg { width: 13px; height: 13px; flex: none; }
.day-card__gmaps:hover,
.day-card__gmaps:focus-visible { background: rgba(255, 255, 255, .3); color: #fff; }

.gmaps-overflow { color: var(--teal-700); font-weight: 600; }

@media (max-width: 560px) {
  .day-card__head { flex-wrap: wrap; }
  .day-card__head .badge { margin-inline-start: 0; }
  .day-card__head > div { flex: 1 1 100%; order: 3; }
  .day-card__gmaps { margin-inline-start: auto; }
}

.slot__remove {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}

.slot__remove:hover { background: #fdecea; color: #b3261e; border-color: #f5c6c2; }
.slot__remove svg { width: 14px; height: 14px; }

.budget-bar {
  display: flex;
  height: 12px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--sand-200);
  margin: .7rem 0 1rem;
}

.budget-bar i { display: block; height: 100%; transition: width .5s var(--ease); }
.budget-bar i:nth-child(1) { background: var(--teal-700); }
.budget-bar i:nth-child(2) { background: var(--teal-500); }
.budget-bar i:nth-child(3) { background: var(--gold-500); }
.budget-bar i:nth-child(4) { background: var(--terracotta); }

.budget-legend { display: grid; gap: .4rem; font-size: .82rem; }
.budget-legend li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.budget-legend b { font-family: var(--font-display); }

.budget-legend .swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-inline-end: .4rem;
  display: inline-block;
}

.total-box {
  margin-top: .9rem;
  padding: .9rem;
  border-radius: 12px;
  background: var(--teal-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}

.total-box span { font-size: .8rem; color: rgba(255, 255, 255, .72); }
.total-box b { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold-400); }

.planner-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

/* ---------- 14. Quiz ---------- */
/* ---------- اختيار مستوى الصعوبة ---------- */
.level-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .5rem;
  max-width: 560px;
  margin-inline: auto;
}

.level-btn {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  padding: .62rem .5rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  transition: border-color .18s var(--ease), background .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
}

.level-btn b {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 800;
  color: var(--teal-900);
}

.level-btn span {
  font-size: .7rem;
  color: var(--muted);
  line-height: 1.35;
}

.level-btn:hover { border-color: var(--teal-500); transform: translateY(-1px); }

.level-btn[aria-pressed="true"] {
  border-color: var(--teal-800);
  background: var(--teal-900);
}

.level-btn[aria-pressed="true"] b { color: var(--gold-200); }
.level-btn[aria-pressed="true"] span { color: rgba(238, 247, 244, .72); }

.level-btn:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
}

.quiz-shell {
  max-width: 780px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: 1rem 1.3rem;
  background: var(--sand-100);
  border-bottom: 1px solid var(--line);
  font-size: .84rem;
  flex-wrap: wrap;
}

.quiz-progress {
  flex: 1;
  min-width: 120px;
  height: 7px;
  border-radius: 99px;
  background: var(--sand-300);
  overflow: hidden;
}

.quiz-progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal-600), var(--gold-500));
  transition: width .4s var(--ease);
}

.quiz-timer {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--teal-800);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-variant-numeric: tabular-nums;
}

.quiz-timer.is-low { color: #b3261e; }

.quiz-body { padding: clamp(1.1rem, 3vw, 1.9rem); }

.quiz-q {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + .7vw, 1.45rem);
  font-weight: 800;
  line-height: 1.5;
  color: var(--teal-900);
  margin-bottom: 1.2rem;
}

.quiz-opts { display: grid; gap: .6rem; }

.quiz-opt {
  display: flex;
  align-items: center;
  gap: .8rem;
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--sand-50);
  text-align: start;
  cursor: pointer;
  font-size: .95rem;
  transition: all .2s var(--ease);
}

.quiz-opt:hover:not(:disabled) {
  border-color: var(--teal-500);
  background: var(--teal-100);
  transform: translateX(-3px);
}

.quiz-opt__key {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8rem;
  color: var(--muted);
}

.quiz-opt.is-correct {
  border-color: #1a7f4b;
  background: #e8f7ee;
}

.quiz-opt.is-correct .quiz-opt__key { background: #1a7f4b; color: #fff; border-color: #1a7f4b; }

.quiz-opt.is-wrong {
  border-color: #b3261e;
  background: #fdecea;
}

.quiz-opt.is-wrong .quiz-opt__key { background: #b3261e; color: #fff; border-color: #b3261e; }

.quiz-feedback {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: var(--gold-100);
  border-inline-start: 4px solid var(--gold-500);
  font-size: .88rem;
  color: #5b470f;
  line-height: 1.8;
  display: none;
}

.quiz-feedback.is-visible { display: block; animation: fadeUp .35s var(--ease); }

.quiz-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: 1rem 1.3rem;
  border-top: 1px solid var(--line);
  background: var(--sand-50);
  flex-wrap: wrap;
}

.quiz-score { font-family: var(--font-display); font-weight: 700; font-size: .88rem; color: var(--muted); }
.quiz-score b { color: var(--teal-800); }

.quiz-result { text-align: center; padding: clamp(1.5rem, 4vw, 2.6rem); }
.quiz-result__ring {
  width: 148px;
  height: 148px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--gold-500) var(--p, 0%), var(--sand-200) 0);
  position: relative;
}

.quiz-result__ring::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--surface);
}

.quiz-result__ring b {
  position: relative;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--teal-900);
  line-height: 1;
}

.quiz-result__ring small { position: relative; display: block; font-size: .7rem; color: var(--muted); text-align: center; }

/* ---------- 15. Culture page ---------- */
.timeline { position: relative; padding-inline-start: 1.6rem; }

.timeline::before {
  content: "";
  position: absolute;
  inset-block: .4rem;
  inset-inline-start: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-400), var(--teal-500));
  opacity: .5;
}

.timeline li { position: relative; padding-bottom: 1.4rem; }
.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: -1.55rem;
  top: .55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--gold-500);
}

.timeline b {
  display: block;
  font-family: var(--font-display);
  color: var(--gold-700);
  font-size: .82rem;
  letter-spacing: .04em;
}

.timeline h4 { font-size: 1rem; margin: .1rem 0 .2rem; }
.timeline p { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.75; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.4rem, 3.5vw, 3rem);
  align-items: center;
}

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.split__media img { width: 100%; height: 100%; object-fit: cover; }

.quote {
  padding: 1.4rem 1.5rem;
  border-inline-start: 4px solid var(--gold-500);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, .95rem + .4vw, 1.15rem);
  line-height: 1.85;
  color: var(--teal-900);
}

.quote footer {
  margin-top: .6rem;
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--muted);
}

/* Accordion */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.acc + .acc { margin-top: .6rem; }

.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .97rem;
  color: var(--teal-900);
  list-style: none;
}

.acc summary::-webkit-details-marker { display: none; }

.acc summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold-600);
  line-height: 1;
  transition: transform .25s var(--ease);
}

.acc[open] summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 1.2rem 1.1rem; font-size: .89rem; color: var(--text-soft); line-height: 1.85; }
.acc[open] summary { background: var(--sand-50); }

/* ---------- 16. CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  background: linear-gradient(120deg, var(--teal-900), var(--teal-700) 65%, var(--teal-600));
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-start: -10%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .32), transparent 68%);
  z-index: -1;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .82); max-width: 52ch; margin-top: .6rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--teal-950);
  color: rgba(232, 242, 239, .74);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.site-footer .brand { color: #fff; margin-bottom: .9rem; }
.site-footer .brand__tag { color: var(--gold-400); }
.site-footer p { font-size: .87rem; line-height: 1.85; max-width: 40ch; }

.footer-col h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}

.footer-col li { margin-bottom: .45rem; }
.footer-col a { font-size: .88rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold-400); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding-top: 1.2rem;
  font-size: .78rem;
  color: rgba(232, 242, 239, .55);
}

.footer-bottom a:hover { color: var(--gold-400); }

/* ---------- 18. Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 19. Toast ---------- */
.toast {
  position: fixed;
  inset-block-end: 1.4rem;
  inset-inline-start: 50%;
  transform: translate(-50%, 140%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.3rem;
  border-radius: var(--radius-pill);
  background: var(--teal-900);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  box-shadow: var(--shadow-lg);
  transition: transform .4s var(--ease);
  max-width: calc(100vw - 2rem);
}

.toast.is-visible { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--gold-400); flex: none; }

/* ---------- 20. Utilities ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.6rem; }
.mt-4 { margin-top: 2.4rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hide-mobile { display: block; }
@media (max-width: 700px) { .hide-mobile { display: none; } }

/* ---------- 20b. Bilingual / LTR ---------- */
/* النسخة الإنجليزية: خطوط لاتينية وأحجام أنسب */
html[lang="en"] {
  --font-display: "Tajawal", "Segoe UI", system-ui, sans-serif;
  --font-body: "Almarai", "Segoe UI", system-ui, sans-serif;
}

html[lang="en"] body {
  letter-spacing: .002em;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] .hero__stat b,
html[lang="en"] .stat b {
  letter-spacing: -.015em;
}

/* شارة اللغة في الترويسة */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .42rem .62rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--teal-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s var(--ease), background .18s var(--ease),
              color .18s var(--ease);
}

.lang-switch:hover {
  border-color: var(--teal-500);
  background: var(--teal-100);
  color: var(--teal-800);
}

.lang-switch svg { width: 14px; height: 14px; flex: none; }

/* في الصفحة الإنجليزية: رمز الاتجاه معكوس */
html[dir="ltr"] .dir-flip { transform: scaleX(-1); }

/* سهم «التالي» في الاختبار يتبع اتجاه اللغة */
html[dir="ltr"] .quiz-opt:hover:not(:disabled) { transform: translateX(3px); }

/* النوافذ المنبثقة على الخريطة تتبع اتجاه الصفحة */
html[dir="ltr"] .leaflet-popup-content {
  direction: ltr;
  text-align: left;
}

/* تسميات عربية داخل صفحة إنجليزية */
html[dir="ltr"] .brand__name { letter-spacing: .01em; }

html[dir="ltr"] .hero__scroll { letter-spacing: .1em; }

/* القوائم والأرقام: تحييد التحويل التلقائي للاتجاه */
html[dir="ltr"] .fact dd,
html[dir="ltr"] .card__price { unicode-bidi: plaintext; }

/* تفاصيل الطباعة للنسخة الإنجليزية */
@media print {
  html[dir="ltr"] .plan-day { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 21. Print (itinerary) ---------- */
@media print {
  .site-header, .site-footer, .planner > .planner__form,
  .planner-actions, .toast, .hero__scroll, .no-print { display: none !important; }

  body { background: #fff; color: #000; }
  .planner { display: block; }
  .day-card { break-inside: avoid; box-shadow: none; }
  .day-card__head { background: #08302b !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .panel { box-shadow: none; }
  a[href]::after { content: ""; }
}


/* ---------- Personal account, local experiences and lists ---------- */
.nav-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .52rem .9rem;
  border: 1px solid rgba(8, 48, 43, .2);
  border-radius: var(--radius-pill);
  color: var(--teal-900);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 800;
  white-space: nowrap;
}
.nav-account:hover, .nav-account[aria-current="page"] { background: var(--teal-900); color: #fff; }
@media (max-width: 960px) { .nav__actions .nav-account { display: none; } }

.card__tools { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .85rem; }
.card-tool {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--sand-50);
  color: var(--teal-800);
  padding: .36rem .62rem;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}
.card-tool:hover, .card-tool[aria-pressed="true"] { background: var(--gold-100); border-color: var(--gold-500); }

.experience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: var(--gap); }
.experience-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.experience-card__image { width: 100%; height: 210px; object-fit: cover; background: var(--sand-200); }
.experience-card__body { padding: 1.2rem; }
.experience-card__body .eyebrow { font-size: .72rem; letter-spacing: .02em; margin-bottom: .35rem; }
.experience-card__body h3 { font-size: 1.18rem; margin-bottom: .45rem; }
.experience-card__body > p:not(.eyebrow) { color: var(--muted); font-size: .87rem; line-height: 1.75; }
.experience-card__actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.experience-card__actions .btn { white-space: normal; text-align: center; }
.experience-map-link { width: 100%; color: var(--teal-700); font-size: .82rem; font-weight: 700; padding-top: .2rem; }
.experience-card__meta { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .55rem; font-size: .78rem !important; }

.account-layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.6fr); align-items: start; gap: var(--gap); }
.account-profile { position: sticky; top: calc(var(--header-h) + 1rem); }
.account-profile h2, .account-section h2 { font-size: 1.45rem; }
.account-profile > .muted { font-size: .86rem; margin: .45rem 0 1rem; }
.account-form { display: grid; gap: .5rem; }
.account-form label { color: var(--ink-soft); font-family: var(--font-display); font-size: .84rem; font-weight: 700; }
.account-form input { width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--sand-50); }
.account-form .btn { margin-top: .55rem; }
.account-sync { border-top: 1px solid var(--line); margin-top: 1.3rem; padding-top: 1rem; }
.account-sync h3 { font-size: 1rem; margin-bottom: .35rem; }
.account-sync p { color: var(--muted); font-size: .79rem; line-height: 1.7; }
.account-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.file-button { cursor: pointer; }
.account-content { display: grid; gap: 1rem; min-width: 0; }
.account-section { min-width: 0; }
.account-section__head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.account-section__head .eyebrow { margin-bottom: .2rem; }
.account-place-list, .account-record-list { display: grid; gap: .55rem; }
.account-place, .account-record { display: flex; align-items: center; gap: .75rem; padding: .65rem; border: 1px solid var(--line); border-radius: 12px; background: var(--sand-50); min-width: 0; }
.account-place img { width: 76px; height: 64px; object-fit: cover; border-radius: 9px; flex: none; }
.account-place__info, .account-record > div:first-child { display: grid; gap: .08rem; min-width: 0; flex: 1; }
.account-place__info b, .account-record b { font-family: var(--font-display); color: var(--teal-900); font-size: .9rem; }
.account-place__info span, .account-record span, .account-record small { color: var(--muted); font-size: .74rem; line-height: 1.6; }
.account-record small { display: block; }
.account-open-link { color: var(--teal-700); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.account-remove { border: 0; background: transparent; color: #9d3c32; font-size: .75rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.account-record__actions { display: flex; align-items: center; gap: .4rem; }
.account-empty { padding: 1.2rem .6rem; }
.account-empty p { font-size: .84rem; }
.account-empty .btn { display: inline-flex; }
@media (max-width: 860px) { .account-layout { grid-template-columns: 1fr; } .account-profile { position: static; } }
@media (max-width: 560px) {
  .account-place, .account-record { flex-wrap: wrap; }
  .account-place__info, .account-record > div:first-child { flex-basis: calc(100% - 100px); }
  .account-place .account-open-link { margin-inline-start: auto; }
  .account-record__actions { margin-inline-start: auto; }
}


/* ---------- Travila supplied logo lockup ---------- */
.brand__mark--image {
  width: 66px;
  height: 48px;
  border-radius: 9px;
  background: var(--sand-50);
  box-shadow: none;
  overflow: hidden;
}
.brand__mark--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}
.brand__name { color: #4a2817; letter-spacing: .06em; }
.brand__tag { color: #91602e; letter-spacing: .12em; }

/* ---------- Region-scoped trip planner ---------- */
.region-planner { margin-top: .25rem; }
.region-planner__heading { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.region-planner__heading label { font-weight:800; }
.region-planner__optional { font-size:.72rem; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:.1rem .55rem; }
.region-planner__hint,.region-planner__status { font-size:.78rem; line-height:1.7; margin:.4rem 0 .65rem; color:var(--muted); }
.region-planner__status { padding:.55rem .7rem; background:var(--sand-100); border-radius:10px; }
.region-pick-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem; }
.region-pick { display:flex; align-items:center; gap:.5rem; min-width:0; border:1px solid var(--line); border-radius:12px; background:#fff; padding:.55rem .6rem; cursor:pointer; transition:border-color .2s,background .2s; }
.region-pick:hover,.region-pick.is-selected { border-color:var(--gold-500); background:#fffaf0; }
.region-pick input { width:17px; height:17px; flex:none; accent-color:var(--teal-700); }
.region-pick__copy { display:flex; flex-direction:column; min-width:0; line-height:1.35; }
.region-pick__copy b { font-size:.79rem; overflow-wrap:anywhere; }
.region-pick__copy small { color:var(--muted); font-size:.65rem; }
.region-pick__check { margin-inline-start:auto; color:var(--teal-700); font-weight:900; opacity:0; }
.region-pick.is-selected .region-pick__check { opacity:1; }
.region-days { display:grid; gap:.75rem; margin-top:.8rem; }
.region-days__item { border:1px solid var(--line); border-radius:14px; padding:.75rem; background:#fff; min-width:0; }
.region-days__top { display:flex; align-items:center; justify-content:space-between; gap:.7rem; }
.region-days__top>div { display:flex; flex-direction:column; }
.region-days__top b { font-size:.9rem; }
.region-days__top small { font-size:.68rem; color:var(--muted); }
.region-days__count { display:grid; gap:.2rem; width:112px; flex:none; font-size:.67rem; color:var(--muted); }
.region-days__count input { width:100%; min-height:38px; border:1px solid var(--line); border-radius:9px; padding:.35rem .55rem; color:var(--text); background:var(--sand-50); font:inherit; }
.region-gallery { display:flex; gap:.5rem; overflow-x:auto; padding:.7rem .05rem .2rem; scroll-snap-type:x mandatory; }
.region-gallery__item { width:104px; flex:0 0 104px; scroll-snap-align:start; }
.region-gallery__item img { width:104px; height:70px; border-radius:9px; object-fit:cover; background:var(--sand-100); }
.region-gallery__item figcaption { font-size:.64rem; color:var(--muted); line-height:1.4; margin-top:.25rem; }
#days:disabled { opacity:.55; cursor:not-allowed; }
.day-card__empty { padding:1rem; border:1px dashed var(--line); border-radius:12px; margin:.7rem 0; font-size:.84rem; }
@media (max-width:480px) {
  .region-pick-grid { grid-template-columns:1fr; }
  .brand__mark--image { width:54px; height:42px; }
  .brand__name { font-size:1rem; }
  .brand__tag { font-size:.56rem; }
}

.map-ctrl--layer { width:auto !important; min-width:58px; padding:0 .55rem !important; font:700 .69rem var(--font-body); }
.map-ctrl--layer[aria-pressed="true"] { background:var(--gold-500); color:#33210d; border-color:var(--gold-500); }


/* Multi-photo destination gallery, single-place planner and live directory */
.destination-gallery { grid-column:1 / -1; margin:0 0 1.2rem; padding:1rem; background:var(--sand-50); border:1px solid var(--line); border-radius:15px; }
.destination-gallery h3 { font-size:1rem; margin:0 0 .7rem; }
.destination-gallery__grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(135px,1fr)); gap:.65rem; }
.destination-gallery__item { display:block; overflow:hidden; border:1px solid var(--line); border-radius:11px; background:#fff; text-decoration:none; }
.destination-gallery__item img { display:block; width:100%; height:108px; object-fit:cover; background:var(--sand-100); }
.destination-gallery__item span { display:block; padding:.35rem .5rem; color:var(--muted); font-size:.69rem; }
.destination-gallery__credit { margin:.6rem 0 0; color:var(--muted); font-size:.72rem; }
.single-stay { padding:.9rem; border:1px solid var(--line); border-radius:13px; background:var(--sand-50); }
.single-stay__toggle { display:flex; align-items:flex-start; gap:.7rem; cursor:pointer; }
.single-stay__toggle input { width:20px; height:20px; margin-top:.1rem; accent-color:var(--teal-700); flex:none; }
.single-stay__toggle span { display:grid; gap:.2rem; }
.single-stay__toggle small { color:var(--muted); font-size:.76rem; line-height:1.6; }
.single-stay__fields { display:grid; gap:.45rem; margin-top:.85rem; }
.single-stay__fields[hidden] { display:none; }
.single-stay__fields select,.single-stay__fields input { min-height:42px; width:100%; border:1px solid var(--line); border-radius:9px; padding:.45rem .6rem; background:#fff; color:var(--text); font:inherit; }
.directory-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto; gap:.8rem; align-items:end; padding:1rem; margin:1rem 0; background:var(--sand-50); border:1px solid var(--line); border-radius:14px; }
.directory-filters label { display:grid; gap:.35rem; color:var(--muted); font-size:.78rem; }
.directory-filters select,.directory-filters input { width:100%; min-height:42px; border:1px solid var(--line); border-radius:9px; padding:.45rem .65rem; background:#fff; color:var(--text); font:inherit; }
.event-source-grid,.travel-helper-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.travel-helper-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.travel-helper-grid .panel { padding:1.1rem; }
.travel-helper-grid h3 { font-size:1rem; }
.travel-helper-grid p,.event-source p { font-size:.84rem; color:var(--muted); line-height:1.7; }
.event-source .experience-card__body { display:flex; flex-direction:column; align-items:flex-start; gap:.4rem; height:100%; }
.event-source .btn { margin-top:auto; }
@media(max-width:850px) { .directory-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } .travel-helper-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .directory-filters,.event-source-grid,.travel-helper-grid { grid-template-columns:1fr; } .destination-gallery__grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Multi-destination stay sequence planner */
.stay-builder { padding:1rem; border:1px solid var(--line); border-radius:16px; background:linear-gradient(145deg,var(--sand-50),#fff); }
.stay-builder__heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.9rem; }
.stay-builder__heading>div { display:grid; gap:.25rem; }
.stay-builder__heading b { color:var(--text); font-size:.98rem; }
.stay-builder__heading small { color:var(--muted); font-size:.76rem; line-height:1.65; }
.stay-builder__icon { display:grid; place-items:center; width:40px; height:40px; flex:none; border-radius:12px; background:var(--teal-700); color:#fff; font-size:1.45rem; }
.stay-builder__controls { display:grid; grid-template-columns:1fr 1.5fr; gap:.45rem .65rem; align-items:center; }
.stay-builder__controls label { color:var(--muted); font-size:.76rem; }
.stay-builder__controls select,.stay-builder__controls input { min-width:0; min-height:42px; width:100%; border:1px solid var(--line); border-radius:10px; padding:.45rem .6rem; background:#fff; color:var(--text); font:inherit; }
.stay-builder__controls button { grid-column:1/-1; margin-top:.3rem; min-height:43px; }
.stay-builder__summary { display:flex; justify-content:space-between; align-items:center; gap:.75rem; padding:.75rem .8rem; margin-top:.85rem; border-radius:11px; background:var(--sand-100); color:var(--teal-900); font-size:.78rem; }
.stay-builder__summary b { font-size:.93rem; }
.stay-clear-btn { border:0; background:transparent; color:#9a463a; font:inherit; font-size:.7rem; cursor:pointer; text-decoration:underline; }
.stay-clear-btn[hidden] { display:none; }
.stay-stops-list { list-style:none; display:grid; gap:.6rem; padding:0; margin:.7rem 0 0; counter-reset:stay; }
.stay-stop { display:flex; align-items:center; gap:.65rem; min-width:0; padding:.7rem; border:1px solid var(--line); border-radius:12px; background:#fff; }
.stay-stop__number { display:grid; place-items:center; flex:none; width:31px; height:31px; border-radius:50%; background:var(--sand-100); color:var(--teal-900); font-weight:900; font-size:.8rem; }
.stay-stop__body { display:grid; gap:.12rem; min-width:0; flex:1; }
.stay-stop__body small { color:var(--muted); font-size:.66rem; }
.stay-stop__body b { color:var(--text); font-size:.86rem; }
.stay-stop__body span { color:var(--teal-800); font-size:.7rem; }
.stay-stop__duration { display:flex; align-items:center; gap:.45rem; margin-top:.25rem; color:var(--muted); font-size:.68rem; }
.stay-stop__duration input { width:68px; min-height:31px; padding:.2rem .35rem; border:1px solid var(--line); border-radius:8px; background:var(--sand-50); color:var(--text); font:inherit; text-align:center; }
.stay-stop__actions { display:flex; gap:.25rem; flex:none; }
.stay-stop__actions button { display:grid; place-items:center; width:31px; height:31px; padding:0; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--text); font:inherit; font-weight:800; cursor:pointer; }
.stay-stop__actions button:last-child { color:#a33e30; }
.stay-stop__actions button:disabled { opacity:.28; cursor:not-allowed; }
.stay-builder__note { display:block; margin:.75rem 0 0; color:var(--muted); font-size:.72rem; line-height:1.7; }
.stay-stop__actions button:focus-visible,.stay-builder select:focus-visible,.stay-builder input:focus-visible { outline:3px solid rgba(201,162,39,.42); outline-offset:2px; }
@media(max-width:560px) { .stay-builder__controls { grid-template-columns:1fr; } .stay-builder__controls button { grid-column:auto; } .stay-stop { gap:.45rem; padding:.55rem; } .stay-stop__actions button { width:28px;height:28px; } }


/* Travila discovery tools: compare, nearby routes and Khareef season */
.discovery-tools{margin:2rem 0 1.5rem;padding:clamp(1rem,3vw,2rem);border:1px solid var(--line,#ded6c8);border-radius:22px;background:linear-gradient(135deg,rgba(8,48,43,.045),rgba(191,143,61,.08))}
.discovery-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.discovery-actions .muted{font-size:.88rem;flex:1 1 220px}
.compare-toolbar{position:sticky;bottom:12px;z-index:20;margin:1rem 0;padding:.8rem 1rem;border-radius:16px;background:#08302b;color:#fff;box-shadow:0 10px 35px #10231e40;display:flex;align-items:center;gap:.7rem}.compare-toolbar[hidden]{display:none}.compare-toolbar>div{display:flex;flex-direction:column;margin-inline-end:auto}.compare-toolbar span{font-size:.8rem;opacity:.75}
.compare-pick{display:inline-flex;align-items:center;gap:.35rem;font-size:.82rem;color:var(--ink,#26332f);cursor:pointer}.compare-pick input{accent-color:#b78b43;width:16px;height:16px}
.compare-dialog{width:min(1000px,96vw);max-width:1000px}.compare-body{display:block!important;overflow:auto}.compare-table-scroll{overflow-x:auto;margin-top:1rem}.compare-table{width:100%;border-collapse:collapse;min-width:520px}.compare-table th,.compare-table td{padding:.8rem;border-bottom:1px solid #e7e0d5;text-align:start;vertical-align:top}.compare-table thead th{min-width:145px}.compare-table thead img{display:block;width:100%;height:90px;object-fit:cover;border-radius:10px;margin-bottom:.5rem}.compare-table thead small{display:block;color:#758078;font-weight:400}.compare-table tbody th{white-space:nowrap;background:#f8f5ef}
.nearby-results,.around-results{margin-top:1.25rem;padding:1rem;border:1px solid var(--line,#ded6c8);border-radius:16px;background:#fff}.nearby-results h3,.around-results h3{margin:0 0 .8rem}.nearby-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.7rem}.nearby-card,.around-route-list li{display:flex;gap:.7rem;align-items:center;padding:.55rem;border:1px solid #eee8df;border-radius:12px}.nearby-card img,.around-route-list img{width:76px;height:68px;object-fit:cover;border-radius:9px}.nearby-card div,.around-route-list li div{display:flex;flex-direction:column;gap:.2rem;min-width:0}.nearby-card small,.around-route-list small{color:#718078;font-size:.78rem}.nearby-card a,.around-route-list a{font-size:.82rem;color:#926a2e}.around-route-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.around-route-head p,.around-results>p{font-size:.9rem;color:#65736c}.around-route-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.7rem;padding:0;list-style:none;margin:1rem 0}.elevation-readout{font-size:.85rem;color:#6b756f;margin:.45rem .2rem}
.khareef-section{background:#edf3ee}.khareef-calendar{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem}.khareef-calendar article{padding:1.2rem;border-radius:16px;background:#fff;border:1px solid #dce7df;min-height:170px}.khareef-calendar article span{display:inline-block;color:#987038;font-weight:800;margin-bottom:.7rem}.khareef-calendar article strong{display:block;font-size:1.1rem}.khareef-calendar article p{font-size:.9rem;color:#69766f;margin:.5rem 0 0}.khareef-actions{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap;margin-top:1.2rem}.khareef-actions .muted{font-size:.82rem;flex:1 1 260px}.khareef-safety{margin-top:1rem;padding:.85rem 1rem;border-inline-start:4px solid #b98b43;background:#fff8e9;border-radius:8px;font-size:.9rem}
@media(max-width:760px){.khareef-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}.compare-toolbar{flex-wrap:wrap}.compare-toolbar>div{width:100%;margin:0}.discovery-actions>*{width:100%}.around-route-head .btn{width:100%;text-align:center}}
@media(max-width:420px){.khareef-calendar{grid-template-columns:1fr}.nearby-card img,.around-route-list img{width:64px;height:60px}}

.around-route-actions{display:flex;gap:.5rem;flex-wrap:wrap}

/* TRAVILA phase 3: visitor reviews, detailed budget, restaurant choices, AI guide */
.budget-editor{margin:1.1rem 0;padding:1rem;border:1px solid var(--line);border-radius:16px;background:var(--sand-50)}
.budget-editor__head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.9rem}
.budget-editor__head h3{font-size:1rem;margin:0 0 .3rem}
.budget-editor__head p{font-size:.78rem;margin:0;line-height:1.65}
.budget-editor__badge{padding:.35rem .65rem;border-radius:9px;background:var(--teal-900);color:#fff;font-size:.72rem;font-weight:900}
.budget-editor__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
.budget-editor__grid label{display:grid;gap:.3rem;color:var(--muted);font-size:.75rem}
.budget-editor__grid input{width:100%;min-height:40px;border:1px solid var(--line);border-radius:9px;padding:.45rem .6rem;background:#fff;color:var(--text);font:inherit;font-size:.88rem}
.budget-editor__results{margin-top:.9rem;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#fff}
.budget-editor__line{display:flex;justify-content:space-between;gap:.8rem;padding:.55rem .7rem;border-bottom:1px solid var(--line);font-size:.76rem}
.budget-editor__line:last-child{border-bottom:0}
.budget-editor__line b{font-variant-numeric:tabular-nums}
.budget-editor__line--head{background:var(--sand-100);color:var(--teal-900);font-weight:800}
.budget-editor__line--total{background:#edf4f0;color:var(--teal-900);font-size:.83rem}
.stay-stop{display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center}
.stay-stop__food{grid-column:1/-1;min-width:0;padding-top:.2rem}
.stay-stop__food-panel{margin-top:.65rem;padding:.75rem;border-radius:11px;background:var(--sand-50);border:1px solid var(--line)}
.stay-stop__food-panel[hidden]{display:none}
.stay-stop__food-panel>p{font-size:.72rem;line-height:1.6;margin:0 0 .6rem}
.stay-stop__food-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
.stay-stop__food-item{display:flex;align-items:center;gap:.45rem;min-width:0;padding:.5rem;border:1px solid var(--line);border-radius:9px;background:#fff}
.stay-stop__food-item input{accent-color:var(--teal-700);flex:none}
.stay-stop__food-item span{display:grid;min-width:0;flex:1;gap:.12rem}
.stay-stop__food-item b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem}
.stay-stop__food-item small{font-size:.65rem;color:var(--muted)}
.stay-stop__food-item a{color:var(--gold-700);font-weight:800}
.day-card__food{margin:.65rem 0;padding:.7rem .8rem;border-radius:10px;background:#f7f5ed;border:1px solid var(--line)}
.day-card__food>b{display:block;font-size:.76rem;margin-bottom:.4rem;color:var(--teal-900)}
.day-card__food-list{display:flex;flex-wrap:wrap;gap:.4rem}
.day-card__food-list a{font-size:.72rem;padding:.3rem .5rem;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--teal-800);text-decoration:none}
.reviews-panel{grid-column:1/-1;margin-top:1.2rem;padding:1rem;border:1px solid var(--line);border-radius:16px;background:#fff}
.reviews-panel__head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.reviews-panel__head h3{font-size:1rem;margin:0 0 .25rem}.reviews-panel__head p{margin:0;font-size:.76rem}
.review-summary{flex:none;padding:.45rem .65rem;border-radius:9px;background:var(--sand-100);font-size:.75rem;font-weight:800;color:var(--teal-900)}
.reviews-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.6rem;margin:.85rem 0}
.review-card{padding:.7rem;border:1px solid var(--line);border-radius:11px;background:var(--sand-50)}
.review-card>div{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.review-card b{font-size:.78rem}.review-card p{font-size:.78rem;line-height:1.6;margin:.45rem 0}.review-card small{font-size:.66rem;color:var(--muted)}
.review-card__stars{color:#bd8c32;white-space:nowrap;font-size:.85rem}.review-card__stars span{color:#d9d2c7}
.review-form{padding:.9rem;border-radius:12px;background:var(--sand-50);display:grid;gap:.45rem}
.review-form h4{margin:0 0 .25rem;font-size:.9rem}.review-form label,.review-stars-label{font-size:.76rem;color:var(--muted)}
.review-form input,.review-form textarea{width:100%;border:1px solid var(--line);border-radius:9px;padding:.55rem .65rem;background:#fff;color:var(--text);font:inherit;font-size:.85rem}
.review-stars{display:flex;gap:.25rem;direction:ltr;justify-content:flex-end}.review-stars button{border:0;background:transparent;color:#d6cec0;font-size:1.6rem;line-height:1;cursor:pointer;padding:.1rem}.review-stars button.is-active{color:#c18e2d}
.review-form .btn{justify-self:start}.review-form .chart-note{font-size:.68rem;line-height:1.6;margin:.1rem 0 0}
.travila-assistant{position:fixed;z-index:90;inset:auto 1rem 1rem auto;direction:inherit;font-family:inherit}
.assistant-launch{display:flex;align-items:center;gap:.55rem;border:0;border-radius:999px;padding:.75rem 1rem;background:#08302b;color:#fff;box-shadow:0 10px 30px #081d1a44;font:inherit;cursor:pointer}
.assistant-launch span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#c9a15a;color:#152a24;font-size:1.1rem}.assistant-launch b{font-size:.82rem}
.assistant-panel{position:absolute;inset:auto 0 3.5rem auto;width:min(390px,calc(100vw - 2rem));max-height:min(650px,78vh);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 20px 60px #10231e35}
.assistant-panel[hidden]{display:none}.assistant-panel__head{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.85rem 1rem;background:#08302b;color:#fff}.assistant-panel__head>div{display:grid;gap:.2rem}.assistant-panel__head b{font-size:.88rem}.assistant-panel__head small{font-size:.68rem;opacity:.8}.assistant-panel__head button{border:0;background:transparent;color:#fff;font-size:1.5rem;cursor:pointer}
.assistant-prompts{display:flex;gap:.4rem;flex-wrap:wrap;padding:.65rem .8rem;border-bottom:1px solid var(--line)}.assistant-prompts button{border:1px solid var(--line);border-radius:999px;padding:.35rem .55rem;background:var(--sand-50);font:inherit;font-size:.66rem;cursor:pointer}
.assistant-messages{display:flex;flex-direction:column;gap:.55rem;overflow:auto;padding:.8rem;min-height:150px}.assistant-message{max-width:92%;white-space:pre-wrap;overflow-wrap:anywhere;padding:.65rem .75rem;border-radius:12px;font-size:.78rem;line-height:1.7}.assistant-message--bot{align-self:flex-start;background:var(--sand-50);color:var(--text)}.assistant-message--user{align-self:flex-end;background:#e8f1ed;color:#123d34}
.assistant-form{display:flex;gap:.45rem;padding:.6rem .75rem;border-top:1px solid var(--line)}.assistant-form textarea{flex:1;resize:vertical;min-width:0;border:1px solid var(--line);border-radius:9px;padding:.5rem .6rem;font:inherit;font-size:.78rem}.assistant-form button{border:0;border-radius:9px;padding:.4rem .8rem;background:var(--teal-800);color:#fff;font:inherit;font-size:.76rem;cursor:pointer}.assistant-form button:disabled{opacity:.5;cursor:wait}.assistant-disclaimer{margin:0;padding:0 .8rem .7rem;color:var(--muted);font-size:.62rem;line-height:1.5}
@media(max-width:560px){.budget-editor__grid,.stay-stop__food-list{grid-template-columns:1fr}.reviews-panel__head{display:grid}.review-summary{justify-self:start}.travila-assistant{inset:auto .65rem .65rem auto}.assistant-panel{width:calc(100vw - 1.3rem);max-height:75vh}.budget-editor__head{align-items:center}}


/* Competition-ready refinement: offline fallbacks, safety, accessibility and mobile touch targets */
:root { --font-display: "Tajawal", "Noto Sans Arabic", system-ui, sans-serif; --font-body: "Almarai", "Noto Sans Arabic", system-ui, sans-serif; }
.hero__media { background: radial-gradient(ellipse at 70% 25%, rgba(201,162,39,.34), transparent 38%), linear-gradient(135deg,#0b3933,#174f47 55%,#7b6742); }
.hero__media--fallback { background-image: url("../assets/img/salalah.jpg"); background-size: cover; background-position: center; }
.hero__media img { display:block; }
.hero__media img[hidden] { display:none; }
.hero { min-height: clamp(620px, 88svh, 820px); }
.hero__content { padding-block: .4rem; }
.map-text-fallback { margin-top:1rem; padding:1rem; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); }
.map-text-fallback h3 { margin-bottom:.4rem; }
.map-destination-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:.8rem; }
.map-destination-group { border:1px solid var(--line); border-radius:12px; padding:.75rem; min-width:0; }
.map-destination-group h4 { color:var(--teal-800); margin-bottom:.45rem; }
.map-destination-group h4 small { color:var(--muted); }
.map-destination-group ul { list-style:none; display:grid; gap:.45rem; }
.map-destination-group li { display:grid; gap:.1rem; border-top:1px dashed var(--line); padding-top:.4rem; }
.map-destination-group li a { font-weight:800; color:var(--teal-800); }
.map-destination-group li span { color:var(--muted); font-size:.82rem; }
.safety-strip { background:#fff7e6; border-block:1px solid #ead9ad; }
.safety-strip__content { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr); gap:2rem; align-items:center; }
.safety-strip__content h2 { font-size:clamp(1.35rem,2vw,2rem); }
.safety-strip__content p { color:#594c32; margin:.5rem 0 0; }
.safety-strip__links { display:grid; gap:.5rem; }
.safety-strip__links a,.planner-safety a { color:#07584c; text-decoration:underline; text-underline-offset:3px; font-weight:700; }
.safety-strip__links strong { color:#8a321e; font-size:1.15rem; }
.safety-strip__links small { color:#665a42; }
.planner-safety { margin-top:1.25rem; padding:1rem; border-inline-start:4px solid #c58a25; background:#fff7e6; border-radius:10px; line-height:1.8; }
.planner-safety p { margin:.3rem 0; }
.planner-start-field { display:grid; gap:.45rem; }
.planner-start-field select { width:100%; min-height:46px; }
.season-filter-row select { min-height:40px; border:1px solid var(--line); border-radius:10px; padding:.35rem .6rem; background:var(--surface); color:var(--ink); }
:where(a,button,input,select,textarea,[tabindex]):focus-visible { outline:3px solid #b47d12 !important; outline-offset:3px; }
button,a,select,input[type="checkbox"],input[type="radio"] { touch-action:manipulation; }
.btn,.chip,.map-ctrl,.nav__toggle { min-height:42px; }
img { max-width:100%; }
html,body { overflow-x:clip; }
@media (max-width:760px) {
 .safety-strip__content { grid-template-columns:1fr; gap:1rem; }
 .hero { min-height: min(82svh,760px); padding-block:3.5rem 2.2rem; }
 .hero h1 { font-size:clamp(2.25rem,9vw,3.4rem); line-height:1.16; }
 .hero h1 em { white-space:normal; }
 .hero__lead { max-width:34rem; }
 .hero__actions { display:grid; grid-template-columns:1fr; }
 .hero__actions .btn { width:100%; justify-content:center; }
 .nav__actions .nav-account { display:none; }
 .map-destination-list { grid-template-columns:1fr; }
 .planner-actions { display:flex; flex-wrap:wrap; }
 .planner-actions .btn { flex:1 1 42%; }
}
@media (prefers-reduced-motion:reduce) {
 *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
@media print { .safety-strip { break-inside:avoid; } }

.slot__safety { margin-top:.25rem; padding:.35rem .5rem; border-radius:8px; background:#fff4dd; color:#75431b; font-size:.78rem; line-height:1.55; }
