/* ==========================================================================
   Phy Travellers — design tokens & signature elements
   Palette: Deep Canopy Green / Savanna Gold / Nile Sky Blue / Savanna Mist
   Type: Fraunces (display) + Work Sans (body / utility)
   ========================================================================== */

:root{
  --canopy:        #16342A;
  --canopy-2:      #1F4A3A;
  --canopy-3:      #0E241D;
  --gold:          #D9A441;
  --gold-light:    #F0C466;
  --gold-dark:     #A9761F;
  --olive:         #6B7A3A;
  --olive-light:   #8B9C55;
  --sky:           #3E7C8C;
  --clay:          #7A4A2E;
  --clay-light:    #B98457;
  --mist:          #F7F2E7;
  --mist-2:        #EFE6D3;
  --ink:           #211D16;
  --ink-soft:      #55503F;
  --line:          rgba(33,29,22,0.12);
  --shadow-soft:   0 20px 45px -20px rgba(14,36,29,0.35);
  --shadow-card:   0 10px 30px -12px rgba(14,36,29,0.25);
  --glass-bg:      rgba(255,255,255,0.58);
  --glass-bg-strong: rgba(255,255,255,0.72);
  --glass-border:  rgba(255,255,255,0.55);
  --glass-bg-dark: rgba(255,255,255,0.08);
  --glass-border-dark: rgba(255,255,255,0.16);
  --ease-glass: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Glassmorphism + motion system
   ========================================================================== */
@keyframes pageIn{
  from{ opacity:0; transform: translateY(14px) scale(0.99); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}
@keyframes floatY{
  0%, 100%{ transform: translateY(0) rotate(-8deg); }
  50%{ transform: translateY(-8px) rotate(-8deg); }
}
@keyframes floatUp{
  0%{ opacity:0; transform: translateY(16px) scale(0.92); }
  100%{ opacity:1; transform: translateY(0) scale(1); }
}
@keyframes shimmerSweep{
  0%{ transform: translateX(-130%) skewX(-12deg); }
  100%{ transform: translateX(230%) skewX(-12deg); }
}
@keyframes glowPulse{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(240,196,102,0.35); }
  50%{ box-shadow: 0 0 0 8px rgba(240,196,102,0); }
}
@keyframes chipDrift{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce){
  .permit-stamp, .mood-chip, #translate-float{ animation: none !important; }
}

/* Glass surfaces -- translucent, blurred, soft-bordered panels used
   throughout for cards, chips, floating controls and overlays. */
.glass-card{
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.6);
}
.glass-tile{
  background: var(--glass-bg-strong);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}
.glass-dark{
  background: var(--glass-bg-dark);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border-dark);
}
.glass-chip{
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.55);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body{
  background: var(--mist);
  color: var(--ink);
  font-family: 'Work Sans', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-display{
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-variation-settings: 'SOFT' 18, 'opsz' 60;
  letter-spacing: -0.01em;
}
.hero-fluid{
  font-weight: 620;
  font-variation-settings: 'SOFT' 44, 'opsz' 144;
}
.h1-fluid{ font-variation-settings: 'SOFT' 30, 'opsz' 100; }
.h2-fluid{ font-variation-settings: 'SOFT' 22, 'opsz' 60; }
.wordmark{
  font-variation-settings: 'SOFT' 34, 'WONK' 1, 'opsz' 30;
  letter-spacing: -0.015em;
}
.font-display em, .font-display i, .italic.font-display{
  font-variation-settings: 'SOFT' 55, 'opsz' 144;
}

/* ---- Brand mark (header) -------------------------------------------------
   Small vector plane redrawn from the Phy Travellers logo -- crisp at
   header size, where the full detailed logo would be illegible. */
.brand-mark{ transition: transform .4s var(--ease-smooth); }
a:hover .brand-mark{ transform: translate(3px,-3px) rotate(6deg); }

/* ---- Full logo (footer) --------------------------------------------------
   The real uploaded logo has fine gradient shading that needs a light
   backdrop to read against the dark footer, so it sits on its own card
   rather than directly on the canopy background. */
.logo-card{
  background: var(--mist);
  border-radius: 1rem;
  padding: .85rem 1.1rem;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease-smooth);
}
.logo-card:hover{ transform: translateY(-3px); }
.logo-card img{ display: block; width: 168px; height: auto; }
/* Compact version of the same card for the sticky header */
.logo-card--nav{ display:inline-block; padding: .25rem .45rem; border-radius: .65rem; box-shadow: none; }
.logo-card--nav img{ width: auto; height: 50px; }
a:hover .logo-card--nav{ transform: translateY(-2px); }
@media (max-width: 380px){ .logo-card--nav img{ height: 42px; } }

