@font-face {
  font-family: "Aboreto";
  src: url("/assets/static/fonts/aboreto.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spline Sans";
  src: url("/assets/static/fonts/spline-sans-300.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spline Sans";
  src: url("/assets/static/fonts/spline-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spline Sans";
  src: url("/assets/static/fonts/spline-sans-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --jh-bg: #f5f1e8;
  --jh-bg-alt: #ece5d7;
  --jh-panel: rgba(255, 251, 244, 0.88);
  --jh-text: #171511;
  --jh-muted: rgba(23, 21, 17, 0.64);
  --jh-line: rgba(23, 21, 17, 0.12);
  --jh-accent: #111;
  --jh-shadow: 0 24px 60px rgba(17, 17, 17, 0.1);
  --jh-max: 1240px;
  --jh-font-display: "Aboreto", serif;
  --jh-font-body: "Spline Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--jh-bg);
  color: var(--jh-text);
  font-family: var(--jh-font-body);
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

.jh-site-shell {
  min-height: 100vh;
}

.jh-site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  padding: 0 28px;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.46), rgba(12, 12, 12, 0));
  color: #fff;
}

.jh-site-header.is-light {
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.42), rgba(12, 12, 12, 0));
  color: #fff;
}

.jh-site-header__inner {
  width: min(var(--jh-max), 100%);
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.jh-site-logo {
  font-family: var(--jh-font-display);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.jh-site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.jh-site-nav a,
.jh-site-nav button {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font-family: var(--jh-font-display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jh-site-nav a.is-active {
  opacity: 1;
}

.jh-site-nav a,
.jh-site-nav button {
  opacity: 0.9;
}

.jh-site-nav a:hover,
.jh-site-nav button:hover {
  opacity: 1;
}

.jh-site-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
}

.jh-site-main {
  min-height: 100vh;
}

.jh-section {
  width: min(var(--jh-max), calc(100% - 40px));
  margin: 0 auto;
}

.jh-page-hero {
  position: relative;
  min-height: 27svh;
  display: grid;
  align-items: center;
  overflow: clip;
  color: #fff;
  background: #1d1914;
}

.jh-page-hero__media,
.jh-page-hero__overlay {
  position: absolute;
  inset: 0;
}

.jh-page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The hero band is far wider than any source photo, so a default center crop cuts
     straight through the subject's face on a standing full-body shot (head sits in the
     upper third, not the vertical middle) — John, 2026-08-05, reported eyes missing on
     News/Calendar. Biasing the crop upward keeps faces in frame across the jh:header set
     without needing a per-photo focal point. */
  object-position: 50% 25%;
}

.jh-page-hero__overlay {
  background:
    linear-gradient(180deg, rgba(13, 12, 11, 0.2), rgba(13, 12, 11, 0.72)),
    linear-gradient(120deg, rgba(29, 25, 20, 0.08), rgba(29, 25, 20, 0.4));
}

.jh-page-hero__content {
  position: relative;
  z-index: 1;
  width: min(var(--jh-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 16px;
  text-align: center;
}

.jh-kicker {
  margin: 0 0 16px;
  color: inherit;
  font-family: var(--jh-font-display);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.84;
}

.jh-display {
  margin: 0;
  font-family: var(--jh-font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.94;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jh-page-hero .jh-display {
  font-size: clamp(1.5rem, 3.5vw, 3.5rem);
}

.jh-lede {
  width: min(760px, 100%);
  margin: 24px auto 0;
  color: inherit;
  font-size: clamp(1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  opacity: 0.88;
}

.jh-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 32px 0 24px;
}

.jh-tab {
  border: 1px solid var(--jh-line);
  background: rgba(255, 255, 255, 0.46);
  color: var(--jh-text);
  padding: 14px 20px;
  font-family: var(--jh-font-display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.jh-tab.is-active {
  background: var(--jh-accent);
  color: #fff;
  border-color: var(--jh-accent);
}

.jh-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--jh-muted);
  font-family: var(--jh-font-display);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jh-breadcrumb button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}

.jh-breadcrumb__sep {
  opacity: 0.5;
}

/* ── Breadcrumb crumbs as badges (shared by /safaris, /map and /evolution) ──
   Each crumb renders as a pill. The last crumb (current location) is filled.
   The "/" separators are hidden because the pills already read as a trail.
   Per-surface overrides in john-safaris-clean.css / john-portfolio-clean.css
   were de-flattened so this single rule governs all three. */
.jh-breadcrumb__trail button,
.jh-breadcrumb__trail .jh-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--jh-line);
  border-radius: 999px;
  background: rgba(23, 21, 17, 0.04);
  color: var(--jh-muted);
  padding: 6px 13px;
  font-family: var(--jh-font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.jh-breadcrumb__trail button:hover,
.jh-breadcrumb__trail .jh-chip:hover {
  background: rgba(23, 21, 17, 0.08);
  color: var(--jh-text);
  border-color: rgba(23, 21, 17, 0.22);
}

/* Current location — the last badge in the trail. */
.jh-breadcrumb__trail button:last-child,
.jh-breadcrumb__trail .jh-chip:last-child {
  background: var(--jh-accent);
  border-color: var(--jh-accent);
  color: #fff;
}

.jh-breadcrumb__trail .jh-breadcrumb__sep {
  display: none;
}

/* Evolution online mode: collapsed-rank "…" expander + revealed academic crumbs. */
.jh-breadcrumb__trail .jh-chip--ellipsis {
  letter-spacing: 0;
  font-weight: 600;
  padding-left: 11px;
  padding-right: 11px;
}

.jh-breadcrumb__trail .jh-chip--ellipsis:last-child {
  background: rgba(23, 21, 17, 0.04);
  border-color: var(--jh-line);
  color: var(--jh-muted);
}

.jh-breadcrumb__trail .jh-chip--academic {
  background: transparent;
  border-style: dashed;
  text-transform: none;
  letter-spacing: 0.02em;
}

.jh-breadcrumb__trail .jh-chip--academic:last-child {
  background: transparent;
  border-color: var(--jh-line);
  color: var(--jh-muted);
}

.jh-photo-rail {
  width: min(var(--jh-max), calc(100% - 40px));
  margin: 32px auto 80px;
}

.jh-photo-rail__header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.jh-photo-rail__title {
  margin: 0;
  font-family: var(--jh-font-display);
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jh-photo-rail__meta {
  color: var(--jh-muted);
  font-size: 0.95rem;
}

.jh-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.jh-photo-card {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 0;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.jh-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.jh-photo-card:hover img {
  transform: scale(1.035);
}

.jh-photo-grid.is-selecting .jh-photo-card img,
.is-selecting .jh-photo-card img {
  filter: brightness(0.9);
}

.jh-photo-grid.is-selecting .jh-photo-card::after,
.is-selecting .jh-photo-card::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 2px 7px rgba(0, 0, 0, 0.28);
}

.jh-photo-grid.is-selecting .jh-photo-card.is-selected::after,
.is-selecting .jh-photo-card.is-selected::after {
  border-color: #fff;
  background: #0a84ff;
}

.jh-photo-grid.is-selecting .jh-photo-card.is-selected::before,
.is-selecting .jh-photo-card.is-selected::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  width: 8px;
  height: 5px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}

.jh-lightbox[hidden] {
  display: none;
}

.jh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(9, 9, 9, 0.96);
  display: grid;
  place-items: center;
  padding: max(14px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  isolation: isolate;
  overflow: auto;
}

.jh-lightbox__frame {
  position: relative;
  width: min(96vw, 1560px);
  max-height: none;
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  z-index: 1;
  justify-items: center;
  align-content: center;
}

.jh-lightbox__image,
.jh-lightbox__video {
  position: relative;
  width: auto;
  max-width: min(96vw, 1560px);
  height: auto;
  max-height: min(78svh, 900px);
  object-fit: contain;
  align-self: center;
  justify-self: center;
  z-index: 1;
}

.jh-lightbox__video {
  width: min(96vw, 1560px);
  aspect-ratio: 16 / 9;
  max-height: min(78svh, 900px);
  background: #000;
}

/* Shrink-wraps the image/video so overlays can anchor to the PHOTO's edges
   (the frame is viewport-wide; the centered image usually isn't). */
.jh-lightbox__stage {
  position: relative;
  width: fit-content;
  justify-self: center;
  align-self: center;
}

/* ToDo photos (Lightroom 'ToDo' keyword) are not John's — source disclaimer only in lightbox preview. */
.jh-lightbox__todo {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  opacity: 0.6;
  color: #fff;
  font: 600 11px/1.3 var(--jh-font-body, -apple-system, sans-serif);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.jh-lightbox[data-jh-lightbox-mode="video"] .jh-lightbox__frame,
.jh-lightbox[data-jh-lightbox-mode="image"] .jh-lightbox__frame {
  width: min(96vw, 1560px);
}

.jh-lightbox[data-jh-lightbox-mode="video"] .jh-lightbox__video,
.jh-lightbox[data-jh-lightbox-mode="image"] .jh-lightbox__image {
  max-width: min(96vw, 1560px);
  max-height: min(78svh, 900px);
}

.jh-lightbox__close,
.jh-lightbox__nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.jh-lightbox__close {
  top: -8px;
  right: 0;
  z-index: 5;
  font-family: var(--jh-font-display);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.jh-lightbox__nav {
  top: 0;
  bottom: 0;
  width: 16%;
  z-index: 2;
}

.jh-lightbox__nav--prev {
  left: 0;
}

.jh-lightbox__nav--next {
  right: 0;
}

.jh-lightbox__meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  z-index: 3;
  max-height: 18svh;
  overflow: auto;
}

.jh-chip {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 8px 12px;
  font-family: var(--jh-font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (orientation: landscape) and (max-height: 640px) {
  .jh-lightbox {
    align-items: start;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .jh-lightbox__frame {
    width: min(90vw, 1560px);
    gap: 8px;
  }

  .jh-lightbox__image,
  .jh-lightbox__video,
  .jh-lightbox[data-jh-lightbox-mode="video"] .jh-lightbox__video,
  .jh-lightbox[data-jh-lightbox-mode="image"] .jh-lightbox__image {
    max-width: min(90vw, 1560px);
    max-height: 82svh;
  }

  .jh-lightbox__video,
  .jh-lightbox[data-jh-lightbox-mode="video"] .jh-lightbox__frame,
  .jh-lightbox[data-jh-lightbox-mode="image"] .jh-lightbox__frame {
    width: min(90vw, 1560px);
  }
}

.jh-chip--download {
  min-width: 42px;
  padding: 7px 13px 9px;
  font-family: var(--jh-font-display);
  font-size: 1.15rem;
  line-height: 1;
}

.jh-gallery-select-bar {
  position: fixed;
  left: max(10px, env(safe-area-inset-left));
  right: max(10px, env(safe-area-inset-right));
  top: max(10px, env(safe-area-inset-top));
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 6px 6px 6px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  background: rgba(248, 248, 248, 0.9);
  color: #1d1d1f;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.jh-gallery-select-bar[hidden] {
  display: none;
}

.jh-gallery-select-bar__count {
  min-width: 0;
  text-align: left;
  font-size: 15px;
  line-height: 1.1;
  white-space: nowrap;
}

.jh-gallery-select-bar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jh-gallery-select-bar__button {
  min-width: 0;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.12);
  color: #007aff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 0 13px;
}

.jh-gallery-select-bar__button--primary {
  background: #0a84ff;
  color: #fff;
}

.jh-gallery-select-bar__button:disabled {
  opacity: 0.45;
}

.jh-site-footer {
  padding: 26px 28px 42px;
  border-top: 1px solid var(--jh-line);
}

.jh-site-footer__inner {
  width: min(var(--jh-max), 100%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 16px;
  color: var(--jh-muted);
  font-family: var(--jh-font-display);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.jh-site-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.jh-social-link {
  width: 34px;
  height: 34px;
  border: 1px solid var(--jh-line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.34);
}

.jh-social-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.jh-site-footer__copyright {
  text-align: center;
}

@media (max-width: 1040px) {
  .jh-site-header {
    padding: 0 18px;
  }

  .jh-site-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .jh-site-nav {
    position: fixed;
    inset: 82px 0 auto 0;
    z-index: 3001;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 22px 28px;
    background: rgba(245, 241, 232, 0.96);
    color: var(--jh-text);
    border-bottom: 1px solid var(--jh-line);
    box-shadow: var(--jh-shadow);
  }

  .jh-site-header,
  .jh-site-header.is-light {
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.78), rgba(12, 12, 12, 0.06));
  }

  .jh-site-header[data-menu-open="true"] .jh-site-nav {
    display: flex;
  }

  .jh-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .jh-page-hero__content {
    padding-top: 104px;
  }

  .jh-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .jh-display {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .jh-section,
  .jh-page-hero__content,
  .jh-photo-rail {
    width: min(var(--jh-max), calc(100% - 24px));
  }

  .jh-photo-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Destinations mega-menu (site-wide header) ─────────────────────────── */
.jh-site-nav__destinations {
  display: inline-flex;
  align-items: center;
}

.jh-site-nav__chev {
  margin-left: 6px;
  font-size: 0.7em;
  transition: transform 0.18s ease;
}

.jh-site-header[data-megamenu-open="true"] .jh-site-nav__chev {
  transform: rotate(180deg);
}

.jh-megamenu {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--jh-max), calc(100% - 32px));
  max-height: min(74vh, 660px);
  overflow: auto;
  background: var(--jh-bg);
  color: var(--jh-text);
  border: 1px solid var(--jh-line);
  border-radius: 16px;
  box-shadow: var(--jh-shadow);
  z-index: 3200;
}

.jh-megamenu__inner {
  padding: 22px 26px 26px;
}

.jh-megamenu__head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--jh-line);
}

.jh-megamenu__eyebrow {
  font-family: var(--jh-font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--jh-muted);
}

.jh-megamenu__search {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.jh-megamenu__search input {
  border: 1px solid var(--jh-line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--jh-font-body);
  font-size: 0.86rem;
  min-width: 200px;
  color: var(--jh-text);
}

.jh-megamenu__search button {
  border: 0;
  background: var(--jh-text);
  color: var(--jh-bg);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--jh-font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  cursor: pointer;
}

.jh-megamenu__calendar-link {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--jh-font-display);
  color: var(--jh-text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.jh-megamenu__body {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 26px;
}

.jh-megamenu__map {
  position: relative;
  align-self: start;
  height: clamp(340px, 58vh, 540px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--jh-line);
  background: var(--jh-bg-alt);
}

.jh-megamenu__map .leaflet-container {
  width: 100%;
  height: 100%;
  background: var(--jh-bg-alt);
  font: inherit;
}

.jh-megamenu__maphint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jh-muted);
  font-size: 0.8rem;
}

.jh-destmap-tip {
  font-family: var(--jh-font-body);
  font-size: 0.78rem;
}

/* Inline destinations-search results — overlaid inside the map (which lives in the
   dropdown), so results stay clear of the top nav. z-index sits above Leaflet's
   control pane (1000). */
.jh-destsearch-results {
  position: absolute;
  z-index: 1100;
  top: 12px;
  left: 12px;
  width: min(300px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  background: var(--jh-bg);
  border: 1px solid var(--jh-line);
  border-radius: 12px;
  box-shadow: var(--jh-shadow);
  overflow: hidden;
}

.jh-destsearch-results__head {
  padding: 10px 14px;
  font-family: var(--jh-font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--jh-muted);
  border-bottom: 1px solid var(--jh-line);
}

.jh-destsearch-results__list {
  overflow-y: auto;
}

.jh-destsearch-results__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 14px;
  text-decoration: none;
  color: var(--jh-text);
  border-bottom: 1px solid var(--jh-line);
}

.jh-destsearch-results__row:last-child {
  border-bottom: 0;
}

.jh-destsearch-results__row:hover {
  background: var(--jh-bg-alt);
}

.jh-destsearch-results__name {
  font-family: var(--jh-font-body);
  font-size: 0.9rem;
}

.jh-destsearch-results__place {
  font-size: 0.74rem;
  color: var(--jh-muted);
}

/* Photo + name markers (continent → country → safari drill-down). The Leaflet
   divIcon wrapper is a 0×0 box at the point; the pill centres on it. */
.jh-destmark-wrap {
  background: transparent !important;
  border: 0 !important;
}

.jh-destmark {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: 116px;
  cursor: pointer;
}

.jh-destmark__img {
  /* width !important: Leaflet ships `.leaflet-container .leaflet-marker-pane img
     { width: auto }`, which outranks this rule and lets wide/panoramic thumbs
     stretch into long horizontal "tubes". Pinning a fixed square (+ object-fit:
     cover below) crops every photo to the same circular badge on the map. */
  width: 46px !important;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  background: var(--jh-bg-alt);
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.34);
  transition: transform 0.12s ease;
}

.jh-destmark__lab {
  max-width: 116px;
  text-align: center;
  font-family: var(--jh-font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.66rem;
  line-height: 1.08;
  color: var(--jh-text);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  padding: 2px 7px;
  box-shadow: 0 2px 7px rgba(17, 17, 17, 0.18);
}

.jh-destmark:hover,
.jh-destmark:focus-visible {
  outline: none;
  z-index: 600;
}

.jh-destmark:hover .jh-destmark__img,
.jh-destmark:focus-visible .jh-destmark__img {
  transform: scale(1.1);
}

.jh-destmap-back {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--jh-line);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--jh-font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--jh-text);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(17, 17, 17, 0.14);
}

.jh-destmap-back:hover {
  background: #fff;
}

/* Let the 1fr column shrink below its multi-column content width (grid items
   default to min-width:auto) so .jh-megamenu__cols never forces overflow. */
.jh-megamenu__panels {
  min-width: 0;
}

.jh-megamenu__rail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--jh-line);
  padding-right: 16px;
}

.jh-megamenu__tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--jh-font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: var(--jh-muted);
}

.jh-megamenu__tab:hover {
  background: var(--jh-bg-alt);
  color: var(--jh-text);
}

.jh-megamenu__tab.is-active {
  background: var(--jh-text);
  color: var(--jh-bg);
}

.jh-megamenu__tab-count {
  font-family: var(--jh-font-body);
  font-size: 0.72rem;
  opacity: 0.65;
}

.jh-megamenu__panel {
  display: none;
}

.jh-megamenu__panel.is-active {
  display: block;
}

.jh-megamenu__cols {
  columns: 240px 4;
  column-gap: 28px;
}

.jh-megamenu__col {
  break-inside: avoid;
  margin-bottom: 22px;
}

.jh-megamenu__country {
  display: block;
  font-family: var(--jh-font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--jh-line);
}

.jh-megamenu__country:hover {
  color: var(--jh-muted);
}

.jh-megamenu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-radius: 8px;
}

