

.jh-safari-detail {
  width: min(var(--jh-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 80px;
}

.jh-safari-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.jh-safari-detail__copy {
  display: grid;
  gap: 22px;
}

.jh-safari-section,
.jh-safari-detail__gallery {
  background: rgba(255, 252, 246, 0.82);
  border: 1px solid var(--jh-line);
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.08);
  padding: 22px;
}

.jh-safari-detail__copy:empty {
  display: none;
}

.jh-safari-detail__gallery {
  margin-top: 28px;
}

.jh-safari-detail__copy:empty + .jh-safari-detail__gallery {
  margin-top: 0;
}

.jh-safari-detail__gallery .jh-photo-grid {
  display: block;
  column-count: 4;
  column-gap: 16px;
}

.jh-safari-detail__gallery .jh-photo-card {
  display: block;
  position: relative;
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  aspect-ratio: auto;
  background: transparent;
}

.jh-safari-detail__gallery .jh-photo-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.jh-safari-section h2,
.jh-safari-detail__gallery h2 {
  margin: 0 0 14px;
  font-family: var(--jh-font-display);
  font-size: 1.24rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jh-safari-section ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

/* ── Pricing + build-your-safari card (Mara-core Kenya pages) ─────────────── */
/* The card reuses .jh-safari-facts (cream panel, same fonts); these rules turn off
   its grid, space the From row, and add the compact interactive extension list with
   the per-camp ✈ Fly / 🚗 Drive switch. */
.jh-safari-facts.jh-pricing-panel {
  display: block;
  gap: 0;
}

.jh-pricing__from {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 6px 18px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--jh-line);
}

.jh-pricing__build-head {
  margin-bottom: 10px;
}

.jh-pricing__build-title {
  display: block;
  font-family: var(--jh-font-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jh-muted);
}

.jh-pricing__build-intro {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--jh-muted);
}

.jh-ext-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  background: rgba(255, 255, 252, 0.6);
  border: 1px solid var(--jh-line);
}

.jh-ext {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-top: 1px solid var(--jh-line);
  transition: background 0.15s ease;
}

.jh-ext:first-child {
  border-top: 0;
}

.jh-ext--core {
  background: rgba(46, 93, 52, 0.07);
}

.jh-ext.is-selected {
  background: rgba(46, 93, 52, 0.045);
}

.jh-ext__toggle {
  position: relative;
  flex: 0 0 auto;
  line-height: 0;
  cursor: pointer;
}

.jh-ext__toggle input {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.jh-ext__check {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--jh-line);
  border-radius: 5px;
  background: #fff;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.jh-ext__toggle input:checked + .jh-ext__check,
.jh-ext__check--fixed {
  background: #2e5d34;
  border-color: #2e5d34;
}

.jh-ext__toggle input:checked + .jh-ext__check::after,
.jh-ext__check--fixed::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.jh-ext__toggle input:focus-visible + .jh-ext__check {
  outline: 2px solid #2e5d34;
  outline-offset: 2px;
}

/* Tier-locked (John's ruling, 2026-08-25): an included leg with no approved 4-/6-pax
   contribution of its own can't be unticked away from the 2-pax tier — unticking would
   deduct its 2-pax price at any party size, a real over-discount. Shown disabled, not
   hidden — same box, dimmed, with a title tooltip carrying the reason. */
.jh-ext__toggle input:disabled {
  cursor: default;
}

.jh-ext__toggle input:disabled + .jh-ext__check {
  opacity: 0.55;
}

.jh-ext__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1 1 auto;
  min-width: 0;
}

.jh-ext__name {
  font-family: var(--jh-font-display);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--jh-text);
  text-decoration: none;
}

a.jh-ext__name:hover {
  color: #2e5d34;
  text-decoration: underline;
}

.jh-ext__tag {
  font-family: var(--jh-font-body);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2e5d34;
  border: 1px solid rgba(46, 93, 52, 0.4);
  border-radius: 999px;
  padding: 0 6px;
  margin-left: 5px;
  vertical-align: middle;
}