/* Utility label / eyebrow treatment — the tracked small-caps voice used
   throughout for wayfinding labels (not decoration, but a real signal:
   these always mark a place, park, or section name). */
.eyebrow{
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-dark);
}
.eyebrow.on-dark{ color: var(--gold-light); }

/* ---- Signature element #1: the Trail Line -------------------------------
   A contour / trekking-path divider that stands in for the ordinary
   hairline rule. Uganda's parks are read by elevation contour and by
   trail; this line is drawn once and reused as the page's seam. */
.trail-divider{
  display:block;
  width:100%;
  height:28px;
  color: var(--gold);
}
.trail-divider.dark{ color: var(--canopy-2); }
.trail-divider svg{ width:100%; height:100%; display:block; }

/* ---- Signature element #2: the Permit Stamp -----------------------------
   A circular, rotated badge that echoes the permit stamps this company
   arranges every week — used for trust markers, not for decoration. */
.permit-stamp{
  --stamp-size: 128px;
  width: var(--stamp-size);
  height: var(--stamp-size);
  border-radius: 999px;
  border: 1.5px dashed currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: rotate(-8deg);
  flex-shrink: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.06);
  animation: floatY 5s ease-in-out infinite;
}
.permit-stamp::before{
  content:'';
  position:absolute;
  inset: 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.55;
}
.permit-stamp .stamp-text{
  font-family:'Work Sans',sans-serif;
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  text-align:center;
  line-height:1.25;
}

/* Card lift */
.lift{ transition: transform .5s var(--ease-smooth), box-shadow .5s var(--ease-smooth); will-change: transform; }
.lift:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }

/* Scroll reveal */
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease-smooth), transform .9s var(--ease-smooth); will-change: transform, opacity; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.reveal-delay-1{ transition-delay: .08s; }
.reveal-delay-2{ transition-delay: .16s; }
.reveal-delay-3{ transition-delay: .24s; }

/* Buttons -- glass sheen sweeps across on hover */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  font-weight:600; font-size:.95rem; letter-spacing:.01em;
  padding: .85rem 1.6rem; border-radius: 999px;
  transition: transform .35s var(--ease-smooth), box-shadow .35s var(--ease-smooth), background-color .3s ease, color .3s ease;
  white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn:active{ transform: scale(0.97); }