.jh-megamenu__item:hover {
  background: var(--jh-bg-alt);
}

.jh-megamenu__thumb {
  width: 48px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--jh-bg-alt);
}

.jh-megamenu__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jh-megamenu__item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.jh-megamenu__item-text b {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jh-megamenu__item-text small {
  color: var(--jh-muted);
  font-size: 0.76rem;
}

.jh-megamenu__viewall {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--jh-font-display);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* Adventures submenu — Expeditions / Film / Global Health / Travels as a row of
   section cards. Has no continent rail or map, so it overrides the destinations
   two-column body grid and gives each card a stacked title / lede / view line.
   Without these rules the three spans render inline and run together
   ("ExpeditionsHigh mountains…"). */
.jh-megamenu__body.jh-adv-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.jh-adv-menu__item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-decoration: none;
  color: var(--jh-text);
  background: var(--jh-bg-alt);
  border: 1px solid var(--jh-line);
  border-radius: 14px;
  padding: 16px 18px 18px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.jh-adv-menu__item:hover,
.jh-adv-menu__item:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--jh-shadow);
  border-color: var(--jh-muted);
}

.jh-adv-menu__name {
  display: block;
  font-family: var(--jh-font-display);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--jh-text);
}

.jh-adv-menu__lede {
  display: block;
  font-family: var(--jh-font-body);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--jh-muted);
}

