/* =========================================================================
   MAWJ — موج | Visual identity: water & motion
   1. Tokens  2. Base  3. Utilities  4. Nav  5. Hero  6. Home  7. Footer
   8. Page head  9. Experiences  10. Detail  11. Booking  12. Motion  13. RWD
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* brand palette */
  --ocean-950: #02121f;
  --ocean-900: #04263f;
  --ocean-800: #073b5b;
  --ocean-700: #0a4f74;
  --turq-600: #0d8f8a;
  --turq-500: #12ada6;
  --turq-400: #2fd3c6;
  --turq-300: #7ceade;
  --foam: #f7fbfc;
  --sand: #e9dcc6;
  --sand-deep: #d9c39a;
  --sun: #f0a868;
  --star: #e9a23b;
  --danger: #d9534f;

  /* semantic (light) */
  --bg: #f6fafb;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef6f8;
  --sand-bg: #f0e7d5;
  --text: #05273c;
  --text-2: #4d6d81;
  --accent: #0f8f8a;
  --accent-strong: #0a6f6c;
  --accent-soft: rgba(18, 173, 166, 0.12);
  --accent-contrast: #03222b;
  --line: rgba(5, 39, 60, 0.14);
  --line-strong: rgba(5, 39, 60, 0.26);
  --notch-bg: var(--bg);
  --focus: #0a6f6c;
  --hero-overlay: linear-gradient(180deg, rgba(2, 18, 31, 0.72) 0%, rgba(2, 18, 31, 0.35) 42%, rgba(2, 18, 31, 0.78) 100%);
  --shadow-1: 0 1px 2px rgba(5, 39, 60, 0.06), 0 8px 24px -14px rgba(5, 39, 60, 0.35);
  --shadow-2: 0 2px 6px rgba(5, 39, 60, 0.07), 0 26px 48px -26px rgba(5, 39, 60, 0.45);
  --glass: rgba(255, 255, 255, 0.78);

  /* geometry */
  --nav-h: 74px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
  --font-ar: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-en: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-num: "Outfit", "Segoe UI", system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #04121f;
  --bg-2: #061a2a;
  --surface: #082538;
  --surface-2: #0b3049;
  --sand-bg: #0a2337;
  --text: #e9f5f9;
  --text-2: #9fbfd0;
  --accent: #2fd3c6;
  --accent-strong: #6ce9de;
  --accent-soft: rgba(47, 211, 198, 0.14);
  --accent-contrast: #03212a;
  --line: rgba(233, 245, 249, 0.15);
  --line-strong: rgba(233, 245, 249, 0.3);
  --notch-bg: var(--bg);
  --focus: #7ceade;
  --hero-overlay: linear-gradient(180deg, rgba(2, 12, 22, 0.82) 0%, rgba(2, 12, 22, 0.45) 42%, rgba(2, 12, 22, 0.86) 100%);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 26px -16px rgba(0, 0, 0, 0.8);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.45), 0 30px 54px -28px rgba(0, 0, 0, 0.9);
  --glass: rgba(6, 26, 42, 0.76);
}

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

* { margin: 0; }

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