.btn::after{
  content:''; position:absolute; top:0; left:0; width:40%; height:100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: translateX(-130%) skewX(-12deg);
  pointer-events:none;
}
.btn:hover::after{ animation: shimmerSweep 1.1s var(--ease-smooth); }
.btn-gold{
  background: var(--gold); color: var(--canopy-3);
  box-shadow: 0 10px 24px -10px rgba(200,155,60,0.65);
}
.btn-gold:hover{ background: var(--gold-light); box-shadow: 0 16px 32px -10px rgba(200,155,60,0.85); transform: translateY(-2px); }
.btn-outline{
  border: 1.5px solid currentColor; color: inherit; background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-outline:hover{ background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.btn-whatsapp{
  background:#25D366; color:#08351c;
  box-shadow: 0 10px 24px -10px rgba(37,211,102,0.6);
}
.btn-whatsapp:hover{ background:#33e274; transform: translateY(-2px); }

/* Header -- glass blur intensifies once scrolled */
#site-header{
  transition: background-color .5s var(--ease-glass), box-shadow .5s ease, backdrop-filter .5s ease;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
#site-header.scrolled{
  background: rgba(22,52,42,0.82);
  box-shadow: 0 10px 30px -14px rgba(0,0,0,0.4);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.nav-link{
  position: relative; font-weight: 500; font-size: .93rem;
}
.nav-link::after{
  content:''; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-glass);
}
.nav-link:hover::after, .nav-link.active::after{ transform: scaleX(1); }
.nav-link.active{ color: var(--gold-light); }

/* Floating WhatsApp button */
#wa-float{
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 58px; height: 58px; border-radius: 999px;
  background:#25D366; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.45);
  transition: transform .3s var(--ease-glass);
  animation: floatUp .6s var(--ease-glass) both;
}
#wa-float:hover{ transform: scale(1.08); }
#wa-float::before{
  content:''; position:absolute; inset:-6px; border-radius:999px;
  border:2px solid rgba(37,211,102,0.5);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse{
  0%{ transform: scale(0.9); opacity: .9; }
  100%{ transform: scale(1.5); opacity: 0; }
}

/* Section texture: a very subtle contour-topography wash behind dark sections */
.canopy-texture{
  background-color: var(--canopy);
  background-image:
    radial-gradient(circle at 18% 20%, rgba(200,155,60,0.10), transparent 40%),
    radial-gradient(circle at 82% 78%, rgba(62,124,140,0.14), transparent 45%);
}

/* Image frame — soft rounded, consistent ratio helpers */
.img-frame{ border-radius: 1.25rem; overflow:hidden; }

/* Marquee-style strip for trust logos / stats */
.stat-number{ font-family:'Fraunces',serif; font-weight:600; }

/* Form elements */
.field-label{ font-size:.82rem; font-weight:600; color: var(--ink); margin-bottom:.35rem; display:block; }
.field-input{
  width:100%; border-radius:.75rem; border:1.5px solid var(--line);
  background:#fff; padding:.75rem 1rem; font-size:.95rem; color:var(--ink);
  transition: border-color .3s var(--ease-smooth), box-shadow .3s var(--ease-smooth);
}
.field-input:focus{ outline:none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,155,60,0.18); }
.field-input::placeholder{ color:#9a9384; }

/* Accessible focus ring app-wide */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2.5px solid var(--gold);
  outline-offset: 2px;
}

/* Day-step badges for itineraries (legitimately sequential content) */
.day-badge{
  font-family:'Fraunces',serif; font-weight:600; font-size:1.1rem;
  width:2.75rem; height:2.75rem; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  background: var(--canopy); color: var(--gold-light); flex-shrink:0;
}

/* Mobile nav panel -- true fluid-height accordion via CSS grid-rows,
   instead of animating to a guessed max-height (which always feels
   either too fast or clipped, since it animates against a fixed
   target rather than the content's real height). */
#mobile-nav{
  display: grid; grid-template-rows: 0fr; overflow: hidden;
  transition: grid-template-rows .5s var(--ease-smooth), backdrop-filter .3s ease;
  background: rgba(14,36,29,0.85);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
#mobile-nav.open{ grid-template-rows: 1fr; }
#mobile-nav-inner{ min-height: 0; overflow: hidden; }

::selection{ background: var(--gold); color: var(--canopy-3); }

/* FAQ accordion: rotating indicator + soft fade-in on open */
details summary{ list-style:none; }
details summary::-webkit-details-marker{ display:none; }
details summary span{ display:inline-block; transition: transform .35s var(--ease-glass), color .3s ease; }
details[open] summary span{ transform: rotate(45deg); color: var(--gold); }
details[open] > p{ animation: floatUp .4s var(--ease-glass) both; }


