/* ==========================================================================
   TANZAOLOGY — pages.css
   Hero, page banners, filters, modals, and per-page blocks.
   ========================================================================== */

/* --------------------------------------------------------------------------
   FULL-SCREEN HERO  (homepage)
   Exactly one viewport tall. No sticky scroll-jacking.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--c-dark-deep);
}

.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s var(--ease), visibility 1.4s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

.hero-slide > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* slow drift keeps a still image feeling alive */
  animation: heroDrift 24s ease-out both;
  animation-play-state: paused;
}
.hero-slide.is-active > img { animation-play-state: running; }
@keyframes heroDrift { from { transform: scale(1.10); } to { transform: scale(1); } }

/* The photograph is the point, so the veil is not a full-frame wash any more.
   It does three narrow jobs: keep the header legible at the top, hold the
   dots and the section edge at the foot, and lay a contained pool behind the
   copy so white type still survives snow and white sand. Everything between
   those is left almost clear. */
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 52% 42% at 50% 44%, rgba(20,13,7,.38), transparent 72%),
    linear-gradient(to bottom,
      rgba(28,19,11,.44) 0%,
      rgba(28,19,11,.08) 24%,
      rgba(28,19,11,.05) 60%,
      rgba(28,19,11,.56) 100%);
}

.hero-inner {
  position: relative; z-index: 3;
  text-align: center;
  color: var(--c-white);
  width: min(100% - var(--gutter) * 2, 900px);
  padding-top: var(--header-h);
}
.hero-eyebrow {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  margin-bottom: var(--s-4);
  text-shadow: 0 1px 2px rgba(0,0,0,.5), 0 1px 16px rgba(0,0,0,.45);
}
.hero-script {
  font-family: var(--font-script);
  font-size: var(--fs-script);
  font-weight: 300;
  letter-spacing: .02em;
  line-height: 1.1;
  display: block;
  margin-bottom: .15em;
  text-shadow: 0 1px 3px rgba(0,0,0,.42), 0 2px 28px rgba(0,0,0,.5);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.6vw + 1rem, 3.2rem);
  font-weight: 400;
  line-height: 1.12;
  margin-top: -.15em;
  text-shadow: 0 1px 3px rgba(0,0,0,.42), 0 2px 24px rgba(0,0,0,.5);
}
.hero-text {
  max-width: 52ch;
  margin: var(--s-5) auto 0;
  color: rgba(255,255,255,.9);
  font-size: var(--fs-lg);
  text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 1px 14px rgba(0,0,0,.5);
}
.hero-actions { margin-top: var(--s-7); display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap; }

/* Slide dots */
.hero-dots {
  position: absolute; z-index: 4;
  left: 50%; transform: translateX(-50%);
  bottom: calc(var(--s-9) + var(--s-4));
  display: flex; gap: var(--s-3);
}
.hero-dots button {
  width: 34px; height: 2px;
  background: rgba(255,255,255,.34);
  transition: background .35s var(--ease);
}
.hero-dots button[aria-selected="true"] { background: var(--c-white); }