body {
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16.5px;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

html[lang="en"] body { font-family: var(--font-en); line-height: 1.6; }

body:not([data-page="home"]) main { padding-top: var(--nav-h); }
body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

[hidden] { display: none !important; }

.flip { transition: transform 0.25s var(--ease); }
[dir="rtl"] .flip { transform: scaleX(-1); }

h1, h2, h3, h4 {
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

::selection { background: var(--turq-400); color: #04263f; }

.skip-link {
  position: fixed;
  top: -100px;
  inset-inline-start: 16px;
  z-index: 200;
  background: var(--surface);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  box-shadow: var(--shadow-2);
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 3. Utilities ------------------------------------------------- */
.container {
  width: min(1180px, 100% - 2.4rem);
  margin-inline: auto;
}
.container--wide { width: min(1320px, 100% - 2.4rem); }

.section {
  position: relative;
  padding-block: clamp(3.4rem, 7vw, 6rem);
}
.section--tight { padding-block: clamp(2.6rem, 5vw, 4.4rem); }
.section--sand { background: var(--sand-bg); }
.section--bg2 { background: var(--bg-2); }

.section--curve {
  border-start-start-radius: 55% 4.5vw;
  border-start-end-radius: 45% 4vw;
  margin-top: -3vw;
  padding-top: calc(clamp(3.4rem, 7vw, 6rem) + 3vw);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
html[lang="ar"] .eyebrow { letter-spacing: 0.04em; }
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--turq-400), transparent);
}

.section__head { max-width: 660px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__title {
  font-size: clamp(1.85rem, 4.4vw, 2.9rem);
  margin-top: 0.7rem;
}
.section__lead { color: var(--text-2); margin-top: 0.9rem; font-size: clamp(1rem, 1.6vw, 1.08rem); }

.muted { color: var(--text-2); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

.icon { width: 1.15em; height: 1.15em; flex: none; stroke-width: 1.8; }

/* buttons */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-contrast);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.92rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background-color 0.28s var(--ease), color 0.28s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.5) 48%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(6, 120, 116, 0.9); }
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--turq-400), var(--turq-500) 60%, var(--turq-600));
  color: #03222b;
  box-shadow: 0 14px 30px -18px rgba(13, 143, 138, 0.95);
}
.btn--dark { background: var(--ocean-900); color: var(--foam); }
[data-theme="dark"] .btn--dark { background: var(--foam); color: var(--ocean-950); }
.btn--light { background: var(--foam); color: var(--ocean-900); }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); box-shadow: none; }
.btn--on-dark {
  background: rgba(247, 251, 252, 0.12);
  border-color: rgba(247, 251, 252, 0.55);
  color: var(--foam);
  backdrop-filter: blur(6px);
}
.btn--on-dark:hover { background: rgba(247, 251, 252, 0.22); box-shadow: none; }
.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--accent-strong);
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.link-arrow:hover { gap: 0.8rem; color: var(--accent); }

/* soft pill / chips */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 700;
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text);
}
.rating svg { color: var(--star); fill: var(--star); width: 1em; height: 1em; }
.rating small { color: var(--text-2); font-weight: 500; }