/* ---- Reflections of Enjoyment: mood chips (glass pills, gentle drift) ---- */
.mood-chip{
  display:inline-flex; align-items:center; padding:.4rem .9rem; border-radius:999px;
  font-size:.78rem; font-weight:600; color:#fff;
  background: var(--olive); opacity:.94;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  animation: chipDrift 4.5s ease-in-out infinite;
  transition: transform .3s var(--ease-glass);
}
.mood-chip:hover{ transform: translateY(-3px) scale(1.05); }
.mood-chip:nth-child(2){ background: var(--gold-dark); animation-delay: .3s; }
.mood-chip:nth-child(3){ background: var(--clay); animation-delay: .6s; }
.mood-chip:nth-child(4){ background: var(--canopy-2); animation-delay: .9s; }
.mood-chip:nth-child(5){ background: var(--sky); animation-delay: 1.2s; }

/* ---- Itinerary score badges (Enjoyment / Sustainability), glass pills ---- */
.score-badge{
  display:inline-flex; align-items:center; gap:.35rem;
  font-size:.72rem; font-weight:700; letter-spacing:.02em;
  padding:.3rem .65rem; border-radius:999px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid transparent;
  transition: transform .25s var(--ease-glass);
}
.score-badge:hover{ transform: translateY(-2px); }
.score-badge-gold{ background: rgba(217,164,65,0.16); color: var(--gold-dark); border-color: rgba(217,164,65,0.3); }
.score-badge-olive{ background: rgba(107,122,58,0.16); color: var(--olive-dark, #4E5A29); border-color: rgba(107,122,58,0.3); }

/* ---- Explore Countries & Cities: country cards ---- */
.country-card{
  position: relative; display:block; border-radius: 1.1rem; overflow:hidden;
  aspect-ratio: 3 / 4; isolation: isolate;
  transition: transform .5s var(--ease-glass), box-shadow .5s var(--ease-glass);
}
.country-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.country-card img{ width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease-glass); }
.country-card:hover img{ transform: scale(1.07); }
.country-card-overlay{
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end;
  padding: 1.1rem; background: linear-gradient(to top, rgba(14,36,29,0.92) 0%, rgba(14,36,29,0.35) 55%, transparent 100%);
}
.country-card-flag{ font-size:1.5rem; line-height:1; margin-bottom:.4rem; transition: transform .3s var(--ease-glass); }
.country-card:hover .country-card-flag{ transform: scale(1.2) rotate(-6deg); }

/* ---- VR / 360 exhibition preview frame ---- */
.vr-frame{
  position:relative; border-radius: 1.5rem; overflow:hidden; cursor: grab;
  aspect-ratio: 4 / 3; user-select:none; touch-action: pan-y;
  box-shadow: var(--shadow-soft); border: 3px solid rgba(240,196,102,0.35);
}
.vr-frame:active{ cursor: grabbing; }
.vr-frame img{
  position:absolute; top:0; left:50%; height:100%; width:220%; max-width:220%;
  object-fit:cover; transform: translateX(-50%); will-change: transform;
}
.vr-frame-hint{
  position:absolute; left:50%; bottom:14px; transform: translateX(-50%);
  display:flex; align-items:center; gap:.4rem;
  background: rgba(14,36,29,0.6); color:#F7F2E7; font-size:.72rem; font-weight:600;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  padding:.4rem .8rem; border-radius:999px; pointer-events:none;
  transition: opacity .5s var(--ease-smooth);
  animation: chipDrift 3s ease-in-out infinite;
}
.vr-frame.vr-engaged .vr-frame-hint{ opacity: 0; }

/* ---- Currency selector (glass pill) ---- */
.currency-select{
  appearance:none; background: rgba(255,255,255,0.1); color: inherit;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,0.28); border-radius:999px;
  padding:.4rem 1.9rem .4rem .9rem; font-size:.78rem; font-weight:600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23F0C466'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position: right .55rem center; background-size: 1rem;
  cursor:pointer;
  transition: border-color .25s ease, transform .25s var(--ease-glass);
}
.currency-select:hover{ border-color: rgba(240,196,102,0.6); }
.currency-select option{ color:#211D16; }
.price-tag{ font-weight:700; }

/* ---- Google Translate: compact floating glass pill, independent of the
   nav so it never competes with header links for space ---- */
#translate-float{
  position: fixed; top: 92px; right: 20px; z-index: 45;
  display:flex; align-items:center; gap:.4rem;
  background: rgba(14,36,29,0.62); backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px; padding: .45rem .7rem .45rem .8rem;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,0.4);
  max-width: 150px; overflow: hidden;
  animation: floatUp .6s var(--ease-glass) .15s both;
  transition: transform .3s var(--ease-glass), border-color .3s ease;
}
#translate-float:hover{ transform: translateY(-2px); border-color: rgba(240,196,102,0.5); }
#translate-float svg{ flex-shrink:0; color: var(--gold-light); }
#google_translate_element{ display:flex; align-items:center; min-width:0; }
#google_translate_element .goog-te-gadget{ font-family:'Work Sans',sans-serif !important; font-size:0 !important; color: transparent !important; }
#google_translate_element .goog-te-gadget > span{ display:none !important; }
#google_translate_element .goog-te-gadget > div,
#google_translate_element .goog-te-gadget select{
  font-size:.72rem !important; font-family:'Work Sans',sans-serif !important;
  color: var(--mist) !important; background: transparent !important; border:none !important;
  max-width: 90px;
}
#google_translate_element .goog-te-gadget select{ appearance:auto; }
.goog-te-banner-frame{ display:none !important; }
.goog-te-gadget-icon{ display:none !important; }
body{ top: 0 !important; }