/* Scroll cue */
.hero-scroll {
  position: absolute; z-index: 4;
  left: 50%; transform: translateX(-50%);
  bottom: var(--s-6);
  display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent);
  animation: scrollCue 2.4s var(--ease) infinite;
}
@keyframes scrollCue { 0%,100% { opacity: .35; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

@media (max-width: 640px) {
  .hero-dots { bottom: calc(var(--s-8) + var(--s-5)); }
  .hero-scroll { display: none; }
}

/* Short viewports — a 1366x768 laptop leaves roughly 660px of hero. There is
   no room for the full stack plus a scroll cue, so the cue goes and the
   actions tighten; without this the buttons sit on top of the slide dots. */
@media (max-height: 780px) {
  .hero-actions { margin-top: var(--s-5); }
  .hero-text { margin-top: var(--s-4); }
  .hero-scroll { display: none; }
  .hero-dots { bottom: var(--s-5); }
}

/* --------------------------------------------------------------------------
   INNER-PAGE BANNER  (every page except the homepage)
   Near-full-height and cinematic — the same slow drift and veil as the
   homepage hero, without the slider.
   -------------------------------------------------------------------------- */
.banner {
  position: relative;
  min-height: 86svh;
  display: grid; place-items: center;
  overflow: hidden;
  background: var(--c-dark-deep);
  text-align: center;
}
.banner > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  animation: heroDrift 22s ease-out both;
}
/* Same treatment as the homepage hero: no full-frame wash. A contained pool
   behind the type, a light top ramp (the header carries its own scrim now)
   and a foot gradient for the scroll cue and the section edge. The pool is
   denser and taller than the hero's because a banner holds more type —
   script, title, gold rule, standfirst and breadcrumb. */
.banner::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 56% 62% at 50% 51%, rgba(20,13,7,.60), transparent 74%),
    linear-gradient(to bottom,
      rgba(28,19,11,.34) 0%,
      rgba(28,19,11,.08) 26%,
      rgba(28,19,11,.06) 56%,
      rgba(28,19,11,.66) 100%);
}

/* Half-height variant for utility pages (legal, thank-you, 404) */
.banner-sm { min-height: 52svh; }

.banner-inner {
  position: relative; z-index: 2;
  color: var(--c-white);
  width: min(100% - var(--gutter) * 2, 860px);
  /* clear the fixed header above and the scroll cue below */
  padding-top: var(--header-h);
  padding-bottom: var(--s-9);
}
.banner-sm .banner-inner { padding-bottom: var(--s-5); }
.banner-inner h1 {
  color: var(--c-white);
  text-shadow: 0 1px 3px rgba(0,0,0,.42), 0 2px 26px rgba(0,0,0,.5);
}
.banner-inner .script-sm {
  display: block;
  color: var(--c-accent-soft);
  margin-bottom: var(--s-2);
  text-shadow: 0 1px 3px rgba(0,0,0,.45), 0 2px 18px rgba(0,0,0,.5);
}
.banner-inner > p {
  margin: var(--s-5) auto 0;
  max-width: 56ch;
  font-size: var(--fs-lg);
  color: rgba(255,255,255,.96);
  text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 1px 14px rgba(0,0,0,.5);
}

/* thin gold rule between the title and the standfirst */
.banner-inner h1::after {
  content: '';
  display: block;
  width: 68px; height: 1px;
  margin: var(--s-5) auto 0;
  background: var(--c-accent-soft);
  opacity: .85;
}

/* Breadcrumb */
.crumbs {
  margin-top: var(--s-6);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: rgba(255,255,255,.94);
  text-shadow: 0 1px 2px rgba(0,0,0,.5), 0 1px 12px rgba(0,0,0,.45);
}
.crumbs a:hover { color: var(--c-white); }
.crumbs span { margin-inline: var(--s-2); opacity: .5; }

/* Scroll cue, same as the homepage */
.banner-scroll {
  position: absolute; z-index: 3;
  left: 50%; transform: translateX(-50%);
  bottom: var(--s-6);
  display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.banner-scroll::after {
  content: '';
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent);
  animation: scrollCue 2.4s var(--ease) infinite;
}
@media (max-width: 640px) {
  .banner { min-height: 76svh; }
  .banner-sm { min-height: 46svh; }
  .banner-scroll { display: none; }
}

/* --------------------------------------------------------------------------
   MARQUEE  — destination names drifting across
   -------------------------------------------------------------------------- */
.marquee {
  border-block: 1px solid var(--c-line-soft);
  padding-block: var(--s-5);
  overflow: hidden;
  background: var(--c-cream-alt);
}
.marquee-track {
  display: flex; align-items: center; gap: var(--s-7);
  width: max-content;
  animation: marquee 44s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.6vw + .8rem, 2.1rem);
  color: var(--c-ink-faint);
  white-space: nowrap;
}
.marquee .dot { color: var(--c-accent); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   SPLIT  — image beside text
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--s-6), 5vw, var(--s-9)); align-items: center; }
.split-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-sand-soft); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split.is-reversed .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.is-reversed .split-media { order: 0; }
  .split-media { aspect-ratio: 16 / 10; }
}

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.stat { text-align: center; }
.stat-num { font-family: var(--font-serif); font-size: clamp(2.2rem, 2.6vw + 1rem, 3.4rem); color: var(--c-accent); line-height: 1; }
.stat-label { font-size: var(--fs-sm); color: var(--c-ink-soft); margin-top: var(--s-2); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); } }