/* decorative */
.blob {
  position: absolute;
  border-radius: 44% 56% 62% 38% / 48% 42% 58% 52%;
  background: radial-gradient(circle at 32% 30%, rgba(124, 234, 222, 0.5), rgba(18, 173, 166, 0.16) 62%, transparent 72%);
  filter: blur(2px);
  animation: blobMorph 16s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes blobMorph {
  0% { border-radius: 44% 56% 62% 38% / 48% 42% 58% 52%; transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { border-radius: 58% 42% 40% 60% / 40% 60% 40% 60%; transform: translate3d(0, -26px, 0) rotate(8deg); }
}

.wave-rule {
  height: 26px;
  width: 100%;
  background-repeat: repeat-x;
  background-size: 220px 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 26' fill='none'%3E%3Cpath d='M0 16c18-12 36-12 55 0s37 12 55 0 37-12 55 0 37 12 55 0' stroke='%232fd3c6' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: 0.75;
}

/* ---------- 4. Navbar ---------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid,
body:not([data-page="home"]) .nav {
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(1320px, 100% - 2rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: -0.02em;
}
.nav__brand-mark { width: 38px; height: 38px; flex: none; }
.nav__brand b { font-weight: 800; }
.nav__brand span { opacity: 0.62; font-weight: 500; font-size: 0.9rem; }
.nav__links {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-inline-start: auto;
}
.nav__link {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  color: inherit;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0.85rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--turq-400), var(--turq-500));
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--accent-strong); }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; margin-inline-start: auto; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 42px;
  height: 42px;
  padding-inline: 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--glass);
  color: inherit;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.86rem;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; }

.theme-btn .icon-moon { display: none; }
[data-theme="dark"] .theme-btn .icon-sun { display: none; }
[data-theme="dark"] .theme-btn .icon-moon { display: block; }

.nav__toggle { display: inline-flex; }
.nav__toggle .icon-close { display: none; }
body.menu-open .nav__toggle .icon-close { display: block; }
body.menu-open .nav__toggle .icon-menu { display: none; }

/* hero-over-nav state */
body[data-page="home"] .nav:not(.is-solid) { color: var(--foam); }
body[data-page="home"] .nav:not(.is-solid) .icon-btn {
  border-color: rgba(247, 251, 252, 0.45);
  background: rgba(6, 24, 40, 0.28);
}
body.menu-open .nav {
  color: var(--text);
  background: var(--bg);
  border-bottom-color: var(--line);
}
body.menu-open .nav .icon-btn {
  border-color: var(--line-strong);
  background: transparent;
}

/* mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding: calc(var(--nav-h) + 1.6rem) 1.4rem 2.4rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0.3s;
  overflow-y: auto;
}
body.menu-open .menu { opacity: 1; visibility: visible; transform: none; }
.menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  border-bottom: 1px dashed var(--line);
}
.menu__link[aria-current="page"] { color: var(--accent-strong); }
.menu__link span { font-size: 1.5rem; opacity: 0.35; }
.menu__note {
  margin-top: auto;
  padding-top: 1.6rem;
  color: var(--text-2);
  font-size: 0.9rem;
}
.menu__wave { margin-top: 1.4rem; }

/* ---------- 5. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  min-height: min(94svh, 860px);
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 3rem) clamp(6rem, 14vw, 9rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.hero__content { position: relative; z-index: 1; max-width: 720px; color: var(--foam); }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(247, 251, 252, 0.4);
  border-radius: 999px;
  background: rgba(4, 38, 63, 0.35);
  backdrop-filter: blur(6px);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.hero__eyebrow i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--turq-400);
  box-shadow: 0 0 0 5px rgba(47, 211, 198, 0.25);
}
.hero__title {
  font-size: clamp(2.7rem, 8vw, 5.1rem);
  font-weight: 800;
  line-height: 1.08;
  margin-top: 1.3rem;
  text-shadow: 0 12px 40px rgba(2, 18, 31, 0.55);
}
.hero__title em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.16em;
  height: 0.3em;
  background-repeat: repeat-x;
  background-size: 130px 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 18' fill='none'%3E%3Cpath d='M2 12c11-9 22-9 32 0s21 9 31 0 21-9 31 0 21 9 31 0' stroke='%232fd3c6' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: 0.95;
}
.hero__lead {
  font-size: clamp(1.05rem, 2.3vw, 1.32rem);
  color: rgba(247, 251, 252, 0.9);
  margin-top: 1.5rem;
  max-width: 33ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.1rem; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.2rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px dashed rgba(247, 251, 252, 0.35);
}
.hero__stat b {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
}
.hero__stat span { font-size: 0.88rem; color: rgba(247, 251, 252, 0.78); }
.hero__note {
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(247, 251, 252, 0.75);
}
.hero__note svg { width: 16px; height: 16px; }

.hero__waves {
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
  direction: ltr; /* the 200%-wide animated svg must be laid out from the left edge, otherwise RTL leaves the inline-end side uncovered while it drifts */
  overflow: hidden;
}
.hero__waves svg { width: 200%; height: clamp(56px, 9vw, 120px); animation: waveDrift 22s linear infinite; }
[data-theme="dark"] .hero__waves svg { opacity: 0.9; }
@keyframes waveDrift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero__scroll {
  position: absolute;
  bottom: clamp(4.5rem, 8vw, 6rem);
  inset-inline-end: clamp(1.2rem, 4vw, 3rem);
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(247, 251, 252, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}
.hero__scroll i {
  width: 1px; height: 52px;
  background: linear-gradient(180deg, transparent, var(--turq-400));
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- 6. Home ------------------------------------------------------ */
/* categories */
.cat-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
.cat-card {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  min-height: 240px;
  box-shadow: var(--shadow-1);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s var(--ease);
}
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 18, 31, 0.15) 0%, rgba(2, 18, 31, 0.82) 78%);
  transition: background-color 0.4s var(--ease);
}
.cat-card:hover img { transform: scale(1.07); }
.cat-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.4rem 1.35rem;
  color: var(--foam);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.cat-card__body h3 { font-size: 1.3rem; }