/* ---- Blog card + destination page shared bits ---- */
.badge-pill{
  display:inline-flex; align-items:center; gap:.4rem; font-size:.75rem; font-weight:600;
  padding:.35rem .8rem; border-radius:999px; background: var(--mist-2); color: var(--ink-soft);
}
.partner-chip{
  display:flex; align-items:center; justify-content:center; text-align:center;
  padding: 1rem; border-radius: .9rem; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); font-size:.78rem; font-weight:600; color: var(--mist);
  min-height: 4.5rem;
}
.payment-chip{
  display:inline-flex; align-items:center; gap:.5rem; padding:.5rem .9rem; border-radius:.7rem;
  background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12);
  font-size:.75rem; font-weight:600; color: var(--mist)/80;
}

/* ---- Cross-device hardening (phones, foldables, tablets, desktop) ---- */
html, body{ overflow-x: hidden; max-width: 100%; }
img, svg, video{ max-width: 100%; height: auto; }
button, a, input, textarea, select{ -webkit-tap-highlight-color: transparent; }

/* Fluid display type: scales smoothly between the smallest folded
   phone width (~280px) and large desktops, instead of jumping at
   one hard breakpoint. */
.hero-fluid{ font-size: clamp(2rem, 5vw + 1rem, 3.75rem); line-height: 1.08; }
.h1-fluid{ font-size: clamp(1.85rem, 4.5vw + 1rem, 3rem); line-height: 1.15; }
.h2-fluid{ font-size: clamp(1.6rem, 3.2vw + 1rem, 2.25rem); line-height: 1.2; }

/* Form inputs at 16px+ prevent iOS Safari's auto-zoom-on-focus,
   which otherwise fires on any input font-size under 16px. */
.field-input{ font-size: 16px; }

/* Permit stamp scales down on narrow/folded screens so its rotated
   bounding box never risks bleeding past a tight column. */
.permit-stamp{ --stamp-size: clamp(92px, 26vw, 128px); }

@media (min-width: 1600px){
  .max-w-7xl{ max-width: 88rem; }
}

/* ---- Single-file SPA page switching ---- */
.page{ display: none; }
.page.active{ display: block; animation: pageIn .7s var(--ease-smooth) both; }

/* Skip link for keyboard users (multi-page: present on every page) */
.skip-link{
  position:absolute; left:-9999px; top:0; z-index:100;
  background: var(--gold); color: var(--canopy-3);
  padding:.7rem 1.2rem; border-radius:0 0 .6rem 0; font-weight:600; font-size:.85rem;
}
.skip-link:focus{ left:0; }