.jh-ext__meta {
  color: var(--jh-muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.jh-ext__modes {
  flex: 0 0 auto;
  display: inline-flex;
  border: 1px solid var(--jh-line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.jh-ext__mode {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--jh-font-body);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: var(--jh-muted);
  padding: 3px 8px;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}

.jh-ext__mode + .jh-ext__mode {
  border-left: 1px solid var(--jh-line);
}

/* The Drive car (inline SVG, currentColor) — sits on the text baseline beside its
   label exactly as ✈ does, and turns white with the label when the pill is selected.
   It replaced 🚗, whose colour font ignores `color` and stayed red on the green
   is-on background. */
.jh-ext__mode-ico {
  display: inline-block;
  vertical-align: -0.14em;
  margin-right: 0.18em;
}

.jh-ext__mode.is-on {
  background: #2e5d34;
  color: #fff;
}

.jh-ext__price {
  flex: 0 0 auto;
  font-family: var(--jh-font-body);
  font-size: 0.82rem;
  color: var(--jh-text);
  white-space: nowrap;
  min-width: 92px;
  text-align: right;
}

/* The live total lives in the From price-amount; the nights breakdown
   ("7n Mara · 1n Nairobi · …") rides in the price-addon line below it. */
.jh-pricing__from [data-builder-breakdown] {
  color: #2e5d34;
  font-weight: 500;
}

@media (max-width: 560px) {
  .jh-ext {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .jh-ext__body {
    flex: 1 1 55%;
  }

  .jh-ext__price {
    min-width: 0;
  }

  .jh-ext__modes {
    order: 3;
  }}

@media (max-width: 980px) {

  .jh-safari-detail__gallery .jh-photo-grid {
    column-count: 3;
  }}

@media (max-width: 680px) {

  .jh-safari-detail {
    width: min(var(--jh-max), calc(100% - 24px));
  }

  .jh-safari-detail__gallery .jh-photo-grid {
    column-count: 2;
  }}

.jh-safari-facts {
  margin: 0 0 30px;
  padding: 22px 24px;
  background: rgba(247, 242, 233, 0.7);
  border: 1px solid var(--jh-line);
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.06);
  display: grid;
  gap: 13px;
  /* Pack rows at content height. When the panel is stretched to the route map's
     height (.jh-safari-overview .jh-safari-facts { height: 100% }), the default
     align-content (stretch) inflates each auto row track, leaving big gaps below
     every fact; keep the rows tight at the top and let the slack fall to the
     bottom of the panel instead. */
  align-content: start;
}

.jh-safari-facts__row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: start;
  gap: 6px 18px;
}

.jh-safari-facts__label {
  padding-top: 2px;
  color: var(--jh-muted);
  font-family: var(--jh-font-display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.jh-safari-facts__value {
  font-family: var(--jh-font-body);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--jh-text);
}

.jh-safari-facts__value--display {
  font-family: var(--jh-font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.jh-safari-facts__value--price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 9px;
}

.jh-safari-facts__price-amount {
  font-family: var(--jh-font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.jh-safari-facts__price-sub {
  font-family: var(--jh-font-body);
  font-size: 0.78rem;
  color: var(--jh-muted);
}

/* ⛔ `.jh-safari-facts__price-note` (the round-once note) DELETED 2026-08-22 with its
   only emitter in john-safaris-clean.js, on John's instruction. Zero references remain
   in JS, in scripts/, and in every baked page — verified, not assumed. Leaving the
   styled hook behind is how a deleted blurb comes back. ⚑ Stale branch
   grace/flydrive-headline (b37305d9) still adds this rule; drop it there too. */

/* Group-size toggle — the segmented party-size pill under the From price. Renders
   only on a destination whose pricing entry publishes `group_tiers`; every other
   page emits no .jh-safari-facts__group at all, so none of this applies there.
   Colours are the approved mock-up's literals, not tokens: this control is a paper
   surface of its own and must not drift with the facts-panel palette. */
/* The line-breaker. `flex-basis:100%` on the pill itself would stretch its border
   across the whole panel — the price value is a wrapping flex row. */
.jh-safari-facts__group-line {
  flex-basis: 100%;
  margin-top: 6px;
}

.jh-safari-facts__group {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #e3dbc8;
  border-radius: 100px;
  background: #fbf7ee;
  max-width: 100%;
  flex-wrap: wrap;
}

.jh-safari-facts__group-btn {
  font: 600 13px "Avenir Next", -apple-system, Helvetica, Arial, sans-serif;
  padding: 7px 16px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: #6b6252;
  cursor: pointer;
}

.jh-safari-facts__group-btn[aria-pressed="true"] {
  background: #8a6423;
  color: #fffdf8;
}

.jh-safari-facts__group-btn:focus-visible {
  outline: 2px solid #8a6423;
  outline-offset: 2px;
}

/* Near-required add-on (Nairobi) billed on top of the headline price — own line. */
.jh-safari-facts__price-addon {
  flex-basis: 100%;
  font-family: var(--jh-font-body);
  font-size: 0.82rem;
  color: var(--jh-text);
  margin-top: 3px;
}

.jh-safari-facts__value--badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.jh-safari-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--jh-line);
  background: var(--jh-panel);
  color: var(--jh-text);
  font-family: var(--jh-font-body);
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease,
    box-shadow 160ms ease;
}

.jh-safari-badge__icon {
  width: 13px;
  height: 13px;
  flex: none;
  fill: currentColor;
  opacity: 0.55;
}

.jh-safari-badge:hover,
.jh-safari-badge:focus-visible {
  background: var(--jh-accent);
  color: #fff;
  border-color: var(--jh-accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.14);
  outline: none;
}

.jh-safari-badge:hover .jh-safari-badge__icon,
.jh-safari-badge:focus-visible .jh-safari-badge__icon {
  opacity: 1;
}

/* Collapsible wildlife class groups (Mammals / Birds / Reptiles …). Shared look
   with the Map + Evolution surfaces. Native <details>/<summary>, no JS. */
.jh-taxa-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 9px;
}
.jh-taxa-group {
  flex: 0 1 auto;
}
.jh-taxa-group[open] {
  flex-basis: 100%;
}
.jh-taxa-group__header {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--jh-line);
  background: var(--jh-panel);
  color: var(--jh-text);
  font-family: var(--jh-font-body);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.jh-taxa-group__header::-webkit-details-marker { display: none; }
.jh-taxa-group__header:hover {
  background: var(--jh-accent);
  color: #fff;
  border-color: var(--jh-accent);
}
.jh-taxa-group__icon { width: 14px; height: 14px; flex: none; fill: currentColor; opacity: 0.6; }
.jh-taxa-group__header:hover .jh-taxa-group__icon { opacity: 1; }
.jh-taxa-group__name { font-weight: 400; }
.jh-taxa-group__count {
  background: rgba(23, 21, 17, 0.1);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.72rem;
}
.jh-taxa-group__header::after {
  content: "›";
  margin-left: 2px;
  opacity: 0.55;
  transition: transform 150ms ease;
}
.jh-taxa-group[open] .jh-taxa-group__header::after { transform: rotate(90deg); }
.jh-taxa-group__tray {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 9px;
}

.jh-safari-section h3 {
  margin: 18px 0 8px;
  font-family: var(--jh-font-display);
  font-size: 0.96rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jh-text);
}

/* Per-day accommodation badge next to the itinerary's "Day N" headings. */
.jh-day-stay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--jh-line);
  background: var(--jh-panel);
  color: var(--jh-muted);
  font-family: var(--jh-font-body);
  font-size: 0.74rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: none;
  vertical-align: 2px;
  white-space: nowrap;
}