.cat-card__body p { font-size: 0.9rem; color: rgba(247, 251, 252, 0.82); margin-top: 0.2rem; }
.cat-card__arrow {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(247, 251, 252, 0.16);
  border: 1px solid rgba(247, 251, 252, 0.45);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.cat-card:hover .cat-card__arrow { background: var(--turq-400); color: #04263f; transform: rotate(-15deg); }
.cat-card__wave {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--turq-400), transparent);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}
.cat-card:hover .cat-card__wave { transform: scaleX(1); }

/* experience ticket cards */
.grid-cards {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}
.tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tcard:hover { transform: translateY(-7px); box-shadow: var(--shadow-2); border-color: rgba(18, 173, 166, 0.5); }
.tcard__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.tcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease);
}
.tcard:hover .tcard__media img { transform: scale(1.06); }
.tcard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.34) 48%, transparent 62%);
  transform: translateX(-140%);
  transition: transform 0.9s var(--ease);
}
.tcard:hover .tcard__media::after { transform: translateX(140%); }
.tcard__badge {
  position: absolute;
  top: 0.85rem;
  inset-inline-start: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.8rem;
  border-radius: 999px;
  background: rgba(4, 38, 63, 0.72);
  color: var(--foam);
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.tcard__badge svg { width: 15px; height: 15px; color: var(--turq-300); }
.tcard__flag {
  position: absolute;
  top: 0.85rem;
  inset-inline-end: 0.85rem;
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
  background: var(--sun);
  color: #3a1d05;
  font-size: 0.74rem;
  font-weight: 800;
}
.tcard__body { padding: 1.15rem 1.2rem 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.tcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }
.tcard__title { font-size: 1.18rem; }
.tcard__title a { transition: color 0.25s var(--ease); }
.tcard:hover .tcard__title a { color: var(--accent-strong); }
.tcard__desc {
  color: var(--text-2);
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.tcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-2);
  margin-top: auto;
}
.tcard__meta li { display: inline-flex; align-items: center; gap: 0.4rem; }
.tcard__meta svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

.tcard__cut {
  position: relative;
  height: 0;
  border-top: 2px dashed var(--line);
  margin-top: 0.4rem;
}
.tcard__cut::before,
.tcard__cut::after {
  content: "";
  position: absolute;
  top: -14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--notch-bg);
  border: 1px solid var(--line);
}
.tcard__cut::before { inset-inline-start: -14px; }
.tcard__cut::after { inset-inline-end: -14px; }

