/* Ahmed Saafan Trips — Dahab
   Deep Red Sea sections alternate with light salt/sand ones, joined by torn-paper edges
   (the brochure's ripped-photo look). One warm "sun" colour is kept for booking actions. */
:root {
  --abyss: #030F1C;       /* footer */
  --deep: #061A2E;        /* dark sections */
  --navy: #0E2A47;        /* brand, text on light */
  --reef: #2FC4BC;        /* turquoise on dark (8:1 on deep) */
  --reef-ink: #0B6E6C;    /* turquoise text on light (AA) */
  --sun: #FFB547;         /* booking actions, navy text on it (8:1) */
  --salt: #F2F5F6;
  --sand: #EADBC0;
  --white: #FFFFFF;
  --granite: #7A4E5C;     /* Sinai rose granite */
  --ink-soft: #3C4F63;    /* secondary text on light */
  --mist: #B9C8D6;        /* secondary text on dark (9:1 on deep) */
  --line: #D3DDE4;
  --error: #B42318;
  --error-dark: #FF9C8F;

  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 72px; --s8: 112px;
  --r-card: 22px; --r-btn: 999px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 160ms; --t-med: 320ms;
  --z-dock: 40; --z-top: 50; --z-menu: 60;
  --shadow-card: 0 1px 0 rgba(14, 42, 71, .06), 0 20px 40px -28px rgba(14, 42, 71, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--salt); color: var(--navy); font: 400 1.0625rem/1.6 var(--f-body); overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 var(--s3); max-width: 62ch; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 800; line-height: .95; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--reef); outline-offset: 3px; border-radius: 6px; }
.section--salt :focus-visible, .section--sand :focus-visible { outline-color: var(--reef-ink); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--s3); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s5); } }

.skip { position: absolute; inset-inline-start: var(--s3); top: -60px; z-index: 100; background: var(--sun); color: var(--navy); padding: var(--s2) var(--s3); border-radius: 8px; font-weight: 600; }
.skip:focus { top: var(--s3); }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections + torn edges ---------- */
section { position: relative; }
.section--salt { background: var(--salt); color: var(--navy); }
.section--sand { background: var(--sand); color: var(--navy); }
.section--deep { background: var(--deep); color: var(--white); }
.torn {
  position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(18px, 3vw, 40px); z-index: 3;
  -webkit-mask: url("/media/torn.svg") center / 100% 100% no-repeat;
          mask: url("/media/torn.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.torn--salt { background: var(--salt); }
.torn--sand { background: var(--sand); }
.torn--deep { background: var(--deep); }

.sec-head { margin-bottom: var(--s6); }
.sec-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s4); }
.sec-title { font-size: clamp(2.6rem, 8vw, 4.75rem); font-weight: 900; margin-bottom: var(--s3); }
.sec-lede { font-size: 1.125rem; color: var(--ink-soft); margin: 0; }
.section--deep .sec-lede { color: var(--mist); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s4);
  border: 2px solid transparent; border-radius: var(--r-btn);
  font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  touch-action: manipulation;
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--sun { background: var(--sun); color: var(--navy); }
.btn--sun:hover { background: #FFC56E; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #163a60; }
.btn--glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); color: var(--white); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .2); border-color: var(--white); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn--block { width: 100%; }