.jh-adv-menu__go {
  display: block;
  margin-top: auto;
  padding-top: 4px;
  font-family: var(--jh-font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--jh-text);
}

@media (max-width: 1040px) {
  .jh-megamenu {
    position: fixed;
    inset: 82px 0 auto 0;
    transform: none;
    width: auto;
    max-height: calc(100dvh - 82px);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .jh-megamenu__body {
    grid-template-columns: 1fr;
  }

  .jh-megamenu__map {
    height: clamp(320px, 56vh, 460px);
  }

  .jh-megamenu__rail {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid var(--jh-line);
    padding-right: 0;
    padding-bottom: 12px;
  }

  .jh-megamenu__search input {
    min-width: 0;
    flex: 1 1 auto;
  }
}

/* --- Wildlife mega-menu: safaris grouped by the hero animal's class -------- */
.jh-site-nav__wildlife {
  display: inline-flex;
  align-items: center;
}

.jh-wildmenu__facets {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--jh-line);
  border-radius: 999px;
}

.jh-wildmenu__facet {
  border: 0;
  background: transparent;
  color: var(--jh-muted);
  cursor: pointer;
  font-family: var(--jh-font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.16s ease, color 0.16s ease;
}

.jh-wildmenu__facet.is-active {
  background: var(--jh-text);
  color: var(--jh-bg);
}

/* A facet or class with nothing behind it under the current selection is shown but
   inert — clicking it can no longer strand the menu on an empty grid. */
.jh-wildmenu__facet.is-empty,
.jh-megamenu__tab.is-empty {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

.jh-wildmenu__search {
  display: flex;
  margin-left: auto;
}

.jh-wildmenu__search input {
  border: 1px solid var(--jh-line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--jh-font-body);
  font-size: 0.86rem;
  min-width: 220px;
  color: var(--jh-text);
}

.jh-wildmenu__grid {
  align-self: start;
  max-height: clamp(340px, 58vh, 540px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
  padding-right: 4px;
}

/* Empty state — a real, in-flow block. It spans every grid column so the grid keeps
   its height and the panel stays the size it was (the old shared .jh-megamenu__maphint
   is position:absolute for the Destinations map, and collapsed this panel to a sliver). */
.jh-wildmenu__empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 240px;
  padding: 32px 24px;
  text-align: center;
  border: 1px dashed var(--jh-line);
  border-radius: 12px;
  background: var(--jh-bg-alt);
}

.jh-wildmenu__empty-text {
  margin: 0;
  color: var(--jh-muted);
  font-size: 0.92rem;
}

.jh-wildmenu__empty-reset {
  border: 1px solid var(--jh-line);
  background: var(--jh-bg);
  color: var(--jh-text);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  font-family: var(--jh-font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  transition: background 0.16s ease, color 0.16s ease;
}

.jh-wildmenu__empty-reset:hover,
.jh-wildmenu__empty-reset:focus-visible {
  background: var(--jh-text);
  color: var(--jh-bg);
  outline: none;
}

.jh-wildcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--jh-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--jh-bg-alt);
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.jh-wildcard:hover {
  box-shadow: var(--jh-shadow);
  transform: translateY(-2px);
}

.jh-wildcard__tree {
  display: block;
  color: inherit;
}

.jh-wildcard__thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--jh-bg-alt);
  overflow: hidden;
}