.tcard__stub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem 1.15rem;
}
.tcard__price b {
  font-family: var(--font-num);
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--text);
}
.tcard__price span { color: var(--text-2); font-size: 0.85rem; }
.tcard__price small { display: block; color: var(--text-2); font-size: 0.76rem; }
.tcard__barcode {
  width: 74px;
  height: 34px;
  opacity: 0.5;
  background-image: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 4px, var(--text) 4px 7px, transparent 7px 11px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* why mawj */
.feat-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
.feat {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.7rem 1.5rem;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.feat::after {
  content: "";
  position: absolute;
  inset-inline-end: -46px;
  top: -46px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(47, 211, 198, 0.32), transparent 68%);
  transition: transform 0.5s var(--ease);
}
.feat:hover::after { transform: scale(1.35); }
.feat__icon {
  width: 54px; height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 1rem;
  transition: transform 0.35s var(--ease);
}
.feat:hover .feat__icon { transform: translateY(-4px) rotate(-6deg); }
.feat__icon svg { width: 26px; height: 26px; }
.feat h3 { font-size: 1.14rem; margin-bottom: 0.45rem; }
.feat p { color: var(--text-2); font-size: 0.96rem; }

/* steps / route line */
.steps { position: relative; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.step { position: relative; padding-inline-start: 0; text-align: center; }
.step__num {
  width: 66px; height: 66px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px dashed var(--accent);
  color: var(--accent-strong);
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 1.3rem;
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.step:hover .step__num { transform: translateY(-5px); background: var(--accent); color: var(--accent-contrast); border-style: solid; }
.step h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.step p { color: var(--text-2); font-size: 0.95rem; }

/* CTA band */
.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 160% at 12% 0%, rgba(47, 211, 198, 0.28), transparent 55%),
    linear-gradient(140deg, var(--ocean-800), var(--ocean-950) 72%);
  color: var(--foam);
  border-radius: var(--r-xl);
  padding: clamp(2.4rem, 6vw, 4.2rem) clamp(1.4rem, 5vw, 4rem);
  isolation: isolate;
}
.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-items: flex-start;
}
.cta h2 { font-size: clamp(1.7rem, 4.2vw, 2.7rem); }
.cta p { color: rgba(247, 251, 252, 0.84); max-width: 52ch; margin-top: 0.7rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.cta__deco {
  position: absolute;
  inset-inline-end: -8%;
  bottom: -55%;
  width: min(520px, 70%);
  aspect-ratio: 1;
  border-radius: 46% 54% 61% 39% / 52% 44% 56% 48%;
  background: radial-gradient(circle at 34% 30%, rgba(124, 234, 222, 0.34), rgba(10, 79, 116, 0.1) 60%, transparent 72%);
  animation: blobMorph 18s ease-in-out infinite alternate;
  z-index: 0;
}

/* ---------- 7. Footer ---------------------------------------------------- */
.footer {
  position: relative;
  background: linear-gradient(180deg, var(--ocean-900), var(--ocean-950));
  color: rgba(247, 251, 252, 0.86);
  padding-block: clamp(3rem, 6vw, 4.6rem) 1.6rem;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 34px;
  background-repeat: repeat-x;
  background-size: 260px 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 34' fill='none'%3E%3Cpath d='M0 20c22-14 44-14 65 0s43 14 65 0 43-14 65 0 43 14 65 0' stroke='%230a4f74' stroke-width='6'/%3E%3C/svg%3E");
  opacity: 0.7;
}
.footer__grid {
  position: relative;
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1fr;
  padding-top: 1rem;
}
.footer__brand { display: flex; align-items: center; gap: 0.7rem; font-size: 1.3rem; font-weight: 800; color: var(--foam); }
.footer__brand svg { width: 40px; height: 40px; }
.footer__about { margin-top: 1rem; color: rgba(247, 251, 252, 0.72); font-size: 0.96rem; max-width: 40ch; }
.footer__wave { width: 150px; margin-top: 1.2rem; opacity: 0.8; }
.footer h4 {
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turq-300);
  margin-bottom: 1rem;
}
html[lang="ar"] .footer h4 { letter-spacing: 0.05em; }
.footer__links { display: grid; gap: 0.6rem; }
.footer__links a, .footer__links li {
  color: rgba(247, 251, 252, 0.78);
  font-size: 0.96rem;
  transition: color 0.25s var(--ease), padding-inline-start 0.25s var(--ease);
}
.footer__links a:hover { color: var(--turq-300); padding-inline-start: 6px; }
.footer__contact li { display: flex; gap: 0.6rem; align-items: center; }
.footer__contact svg { width: 17px; height: 17px; color: var(--turq-300); flex: none; }
.footer__bottom {
  position: relative;
  margin-top: 2.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(247, 251, 252, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(247, 251, 252, 0.6);
}
.training-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.85rem;
  border: 1px dashed rgba(247, 251, 252, 0.4);
  border-radius: 999px;
  color: rgba(247, 251, 252, 0.85);
  font-size: 0.82rem;
}
.training-note::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sun);
}