.jh-day-stay__icon {
  width: 13px;
  height: 13px;
  flex: none;
  fill: currentColor;
  opacity: 0.55;
}

@media (max-width: 680px) {
  .jh-day-stay {
    white-space: normal;
  }

  .jh-safari-facts {
    padding: 18px 16px;
  }

  .jh-safari-facts__row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .jh-safari-facts__label {
    padding-top: 0;
  }}

/* ── Safari itinerary route map (detail pages) ─────────────────────────────
   The overview facts panel and the route map share a row; the map fills the
   space to the right of the facts. Falls back to full-width facts when a
   safari has no authored route (the .jh-safari-overview wrapper is omitted). */
.jh-safari-overview {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  margin: 0 0 30px;
}

.jh-safari-overview .jh-safari-facts {
  margin: 0;
  height: 100%;
}

.jh-routemap {
  display: flex;
  min-width: 0;
  height: 100%;
}

.jh-routemap__canvas {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 1px solid var(--jh-line);
  border-radius: 4px;
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.08);
  background: var(--jh-bg-alt);
  overflow: hidden;
}

.jh-routemap__canvas.leaflet-container {
  font-family: var(--jh-font-body);
  background: var(--jh-bg-alt);
}

/* Map markers (Leaflet divIcons) — kept outside the .jh-routemap subtree. */
.jh-routemap-pin-wrap,
.jh-routemap-chip-wrap { background: none; border: 0; }