/* --------------------------------------------------------------------------
   FILTERS  (destinations, lodges, packages)
   -------------------------------------------------------------------------- */
.filter-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--s-7); align-items: start; }
@media (max-width: 900px) { .filter-layout { grid-template-columns: 1fr; } }

.filter-panel {
  position: sticky;
  top: calc(var(--header-h) + var(--s-5));
  border: 1px solid var(--c-line-soft);
  background: var(--c-white);
  padding: var(--s-5);
}
@media (max-width: 900px) { .filter-panel { position: static; } }

.filter-group + .filter-group { margin-top: var(--s-6); }
.filter-group h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-ink-faint);
  font-weight: 500;
  margin-bottom: var(--s-3);
}
.filter-list { display: flex; flex-direction: column; gap: var(--s-1); }
.filter-btn {
  text-align: left;
  padding: .6em .9em;
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.filter-btn:hover { background: var(--c-cream-alt); color: var(--c-ink); }
/* The selected filter is marked with a gold rule and weight, not a solid
   block — a saturated slab in a sidebar reads as a discount-travel filter. */
.filter-btn.is-active {
  background: var(--c-cream-alt);
  color: var(--c-ink);
  border-color: var(--c-line-soft);
  box-shadow: inset 2px 0 0 var(--c-accent);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   WIDE CATALOG CARDS
   One card per row so each entry gets room to breathe. The three catalog
   pages deliberately do NOT share a look — a destination, a lodge and a
   priced itinerary are different things and should read differently.
   -------------------------------------------------------------------------- */
.wide-list { display: flex; flex-direction: column; gap: var(--s-5); }

.wcard {
  position: relative;
  display: grid;
  background: var(--c-white);
  border: 1px solid var(--c-line-soft);
  overflow: hidden;
  transition: box-shadow .5s var(--ease), transform .5s var(--ease),
              border-color .5s var(--ease);
}
.wcard:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--c-line); }

/* The media column fills the whole row height. The ::before spacer sets a
   minimum shape so a short card still looks right; a taller body just makes
   the image taller rather than leaving a gap under it. */
.wcard-media {
  position: relative;
  overflow: hidden;
  background: var(--c-sand-soft);
  align-self: stretch;
}
.wcard-media::before { content: ''; display: block; }
.wcard-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
.wcard:hover .wcard-media img { transform: scale(1.07); }

.wcard-body { padding: clamp(var(--s-5), 2.6vw, var(--s-7)); display: flex; flex-direction: column; gap: var(--s-3); }
.wcard-body h3 { font-size: clamp(1.35rem, 1.2vw + 1rem, 1.9rem); }
.wcard-body p { color: var(--c-ink-soft); }
.wcard-meta { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--c-ink-soft); }
.wcard-meta i { color: var(--c-accent); }
.wcard-foot { margin-top: auto; padding-top: var(--s-4); }

/* the whole card is clickable; the visible control stays a real button */
.wcard-hit { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.wcard-foot .link-arrow { position: relative; z-index: 2; pointer-events: none; }

/* ---- 1. DESTINATIONS — editorial split, image left, tall and calm ------- */
.wcard--dest { grid-template-columns: 44% 1fr; }
.wcard--dest .wcard-media::before { padding-top: 72%; }
.wcard--dest .wcard-body { justify-content: center; }
/* a gold rule under the title that draws itself on hover */
.wcard--dest h3::after {
  content: '';
  display: block;
  width: 0; height: 2px;
  margin-top: var(--s-3);
  background: var(--c-accent);
  transition: width .6s var(--ease);
}
.wcard--dest:hover h3::after { width: 72px; }
.wcard--dest .card-badge {
  position: static;
  align-self: flex-start;
  background: var(--c-cream-alt);
  border: 1px solid var(--c-line);
}

/* ---- 2. SAFARI PACKAGES — itinerary strip with a duration rail ---------- */
.wcard--pkg { grid-template-columns: 34% 1fr auto; align-items: stretch; }
.wcard--pkg .wcard-media::before { padding-top: 100%; }
.wcard--pkg .wcard-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(255,255,255,.10));
}
.wcard--pkg .card-badge { top: var(--s-4); left: var(--s-4); }