/* ---------- 8. Page head ------------------------------------------------- */
.page-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(2.6rem, 6vw, 4.4rem);
  background: linear-gradient(140deg, var(--ocean-800), var(--ocean-950) 75%);
  color: var(--foam);
}
.page-head__media { position: absolute; inset: 0; z-index: -2; }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.page-head__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(2, 18, 31, 0.92) 8%, rgba(2, 18, 31, 0.55) 62%, rgba(2, 18, 31, 0.8) 100%);
}
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: rgba(247, 251, 252, 0.75); }
.breadcrumb a:hover { color: var(--turq-300); }
.breadcrumb span { opacity: 0.5; }
.page-head h1 { font-size: clamp(2rem, 5.5vw, 3.3rem); margin-top: 0.9rem; }
.page-head p { color: rgba(247, 251, 252, 0.85); margin-top: 0.8rem; max-width: 58ch; }
.page-head__stats { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.6rem; font-size: 0.92rem; color: rgba(247, 251, 252, 0.8); }
.page-head__stats b { font-family: var(--font-num); color: var(--turq-300); }
.page-head--slim { padding-block: clamp(1.4rem, 3vw, 2.1rem); }
.page-head--slim .breadcrumb { font-size: 0.92rem; }

/* ---------- 9. Experiences listing --------------------------------------- */
.toolbar {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.1rem;
  box-shadow: var(--shadow-1);
  display: grid;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.toolbar__row { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search svg {
  position: absolute;
  inset-inline-start: 1rem;
  width: 19px; height: 19px;
  color: var(--text-2);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
html[dir="rtl"] .search input { padding: 0.85rem 2.9rem 0.85rem 1rem; }
.search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.chip svg { width: 16px; height: 16px; }
.chip:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 10px 20px -14px rgba(13, 143, 138, 0.9);
}
.select-wrap { position: relative; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.select-wrap label { font-size: 0.88rem; color: var(--text-2); font-weight: 600; }
.select-wrap select {
  flex: 1;
  min-width: 140px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.select-wrap select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.results-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.results-bar p { color: var(--text-2); font-size: 0.95rem; }
.results-bar b { color: var(--text); }

/* skeleton */
.sk {
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
  min-height: 380px;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -150% 0; } }

/* empty / not found states */
.state-box {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 6vw, 3.4rem) 1.4rem;
}
.state-box__icon {
  width: 84px; height: 84px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.state-box__icon svg { width: 40px; height: 40px; }
.state-box h2 { font-size: clamp(1.3rem, 3.4vw, 1.8rem); }
.state-box p { color: var(--text-2); margin-top: 0.6rem; max-width: 44ch; margin-inline: auto; }
.state-box .btn { margin-top: 1.4rem; }

/* ---------- 10. Experience detail ---------------------------------------- */
.detail__grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: start; }
.detail__main { min-width: 0; }
.detail__aside { min-width: 0; }

.gallery { display: grid; gap: 0.8rem; }
.gallery__main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  box-shadow: var(--shadow-1);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main .tcard__badge { top: 1rem; inset-inline-start: 1rem; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.gallery__thumb {
  position: relative;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  overflow: hidden;
  padding: 0;
  background: var(--surface-2);
  cursor: pointer;
  aspect-ratio: 16 / 10;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s var(--ease); }
.gallery__thumb:hover { transform: translateY(-3px); }
.gallery__thumb[aria-selected="true"] { border-color: var(--accent); }
.gallery__thumb[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: var(--turq-400);
}

.detail__head { margin-top: 1.6rem; }
.detail__head h1 { font-size: clamp(1.75rem, 4.6vw, 2.7rem); }
.detail__tags { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; margin-bottom: 0.9rem; }
.detail__lead { color: var(--text-2); margin-top: 1rem; font-size: 1.04rem; }

.info-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 1.6rem;
}
.info-chip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.info-chip:hover { transform: translateY(-3px); border-color: rgba(18, 173, 166, 0.55); }
.info-chip__icon {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.info-chip__icon svg { width: 21px; height: 21px; }
.info-chip span { display: block; font-size: 0.8rem; color: var(--text-2); }
.info-chip b { display: block; font-size: 0.98rem; font-weight: 700; }

.block-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  margin-top: 1.4rem;
}
.block-panel h2 { font-size: 1.22rem; display: flex; align-items: center; gap: 0.6rem; }
.block-panel h2 svg { width: 22px; height: 22px; color: var(--accent); }
.list-check { display: grid; gap: 0.7rem; margin-top: 1.1rem; }
.list-check li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-2); }
.list-check li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d8f8a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
[data-theme="dark"] .list-check li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232fd3c6' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.list-plain { display: grid; gap: 0.7rem; margin-top: 1.1rem; }
.list-plain li { display: flex; gap: 0.7rem; color: var(--text-2); }
.list-plain li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  margin-top: 0.65em;
  border-radius: 50% 50% 50% 0;
  background: var(--sun);
  transform: rotate(-45deg);
}