.jh-routemap-pin {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #806a49;
  color: #fff;
  font-family: var(--jh-font-display);
  font-size: 0.78rem;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 3px 9px rgba(17, 17, 17, 0.32);
  transition: transform 130ms ease;
}

.jh-routemap-pin--gateway {
  background: #fffdf8;
  color: #7a5d34;
  border: 2px solid #a8682f;
}

.jh-routemap-pin--point {
  width: 19px;
  height: 19px;
  font-size: 0.64rem;
  background: rgba(23, 21, 17, 0.55);
  border-width: 2px;
}

.jh-routemap-pin.is-link {
  cursor: pointer;
}

.jh-routemap-pin.is-active,
.jh-routemap-pin-wrap:hover .jh-routemap-pin {
  transform: scale(1.18);
}

.jh-routemap-pin.is-link:hover {
  background: #6f5a3c;
}

.jh-routemap-pin--gateway.is-link:hover {
  background: #f4ead8;
}

.jh-routemap-chip {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fffdf8;
  border: 1px solid var(--jh-line);
  box-shadow: 0 2px 6px rgba(17, 17, 17, 0.2);
}

.jh-routemap-chip svg {
  width: 14px;
  height: 14px;
}

.jh-routemap-chip--flight { border-color: #a8682f; }
.jh-routemap-chip--flight svg { fill: #a8682f; }
.jh-routemap-chip--drive { border-color: #6c7a4c; }
.jh-routemap-chip--drive svg { fill: #6c7a4c; }
.jh-routemap-chip--boat { border-color: #3d6f7a; }
.jh-routemap-chip--boat svg { fill: #3d6f7a; }

.jh-routemap-tip.leaflet-tooltip {
  background: #fffdf8;
  border: 1px solid var(--jh-line);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.18);
  color: var(--jh-text);
  font-family: var(--jh-font-body);
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 6px 10px;
}

.jh-routemap-tip.leaflet-tooltip strong { font-family: var(--jh-font-display); font-weight: 400; }
.jh-routemap-tip__sub { color: var(--jh-muted); }
.jh-routemap-tip__hint { color: #806a49; font-size: 0.72rem; letter-spacing: 0.02em; }
.jh-routemap-tip.leaflet-tooltip::before { display: none; }

/* Route-map pin → itinerary leg deep-link: target + brief highlight on arrival. */
.jh-itin-day {
  scroll-margin-top: 96px;
}

/* Extension-aware itinerary (Denys, 2026-08-21). A leg the guest has not ticked, and the
   half of a heading currently standing down (authored vs the builder's recomputed twin),
   are hidden with the plain `hidden` attribute — declared !important because these are
   block/inline elements whose display is set elsewhere in this sheet and in print. */
.jh-itin-leg[hidden],
.jh-itin-day__authored[hidden],
.jh-itin-day__derived[hidden] {
  display: none !important;
}

#itinerary {
  scroll-margin-top: 96px;
}

@keyframes jhItinFlash {
  0% { background: rgba(128, 106, 73, 0.26); }
  100% { background: rgba(128, 106, 73, 0); }
}

.jh-itin-flash {
  animation: jhItinFlash 2.2s ease;
  border-radius: 4px;
}

@media (max-width: 880px) {
  .jh-safari-overview {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .jh-routemap__canvas { height: 320px; min-height: 0; }}

/* ── Safari headline actions: download-PDF badge + 'Contact us' icons ────────
   Live beside the safari name in the overview panel's "Safari" row. The badge
   triggers print-to-PDF (john-safaris-clean.js); the icons open mail / WhatsApp
   carrying the safari title. All are hidden from the printed PDF below. */
.jh-safari-facts__value--headline {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.jh-safari-facts__name {
  font-family: var(--jh-font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  /* Push the Download PDF / Enquire actions to the right edge of the row, so
     the safari name and the actions share one line. */
  margin-right: auto;
}

.jh-safari-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.jh-safari-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--jh-line);
  background: var(--jh-panel);
  color: var(--jh-text);
  font-family: var(--jh-font-body);
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease,
    transform 160ms ease, box-shadow 160ms ease;
}

.jh-safari-action--pdf {
  padding: 8px 15px;
  border-radius: 999px;
}

.jh-safari-action--icon {
  width: 34px;
  height: 34px;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
}

.jh-safari-action__icon {
  width: 15px;
  height: 15px;
  flex: none;
  fill: currentColor;
  opacity: 0.7;
}

.jh-safari-action:hover,
.jh-safari-action:focus-visible {
  background: var(--jh-accent);
  color: #fff;
  border-color: var(--jh-accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.14);
  outline: none;
}

.jh-safari-action:hover .jh-safari-action__icon,
.jh-safari-action:focus-visible .jh-safari-action__icon { opacity: 1; }

.jh-safari-contact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.jh-safari-contact__label {
  color: var(--jh-muted);
  font-family: var(--jh-font-display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Print-to-PDF brochure (the "Download PDF" badge → window.print) ─────────
   Page 1: full-bleed hero, then the facts (wildlife as group badges only), the
   Summary, then the route map. Then the itinerary, Inclusions / Exclusions and the
   gallery flow on. @page margins give every page a top/bottom/side margin and the
   hero bleeds past them to the edges; the route map is the pre-rendered static
   image. (To drop Chrome's own date/title header, untick "Headers and footers"
   once in the print dialog — Chrome remembers it.) */
.jh-routemap__static { display: none; }
/* Gallery rows are transparent on screen (the masonry column layout is unchanged);
   they only become real rows in print to control page breaks. */
.jh-photo-row { display: contents; }

@media print {
  @page { margin: 13mm; }

  *,
  *::before,
  *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  html,
  body { background: #fff !important; }

  /* Site chrome + interactive-only affordances + the LIVE route map are dropped. */
  .jh-site-header,
  .jh-site-footer,
  .jh-lightbox,
  .jh-safari-actions,
  .jh-local-safari-editor,
  .jh-calc-modal,
  .jh-routemap__canvas { display: none !important; }

  .jh-site-shell,
  .jh-site-main { display: block !important; }

  /* Full-bleed hero: bleeds past the @page margin to the top + side page edges. */
  .jh-page-hero {
    min-height: 0 !important;
    height: 246px !important;
    margin: -13mm -13mm 0 !important;
    width: calc(100% + 26mm) !important;
    color: #fff !important;
    break-inside: avoid;
  }
  .jh-page-hero__content { padding: 0 0 16px !important; }
  .jh-page-hero .jh-display { font-size: 28pt !important; }

  /* One ordered column so the Summary sits between the facts and the map. */
  .jh-safari-detail {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 6mm 0 0 !important;
  }
  .jh-safari-overview,
  .jh-safari-detail__copy { display: contents !important; }
  .jh-safari-detail__copy > .jh-safari-section { order: 6; }
  .jh-safari-overview > .jh-safari-facts { order: 1; }
  /* The pricing/build-your-safari card is a direct child of .jh-safari-detail with no
     explicit order; without this it sorts to order:0 and prints ABOVE the facts. Pin it
     just after the facts panel (same order:1, later in source). */
  .jh-safari-detail > .jh-pricing-panel { order: 1; }
  .jh-safari-detail__copy > .jh-safari-section--summary { order: 2; }
  .jh-safari-overview > .jh-routemap { order: 3; }
  .jh-safari-detail__copy > .jh-safari-section--itinerary { order: 4; }
  .jh-safari-detail__copy > .jh-safari-section--inclusions { order: 5; }
  .jh-safari-detail__gallery { order: 7; }

  /* Flat cards (no drop-shadows → no grey bands around the Summary). */
  .jh-safari-section,
  .jh-safari-detail__gallery { margin: 0 !important; padding: 16px !important; box-shadow: none !important; }
  .jh-safari-facts { height: auto !important; gap: 9px !important; padding: 16px 20px !important; box-shadow: none !important; }
  .jh-safari-facts__row { gap: 4px 18px !important; }

  /* Static route map image (replaces the live Leaflet canvas in the PDF). */
  .jh-routemap { display: block !important; width: 100% !important; height: auto !important; break-inside: avoid; }
  .jh-routemap__static {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border: 1px solid var(--jh-line);
  }

  /* Wildlife: group badges only (Mammals (5), Birds (39)…) — no species trays. */
  .jh-taxa-group__tray { display: none !important; }
  .jh-taxa-group { flex-basis: auto !important; }
  .jh-taxa-group__header::after { display: none !important; }

  /* Smaller copy + section headings. */
  .jh-safari-section h2,
  .jh-safari-detail__gallery h2 { font-size: 1.05rem !important; break-after: avoid; }
  .jh-safari-section--summary p,
  .jh-safari-section--inclusions p,
  .jh-safari-section--inclusions ul li,
  #itinerary ~ p,
  .jh-itin-leg p,
  .jh-itin-leg ul li { font-size: 9pt !important; line-height: 1.4 !important; }
  .jh-safari-section--summary p,
  .jh-safari-section--inclusions p { margin: 0 0 6px !important; }
  .jh-safari-section--inclusions ul { margin: 6px 0 0 !important; }
  .jh-itin-day { font-size: 0.78rem !important; margin: 0 0 5px !important; }
  .jh-day-stay { font-size: 0.64rem !important; padding: 3px 8px !important; }

  /* Smaller wildlife / place badges. */
  .jh-safari-badge,
  .jh-taxa-group__header { font-size: 7.5pt !important; padding: 3px 8px !important; gap: 5px !important; }
  .jh-safari-badge__icon,
  .jh-taxa-group__icon { width: 10px !important; height: 10px !important; }
  .jh-taxa-group__count { font-size: 6.5pt !important; padding: 1px 6px !important; }
  .jh-taxa-groups { gap: 6px !important; }

  /* Gallery in rows of 3 (whole photos; each row stays together). */
  .jh-safari-detail__gallery .jh-photo-grid { column-count: auto !important; display: block !important; }
  .jh-safari-detail__gallery .jh-photo-row { display: flex !important; gap: 12px !important; margin: 0 0 12px !important; }
  .jh-safari-detail__gallery .jh-photo-card { flex: 1 1 0 !important; min-width: 0 !important; margin: 0 !important; }

  /* Keep each of these whole across a page break (the browser leaves clean
     whitespace before them — no html2pdf-style gap). */
  .jh-photo-row,
  .jh-itin-leg {
    break-inside: avoid;
    page-break-inside: avoid;
  }}

/* ── Destinations trigger (above the safaris map) ──────────────────────── */
.jh-dest-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(24, 19, 14, 0.16);
  background: rgba(255, 252, 246, 0.9);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--jh-font-display);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.82rem;
  color: var(--jh-text);
  cursor: pointer;
}

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

.jh-dest-trigger__chev {
  font-size: 0.7em;
}

/* ── Calendar page (month-grid by season) ─────────────────────────────── */
.jh-calendar-toolbar {
  width: min(var(--jh-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 0;
  display: flex;
  align-items: center;
  /* The hint text that used to sit on the left was dropped (John, 2026-07-28), so the
     Expand/Collapse pair now sits on the right on its own rather than centred. */
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.jh-calendar-toolbar__actions {
  display: flex;
  gap: 8px;
}

.jh-calendar-toolbar__btn {
  appearance: none;
  border: 1px solid var(--jh-line);
  background: var(--jh-bg);
  color: var(--jh-text);
  border-radius: 999px;
  padding: 7px 16px;
  font-family: var(--jh-font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.jh-calendar-toolbar__btn:hover {
  border-color: var(--jh-muted);
  background: var(--jh-bg-alt);
}

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

.jh-calendar__group {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--jh-line);
  padding-bottom: 22px;
}

/* Explicitly hide content when collapsed — our author display rules on the
   axis/rows otherwise beat the UA details-closed rule (author > UA cascade). */
.jh-calendar__group:not([open]) > *:not(summary) {
  display: none;
}

.jh-calendar__country {
  margin-bottom: 18px;
}

.jh-calendar__country:not([open]) > *:not(summary) {
  display: none;
}

.jh-calendar__country-head {
  font-family: var(--jh-font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  color: var(--jh-text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
  cursor: pointer;
  list-style: none;
}

.jh-calendar__country-head::-webkit-details-marker {
  display: none;
}

.jh-calendar__country-head::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-right: 1px;
  border-right: 1.4px solid var(--jh-muted);
  border-bottom: 1.4px solid var(--jh-muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.jh-calendar__country[open] > .jh-calendar__country-head::before {
  transform: rotate(45deg);
}

.jh-calendar__country-head:hover::before {
  border-color: var(--jh-text);
}

.jh-calendar__country-count {
  font-family: var(--jh-font-body);
  font-size: 0.74rem;
  color: var(--jh-muted);
}

/* Nested add-on extensions: indent only the LABEL (not the row) so the month
   cells stay aligned with the core trips above. */
.jh-calendar__addons {
  margin-top: 2px;
}

.jh-calendar__addons-label {
  font-family: var(--jh-font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
  color: var(--jh-muted);
  padding: 8px 0 3px 26px;
}

.jh-calendar__row--addon .jh-calendar__rowlabel {
  position: relative;
  padding-left: 26px;
}

.jh-calendar__row--addon .jh-calendar__rowlabel::before {
  content: "↳";
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--jh-muted);
  font-size: 0.85rem;
}

.jh-calendar__row--addon .jh-calendar__rowtext b {
  font-weight: 500;
}

.jh-calendar__continent {
  font-family: var(--jh-font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 4px 0;
  cursor: pointer;
  list-style: none;
}

.jh-calendar__continent::-webkit-details-marker {
  display: none;
}

.jh-calendar__continent::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-right: 1.5px solid var(--jh-muted);
  border-bottom: 1.5px solid var(--jh-muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.jh-calendar__group[open] > .jh-calendar__continent::before {
  transform: rotate(45deg);
}

.jh-calendar__continent:hover::before {
  border-color: var(--jh-text);
}

.jh-calendar__continent-count {
  font-family: var(--jh-font-body);
  font-size: 0.8rem;
  color: var(--jh-muted);
}

.jh-calendar__axis,
.jh-calendar__row {
  display: grid;
  grid-template-columns: minmax(264px, 300px) repeat(12, minmax(0, 1fr)) minmax(100px, 116px);
  align-items: center;
}

.jh-calendar__axis {
  margin-bottom: 6px;
  padding: 0 6px;
}

.jh-calendar__mhead {
  text-align: center;
  font-size: 0.72rem;
  color: var(--jh-muted);
  font-family: var(--jh-font-display);
  letter-spacing: 0.04em;
}

.jh-calendar__minit {
  display: none;
}

.jh-calendar__axislabel {
  font-size: 0.72rem;
  color: var(--jh-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--jh-font-display);
}

.jh-calendar__pricehead {
  text-align: right;
  padding-left: 10px;
}

.jh-calendar__row {
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  padding: 4px 6px;
}

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

.jh-calendar__rowlabel {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-right: 14px;
}

.jh-calendar__rowlabel img {
  width: 52px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 auto;
}

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

.jh-calendar__rowtext b {
  font-weight: 600;
  font-size: 0.95rem;
}

.jh-calendar__rowtext small {
  color: var(--jh-muted);
  font-size: 0.78rem;
}

.jh-calendar__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  padding-left: 10px;
  line-height: 1.18;
  min-width: 0;
}

.jh-calendar__price-main {
  font-family: var(--jh-font-display);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--jh-text);
  white-space: nowrap;
}

.jh-calendar__price-sub {
  font-size: 0.72rem;
  color: var(--jh-muted);
  white-space: nowrap;
}

.jh-calendar__cell {
  height: 16px;
  margin: 3px 3px;
  border-radius: 4px;
  background: rgba(23, 21, 17, 0.05);
}

.jh-calendar__cell.is-on {
  background: #c98a45;
}

.jh-calendar__group[data-c="africa"] .jh-calendar__cell.is-on { background: #cf9b4e; }
.jh-calendar__group[data-c="asia"] .jh-calendar__cell.is-on { background: #a37c3c; }
.jh-calendar__group[data-c="south-america"] .jh-calendar__cell.is-on { background: #4f8f7e; }
.jh-calendar__group[data-c="north-america"] .jh-calendar__cell.is-on { background: #6f86a8; }
.jh-calendar__group[data-c="europe"] .jh-calendar__cell.is-on { background: #9a6f8e; }
.jh-calendar__group[data-c="oceania"] .jh-calendar__cell.is-on { background: #c27d57; }
.jh-calendar__group[data-c="antarctica"] .jh-calendar__cell.is-on { background: #7d93a6; }

@media (max-width: 760px) {
  .jh-calendar__axis,
  .jh-calendar__row {
    grid-template-columns: minmax(96px, 1.3fr) repeat(12, minmax(0, 1fr)) minmax(68px, 1fr);
  }

  .jh-calendar__mfull {
    display: none;
  }

  .jh-calendar__minit {
    display: inline;
  }

  .jh-calendar__rowlabel img {
    display: none;
  }

  .jh-calendar__cell {
    height: 14px;
    margin: 2px 1.5px;
  }

  .jh-calendar__rowtext small {
    white-space: normal;
  }

  .jh-calendar__price {
    padding-left: 5px;
  }

  .jh-calendar__price-main {
    font-size: 0.7rem;
  }

  .jh-calendar__price-sub {
    font-size: 0.62rem;
  }}

/* === safari legality caveat + section sub-headings (safari-engine-v2) ===== */
/* Prominent boat-based / land-based / access-restricted note so no in-water
   encounter is falsely advertised. Cream panel matching the facts card, with a
   coloured left rule keyed to the caveat kind. */
.jh-safari-caveat {
  margin: 0 0 26px;
  padding: 15px 20px;
  background: rgba(255, 252, 246, 0.82);
  border: 1px solid var(--jh-line);
  border-left: 4px solid var(--jh-muted);
  border-radius: 3px;
}
.jh-safari-caveat--land-based { border-left-color: #8a6d3b; }
.jh-safari-caveat--boat-based { border-left-color: #3d6b83; }
.jh-safari-caveat--restricted { border-left-color: #a5442f; }
.jh-safari-caveat__label {
  margin: 0 0 5px;
  font-family: var(--jh-font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jh-muted);
}
.jh-safari-caveat__text {
  margin: 0;
  color: var(--jh-text);
  line-height: 1.55;
}
/* What To Bring → Clothing / Equipment sub-headings (reuse .jh-safari-section h3). */
.jh-safari-section .jh-safari-subhead { margin-top: 20px; }
.jh-safari-section .jh-safari-subhead:first-child { margin-top: 0; }
/* === end safari legality caveat + sub-headings ============================ */

/* === safari-engine generated styles (do not edit; regenerated) === */
.jh-safari-detail .jh-safari-caveat{background:#f6f1e7;border-left:4px solid #b08442;padding:14px 18px;margin:0 0 26px;border-radius:2px;}
.jh-safari-detail .jh-safari-caveat--land-based{border-left-color:#8a6d3b;}
.jh-safari-detail .jh-safari-caveat--boat-based{border-left-color:#3d6b83;}
.jh-safari-detail .jh-safari-caveat--restricted{border-left-color:#a5442f;}
.jh-safari-caveat__label{margin:0 0 4px;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#8a6d3b;font-weight:bold;}
.jh-safari-caveat__text{margin:0;font-size:15px;line-height:1.55;color:#3b352c;}
.jh-safari-section h3.jh-safari-subhead{margin:18px 0 6px;font-size:14px;letter-spacing:.06em;text-transform:uppercase;color:#8a6d3b;}
.jh-safari-section h3.jh-safari-subhead:first-of-type{margin-top:6px;}
.jh-safari-operator-notes{display:none;background:#fbf7ef;border:1px solid #e6dcc6;border-left:4px solid #b08442;border-radius:3px;padding:16px 20px 20px;margin:34px 0 0;}
html.jh-mode-offline .jh-safari-operator-notes{display:block;}
.jh-safari-operator-notes>h2{margin-top:4px;}
.jh-operator-notes__eyebrow{margin:0;font:700 11px/1.2 system-ui,-apple-system,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#a5762f;}
.jh-safari-operator-notes ul{margin:6px 0 0;}
@media print{.jh-safari-operator-notes{display:none !important;}}
/* === end safari-engine generated styles === */