.jh-wildcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jh-wildcard__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--jh-font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.62rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--jh-text);
}

.jh-wildcard--ocean .jh-wildcard__badge {
  background: rgba(28, 92, 122, 0.92);
  color: #fff;
}

.jh-wildcard__name {
  display: block;
  font-family: var(--jh-font-display);
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 9px 12px 2px;
  color: var(--jh-text);
}

.jh-wildcard__loc {
  display: block;
  padding: 0 12px 11px;
  font-size: 0.76rem;
  color: var(--jh-muted);
}

a.jh-wildcard__loc:hover {
  color: var(--jh-text);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .jh-wildmenu__grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    max-height: 62vh;
  }

  .jh-wildmenu__search {
    order: 3;
  }

  .jh-wildmenu__search input {
    min-width: 0;
    flex: 1 1 auto;
  }
}

/* Tree of Life first-visit splash (sessionStorage-gated, see john-clean.js).
   John, 2026-08-19: shown once per browser session on the first click of the
   "Tree of Life" nav link, explaining that gallery photos link to ToL nodes
   with taxonomy + a species description. */
.jh-tol-splash[hidden] {
  display: none;
}

.jh-tol-splash {
  position: fixed;
  inset: 0;
  /* Above every other overlay in this file — mobile nav dropdown (3001) and
     mega-menu panels (3200) included — so it can never render behind the
     mobile menu it was opened from. */
  z-index: 3500;
  background: rgba(9, 9, 9, 0.72);
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.jh-tol-splash__card {
  width: min(420px, 100%);
  background: var(--jh-panel);
  border: 1px solid var(--jh-line);
  border-radius: 16px;
  box-shadow: var(--jh-shadow);
  padding: 34px 30px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.jh-tol-splash__logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.jh-tol-splash__eyebrow {
  margin: 0;
  font-family: var(--jh-font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jh-muted);
}

.jh-tol-splash__card h2 {
  margin: 0;
  font-family: var(--jh-font-display);
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--jh-text);
  max-width: 26ch;
}

.jh-tol-splash__card p {
  margin: 0;
  font-family: var(--jh-font-body);
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--jh-muted);
  max-width: 36ch;
}

.jh-tol-splash__wip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--jh-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--jh-text);
  background: var(--jh-bg-alt);
  border: 1px solid var(--jh-line);
  padding: 5px 11px;
  border-radius: 999px;
}

.jh-tol-splash__wip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jh-accent);
}

.jh-tol-splash__cta {
  margin-top: 8px;
  width: 100%;
  font-family: var(--jh-font-body);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--jh-bg);
  background: var(--jh-accent);
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  cursor: pointer;
}

.jh-tol-splash__cta:hover {
  opacity: 0.9;
}

.jh-tol-splash__cta:focus-visible {
  outline: 2px solid var(--jh-accent);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .jh-tol-splash__card {
    padding: 28px 22px 24px;
  }
}