.aside-card {
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.3rem, 3vw, 1.7rem);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.aside-card__ribbon {
  position: relative;
  margin: -0.4rem -0.4rem 1.1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--ocean-800), var(--ocean-900));
  color: var(--foam);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.aside-card__ribbon .price b { font-family: var(--font-num); font-size: 1.9rem; font-weight: 700; }
.aside-card__ribbon .price span { font-size: 0.85rem; opacity: 0.8; }
.aside-list { display: grid; gap: 0.75rem; margin-bottom: 1.2rem; }
.aside-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; }
.aside-list li span { color: var(--text-2); }
.aside-list li b { font-weight: 700; text-align: end; }
.aside-note { margin-top: 0.9rem; font-size: 0.84rem; color: var(--text-2); text-align: center; }

.similar { margin-top: clamp(2.6rem, 6vw, 4rem); }

/* ---------- 11. Booking -------------------------------------------------- */
.booking__grid { display: grid; gap: clamp(1.5rem, 4vw, 2.4rem); grid-template-columns: 1fr; align-items: start; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.3rem, 4vw, 2.2rem);
  box-shadow: var(--shadow-1);
}
.form-card h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 0.6rem; }
.form-card h2 svg { width: 22px; height: 22px; color: var(--accent); }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-top: 1.4rem; }
.form-grid--2 { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }

.field { display: grid; gap: 0.45rem; min-width: 0; }
.field__label { font-size: 0.92rem; font-weight: 700; }
.field__label span { color: var(--danger); }
.field__hint { font-size: 0.8rem; color: var(--text-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(217, 83, 79, 0.14); }
.field__error {
  font-size: 0.82rem;
  color: var(--danger);
  font-weight: 600;
  min-height: 1.1em;
  display: none;
}
.field.is-invalid .field__error { display: block; }

.stepper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0.35rem;
}
.stepper:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.stepper input {
  border: 0;
  background: transparent;
  text-align: center;
  padding: 0.5rem 0.2rem;
  -moz-appearance: textfield;
  appearance: textfield;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 1.05rem;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; box-shadow: none; }
.stepper button {
  width: 42px; height: 42px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.stepper button:hover { background: var(--accent); color: var(--accent-contrast); transform: translateY(-2px); }

.form-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 1.3rem;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 0.88rem;
  color: var(--text-2);
}
.form-note svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 3px; }