/* ---------- Header (transparent over hero, solid after) ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: var(--z-top); color: var(--white); transition: background-color var(--t-med), box-shadow var(--t-med); padding-top: env(safe-area-inset-top); }
.top.is-solid { background: rgba(6, 26, 46, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.top__row { display: flex; align-items: center; gap: var(--s3); min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; min-height: 44px; }
.brand__mark { width: 36px; height: 36px; }
.brand__logo { width: 48px; height: 48px; flex: none; border-radius: 50%; }
.foot__logo { display: flex; align-items: center; gap: var(--s3); text-decoration: none; margin-bottom: var(--s3); }
.foot__logo img { width: 96px; height: 96px; flex: none; }
.brand__name { display: flex; flex-direction: column; font: 800 1.375rem/1 var(--f-display); letter-spacing: .01em; white-space: nowrap; }
@media (max-width: 400px) { .brand__name { font-size: 1.1875rem; } .brand__name small { display: none; } .brand__logo { width: 40px; height: 40px; } .top__row { gap: var(--s2); } }
/* Small phones: the bottom WhatsApp bar covers this, so free the room for the menu button. */
@media (max-width: 439px) { .top .btn--wa { display: none; } }
.brand__name small { font: 600 .75rem/1.2 var(--f-body); color: var(--reef); letter-spacing: .02em; margin-top: 3px; }
.top__nav { display: none; gap: var(--s4); }
.top__nav a { text-decoration: none; font-weight: 500; padding: var(--s2) 0; border-bottom: 2px solid transparent; transition: border-color var(--t-fast); }
.top__nav a:hover { border-bottom-color: var(--reef); }
.top__cta { display: flex; align-items: center; gap: var(--s2); }
.btn--wa span { display: none; }
.btn--wa { padding: 0 12px; }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: inherit; cursor: pointer; }
@media (min-width: 560px) { .btn--wa span { display: inline; } .btn--wa { padding: 0 18px; } }
@media (min-width: 960px) {
  .top__nav { display: flex; }
  .menu-btn { display: none; }
}
/* Mobile menu */
@media (max-width: 959px) {
  .top__nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; inset: 72px 0 auto; z-index: var(--z-menu);
    background: var(--deep); padding: var(--s2) var(--s3) var(--s4);
    box-shadow: 0 30px 40px -20px rgba(0,0,0,.5);
  }
  .top__nav.is-open a { font: 800 1.75rem/1 var(--f-display); padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
}

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); background: var(--deep); overflow: hidden; }
.media.media--hero { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.hero__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,26,46,.55) 0%, rgba(6,26,46,0) 22%),
    linear-gradient(0deg, rgba(6,26,46,.92) 0%, rgba(6,26,46,.55) 38%, rgba(6,26,46,0) 70%);
}
@media (max-width: 767px) {
  /* On phones the text covers most of the video, so the shade covers it too. */
  .hero__shade { background: linear-gradient(0deg, rgba(6,26,46,.94) 0%, rgba(6,26,46,.72) 55%, rgba(6,26,46,.45) 100%); }
}
.hero__content { position: relative; z-index: 2; padding-top: 120px; padding-bottom: clamp(72px, 12vh, 140px); }
.hero__where { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--reef); margin-bottom: var(--s3); }
.hero__where .ic { width: 18px; height: 18px; }
.hero__title { font-size: clamp(3.4rem, min(12vw, 13vh), 7.5rem); font-weight: 900; line-height: .86; margin-bottom: var(--s4); }
.hero__lede { font-size: clamp(1.0625rem, 2.2vw, 1.25rem); color: #DCE6EF; max-width: 46ch; margin-bottom: var(--s5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }
.hero__facts { list-style: none; margin: 0; padding: var(--s4) 0 0; display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); border-top: 1px solid rgba(255,255,255,.2); max-width: 640px; }
.hero__facts li { color: var(--mist); font-size: .9375rem; }
.hero__facts strong { display: block; font: 800 1.75rem/1 var(--f-display); color: var(--white); }
.media--hero .media__toggle { top: 88px; bottom: auto; inset-inline-end: var(--s3); }
@media (min-width: 768px) { .media--hero .media__toggle { inset-inline-end: var(--s5); } }

/* ---------- Media (all autoplay previews) ---------- */
.media { position: relative; overflow: hidden; background: var(--navy); isolation: isolate; }
.media video, .media__img { width: 100%; height: 100%; object-fit: cover; }
.media__img--bluehole { object-position: 50% 66%; } /* frame the hole and jetty, not the sky */
.media__toggle {
  position: absolute; inset-inline-end: 12px; bottom: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(6, 26, 46, .6); color: var(--white);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity var(--t-fast), background-color var(--t-fast);
}
.media__toggle:hover { background: rgba(6, 26, 46, .85); }
.media.has-video .media__toggle { opacity: 1; pointer-events: auto; }
.media.is-manual:not(.is-playing):not(.media--hero) .media__toggle { right: 50%; bottom: 50%; transform: translate(50%, 50%); width: 64px; height: 64px; }
.media.is-loading::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--reef), transparent) no-repeat; background-size: 50% 100%;
  animation: load 1.1s linear infinite;
}
@keyframes load { from { background-position: -50% 0; } to { background-position: 150% 0; } }

