/* جولة - shared design system: tokens, type, glass, motion, header/footer, buttons, forms, cards */
:root {
  /* The logo's colours (public/img/brand): teal #21776c, light teal #45988c, lime #69c52f, grey #585a5c.
     "green" = the teal family (surfaces, headings), "gold" = the lime family (actions, highlights). */
  --brand-teal: #21776c;
  --brand-teal-light: #45988c;
  --brand-lime: #69c52f;
  --brand-grey: #585a5c;
  --green-950: #04201c;
  --green-900: #082d28;
  --green-800: #0e403a;
  --green-700: #165c53;
  --green-500: #21776c;
  --green-400: #45988c;
  --green-100: #e0f0ec;
  --gold-600: #3a7d10; /* lime darkened for text and icons on light backgrounds (5:1) */
  --gold-500: #69c52f;
  --gold-300: #b4e68d;
  --gold-100: #ecf8e2;
  --sand-50: #f5f8f6;
  --sand-100: #e8f0ed;
  --sand-200: #d9e5e1;
  --ink: #142320;
  --muted: #45524f; /* 7:1 on the light background: readable for older eyes */
  --line: #d5e1dc;
  --danger: #a8352c;
  --danger-bg: #fbecea;
  --ok: #21776c;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(8, 45, 40, 0.05), 0 10px 30px -8px rgba(8, 45, 40, 0.12);
  --shadow-lg: 0 30px 70px -18px rgba(4, 32, 28, 0.35);
  --max: 1200px;
  --display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* glass */
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-line: rgba(255, 255, 255, 0.7);
  --glass-dark: rgba(8, 46, 41, 0.55);
  --glass-dark-line: rgba(180, 230, 141, 0.22);
  --blur: saturate(1.6) blur(18px);
  --sky: radial-gradient(55% 70% at 88% 8%, rgba(105, 197, 47, 0.26), transparent 62%), radial-gradient(45% 60% at 8% 95%, rgba(69, 152, 140, 0.5), transparent 62%), linear-gradient(180deg, #03201c 0%, var(--green-900) 100%);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
.site-header { view-transition-name: site-header; }

/* Type follows the visitor's language (the server sets <html lang dir>) */
html[dir="ltr"] { --body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif; }
html[lang="ur"] { --display: "Noto Naskh Arabic", serif; --body: "Noto Naskh Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif; }
html[lang="ur"] body { line-height: 2; }

* { box-sizing: border-box; }
/* 17px base for older readers; the "comfortable view" panel scales everything (all sizes are rem) */
html { font-size: 106.25%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.fs-1 { font-size: 118.75%; }
html.fs-2 { font-size: 131.25%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: break-word;
  color: var(--ink);
  background: var(--sand-50);
  text-align: start;
  overflow-x: clip;
}
/* Soft moving light behind every light page (transform only, fixed layer) */
body::before {
  content: ""; position: fixed; inset: -25%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(32% 30% at 18% 22%, rgba(180, 230, 141, 0.45), transparent 70%),
    radial-gradient(30% 28% at 82% 18%, rgba(33, 119, 108, 0.14), transparent 70%),
    radial-gradient(36% 32% at 70% 82%, rgba(105, 197, 47, 0.22), transparent 70%),
    radial-gradient(30% 30% at 15% 85%, rgba(33, 119, 108, 0.1), transparent 70%);
  animation: aurora 38s ease-in-out infinite alternate;
}
@keyframes aurora { 50% { transform: translate3d(3%, -2%, 0) rotate(4deg) scale(1.05); } 100% { transform: translate3d(-3%, 2%, 0) rotate(-3deg) scale(1.02); } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold-300); color: var(--green-950); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type scale: Readex Pro (wide, large x-height) for headings, buttons, menu and prices; Plex for reading.
   Arabic is never letter-spaced (it breaks the joins). */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.35; margin: 0; letter-spacing: 0; text-wrap: balance; }
.display { font-size: clamp(2.15rem, 5.2vw, 4.1rem); font-weight: 700; line-height: 1.25; }
h2, .h2 { font-size: clamp(1.6rem, 3.1vw, 2.4rem); }
h3, .h3 { font-size: 1.27rem; line-height: 1.45; }
html[dir="ltr"] h1, html[dir="ltr"] h2, html[dir="ltr"] h3 { letter-spacing: -0.012em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: 1.0625rem; line-height: 1.9; color: var(--muted); max-width: 56ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 0.84rem; font-weight: 500; color: var(--green-500); }
.btn, .nav a, .price, .tool-btn { font-family: var(--display); }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.caption { font-size: 0.9rem; color: var(--muted); }
.sec-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 760px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 28px; height: 28px; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* Glass surfaces */
.glass { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow); }
.glass-dark { background: var(--glass-dark); border: 1px solid var(--glass-dark-line); color: #fff; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 50px -20px rgba(0, 0, 0, 0.5); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-strong); }
  .glass-dark { background: rgba(8, 46, 41, 0.92); }
}
.sky-sec { background: var(--sky); color: #fff; position: relative; isolation: isolate; }
.sky-sec::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/img/pattern.svg") 0 0 / 120px; opacity: 0.35; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }

/* Header: a dark floating glass bar with a thin gold edge, readable over light and dark sections */
.site-header { position: sticky; top: 0; z-index: 1000; padding: 10px 0; pointer-events: none; }
.site-header .wrap { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 14px; min-height: 68px; padding-inline: 16px 10px; border-radius: 999px; color: #f1f8f5; background: rgba(6, 40, 36, 0.76); border: 1px solid rgba(180, 230, 141, 0.38); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px -12px rgba(4, 32, 28, 0.45); transition: box-shadow 0.3s, background 0.3s; }
.site-header.is-scrolled .wrap { background: rgba(6, 40, 36, 0.84); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 40px -14px rgba(4, 32, 28, 0.55); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header .wrap { background: rgba(6, 40, 36, 0.95); } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 48px; }
/* The logo (public/img/brand): the compact lockup without "TRIP" in the header, where TRIP would be too small to read */
.brand { flex: none; border-radius: 14px; }
.brand:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 4px; }
.brand-logo { display: block; height: 46px; width: auto; aspect-ratio: 346.21 / 249.47; transition: transform 0.4s var(--spring); }
.brand:hover .brand-logo { transform: scale(1.05); }
.brand-sub { display: block; padding-inline-start: 10px; border-inline-start: 1px solid rgba(180, 230, 141, 0.4); font-family: var(--body); font-size: 0.78rem; font-weight: 600; line-height: 1.35; color: var(--gold-300); max-width: 7.5em; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; padding: 0 14px; border-radius: 999px; color: #f1f8f5; font-size: 0.9rem; font-weight: 500; transition: color 0.2s, background 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.12); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 30%; bottom: 6px; height: 2px; border-radius: 2px; background: var(--gold-300); }
.menu-btn { display: none; flex: none; place-items: center; width: 48px; height: 48px; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 999px; color: #fff; }
.menu-btn:hover { background: rgba(255, 255, 255, 0.12); }

/* Header tools: language and comfortable view */
.tools { display: flex; gap: 4px; }
.tool { position: relative; }
.tool-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; min-width: 48px; justify-content: center; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(180, 230, 141, 0.35); background: rgba(255, 255, 255, 0.06); color: #f1f8f5; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.tool-btn:hover, .tool-btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.16); border-color: var(--gold-300); }
.tool-btn .icon { color: var(--gold-300); }
.aa { display: inline-flex; align-items: baseline; gap: 1px; color: var(--gold-300); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.aa small { font-size: 0.75em; }
.tool-pop { position: absolute; top: calc(100% + 12px); inset-inline-end: 0; z-index: 10; width: min(320px, calc(100vw - 24px)); padding: 14px; display: grid; gap: 6px; border-radius: 20px; background: #fbfdfc; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: drop 0.2s var(--ease); }
.tool-pop[hidden] { display: none; }
.pop-title { font-weight: 700; color: var(--green-900); padding: 2px 6px 6px; font-size: 1rem; }
.langs a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 14px; text-decoration: none; font-size: 1.05rem; font-weight: 500; text-align: start; }
.langs a:hover { background: var(--sand-100); }
.langs a[aria-current="true"] { background: var(--green-100); color: var(--green-900); font-weight: 700; }
.langs a .icon { color: var(--green-700); }
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px; border-top: 1px solid var(--sand-100); font-weight: 600; }
.pref-row > span { display: grid; gap: 2px; }
.pref-row small { font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--sand-100); }
.seg button { display: grid; justify-items: center; min-width: 56px; min-height: 52px; padding: 4px 6px; border: 0; border-radius: 10px; background: none; cursor: pointer; line-height: 1.1; }
.seg button span { font-size: calc(1rem * var(--seg-k, 1)); font-weight: 700; }
.seg button small { font-size: 0.75rem; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--green-900); color: #fff; }
.seg button[aria-checked="true"] small { color: var(--gold-300); }
.switch { position: relative; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { flex: none; position: relative; width: 52px; height: 30px; border-radius: 999px; background: #8fa39d; transition: background 0.2s; }
.switch i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: inset-inline-start 0.2s var(--ease); }
.switch input:checked + i { background: var(--green-700); }
.switch input:checked + i::after { inset-inline-start: 25px; }
.switch input:focus-visible + i { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.link-btn { justify-self: center; min-height: 48px; padding: 0 14px; border: 0; background: none; color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 2000; padding: 8px 14px; border-radius: 999px; background: var(--green-900); color: #fff; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.25s, border-color 0.2s; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-gold { background: linear-gradient(180deg, #86d653, var(--gold-500)); color: var(--green-950); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 22px -6px rgba(105, 197, 47, 0.65); }
.btn-gold::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%); transform: translateX(120%); transition: transform 0.7s var(--ease); }
.btn-gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 30px -8px rgba(105, 197, 47, 0.8); transform: translateY(-2px); }
.btn-gold:hover::after { transform: translateX(-120%); }
.btn-green { background: linear-gradient(180deg, var(--green-700), var(--green-800)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px -8px rgba(8, 45, 40, 0.6); }
.btn-green:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 26px -8px rgba(8, 45, 40, 0.7); }
.btn-ghost { background: rgba(255, 255, 255, 0.55); border-color: var(--line); color: var(--green-900); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--gold-500); background: #fff; }
.btn-light { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-light:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(180, 230, 141, 0.6); }
.btn-sm { min-height: 48px; padding: 6px 18px; font-size: 0.92rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; }

/* One press feel for everything tappable: a slight sink, no grey flash on phones (focus stays visible) */
a, button, summary { -webkit-tap-highlight-color: transparent; }
.opt:active, .slot:active:not([disabled]), .date-chip:active, .chip:active, .s-slot:active, .zone-tab:active, .round:active:not([disabled]), .alt:active, .part a:active, .saved-item:active { transform: scale(0.98); transition-duration: 0.08s; }

/* The pinned booking bar (bookDock in common.js): phones and tablets only, where the header's button folds away */
.dock { display: none; }
@media (max-width: 1099px) {
  .dock { display: block; position: fixed; z-index: 60; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: 560px; margin-inline: auto; transform: translateY(calc(100% + 24px)); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.25s; }
  .dock.show { transform: none; opacity: 1; }
  .dock-in { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; padding-inline-start: 18px; border-radius: 22px; color: #fff; background: rgba(6, 40, 36, 0.9); border: 1px solid var(--glass-dark-line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: 0 18px 40px -12px rgba(3, 26, 23, 0.55); }
  .dock-txt { display: grid; min-width: 0; flex: 1; line-height: 1.35; }
  .dock-txt b { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dock-txt small { font-size: 0.86rem; color: rgba(255, 255, 255, 0.75); }
  .dock-txt small .num { color: var(--gold-300); font-weight: 700; }
  .dock .btn { flex: none; min-height: 50px; padding-inline: 20px; }
  body.has-dock .site-footer { padding-bottom: 96px; }
}
html.hc .dock-in { background: #03201c; border: 2px solid var(--gold-300); backdrop-filter: none; -webkit-backdrop-filter: none; }
@media print { .dock { display: none !important; } }

/* Cards: translucent, with a light that follows the pointer (--mx/--my set by fx.js) */
.card { background-color: rgba(255, 255, 255, 0.78); background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(105, 197, 47, 0.13), transparent 45%); border: 1px solid rgba(213, 225, 220, 0.85); border-radius: var(--radius); box-shadow: inset 0 1px 0 #fff, var(--shadow); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; background: var(--sand-100); color: var(--green-800); }
.badge.gold { background: var(--gold-100); color: #2c650b; }
.badge.green { background: var(--green-100); color: var(--green-700); }
.badge.red { background: var(--danger-bg); color: var(--danger); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #7fd94a; box-shadow: 0 0 0 0 rgba(127, 217, 74, 0.6); animation: ping 1.8s infinite; flex: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(127, 217, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 217, 74, 0); } }

/* Forms */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 1rem; color: var(--ink); }
.input { width: 100%; min-height: 54px; padding: 0 16px; font-size: max(16px, 1rem); color: #142320; border: 1.5px solid #b3c6bf; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.9); transition: border-color 0.2s, box-shadow 0.2s; }
.input:hover { border-color: var(--gold-300); }
.input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(105, 197, 47, 0.2); }
.input[dir="ltr"] { text-align: left; }
select.input { appearance: none; background: rgba(255, 255, 255, 0.9) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%235b6a62" stroke-width="2"><path d="m6 9 6 6 6-6"/></svg>') no-repeat left 16px center; padding-inline-end: 40px; font-weight: 600; color: #142320; }
[dir="ltr"] select.input { background-position: right 16px center; }
select.input option { color: #142320; background: #fff; font-weight: 600; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--danger-bg); color: var(--danger); font-weight: 500; }
.alert[hidden] { display: none; }
.alert.info { background: var(--gold-100); color: #2c650b; }

/* Booking journey: book -> pay -> ticket */
.flow { list-style: none; margin: 0 0 22px; padding: 6px; display: inline-flex; flex-wrap: wrap; gap: 4px; border-radius: 28px; font-size: 0.95rem; font-weight: 600; }
.flow li { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; color: var(--muted); }
.flow li b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.84rem; background: var(--sand-100); }
.flow li.done { color: var(--green-700); }
.flow li.done b { background: var(--green-500); color: #fff; }
.flow li[aria-current="step"] { background: var(--green-900); color: #fff; }
.flow li[aria-current="step"] b { background: var(--gold-500); color: var(--green-950); }

/* Footer */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--sky); color: rgba(255, 255, 255, 0.85); margin-top: 110px; padding: 64px 0 28px; }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-500), transparent); }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--gold-300); margin: 0 0 12px; font-size: 1rem; }
.site-footer a { color: rgba(255, 255, 255, 0.9); text-decoration: none; display: flex; align-items: center; min-height: 48px; transition: color 0.2s, transform 0.2s var(--ease); }
.site-footer a:hover { color: var(--gold-300); transform: translateX(-3px); }
[dir="ltr"] .site-footer a:hover { transform: translateX(3px); }
.site-footer .foot-brand { display: inline-flex; min-height: 0; }
.site-footer .foot-brand:hover { transform: none; }
.foot-logo { display: block; height: 110px; width: auto; aspect-ratio: 346.21 / 270.22; }
.foot-about { margin-top: 14px; max-width: 40ch; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 40px; padding-top: 20px; font-size: 0.92rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; font-size: 0.88rem; color: var(--gold-300); }
.foot-route i { width: 18px; height: 1px; background: rgba(180, 230, 141, 0.5); }

.pattern-bg { background-color: var(--green-900); background-image: url("/img/pattern.svg"); background-size: 120px; }
.skeleton { background: linear-gradient(90deg, var(--sand-100), #fff, var(--sand-100)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); min-height: 80px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Header links stay on one line in every language; it folds into the menu before it gets crowded */
.nav a, .site-header .btn, .tool-btn { white-space: nowrap; }
@media (max-width: 1360px) { .tool-label { display: none; } .tool-btn { padding: 0; } }
@media (max-width: 1600px) { html.fs-1 .tool-label, html.fs-2 .tool-label { display: none; } html.fs-1 .tool-btn, html.fs-2 .tool-btn { padding: 0; } }
@media (max-width: 1440px) { html.fs-2 .site-header .btn { display: none; } }
@media (max-width: 1100px) {
  .site-header .wrap { gap: 6px; padding-inline: 10px 6px; }
  .nav { display: none; position: absolute; inset-inline: 0; top: calc(100% + 8px); flex-direction: column; padding: 10px; border-radius: 22px; background: rgba(6, 40, 36, 0.96); border: 1px solid rgba(180, 230, 141, 0.35); box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; animation: drop 0.25s var(--ease); }
  .nav a { min-height: 54px; padding: 0 18px; font-size: 1.05rem; }
  .tools { margin-inline-start: auto; }
  .menu-btn { display: grid; }
  .site-header .btn { display: none; }
  .tool-pop { position: fixed; top: 92px; inset-inline: 12px; width: auto; max-height: calc(100dvh - 110px); overflow: auto; }
}
@media (max-width: 860px) {
  .site-footer .grid { grid-template-columns: 1fr; }
  .foot-logo { height: 96px; }
  /* Three equal steps, number above the word, never split over two rows */
  .flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-radius: 22px; }
  .flow li { flex-direction: column; justify-content: center; gap: 4px; padding: 8px 4px; border-radius: 16px; text-align: center; line-height: 1.3; }
}
@media (max-width: 420px) { .brand-sub { display: none; } .brand-logo { height: 42px; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* Tour cards (home and the tours guide) */
.tour-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tour-card { overflow: hidden; display: flex; flex-direction: column; transition: transform 0.35s var(--ease), box-shadow 0.35s; transform-style: preserve-3d; will-change: transform; }
.tour-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.tour-card[hidden] { display: none; }
.tour-art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.tour-art .scene, .tour-art .photo { width: 100%; height: 100%; transition: transform 0.8s var(--ease); }
.tour-card:hover .tour-art .scene, .tour-card:hover .tour-art .photo { transform: scale(1.06); }
/* Real photos: fill their frame without distortion; a sand tone shows while they load */
.photo { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--sand-200); }
html.still .photo { animation: none !important; transition: none !important; }
.tour-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 32, 28, 0.35)); }
.tour-body { padding: 18px; display: grid; gap: 10px; flex: 1; align-content: start; }
.tour-body .badge { justify-self: start; }
.tour-body h3 a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; background: linear-gradient(var(--gold-500), var(--gold-500)) no-repeat 100% 100% / 0 2px; transition: background-size 0.35s var(--ease); }
.tour-body h3 a:hover { background-size: 100% 2px; }
.tour-body > p { color: var(--muted); font-size: 1rem; }
.tour-meta { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; font-size: 0.93rem; color: var(--green-800); }
.tour-meta li:nth-child(n + 5) { grid-column: 1 / -1; }
.tour-meta li { display: flex; align-items: center; gap: 6px; }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--sand-100); }
.price { font-weight: 600; font-size: 1.15rem; color: var(--green-900); }
.price small { font-weight: 400; font-size: 0.87rem; color: var(--muted); }
@media (max-width: 1080px) { .tour-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tour-cards { grid-template-columns: 1fr; } }

/* Scroll-linked rise: CSS only, never below 25% opacity, and only where supported */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec-head, .tour-card, .zone, .how-steps li, .care-list li, .faq details, .part, .hl, .facts li, .step, .station, .rise,
    .place, .t-sec, .stops li, .includes li, .saved-item, .price-list li, .credit {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}
/* Light: the text is readable from the moment it enters the screen */
@keyframes rise { from { opacity: 0.55; translate: 0 24px; scale: 0.985; } to { opacity: 1; translate: 0 0; scale: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
/* "Motion off" from the comfortable-view panel: the same as the system setting */
html.still { scroll-behavior: auto; }
html.still *, html.still *::before, html.still *::after { animation: none !important; transition: none !important; }
html.still .tour-card, html.still [data-tilt] { transform: none !important; }
html.still ::view-transition-old(root), html.still ::view-transition-new(root) { animation: none !important; }

/* High contrast: solid surfaces, darker text and borders, underlined links */
html.hc { --muted: #1f2d2a; --line: #4f5d58; --glass: #fff; --glass-strong: #fff; --glass-dark: #03201c; }
html.hc body { color: #000; background: #fff; }
html.hc body::before { display: none; }
html.hc .card, html.hc .glass { background: #fff !important; border: 2px solid #1f2d2a; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
html.hc .glass-dark, html.hc .site-header .wrap { background: #03201c !important; border: 2px solid var(--gold-300); backdrop-filter: none; -webkit-backdrop-filter: none; }
html.hc .light, html.hc .sky-sec .lead, html.hc .site-footer, html.hc .site-footer a { color: #fff !important; }
html.hc .sky-sec { background: #03201c; }
html.hc .sky-sec::before { display: none; }
html.hc main a:not(.btn):not(.tour-art), html.hc .site-footer a { text-decoration: underline; text-underline-offset: 3px; }
html.hc .input { border: 2px solid #1f2d2a; background: #fff; }
html.hc .btn-ghost { border: 2px solid var(--green-900); background: #fff; }
html.hc .btn-gold { background: #8fd65a; box-shadow: none; border: 2px solid #173a05; }
html.hc .badge { border: 1px solid currentColor; }
html.hc .eyebrow { color: #2c650b; }
html.hc .sky-sec .eyebrow, html.hc .eyebrow.light { color: #b9ea93; }
html.hc :focus-visible { outline: 4px solid #000; box-shadow: 0 0 0 6px #b9ea93; }
/* First-visit language window (common.js langWelcome): dark sky card, one button per language in its own script */
html.lw-open { overflow: hidden; }
.lw { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 18px; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(3, 26, 23, 0.6); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); animation: lw-fade 0.3s var(--ease) both; }
.lw.out { animation: lw-out 0.24s var(--ease) both; pointer-events: none; }
.lw-card { position: relative; isolation: isolate; width: min(100%, 560px); padding: 30px 26px 24px; border-radius: 28px; overflow: hidden; text-align: center; color: #fff;
  background: var(--sky); border: 1px solid var(--glass-dark-line); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08); animation: lw-pop 0.5s var(--spring) both; }
.lw-card::before { content: ""; position: absolute; z-index: -1; inset: -40% 20% auto; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, rgba(105, 197, 47, 0.28), transparent); pointer-events: none; }
.lw-logo { width: auto; height: 76px; margin: 0 auto 12px; }
.lw-hello { font-family: var(--display); font-size: 0.95rem; font-weight: 500; color: var(--gold-300); }
.lw-t { margin-top: 2px; font-size: clamp(1.5rem, 4.6vw, 2rem); color: #fff; }
.lw-others { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; max-width: 440px; margin: 10px auto 22px; font-size: 0.8rem; color: rgba(225, 240, 235, 0.7); }
.lw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lw-btn { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 12px 14px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06);
  color: #fff; font: inherit; text-align: start; cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
  animation: lw-rise 0.45s var(--ease) both; animation-delay: calc(90ms + var(--i, 0) * 45ms); }
.lw-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(180, 230, 141, 0.55); transform: translateY(-2px); }
.lw-btn:active { transform: scale(0.98); }
.lw-btn:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; }
.lw-btn[aria-current] { background: linear-gradient(180deg, #86d653, var(--gold-500)); border-color: transparent; color: var(--green-950); box-shadow: 0 10px 26px -10px rgba(105, 197, 47, 0.8); }
.lw-btn.busy { opacity: 0.7; cursor: progress; }
.lw-code { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; font-family: var(--display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; direction: ltr;
  background: rgba(255, 255, 255, 0.1); color: var(--gold-300); }
.lw-btn[aria-current] .lw-code { background: rgba(4, 32, 28, 0.14); color: var(--green-950); }
.lw-txt { display: grid; min-width: 0; line-height: 1.35; }
.lw-txt b { font-family: var(--display); font-size: 1.06rem; font-weight: 600; }
.lw-txt small { font-size: 0.8rem; opacity: 0.8; }
.lw-btn .icon { margin-inline-start: auto; }
@keyframes lw-fade { from { opacity: 0; } }
@keyframes lw-out { to { opacity: 0; } }
@keyframes lw-pop { from { opacity: 0; transform: translateY(18px) scale(0.96); } }
@keyframes lw-rise { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 400px) { .lw-card { padding: 26px 16px 18px; } .lw-grid { grid-template-columns: 1fr; gap: 8px; } .lw-btn { min-height: 62px; } .lw-logo { height: 64px; } }
@media (max-height: 640px) { .lw { place-items: start center; } }
@media (prefers-reduced-motion: reduce) { .lw, .lw-card, .lw-btn { animation: none; } }
html.hc .lw-card { background: #03231f; }
html.hc .lw-btn { border-color: rgba(255, 255, 255, 0.6); }
@media print { .lw { display: none !important; } }

/* ---- Interaction layer (ui.js, forms.js): every press, wait and answer is felt ---- */
/* Buttons at work, then done */
.btn.busy, .langs a.busy { cursor: progress; }
.btn.busy { opacity: 0.9; }
.btn.busy::before, .langs a.busy::after { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin 0.8s linear infinite; }
.btn.is-done, .btn.is-done[disabled] { opacity: 1; color: #fff; background: var(--ok); border-color: var(--ok); }
.btn.is-done .icon { animation: pop 0.35s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { scale: 0.4; opacity: 0; } 60% { scale: 1.2; } }

/* Press ripple from the point touched */
.rpl { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.rpl i { position: absolute; border-radius: 50%; background: currentColor; opacity: 0.2; transform: scale(0); animation: rpl 0.6s var(--ease) forwards; }
@keyframes rpl { to { transform: scale(1); opacity: 0; } }
.tour-card:active, .saved-item:active, .place:active, .part a:active, .s-slot:active { scale: 0.985; transition: scale 0.15s; }

/* Short notes at the bottom (above the phone booking bar) */
.toasts { position: fixed; z-index: 1800; inset-inline: 0; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 8px; padding-inline: 12px; pointer-events: none; }
@media (max-width: 1099px) { body.has-dock .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: min(540px, 100%); padding-block: 8px; padding-inline: 16px 6px; border-radius: 18px; color: #f1f8f5; background: rgba(6, 40, 36, 0.95); border: 1px solid rgba(180, 230, 141, 0.4); box-shadow: var(--shadow-lg); font-weight: 500; line-height: 1.5; animation: toast-in 0.28s var(--ease); }
.toast > .icon { flex: none; color: var(--gold-300); }
.toast > span { flex: 1; padding-block: 4px; }
.toast.err { background: #7d241d; border-color: rgba(255, 255, 255, 0.25); }
.toast.err > .icon { color: #ffd2cc; }
.toast-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; opacity: 0.8; transition: background 0.2s, opacity 0.2s; }
.toast-x:hover { opacity: 1; background: rgba(255, 255, 255, 0.14); }
.toast.out { animation: toast-out 0.2s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* A bar at the very top while the next page opens */
.navline { position: fixed; z-index: 2100; top: 0; inset-inline: 0; height: 3px; background: linear-gradient(90deg, var(--gold-300), var(--gold-500)); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; }
[dir="rtl"] .navline { transform-origin: right; }
html.nav-going .navline { opacity: 1; animation: navline 2.4s cubic-bezier(0.1, 0.7, 0.2, 1) forwards; }
@keyframes navline { from { transform: scaleX(0.06); } to { transform: scaleX(0.88); } }

/* Reading progress inside the header once the page is scrolled */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header .wrap::after { content: ""; position: absolute; inset-inline: 32px; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold-300), var(--gold-500)); transform-origin: left; opacity: 0; transition: opacity 0.3s; pointer-events: none; animation: read-line linear both; animation-timeline: scroll(root); }
    [dir="rtl"] .site-header .wrap::after { transform-origin: right; }
    .site-header.is-scrolled .wrap::after { opacity: 0.9; }
  }
}
@keyframes read-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Phone menu: links arrive one after another, the button turns into a close mark */
@media (max-width: 1100px) {
  .nav.open a { animation: nav-in 0.32s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 40ms); }
  .menu-btn.turned .icon { animation: icon-turn 0.25s var(--ease); }
}
@keyframes nav-in { from { opacity: 0; translate: 0 -6px; } }
@keyframes icon-turn { from { opacity: 0; rotate: -90deg; scale: 0.6; } }

/* Fields answer while typing: a tick when right, a short reason when wrong */
.field.ok .input { border-color: var(--ok); padding-inline-end: 44px; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2321776c" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>'); background-repeat: no-repeat; background-size: 20px; background-position: right 14px center; }
.field.ok .input:dir(rtl) { background-position: left 14px center; }
.field.bad .input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(168, 53, 44, 0.12); }
.field-msg { display: flex; align-items: flex-start; gap: 6px; color: var(--danger); font-size: 0.92rem; font-weight: 500; line-height: 1.5; animation: msg-in 0.2s var(--ease); }
.field-msg .icon { flex: none; margin-top: 3px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(-4px); } }

/* One-shot answers: a refused form shakes, a changed number bumps, fresh lists slide in */
.shake { animation: jolt 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); animation-timeline: auto; }
@keyframes jolt { 15%, 85% { translate: -2px 0; } 30%, 70% { translate: 4px 0; } 45% { translate: -6px 0; } 55% { translate: 6px 0; } }
.bump { display: inline-block; animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { scale: 1.14; color: var(--gold-500); } }
.swap-in > * { animation: swap 0.4s var(--ease) both; animation-delay: calc(var(--n, 0) * 45ms); animation-timeline: auto; }
@keyframes swap { from { opacity: 0; translate: 0 10px; } }
.flash { animation: flash-ok 0.7s var(--ease); }
@keyframes flash-ok { 30% { box-shadow: 0 0 0 4px rgba(105, 197, 47, 0.35); } }
::view-transition-group(*) { animation-duration: 0.32s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
@media print { .toasts, .navline, .lb { display: none !important; } }
@media print { .site-header, .site-footer, .no-print { display: none !important; } body { background: #fff; } body::before { display: none; } .card { background: #fff; box-shadow: none; } }