.pkg-rail {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-5) clamp(var(--s-5), 2vw, var(--s-6));
  border-left: 1px solid var(--c-line-soft);
  background: var(--c-cream);
  min-width: 148px;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.wcard--pkg:hover .pkg-rail { background: var(--c-accent); color: var(--c-white); border-left-color: var(--c-accent); }
.pkg-days {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 2vw + 1.2rem, 3rem);
  line-height: 1;
  color: var(--c-accent);
  transition: color .5s var(--ease);
}
.wcard--pkg:hover .pkg-days { color: var(--c-white); }
.pkg-days-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-ink-faint);
  transition: color .5s var(--ease);
}
.wcard--pkg:hover .pkg-days-label { color: rgba(255,255,255,.85); }
.pkg-rail .rail-cta {
  margin-top: var(--s-3);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.wcard--pkg:hover .rail-cta { opacity: 1; transform: none; }

/* ---- 3. CAMPS & LODGES — mirrored, image right, feature chips ----------- */
.wcard--lodge { grid-template-columns: 1fr 40%; }
.wcard--lodge .wcard-media { grid-column: 2; }
.wcard--lodge .wcard-media::before { padding-top: 78%; }
.wcard--lodge .wcard-body { grid-row: 1; grid-column: 1; }
/* warm wash that lifts on hover, so it reads differently from the others */
.wcard--lodge .wcard-media img { filter: saturate(.92); }
.wcard--lodge:hover .wcard-media img { filter: saturate(1.05); }
.wcard--lodge .card-badge {
  position: static; align-self: flex-start;
  background: transparent;
  color: var(--c-accent);
  border: 1px solid var(--c-accent-soft);
}
.lodge-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-1); }
.lodge-chips span {
  font-size: var(--fs-xs);
  padding: .4em 1em;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  color: var(--c-ink-soft);
  transition: border-color .45s var(--ease), color .45s var(--ease), background .45s var(--ease);
}
.wcard--lodge:hover .lodge-chips span { border-color: var(--c-accent-soft); color: var(--c-accent); }
/* a thin accent edge that grows down the left side on hover */
.wcard--lodge::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--c-accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform .55s var(--ease);
  z-index: 2;
}
.wcard--lodge:hover::before { transform: scaleY(1); }

/* ---- responsive: every wide card stacks ---- */
@media (max-width: 860px) {
  .wcard--dest, .wcard--lodge { grid-template-columns: 1fr; }
  .wcard--pkg { grid-template-columns: 1fr; }
  .wcard--lodge .wcard-media { grid-column: 1; grid-row: 1; }
  .wcard--lodge .wcard-body { grid-row: 2; }
  .wcard-media::before { padding-top: 58% !important; }
  .pkg-rail {
    flex-direction: row; gap: var(--s-3);
    border-left: 0; border-top: 1px solid var(--c-line-soft);
    min-width: 0; padding-block: var(--s-4);
  }
  .pkg-rail .rail-cta { opacity: 1; transform: none; margin-top: 0; }
  .pkg-days { font-size: 1.8rem; }
}

/* pointer-only hover effects — nothing should depend on hover on touch */
@media (hover: none) {
  .wcard--dest h3::after { width: 72px; }
  .wcard--lodge::before { transform: scaleY(1); }
  .pkg-rail .rail-cta { opacity: 1; transform: none; }
}

.filter-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.chip {
  padding: .5em 1.2em;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--c-accent); color: var(--c-accent); }