/* ---------- Trip cards ---------- */
.trips { padding: var(--s7) 0 calc(var(--s7) + 20px); }
.cards { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); }
.media--card { aspect-ratio: 1 / 1; } /* phone footage is vertical: square keeps more of it than 4:3 */
.badge {
  position: absolute; inset-inline-start: 12px; top: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-btn);
  background: rgba(6, 26, 46, .72); color: var(--white); font-size: .875rem; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.badge .ic { width: 16px; height: 16px; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: var(--s4); }
.card__title { font-size: 2.125rem; margin-bottom: var(--s2); }
.card__body > p { color: var(--ink-soft); font-size: 1rem; }
.card__actions { margin-top: auto; padding-top: var(--s2); }
.card__actions .btn { width: 100%; }

/* Route: real sequence → arrows between stops */
.route { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0 0 var(--s4); padding: 0; font-size: .875rem; font-weight: 600; color: var(--reef-ink); }
.route li:not(:last-child)::after { content: ""; display: inline-block; width: 18px; height: 2px; margin: 0 8px; vertical-align: middle; background: currentColor; opacity: .5; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--s4); padding: 0; }
.tags li { padding: 4px 12px; border-radius: var(--r-btn); background: var(--salt); font-size: .875rem; font-weight: 500; }

.card--custom { background: var(--navy); color: var(--white); position: relative; }
.card--custom::before {
  content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--deep) 0 46%, var(--reef) 47% 60%, transparent 61%); opacity: .5;
}
.card--custom .card__body { position: relative; justify-content: flex-end; min-height: 320px; }
.card--custom .card__body > p { color: var(--mist); }

/* ---------- Reels ---------- */
.reels { padding: var(--s7) 0 calc(var(--s7) + 20px); }
.reels__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 260px); gap: var(--s3);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px max(var(--s3), calc((100vw - 1240px) / 2 + var(--s5))) var(--s4);
  scroll-padding-inline: max(var(--s3), calc((100vw - 1240px) / 2 + var(--s5)));
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
@media (min-width: 768px) { .reels__track { padding-inline: max(var(--s5), calc((100vw - 1240px) / 2 + var(--s5))); scroll-padding-inline: max(var(--s5), calc((100vw - 1240px) / 2 + var(--s5))); } }
.reel {
  position: relative; aspect-ratio: 9 / 16; border: 0; padding: 0; cursor: pointer;
  border-radius: 18px; overflow: hidden; scroll-snap-align: start; background: var(--navy); color: var(--white);
  text-align: start; font: inherit;
}
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med) var(--ease-out); }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,15,28,.85), rgba(3,15,28,0) 45%); }
.reel:hover img { transform: scale(1.04); }
.reel__play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.reel__play .ic { width: 24px; height: 24px; fill: currentColor; stroke: none; margin-left: 3px; }
.reel__title { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; font: 800 1.5rem/1 var(--f-display); }
.reel:focus-visible { outline-offset: 4px; }