/* ---- Legal pages (terms.php, privacy.php) ---- */
.legal{ color: var(--ink-soft, #55503F); line-height: 1.75; }
.legal h2{ font-family: 'Fraunces', ui-serif, serif; font-weight: 600; font-size: 1.35rem; color: var(--ink, #211D16); margin: 2.5rem 0 .75rem; scroll-margin-top: 7rem; }
.legal h2:first-child{ margin-top: 0; }
.legal p{ margin: 0 0 1rem; }
.legal ul{ list-style: disc; padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li{ margin: .35rem 0; }
.legal a{ color: var(--canopy, #16342A); text-decoration: underline; text-underline-offset: 2px; }
.legal table{ width: 100%; border-collapse: collapse; margin: .5rem 0 1.25rem; font-size: .92rem; }
.legal th, .legal td{ text-align: left; padding: .6rem .75rem; border-bottom: 1px solid rgba(0,0,0,.08); }
.legal th{ color: var(--ink, #211D16); font-weight: 600; }
.legal-toc a{ display:block; padding: .3rem 0; color: var(--ink-soft, #55503F); font-size: .88rem; }
.legal-toc a:hover{ color: var(--canopy, #16342A); }

/* Related-guide cards (guide_links() in includes/posts.php) */
.guide-links{ margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(33,29,22,.1); }
.guide-card{ display:block; background: rgba(255,255,255,.75); border: 1px solid rgba(33,29,22,.08); border-radius: 1rem; padding: 1.1rem 1.25rem; box-shadow: var(--shadow-card); }
.guide-card:hover{ background:#fff; }
.guide-links-section .guide-links{ margin-top: 0; padding-top: 0; border-top: 0; }

/* Blog topic filter chips */
.topic-chip{ display:inline-block; padding:.45rem .95rem; border-radius:999px; font-size:.85rem; font-weight:600; background: var(--mist-2); color: var(--ink-soft); border:1px solid rgba(33,29,22,.08); transition: background-color .2s, color .2s; }
.topic-chip:hover{ background:#fff; color: var(--ink); }
.topic-chip.is-active{ background: var(--canopy); color: var(--mist); border-color: var(--canopy); }

/* Hidden anti-spam field on the enquiry form (bots fill it, people never see it) */
.hp-field{ position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }

/* "Read more" link on destination cards (country pages) */
.read-more-link{ display:inline-flex; align-items:center; gap:.35rem; margin-top:1rem; font-size:.85rem; font-weight:600; color: var(--canopy); }
.read-more-link svg{ transition: transform .25s var(--ease-smooth); }
.read-more-link:hover{ color: var(--gold-dark, #A9761F); }
.read-more-link:hover svg{ transform: translateX(3px); }
/* Place detail pages */
.place-fact{ background:#fff; border:1px solid rgba(33,29,22,.08); border-radius:1rem; padding:1.1rem 1.25rem; box-shadow: var(--shadow-card); }
.place-body h2{ font-family:'Fraunces', ui-serif, serif; font-weight:600; font-size:1.45rem; color: var(--ink); margin: 2.5rem 0 .9rem; scroll-margin-top: 7rem; }
.place-body h2:first-child{ margin-top:0; }
.place-body p{ color: var(--ink-soft); line-height:1.75; margin: 0 0 1rem; }
.place-check li{ position:relative; padding-left:1.75rem; margin:.55rem 0; color: var(--ink-soft); line-height:1.6; }
.place-check li::before{ content:""; position:absolute; left:0; top:.45rem; width:.9rem; height:.9rem; border-radius:999px; background: var(--gold); box-shadow: inset 0 0 0 3px #fff; outline:1px solid var(--gold); }
.place-note{ border-left:3px solid var(--gold); background: rgba(217,164,65,.1); border-radius:.5rem; padding: .9rem 1.1rem; color: var(--ink); }
.score-badge-clay{ background: rgba(122,74,46,0.14); color: var(--clay, #7A4A2E); border-color: rgba(122,74,46,0.3); }
/* Lodge lists (accommodation page + place pages) */
.lodge-row{ display:flex; gap:.75rem; align-items:flex-start; padding:.7rem 0; border-top:1px solid rgba(33,29,22,.07); }
.lodge-row:first-child{ border-top:0; }
.stay-link{ margin-left: 1.25rem; color: var(--gold-dark, #A9761F); }

/* =====================================================================
   SEE-THROUGH LAYER (Oct 2026)
   A softly blurred safari photo sits fixed behind the whole site; page
   sections are slightly translucent so it shows through as you scroll.
   Heroes use large photos that slowly drift and zoom ("Ken Burns").
   ===================================================================== */
body{ background: var(--canopy-3); }
.site-backdrop{
  position: fixed; inset: -60px; z-index: -2; pointer-events: none;
  background-size: cover; background-position: center;
  filter: blur(16px) saturate(120%);
  transform: translateZ(0);
}
.site-backdrop::after{ content:''; position:absolute; inset:0; background: rgba(14,36,29,0.30); }

/* Every page section is frosted cream unless it says otherwise */
main > section, main > article, main > .trail-divider{ background-color: rgba(247,242,231,0.86); }
/* Light sections: frosted cream instead of solid cream */
main > .bg-mist,   main > section.bg-mist   { background-color: rgba(247,242,231,0.86); }
main > .bg-mist-2, main > section.bg-mist-2 { background-color: rgba(239,230,211,0.84); }
/* Dark sections: smoked green glass */
main .canopy-texture{ background-color: rgba(22,52,42,0.80); }
footer.bg-canopy-3{ background-color: rgba(14,36,29,0.90); }

/* Cards read as glass over the frosted sections */
.glass-card{ background: rgba(255,255,255,0.52); box-shadow: 0 18px 40px -24px rgba(14,36,29,0.45); }
.glass-card:hover{ background: rgba(255,255,255,0.64); }

/* Header: clear over the hero photo, smoked glass once you scroll */
#site-header{
  background: linear-gradient(to bottom, rgba(6,18,14,0.55), rgba(6,18,14,0)) border-box no-repeat;
  border-bottom: 1px solid transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
#site-header.scrolled{
  background: rgba(14,36,29,0.58);
  border-bottom-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
#mobile-nav{
  background: rgba(14,36,29,0.94);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

/* ---------- Photo heroes ---------- */
.hero-has-photo{ position: relative; isolation: isolate; overflow: hidden; background-color: var(--canopy-3); }
.hero-has-photo.canopy-texture{ background-color: var(--canopy-3); }
.hero-photo{ position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-photo__img{ position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-photo__shade{
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(14,36,29,0.9) 0%, rgba(14,36,29,0.5) 42%, rgba(14,36,29,0.26) 75%, rgba(6,18,14,0.42) 100%),
    linear-gradient(to right, rgba(14,36,29,0.62), rgba(14,36,29,0.15) 55%, rgba(14,36,29,0) 80%);
}
.hero-has-photo h1, .hero-has-photo .eyebrow, .hero-has-photo nav[aria-label="Breadcrumb"], .hero-has-photo h1 + p{ text-shadow: 0 2px 16px rgba(0,0,0,0.45); }
.hero-has-photo nav[aria-label="Breadcrumb"]{ color: rgba(247,242,231,0.8); }
.kenburns{ animation: kenburns 26s ease-in-out infinite alternate; transform-origin: 60% 40%; will-change: transform; }
@keyframes kenburns{
  from{ transform: scale(1.03) translate3d(0,0,0); }
  to  { transform: scale(1.15) translate3d(-1.8%,-1.2%,0); }
}

.hero-credit-wrap{ position: absolute; right: 96px; bottom: 16px; z-index: 2; margin: 0; max-width: 60%; text-align: right; }
.hero-credit{
  display: inline-block; font-size: .66rem; line-height: 1.3; letter-spacing: .01em;
  color: rgba(247,242,231,0.78); padding: .28rem .65rem; border-radius: 999px;
  background: rgba(6,18,14,0.38); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
a.hero-credit:hover{ color: var(--gold-light); }

/* Frosted panel behind the homepage headline */
.hero-glass{
  background: rgba(8,22,17,0.34);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 1.75rem;
  padding: clamp(1.4rem, 4vw, 2.75rem);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.glass-chip-dark{
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 500; color: var(--mist);
  padding: .45rem .9rem; border-radius: 999px;
  background: rgba(6,18,14,0.42); border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* ---------- Homepage slideshow ---------- */
.hero-slides{ position: absolute; inset: 0; z-index: -2; }
.hero-slide{ position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; pointer-events: none; overflow: hidden; }
.hero-slide.is-active{ opacity: 1; pointer-events: auto; }
.hero-slide__img{ position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.04); }
.hero-slide.is-active .hero-slide__img,
.hero-slide.is-leaving .hero-slide__img{ animation-duration: 9s; animation-timing-function: linear; animation-fill-mode: forwards; }
.hero-slide.is-active .kb-0, .hero-slide.is-leaving .kb-0{ animation-name: kb0; }
.hero-slide.is-active .kb-1, .hero-slide.is-leaving .kb-1{ animation-name: kb1; }
.hero-slide.is-active .kb-2, .hero-slide.is-leaving .kb-2{ animation-name: kb2; }
.hero-slide.is-active .kb-3, .hero-slide.is-leaving .kb-3{ animation-name: kb3; }
@keyframes kb0{ from{ transform: scale(1.04); } to{ transform: scale(1.16) translate3d(-2%, -1%, 0); } }
@keyframes kb1{ from{ transform: scale(1.16) translate3d(2%, 0, 0); } to{ transform: scale(1.04); } }
@keyframes kb2{ from{ transform: scale(1.05) translate3d(0, 1.5%, 0); } to{ transform: scale(1.15) translate3d(1.5%, -1.5%, 0); } }
@keyframes kb3{ from{ transform: scale(1.14) translate3d(-1.5%, 1%, 0); } to{ transform: scale(1.05) translate3d(1%, 0, 0); } }
.hero-slider .hero-credit-wrap{ bottom: 14px; }

.hero-controls{
  position: absolute; z-index: 3; bottom: 18px;
  left: max(20px, calc((100vw - 80rem) / 2 + 2rem));
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  max-width: calc(100% - 40px);
}
.hero-dots{ display: flex; align-items: center; gap: .1rem; }
.hero-dot{ padding: 12px 4px; line-height: 0; }
.hero-dot span{ position: relative; display: block; width: 18px; height: 4px; border-radius: 99px; background: rgba(255,255,255,0.35); overflow: hidden; transition: width .4s var(--ease-glass); }
.hero-dot.is-active span{ width: 42px; }
.hero-dot.is-active span::after{ content:''; position:absolute; inset:0; background: var(--gold-light); transform-origin: left; animation: dotfill var(--hero-interval, 7s) linear forwards; }
.hero-slider.is-paused .hero-dot.is-active span::after{ animation-play-state: paused; }
@keyframes dotfill{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }
.hero-pause{ padding: .5rem .6rem; }
.hero-pause .i-play{ display: none; }
.hero-slider.is-paused .hero-pause .i-play{ display: block; }
.hero-slider.is-paused .hero-pause .i-pause{ display: none; }
@media (max-width: 639px){
  .hero-place{ display: none; }
  .hero-credit-wrap, .hero-slider .hero-credit-wrap{ left: 16px; right: auto; bottom: 10px; max-width: 68%; text-align: left; }
  .hero-slider .hero-controls{ bottom: 40px; }
}

@media (prefers-reduced-motion: reduce){
  .kenburns, .hero-slide__img{ animation: none !important; transform: none !important; }
  .hero-dot.is-active span::after{ animation: none; transform: scaleX(1); }
}
#mobile-nav:not(.open){ border-top-color: transparent; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (min-width: 1280px){ #mobile-nav{ display: none; } }
.hero-photo .hero-photo__shade{ z-index: 1; }