.chip.is-active { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-cream); }

.result-count { font-size: var(--fs-sm); color: var(--c-ink-soft); margin-bottom: var(--s-5); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--s-9) var(--s-5);
  background: var(--c-cream-alt);
  color: var(--c-ink-soft);
}

/* --------------------------------------------------------------------------
   MODAL  (destination / lodge / package detail)
   -------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0;
  z-index: 1100;
  display: none;
  background: rgba(36, 26, 18, .72);
  backdrop-filter: blur(3px);
  overflow-y: auto;
  padding: var(--s-6) var(--gutter);
}
.modal.is-open { display: block; }
body.modal-open { overflow: hidden; }

.modal-panel {
  position: relative;
  width: min(100%, 980px);
  margin: 0 auto;
  background: var(--c-cream);
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: sticky; top: 0; left: 100%;
  transform: translate(-8px, 8px);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  font-size: 1.2rem;
  z-index: 5;
}
.modal-close:hover { background: var(--c-ink); color: var(--c-cream); border-color: var(--c-ink); }

.modal-hero { aspect-ratio: 21 / 9; overflow: hidden; margin-top: -44px; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: var(--s-7) clamp(var(--s-5), 4vw, var(--s-8)) var(--s-8); }
.modal-body > * + * { margin-top: var(--s-5); }
.modal-body h2 { margin-bottom: var(--s-1); }
.modal-body h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-ink-faint);
  font-weight: 500;
}

.includes-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); font-size: var(--fs-sm); }
.includes-list li { display: flex; gap: var(--s-2); align-items: flex-start; }
.includes-list i { color: var(--c-accent); margin-top: 4px; }
@media (max-width: 560px) { .includes-list { grid-template-columns: 1fr; } }

.modal-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.modal-gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; cursor: zoom-in; transition: opacity .3s var(--ease); }
.modal-gallery img:hover { opacity: .86; }
@media (max-width: 560px) { .modal-gallery { grid-template-columns: repeat(2, 1fr); } }

.modal-map { height: 320px; border: 1px solid var(--c-line); }

.modal-actions { display: flex; gap: var(--s-4); flex-wrap: wrap; padding-top: var(--s-3); }

/* Itinerary */
.itinerary { display: flex; flex-direction: column; gap: var(--s-4); }
.day {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-4);
  padding: var(--s-5);
  background: var(--c-white);
  border: 1px solid var(--c-line-soft);
}
.day-num {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: transparent;
  color: var(--c-accent);
  border: 1px solid var(--c-accent-soft);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
}
.day h4 { margin-bottom: var(--s-2); }
.day p { font-size: var(--fs-sm); color: var(--c-ink-soft); }
.day-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.day-tags span { font-size: var(--fs-xs); color: var(--c-ink-soft); background: var(--c-cream-alt); padding: .35em .8em; }

/* --------------------------------------------------------------------------
   GALLERY PAGE
   -------------------------------------------------------------------------- */
.gallery-grid { columns: 3; column-gap: var(--s-4); }
.gallery-grid figure { break-inside: avoid; margin-bottom: var(--s-4); position: relative; overflow: hidden; cursor: zoom-in; }
.gallery-grid img { width: 100%; transition: transform .8s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: var(--s-4);
  background: linear-gradient(to top, rgba(36,26,18,.82), transparent);
  color: var(--c-white);
  font-size: var(--fs-sm);
  opacity: 0; transition: opacity .35s var(--ease);
}
.gallery-grid figure:hover figcaption { opacity: 1; }
@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 560px) { .gallery-grid { columns: 1; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(20, 14, 9, .94);
  display: none; place-items: center;
  padding: var(--s-6);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-pill);
  font-size: 1.2rem;
  transition: background .3s var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.15); }