/* Under the water (top of the videos section) */
.underwater { display: grid; gap: var(--s5); align-items: center; margin-bottom: var(--s7); }
@media (min-width: 960px) { .underwater { grid-template-columns: 1.45fr 1fr; gap: var(--s7); } }
.media--underwater { aspect-ratio: 16 / 9; border-radius: var(--r-card); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.underwater .sec-lede { margin-bottom: var(--s4); }
.underwater__note { display: flex; gap: 10px; align-items: flex-start; color: var(--white); font-weight: 600; margin-bottom: var(--s5); }
.underwater__note .ic { flex: none; width: 24px; height: 24px; color: var(--reef); margin-top: 1px; }

/* Player dialog */
.player { padding: 0; border: 0; background: transparent; max-width: min(92vw, 460px); max-height: 92svh; overflow: visible; }
.player::backdrop { background: rgba(3, 15, 28, .88); }
.player__video { width: 100%; max-height: 86svh; aspect-ratio: 9 / 16; border-radius: 18px; background: var(--abyss); object-fit: contain; }
.player__close { position: absolute; inset-inline-end: 0; top: -56px; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.15); color: var(--white); cursor: pointer; }
.player__missing { position: absolute; inset: auto 0 45%; text-align: center; color: var(--white); margin: 0 auto; }
.player[open] { animation: pop var(--t-med) var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

/* ---------- Map ---------- */
.where { padding: var(--s7) 0 calc(var(--s7) + 20px); }
.where__grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 960px) { .where__grid { grid-template-columns: 1fr 1fr; gap: var(--s7); } }
.where .sec-lede { margin-bottom: var(--s5); }
.where__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.where__list a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px; text-decoration: none; font-weight: 600; transition: background-color var(--t-fast); }
.where__list a:hover, .where__list a.is-active { background: rgba(255,255,255,.6); }
.where__list small { margin-inline-start: auto; font-weight: 500; color: var(--granite); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot--sea { background: #1E8FB0; box-shadow: 0 0 0 3px rgba(30,143,176,.25); }
.dot--land { background: var(--granite); box-shadow: 0 0 0 3px rgba(122,78,92,.25); }
.map { margin: 0; }
.map svg, .map img { width: 100%; height: auto; border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.map__link { display: block; border-radius: var(--r-card); }
@media (min-width: 960px) { .map { max-width: 540px; justify-self: end; } }
/* Second About photo, overlapping the corner of the main one */
.about__photo .about__inset {
  position: absolute; z-index: 2; inset-inline-end: -14px; bottom: -28px; width: 42%; height: auto;
  aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px;
  border: 5px solid var(--salt); box-shadow: 0 16px 30px -14px rgba(14, 42, 71, .5);
}
.map figcaption { margin-top: var(--s2); font-size: .875rem; color: var(--ink-soft); }
.map__town { font: 700 15px var(--f-body); fill: var(--navy); }
.spot circle { fill: #ffffff; stroke: #0E6F8F; stroke-width: 4; transition: r var(--t-fast); }
.spot--land circle { stroke: var(--granite); }
.spot text { font: 700 15px var(--f-body); fill: #ffffff; paint-order: stroke; stroke: rgba(6,26,46,.75); stroke-width: 4px; stroke-linejoin: round; }
.spot--land text { fill: var(--navy); stroke: rgba(255,255,255,.8); }
.spot.is-active circle { fill: var(--sun); r: 12; }
.map__compass circle { fill: rgba(255,255,255,.85); }
.map__compass path { fill: var(--navy); }
.map__compass text { font: 800 14px var(--f-body); fill: #ffffff; }

/* ---------- Why us ---------- */
.why { padding: var(--s7) 0 calc(var(--s7) + 20px); }
/* Trip filters */
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin: calc(-1 * var(--s4)) 0 var(--s5); }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: var(--r-btn); cursor: pointer;
  font: 600 .9375rem/1 var(--f-body); color: var(--navy);
  background: var(--white); border: 1.5px solid var(--line);
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.card[hidden] { display: none; }

/* Price line on trip cards */
.price { margin: 0 0 6px; font-size: .9375rem; color: var(--ink-soft); }
.price strong { font: 800 1.5rem/1 var(--f-display); color: var(--reef-ink); margin-inline: 2px; }
.card--custom .price strong { color: var(--reef); }

/* Included / extra lines on trip cards */
.incl { font-size: .9375rem; color: var(--ink-soft); margin-bottom: var(--s2); }
.incl strong { color: var(--navy); }
.incl--extra { margin-bottom: var(--s4); }
.plain-list { margin: 0 0 var(--s4); padding-inline-start: 1.1em; color: var(--mist); }
.plain-list li { margin-bottom: var(--s2); }
.plain-list strong { color: var(--white); }

/* Good to know (FAQ) */
.faq__title { margin-top: var(--s7); }
.faq { display: grid; gap: var(--s2); }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s4); align-items: start; } }
.faq details { background: var(--white); border-radius: 16px; box-shadow: var(--shadow-card); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  min-height: 56px; padding: 14px var(--s4); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--reef-ink); border-bottom: 2px solid var(--reef-ink); transform: rotate(45deg) translateY(-3px); transition: transform var(--t-fast); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 var(--s4) var(--s4); margin: 0; color: var(--ink-soft); }

/* Reviews */
.reviews { padding: var(--s7) 0 calc(var(--s7) + 20px); }
.reviews__grid { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 960px) { .reviews__grid { grid-template-columns: 1.2fr 1fr; gap: var(--s7); } }
.reviews .sec-lede { margin-bottom: var(--s5); }
.reviews__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.review { background: var(--white); border-radius: var(--r-card); padding: var(--s4); box-shadow: var(--shadow-card); }
.review blockquote { margin: var(--s2) 0 var(--s3); font-size: 1.0625rem; line-height: 1.55; }
.review__who { margin: 0; color: var(--ink-soft); font-size: .9375rem; }
.review__who strong { color: var(--navy); }
.review--empty { color: var(--ink-soft); background: rgba(255,255,255,.55); box-shadow: none; border: 1.5px dashed rgba(14,42,71,.25); }
.review__stars { display: inline-flex; gap: 2px; }
.review__stars .ic, .stars label .ic { fill: transparent; stroke: #B8862F; stroke-width: 1.6; }
.review__stars .ic { width: 18px; height: 18px; }
.review__stars .ic.is-on, .stars label.is-on .ic { fill: var(--sun); stroke: #B8862F; }
.review-form__title { font-size: 2rem; margin-bottom: var(--s4); }
.review-form__note { margin-top: var(--s3); text-align: center; }
.stars { border: 0; margin: 0 0 var(--s4); padding: 0; }
.stars legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.stars__row { display: flex; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; cursor: pointer; transition: background-color var(--t-fast), transform var(--t-fast); }
.stars label:hover { background: var(--salt); }
.stars label:active { transform: scale(.92); }
.stars label .ic { width: 32px; height: 32px; }
.stars input:focus-visible + label { outline: 3px solid var(--reef-ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Meet Ahmed */
.about { display: grid; gap: var(--s5); align-items: center; margin-bottom: var(--s7); }
@media (min-width: 960px) { .about { grid-template-columns: 460px 1fr; gap: var(--s7); } }
.about__photo { margin: 0; position: relative; }
.about__photo::before { /* reef-coloured offset frame */
  content: ""; position: absolute; inset-block: 18px -14px; inset-inline: 18px -14px; border-radius: var(--r-card);
  background: var(--reef); opacity: .35; z-index: 0;
}
.about__photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--shadow-card); }
@media (max-width: 959px) { .about__photo { max-width: 460px; margin-inline-end: 14px; } }
.about__lead { font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.45; color: var(--navy); font-weight: 500; }
.about__text > p:not(.about__lead) { color: var(--ink-soft); }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-top: var(--s4); }
.about__insta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--reef-ink); text-underline-offset: 4px; }
.why__title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: var(--s4); }