.submit-row { margin-top: 1.4rem; display: grid; gap: 0.8rem; }
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(3, 34, 43, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* summary */
.summary-card {
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.summary-card__head {
  position: relative;
  padding: 1.3rem 1.4rem;
  background: linear-gradient(140deg, var(--ocean-800), var(--ocean-950));
  color: var(--foam);
  overflow: hidden;
  isolation: isolate;
}
.summary-card__head::after {
  content: "";
  position: absolute;
  inset-inline: -20%;
  bottom: -68%;
  height: 130%;
  border-radius: 46% 54% 60% 40% / 60% 45% 55% 40%;
  background: radial-gradient(circle at 40% 30%, rgba(47, 211, 198, 0.4), transparent 66%);
  z-index: -1;
}
.summary-card__head h2 { font-size: 1.12rem; display: flex; align-items: center; gap: 0.55rem; }
.summary-card__head h2 svg { width: 20px; height: 20px; color: var(--turq-300); }
.summary-card__head p { font-size: 0.86rem; color: rgba(247, 251, 252, 0.78); margin-top: 0.3rem; }
.summary-card__body { padding: 1.2rem 1.4rem 1.4rem; }
.summary__exp {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}
.summary__exp img {
  width: 66px; height: 52px;
  object-fit: cover;
  border-radius: 12px;
  flex: none;
  background: var(--surface-2);
}
.summary__exp b { display: block; font-size: 0.98rem; line-height: 1.4; }
.summary__exp span { font-size: 0.82rem; color: var(--text-2); }
.summary__rows { display: grid; gap: 0.7rem; padding-block: 1rem; border-bottom: 1px dashed var(--line); }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.94rem; }
.summary__row span { color: var(--text-2); display: inline-flex; align-items: center; gap: 0.45rem; }
.summary__row span svg { width: 16px; height: 16px; color: var(--accent); }
.summary__row b { font-weight: 700; text-align: end; }
.summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
}
.summary__total span { font-weight: 700; }
.summary__total b {
  font-family: var(--font-num);
  font-size: clamp(1.7rem, 5vw, 2.15rem);
  font-weight: 700;
  color: var(--accent-strong);
  transition: transform 0.3s var(--ease);
}
.summary__total b.pulse { transform: scale(1.09); }
.summary__hint { font-size: 0.82rem; color: var(--text-2); margin-top: 0.7rem; }

/* confirmation state */
.success-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 5vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  position: relative;
}
.success-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--turq-400), var(--turq-600), var(--turq-400));
}
.success-card__icon {
  width: 92px; height: 92px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.success-card__icon svg { width: 46px; height: 46px; }
.success-card__icon svg path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: drawCheck 0.7s 0.25s var(--ease) forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.success-card h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
.success-card > p { color: var(--text-2); margin-top: 0.7rem; max-width: 50ch; margin-inline: auto; }
.success-details {
  display: grid;
  gap: 0.8rem;
  margin: 1.7rem auto 0;
  max-width: 520px;
  text-align: start;
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 1.2rem 1.3rem;
}
.success-details .summary__total { border-top: 1px dashed var(--line); margin-top: 0.4rem; padding-top: 1rem; }
.success-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.7rem; }
.success-code {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--font-num);
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}

/* ---------- 12. Motion --------------------------------------------------- */
/* Hidden only when scripting is confirmed available (html.js is set by the
   head boot script), so content is never invisible without JavaScript. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- 13. Responsive ----------------------------------------------- */
@media (min-width: 560px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar__row { grid-template-columns: repeat(2, 1fr); }
  .form-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .hero__scroll { display: flex; }
}

@media (min-width: 760px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .step { padding-inline: 0.5rem; }
  .steps::before {
    content: "";
    position: absolute;
    top: 33px;
    inset-inline: 14%;
    border-top: 2px dashed var(--line-strong);
    z-index: -1;
  }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .cta__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta__inner > div:first-child { flex: 1; }
  .toolbar__row { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 940px) {
  .nav__links { display: flex; }
  .nav__links + .nav__actions { margin-inline-start: 0.6rem; }
  .nav__toggle { display: none; }
  .menu { display: none; }
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .feat-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-card { min-height: 320px; }
  .cat-card:nth-child(2) { margin-top: 26px; }
  .cat-card:nth-child(4) { margin-top: 26px; }
  .detail__grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .booking__grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .booking__grid--has-aside .form-card { grid-row: 1; }
}

@media (min-width: 1200px) {
  body { font-size: 17px; }
}

@media (max-width: 380px) {
  body { font-size: 15.5px; }
  .container { width: min(1180px, 100% - 1.6rem); }
  .hero__actions .btn { width: 100%; }
  .tcard__stub { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
}

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

@media print {
  .nav, .menu, .cta, .footer { display: none !important; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