.lightbox-close { top: var(--s-5); right: var(--s-5); }
.lightbox-prev  { left: var(--s-5);  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: var(--s-5); top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: var(--s-5); left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   CTA BAND
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ''; position: absolute; inset: 0; background: rgba(36,26,18,.7); }
.cta-inner { position: relative; z-index: 2; color: var(--c-white); padding-block: var(--section-y); }
.cta-inner h2 { color: var(--c-white); }
.cta-inner .script-sm { color: var(--c-accent-soft); display: block; margin-bottom: var(--s-2); }
.cta-inner p { max-width: 56ch; margin: var(--s-4) auto var(--s-6); color: rgba(255,255,255,.86); }

/* --------------------------------------------------------------------------
   CONTACT PAGE
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(var(--s-6), 5vw, var(--s-9)); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { display: flex; flex-direction: column; gap: var(--s-5); margin-top: var(--s-6); }
.contact-item { display: flex; gap: var(--s-4); align-items: flex-start; }
.contact-item i {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  background: var(--c-cream-alt); color: var(--c-accent);
  border-radius: var(--r-pill);
}
.contact-item h4 { font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; margin-bottom: 2px; }
.contact-item a, .contact-item p { color: var(--c-ink-soft); font-size: var(--fs-sm); }
.contact-item a:hover { color: var(--c-accent); }

/* The form sits on cream, never over a photo — labels must stay readable. */
.form-card { background: var(--c-white); border: 1px solid var(--c-line-soft); padding: clamp(var(--s-5), 4vw, var(--s-7)); }
.form-card > * + * { margin-top: var(--s-4); }

.map-embed { width: 100%; height: 420px; border: 0; display: block; filter: saturate(.85); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--c-line-soft); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-5) 0;
  font-family: var(--font-serif); font-size: var(--fs-h4);
}
.faq-q i { color: var(--c-accent); font-size: .8em; transition: transform .35s var(--ease); flex: 0 0 auto; }
.faq-q[aria-expanded="true"] i { transform: rotate(45deg); }
.faq-a { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq-a > div { padding-bottom: var(--s-5); color: var(--c-ink-soft); }

/* --------------------------------------------------------------------------
   ENQUIRE PAGE
   -------------------------------------------------------------------------- */
.enquire-grid { display: grid; grid-template-columns: 1fr 380px; gap: var(--s-8); align-items: start; }
@media (max-width: 1000px) { .enquire-grid { grid-template-columns: 1fr; } }

.enquire-aside { position: sticky; top: calc(var(--header-h) + var(--s-5)); background: var(--c-cream-alt); padding: var(--s-6); }
@media (max-width: 1000px) { .enquire-aside { position: static; } }
.enquire-aside h3 { font-family: var(--font-serif); font-size: var(--fs-h3); text-transform: none; letter-spacing: 0; color: var(--c-ink); margin-bottom: var(--s-4); }

.fieldset-block + .fieldset-block { margin-top: var(--s-7); padding-top: var(--s-7); border-top: 1px solid var(--c-line-soft); }
.fieldset-block > legend, .fieldset-block > h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 500;
  margin-bottom: var(--s-5);
}
.fieldset-block .field + .field, .fieldset-block .field-row + .field { margin-top: var(--s-4); }
.fieldset-block .field-row + .field-row { margin-top: var(--s-4); }

.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-3); }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card span {
  display: block; text-align: center;
  padding: var(--s-4) var(--s-3);
  border: 1px solid var(--c-line);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.radio-card input:checked + span {
  border-color: var(--c-accent);
  background: var(--c-cream-alt);
  color: var(--c-ink);
  box-shadow: inset 0 -2px 0 var(--c-accent);
}
.radio-card input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   LEADERSHIP  (about page)
   A portrait and a signed statement. The quote carries the page, so the
   portrait is deliberately the smaller column.
   -------------------------------------------------------------------------- */
.leader {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: clamp(var(--s-5), 5vw, var(--s-8));
  align-items: center;
  max-width: 1040px;
  margin-inline: auto;
}
@media (max-width: 820px) {
  .leader { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .leader-portrait { max-width: 320px; }
}

.leader-portrait { position: relative; margin: 0; }
.leader-portrait::before { content: ''; display: block; padding-top: 112%; }
.leader-portrait img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
/* a thin gold edge, offset — the same restraint as the card rules */
.leader-portrait::after {
  content: '';
  position: absolute;
  inset: auto -12px -12px auto;
  width: 62%; height: 58%;
  border-right: 1px solid var(--c-accent-soft);
  border-bottom: 1px solid var(--c-accent-soft);
  pointer-events: none;
}
@media (max-width: 820px) { .leader-portrait::after { display: none; } }

.leader-body h2 { margin-top: var(--s-3); }

.leader-quote {
  margin: var(--s-5) 0 0;
  padding: 0;
  border: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1vw + 1rem, 1.6rem);
  line-height: 1.5;
  color: var(--c-ink);
}

.leader-attrib {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-line);
}
@media (max-width: 820px) { .leader-attrib { align-items: center; } }