.why__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
@media (min-width: 640px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .why__grid { grid-template-columns: repeat(4, 1fr); } }
.why__item { background: var(--white); border-radius: var(--r-card); padding: var(--s4); box-shadow: var(--shadow-card); }
.why__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--deep); color: var(--reef); margin-bottom: var(--s3); }
.why__icon .ic { width: 26px; height: 26px; }
.why__item h3 { font-size: 1.75rem; margin-bottom: var(--s2); }
.why__item p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* ---------- Plan / booking ---------- */
.plan { padding: var(--s7) 0 var(--s8); }
.plan__grid { display: grid; gap: var(--s6); }
@media (min-width: 960px) { .plan__grid { grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: start; } }
.steps { margin: var(--s5) 0; padding-inline-start: 1.4em; color: var(--mist); }
.steps li { margin-bottom: var(--s3); padding-inline-start: 4px; }
.steps strong { color: var(--white); }
.steps li::marker { font: 800 1.25rem var(--f-display); color: var(--reef); }
.plan__phone { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: var(--reef); text-underline-offset: 4px; }

.planner { background: var(--white); color: var(--navy); border-radius: var(--r-card); padding: var(--s4); }
.planner :focus-visible { outline-color: var(--reef-ink); }
@media (min-width: 768px) { .planner { padding: var(--s5); } }
.field { margin-bottom: var(--s4); min-width: 0; }
.field-row { display: grid; gap: 0 var(--s3); }
@media (min-width: 420px) { .field-row { grid-template-columns: 1.4fr 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 400 1rem/1.4 var(--f-body); color: var(--navy);
  background: var(--salt); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--reef-ink); background: var(--white); box-shadow: 0 0 0 3px rgba(47, 196, 188, .3); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__err { color: var(--error); font-size: .9375rem; font-weight: 500; margin: 6px 0 0; }
.field__err:empty { display: none; }
.field__help { color: var(--ink-soft); font-size: .9375rem; margin: 6px 0 0; }

/* ---------- Footer ---------- */
.foot { background: var(--abyss); color: var(--white); padding: var(--s7) 0 calc(var(--s7) + 48px); }
.foot__grid { display: grid; gap: var(--s5); }
@media (min-width: 768px) { .foot { padding-bottom: var(--s5); } .foot__grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.foot .brand { margin-bottom: var(--s3); }
.foot__sub { color: var(--mist); max-width: 34ch; }
.foot__h { font: 800 1.375rem/1 var(--f-display); margin-bottom: var(--s3); color: var(--reef); }
.foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot__list a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; color: #DCE6EF; }
.foot__list a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.foot__legal { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid rgba(255,255,255,.1); color: var(--mist); font-size: .875rem; }

/* ---------- Mobile booking dock ---------- */
.dock {
  position: fixed; z-index: var(--z-dock);
  left: var(--s3); right: var(--s3); bottom: calc(var(--s3) + env(safe-area-inset-bottom));
  display: flex; gap: var(--s2);
  transform: translateY(160%); transition: transform var(--t-med) var(--ease-out);
}
.dock a {
  display: flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 52px;
  border-radius: var(--r-btn); text-decoration: none; font-weight: 700;
  box-shadow: 0 12px 30px -8px rgba(3, 15, 28, .55);
}
.dock__book { flex: 1; background: var(--sun); color: var(--navy); }
.dock__wa { flex: none; width: 52px; background: var(--navy); color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }

/* ---------- Booking: direct request + WhatsApp as an extra ---------- */
.plan__more { margin: var(--s5) 0 var(--s2); color: var(--mist); font-weight: 600; }
.plan__contact { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.planner button[type="submit"][disabled] { opacity: .7; cursor: progress; }
.booking__status { margin: var(--s3) 0 0; font-weight: 500; }
.booking__status:empty { display: none; }
.booking__status.is-error { color: var(--error); }
.booking__status a { color: var(--navy); font-weight: 700; }
.booking__wa { margin: var(--s4) 0 0; text-align: center; color: var(--ink-soft); font-size: .9375rem; }
.booking__wa a { color: var(--reef-ink); font-weight: 600; text-underline-offset: 3px; display: inline-flex; min-height: 44px; align-items: center; }
.card__wa { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 6px; color: var(--reef-ink); font-weight: 600; font-size: .9375rem; text-underline-offset: 3px; }
.card--custom .card__wa { color: var(--reef); }
.booked {
  background: var(--white); color: var(--navy); border-radius: var(--r-card); padding: var(--s5) var(--s4); text-align: center;
  scroll-margin-top: 90px;
}
.booked:focus { outline: none; }
.booked__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto var(--s3); border-radius: 50%; background: #E3F6F4; color: var(--reef-ink); }
.booked__icon .ic { width: 32px; height: 32px; stroke-width: 2.5; }
.booked__title { font-size: 2rem; margin-bottom: var(--s3); }
.booked p { margin-inline: auto; color: var(--ink-soft); }
.booked__ref strong { color: var(--navy); letter-spacing: .06em; }
.booked .btn--glass { margin-top: var(--s2); color: var(--navy); border-color: var(--line); background: var(--salt); }
.dock.is-shown { transform: none; }
@media (min-width: 768px) { .dock { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Language picker ---------- */
/* Sits right after "Sinai with Ahmed" in the header, on every screen size. */
.top .brand { margin-inline-end: 0; }
.lang { position: relative; margin-inline-end: auto; flex: none; }
.lang summary {
  list-style: none; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border-radius: var(--r-btn); border: 1.5px solid rgba(255,255,255,.45); background: rgba(255,255,255,.08);
  cursor: pointer; font-weight: 700; font-size: .9375rem; white-space: nowrap;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { /* small ▾ */
  content: ""; width: 7px; height: 7px; margin-inline-start: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg);
}
.lang[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lang summary:hover, .lang[open] summary { border-color: var(--white); background: rgba(255,255,255,.18); }
.lang summary .ic { width: 18px; height: 18px; }
.lang__list {
  list-style: none; margin: 0; padding: 6px; position: absolute; inset-inline-start: 0; top: calc(100% + 8px);
  min-width: 180px; background: var(--white); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(3,15,28,.55); z-index: var(--z-menu);
}
.lang__list a {
  display: block; padding: 12px 14px; border-radius: 10px; color: var(--navy); text-decoration: none; font-weight: 500; border: 0;
}
.lang__list a:hover { background: var(--salt); }
.lang__list a[aria-current="page"] { background: var(--navy); color: var(--white); }
/* Phones: the button sits mid-header, so open the list toward the middle of the screen. */
@media (max-width: 600px) { .lang__list { inset-inline-start: auto; inset-inline-end: 0; } }
/* Small phones: logo + name + language + menu. Booking stays one tap away in the bottom WhatsApp bar. */
@media (max-width: 419px) { .top .btn--sun.btn--small { display: none; } }

/* Footer language row */
.foot__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid rgba(255,255,255,.1); }
.foot__bottom .foot__legal { margin: 0; padding: 0; border: 0; }
.foot__langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot__langs a { display: inline-flex; align-items: center; min-height: 40px; color: var(--mist); text-decoration: none; }
.foot__langs a:hover, .foot__langs a[aria-current="page"] { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Narrow phones (360px) and long translations ---------- */
/* Grid columns may shrink below their content, so a long <select> option can't widen the page. */
.reviews__grid > *, .plan__grid > *, .field-row > * { min-width: 0; }
.field select { max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 400px) {
  .top__row { gap: 6px; }
  .top .btn--small { padding: 0 12px; font-size: .875rem; }
  .brand { gap: 8px; }
  .brand__name { font-size: 1.0625rem; }
  .menu-btn { width: 42px; height: 42px; }
}

/* ---------- Comfort on every screen ---------- */
.brand__name small { font-size: .875rem; }
.top__nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* ---------- Phone comfort ---------- */
/* Every tap target at least 44px tall (Apple / Google guidance). */
.foot__list a, .foot__langs a { min-height: 44px; }
.foot__langs a { min-width: 44px; justify-content: center; }
.skip { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 400px) { .menu-btn { width: 44px; height: 44px; } }

@media (max-width: 600px) {
  /* Trip filters: one swipeable row instead of three rows of buttons. */
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--s3)); padding: 2px var(--s3) 6px;
    scroll-padding-inline: var(--s3); scroll-snap-type: x proximity;
    -webkit-mask: linear-gradient(to right, transparent 0, #000 var(--s3), #000 calc(100% - 40px), transparent 100%);
            mask: linear-gradient(to right, transparent 0, #000 var(--s3), #000 calc(100% - 40px), transparent 100%);
  }
  [dir="rtl"] .filters {
    -webkit-mask: linear-gradient(to left, transparent 0, #000 var(--s3), #000 calc(100% - 40px), transparent 100%);
            mask: linear-gradient(to left, transparent 0, #000 var(--s3), #000 calc(100% - 40px), transparent 100%);
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; }

  /* Video player: full screen, with the close button inside the video corner, clear of the notch. */
  .player { max-width: 100vw; width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; background: var(--abyss); }
  .player__video { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; }
  .player__close {
    top: calc(12px + env(safe-area-inset-top)); inset-inline-end: 12px; z-index: 2;
    background: rgba(3, 15, 28, .7); border: 1.5px solid rgba(255,255,255,.5);
  }
}

/* ---------- Per-language tuning ---------- */
/* Hebrew and Russian fonts are wider than the condensed English display font. */
html[lang="he"] .hero__title, html[lang="ru"] .hero__title { font-size: clamp(2.8rem, min(10vw, 11vh), 6rem); line-height: .95; }
html[lang="he"] .sec-title, html[lang="ru"] .sec-title { font-size: clamp(2.2rem, 6.5vw, 4rem); }
html[lang="he"] .card__title, html[lang="ru"] .card__title { font-size: 1.75rem; line-height: 1.1; }
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3 { letter-spacing: 0; }
/* Phone numbers and @handles stay left-to-right inside Hebrew text. */
[dir="rtl"] a[href^="tel:"], [dir="rtl"] .foot__list a, [dir="rtl"] .about__insta { unicode-bidi: plaintext; }