/* Name leads, in the serif — the role and company are the quiet second line. */
.leader-name {
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  line-height: 1.15;
  color: var(--c-ink);
  margin-bottom: var(--s-1);
}
.leader-role {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-accent);
}
.leader-org { font-size: var(--fs-sm); color: var(--c-ink-soft); }

/* --------------------------------------------------------------------------
   SAFARI GUIDE DOWNLOAD
   This was an embedded pdf.js reader — a grey document frame with zoom
   controls sitting in the middle of an editorial page, pulling a 3.8MB PDF
   and a CDN library into every homepage load. It is a download, so it is
   presented as one.
   -------------------------------------------------------------------------- */
.guide-download {
  display: grid;
  grid-template-columns: 42% 1fr;
  max-width: 940px;
  margin-inline: auto;
  background: var(--c-white);
  border: 1px solid var(--c-line-soft);
  overflow: hidden;
}
@media (max-width: 760px) { .guide-download { grid-template-columns: 1fr; } }

.guide-download-media { position: relative; overflow: hidden; }
.guide-download-media::before { content: ''; display: block; padding-top: 78%; }
.guide-download-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.guide-download:hover .guide-download-media img { transform: scale(1.04); }

.guide-download-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  padding: clamp(var(--s-5), 4vw, var(--s-7));
}
.guide-download-body h3 { font-size: var(--fs-h3); }
.guide-download-body p { color: var(--c-ink-soft); }
.guide-download-meta {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-ink-faint);
}
.guide-download .btn { margin-top: var(--s-2); }

/* --------------------------------------------------------------------------
   LEGAL PAGES
   -------------------------------------------------------------------------- */
.legal { max-width: 780px; margin-inline: auto; }
.legal h2 { font-size: var(--fs-h3); margin-top: var(--s-7); margin-bottom: var(--s-3); }
.legal h3 { font-size: var(--fs-h4); margin-top: var(--s-5); margin-bottom: var(--s-2); }
.legal p, .legal li { color: var(--c-ink-soft); }
.legal ul { list-style: disc; padding-left: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-3); }
.legal a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { font-size: var(--fs-sm); color: var(--c-ink-faint); }

/* --------------------------------------------------------------------------
   PARTNERS / REVIEW STRIP
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   REVIEW LINKS
   These used to be three supplied logo files at mismatched resolutions — and
   the Tripadvisor and SafariBookings ones were JPEGs exported from a
   transparent source, so the checkerboard was baked in as real grey pixels
   and showed as a checked square on the cream ground. Set in our own type
   instead: consistent, sharp at any density, and no borrowed brand colour.
   -------------------------------------------------------------------------- */
.review-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  max-width: 900px;
  margin-inline: auto;
}
@media (max-width: 760px) { .review-links { grid-template-columns: 1fr; } }

.review-link {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--c-white);
  border: 1px solid var(--c-line-soft);
  text-align: center;
  transition: border-color .35s var(--ease), transform .35s var(--ease),
              box-shadow .35s var(--ease);
}
.review-link:hover {
  border-color: var(--c-accent-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.review-link-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-ink-faint);
}
.review-link-name {
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  color: var(--c-ink);
  line-height: 1.1;
}
.review-link .link-arrow {
  margin-top: var(--s-2);
  align-self: center;
  font-size: var(--fs-xs);
  color: var(--c-accent);
}
