/* Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V4
 * Hallmark · genre: photographic-marketing · design-system: design.md · designed-as-app
 * theme: custom "Kenya Wonder" (re-theme of Sunset Savanna) · studied: yes
 * DNA-source: url https://magicalkenya.com/ (spirit only — no content/photos/branding copied)
 * observed: Poppins single-sans + brand red #E11F25 + photographic slider hero + campaign/editorial grids
 * adopted: single-sans (Plus Jakarta Sans, NOT Poppins) · full-bleed photo hero · promo bar · image-forward cards
 * kept: warm-ivory paper · umber ink · terracotta accent 40° (user pick) · basalt bands
 * refused: Poppins, uncontrolled auto-sliders, Elementor tiles
 * macrostructures: Photographic (marketing) · Photo-Catalogue (listings) · Long Document (content)
 * motion: image hover-zoom only · reduced-motion honoured
 *
 * Load order: bootstrap.min.css → tokens.css → hallmark.css → app.css.
 * The original theme.css is preserved on disk but no longer linked.
 */

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */
html { overflow-x: clip; }
body { overflow-x: clip; background: var(--color-paper); color: var(--color-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600; /* El Messiri sits at 600, as Travel Panda uses it */
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.16;
  overflow-wrap: anywhere;
  min-width: 0;
}
/* Display-scale heads take El Messiri's top weight. */
.bb-fold h1, .bb-pagehead h1, .bb-band h2, .bb-quote-huge { font-weight: 700; }

::selection { background: var(--color-accent-tint); }

a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-input);
}

.container { max-width: 72rem; }

/* Small-caps meta label — dates, durations, breadcrumbs, price labels.
   Never a decorative section eyebrow. */
.bba-eyebrow, .bb-meta {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.bb-meta a { color: inherit; text-decoration: none; }
.bb-meta a:hover { color: var(--color-accent); text-decoration: underline; }

.bba-rule { width: 3.5rem; height: 2px; background: var(--color-accent); border: 0; opacity: 1; margin: var(--space-lg) 0; }
.bba-rule-center { margin-inline: auto; }

/* Section rhythm — phone base, generous space arrives with the viewport */
section { padding-block: var(--space-lg); }
@media (min-width: 60rem) {
  section { padding-block: var(--space-xl); }
}
.section-sand { background: var(--color-paper-2); border-block: var(--rule-hair) solid var(--color-rule); }

.tabular-nums { font-variant-numeric: tabular-nums; }
.bb-display-s { font-size: var(--text-display-s); }

/* ------------------------------------------------------------
   Buttons — geometry shared, fill decides rank.
   Primary (terracotta) appears once per view.
   ------------------------------------------------------------ */
.btn-bba-green, .btn-bba-gold, .btn-bba-outline, .btn-bba-outline-light {
  --bs-btn-padding-x: 1.4rem;
  --bs-btn-padding-y: 0.7rem;
  --bs-btn-font-size: var(--text-sm);
  --bs-btn-border-radius: var(--radius-pill); /* Travel Panda pill buttons */
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  min-height: 44px;
  transition: background-color var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out),
              transform var(--dur-micro) var(--ease-out);
}
.btn-bba-green:active, .btn-bba-gold:active, .btn-bba-outline:active, .btn-bba-outline-light:active { transform: translateY(1px); }

/* Primary — the one terracotta action on the page */
.btn-bba-gold {
  --bs-btn-bg: var(--color-accent);
  --bs-btn-border-color: var(--color-accent);
  --bs-btn-color: var(--color-accent-ink);
  --bs-btn-hover-bg: var(--color-accent-hover);
  --bs-btn-hover-border-color: var(--color-accent-hover);
  --bs-btn-hover-color: var(--color-accent-ink);
  --bs-btn-active-bg: var(--color-accent-hover);
  --bs-btn-active-border-color: var(--color-accent-hover);
  --bs-btn-active-color: var(--color-accent-ink);
}

/* Secondary / form-submit button — leaf-green primary (Safari Fresh). */
.btn-bba-green {
  --bs-btn-bg: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-color: var(--color-primary-ink);
  --bs-btn-hover-bg: var(--color-primary-hover);
  --bs-btn-hover-border-color: var(--color-primary-hover);
  --bs-btn-hover-color: var(--color-primary-ink);
  --bs-btn-active-bg: var(--color-primary-hover);
  --bs-btn-active-border-color: var(--color-primary-hover);
  --bs-btn-active-color: var(--color-primary-ink);
}

.btn-bba-outline {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--color-ink);
  --bs-btn-color: var(--color-ink);
  --bs-btn-hover-bg: var(--color-ink);
  --bs-btn-hover-border-color: var(--color-ink);
  --bs-btn-hover-color: var(--color-paper);
  --bs-btn-active-bg: var(--color-ink);
  --bs-btn-active-border-color: var(--color-ink);
  --bs-btn-active-color: var(--color-paper);
}

/* On basalt bands and the photographic fold */
.btn-bba-outline-light {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--color-basalt-muted);
  --bs-btn-color: var(--color-basalt-ink);
  --bs-btn-hover-bg: var(--color-basalt-ink);
  --bs-btn-hover-border-color: var(--color-basalt-ink);
  --bs-btn-hover-color: var(--color-basalt);
  --bs-btn-active-bg: var(--color-basalt-ink);
  --bs-btn-active-border-color: var(--color-basalt-ink);
  --bs-btn-active-color: var(--color-basalt);
}

/* Typographic link CTA — “View trip →” */
.bb-link {
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  white-space: nowrap;
}
.bb-link:hover { color: var(--color-accent); text-decoration-thickness: 2px; }
/* bb-link rendered as a <button> (e.g. the WhatsApp step CTA) — keeps the
   underline + colours of a bb-link, drops native button chrome. */
.bb-link--btn {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em;
}

/* ------------------------------------------------------------
   Promo announcement bar — slim strip above the nav (like the
   reference's visa strip). Editable via Settings; hidden if blank.
   ------------------------------------------------------------ */
.bb-promo {
  /* Not sticky — it scrolls away and the nav takes the top. Two sticky-at-top
     elements would collide (slop gate 56). */
  background: var(--color-basalt);
  color: var(--color-basalt-ink);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.bb-promo .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-xs) var(--space-md);
  padding-block: var(--space-xs);
  text-align: center;
}
.bb-promo a {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  color: var(--color-accent-ink);
  background: var(--color-accent);
  padding: var(--space-3xs) var(--space-sm);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  min-height: 28px;
}
.bb-promo a:hover { background: var(--color-accent-hover); }

/* ------------------------------------------------------------
   Two-row masthead (Magical-Kenya shape): logo/utility row, then
   the full horizontal menu as its own row beneath it. Sticky as a
   unit; the promo strip above scrolls away.
   ------------------------------------------------------------ */
.bb-head {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--color-paper);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.bb-head__bar > .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-sm);
}
.bb-brand { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; }
.bb-logo { height: 44px; width: auto; }
.bb-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  letter-spacing: -0.01em;
  line-height: 1.02;
  color: var(--color-ink);
}
.bb-wordmark small {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.bb-head__util { display: flex; align-items: center; gap: var(--space-sm); }
.bb-head__phone {
  display: none; align-items: center; gap: var(--space-2xs);
  font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); text-decoration: none;
  white-space: nowrap;
}
.bb-head__phone i { color: var(--color-accent); }
.bb-head__phone:hover { color: var(--color-accent); }
@media (min-width: 48rem) { .bb-head__phone { display: inline-flex; } }

/* Menu row — desktop / tablet only (≥48rem). On phones the bottom tab
   bar below is the navigation, so this row is hidden. */
.bb-head__menu { display: none; border-top: var(--rule-hair) solid var(--color-rule); }
.bb-head__menu ul {
  list-style: none; margin: 0; padding: var(--space-2xs) 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs) var(--space-md);
}
.bb-navlink {
  display: flex; align-items: center; min-height: 44px;
  padding: 0 var(--space-sm);
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-ink); text-decoration: none; white-space: nowrap;
}
.bb-navlink:hover, .bb-navlink:focus-visible { color: var(--color-primary); }
.bb-navlink.active { color: var(--color-primary); box-shadow: inset 0 -2px 0 var(--color-accent); }
@media (min-width: 48rem) {
  .bb-head__menu { display: block; }
}

/* ------------------------------------------------------------
   Mobile bottom tab bar (Magical-Kenya style) — phones only.
   Fixed to the bottom; icon over label; active = accent.
   ------------------------------------------------------------ */
.bb-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  display: flex;
  background: var(--color-paper);
  border-top: var(--rule-hair) solid var(--color-rule);
  box-shadow: 0 -2px 12px oklch(20% 0.01 60 / 0.06);
  padding-bottom: env(safe-area-inset-bottom);
}
.bb-tab {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  min-height: 56px; padding: var(--space-2xs) var(--space-3xs);
  color: var(--color-ink); text-decoration: none;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.02em;
}
.bb-tab i { font-size: 1.2rem; line-height: 1; }
.bb-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bb-tab.active { color: var(--color-primary); }
.bb-tab.active i { color: var(--color-accent); }
.bb-tab:active { background: var(--color-paper-2); }
@media (min-width: 48rem) { .bb-tabbar { display: none; } }
/* Clear the fixed bar so it never covers page content or the footer. */
@media (max-width: 47.98rem) {
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  /* Float the WhatsApp launcher above the tab bar. `body` prefix raises
     specificity so this wins over app.css (which loads later). */
  body .bba-wa { bottom: calc(56px + env(safe-area-inset-bottom) + var(--space-sm)); }
}

/* ------------------------------------------------------------
   Photographic fold (H6) — home hero.
   svh, not dvh: the fold must not jump when mobile browser
   chrome shows/hides.
   ------------------------------------------------------------ */
.bb-fold { position: relative; min-height: 74svh; display: flex; align-items: flex-end; padding: 0; }
@media (min-width: 60rem) {
  .bb-fold { min-height: 82svh; }
}
.bb-fold__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bb-fold::after { content: ""; position: absolute; inset: 0; background: var(--color-scrim); }
.bb-fold__copy {
  position: relative;
  z-index: var(--z-base);
  width: 100%;
  padding-block: var(--space-xl) var(--space-lg);
}
@media (min-width: 60rem) {
  .bb-fold__copy { padding-block: var(--space-2xl) var(--space-xl); }
}
/* Fold + band CTAs: full-width tap targets on phones, inline from 36rem */
.bb-fold .btn, .bb-band .btn { width: 100%; }
@media (min-width: 36rem) {
  .bb-fold .btn, .bb-band .btn { width: auto; }
}
.bb-fold h1 {
  color: var(--color-basalt-ink);
  font-size: clamp(3rem, 9vw + 0.5rem, 7rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 15ch;
  margin-bottom: var(--space-md);
}
.bb-fold .lead {
  color: var(--color-basalt-ink);
  font-weight: 500;
  font-size: var(--text-md);
  max-width: 48ch;
  margin-bottom: var(--space-lg);
}
.bb-fold__caption {
  position: relative;
  z-index: var(--z-base);
  color: var(--color-basalt-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   Home hero — crossfading photographic slideshow (Travel-Panda
   inspired). Real gallery photos rotate behind centred copy with
   a subtle Ken-Burns drift. Fixed FOUR layers so the pure-CSS
   crossfade timing stays exact; freezes under reduced-motion.
   ------------------------------------------------------------ */
.bb-hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: center;
  overflow: clip;
  background: var(--color-basalt);
}
@media (min-width: 60rem) { .bb-hero { min-height: 90svh; } }
.bb-hero__slides { position: absolute; inset: 0; z-index: 0; }
.bb-hero__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
  animation: bbHeroFade 24s var(--ease-in-out) infinite;
  animation-delay: calc(var(--i) * 6s);
}
.bb-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--color-scrim); }
@keyframes bbHeroFade {
  0%   { opacity: 0; transform: scale(1.05); }
  4%   { opacity: 1; }
  25%  { opacity: 1; transform: scale(1.11); }
  30%  { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.05); }
}
.bb-hero__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding-block: var(--space-2xl);
}
.bb-hero__caption {
  color: var(--color-basalt-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.bb-hero h1 {
  color: var(--color-basalt-ink);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw + 0.5rem, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin: 0 auto var(--space-md);
  overflow-wrap: anywhere;
}
.bb-hero .lead {
  color: var(--color-basalt-ink);
  font-weight: 500;
  font-size: var(--text-md);
  max-width: 46ch;
  margin: 0 auto var(--space-lg);
}
.bb-hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
.bb-hero .btn { width: 100%; }
@media (min-width: 36rem) { .bb-hero .btn { width: auto; } }
@media (prefers-reduced-motion: reduce) {
  .bb-hero__slide { animation: none; opacity: 0; transform: none; }
  .bb-hero__slide:first-child { opacity: 1; }
}

/* Quick contact strip — email / WhatsApp / call, on the green primary band */
.bb-contactstrip { background: var(--color-primary); color: var(--color-primary-ink); }
.bb-contactstrip__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xs) var(--space-lg);
  padding-block: var(--space-xs);
}
.bb-contactstrip a,
.bb-contactstrip__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  color: var(--color-primary-ink); text-decoration: none;
  font-weight: 600; padding: var(--space-2xs) var(--space-sm);
  background: none; border: 0; font: inherit; cursor: pointer;
}
.bb-contactstrip a:hover,
.bb-contactstrip__btn:hover { color: var(--color-primary-ink); text-decoration: underline; text-underline-offset: 3px; }
.bb-contactstrip a:focus-visible,
.bb-contactstrip__btn:focus-visible { outline: 2px solid var(--color-primary-ink); outline-offset: 2px; }
.bb-contactstrip i { font-size: 1.15em; }
.bb-contactstrip span { overflow-wrap: anywhere; }

/* Stat band — honest catalogue counts, counted up on scroll-in */
.bb-stats {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  text-align: center;
}
@media (min-width: 48rem) { .bb-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bb-stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw + 0.5rem, 3.6rem);
  line-height: 1;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.bb-stat__label { display: block; margin-top: var(--space-2xs); color: var(--color-ink-2); font-weight: 500; }

/* Search band — a raised card just below the hero. (No negative-margin lift:
   the hero content is bottom-aligned, so a lift collided with its CTAs on wide
   screens. It sits cleanly below the fold on every viewport now.) */
.bb-search-section { position: relative; z-index: var(--z-raised); padding-top: var(--space-lg); }
.bb-search {
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 30px oklch(24% 0.03 155 / 0.12);
}
.bb-search .form-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-3xs);
}
.bb-search .form-control, .bb-search .form-select {
  border: 0;
  padding-left: 0;
  background: transparent;
  color: var(--color-ink);
  box-shadow: none;
}
.bb-search .form-control::placeholder { color: var(--color-muted); }
.bb-search .cell { border-bottom: var(--rule-hair) solid var(--color-rule); }
.bb-search .cell:last-of-type { border-bottom: 0; }
@media (min-width: 992px) {
  .bb-search .cell { border-bottom: 0; border-right: var(--rule-hair) solid var(--color-rule); }
  .bb-search .cell:last-of-type { border-right: 0; }
}

/* Search suggestions — combobox dropdown under the destination field.
   Appears instantly (editorial: no entrance animation). */
.bb-suggest-wrap { position: relative; }
.bb-suggest {
  position: absolute;
  top: calc(100% - var(--space-2xs));
  left: 0;
  right: 0;
  z-index: var(--z-dropdown);
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule);
  box-shadow: var(--shadow-whisper);
  /* JS sets --bb-suggest-max from the space actually available, so the panel
     never opens off-screen on a phone (keyboard-aware). This is the ceiling. */
  max-height: min(var(--bb-suggest-max, 21rem), 21rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* Flipped above the field when there is more room up than down. */
.bb-suggest.is-above {
  top: auto;
  bottom: calc(100% - var(--space-2xs));
}
.bb-suggest[hidden] { display: none; }
.bb-suggest__list { list-style: none; margin: 0; padding: var(--space-2xs) 0; }
.bb-suggest__group {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: var(--space-xs) var(--space-md) var(--space-2xs);
}
.bb-suggest__option {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  min-height: 44px;
  color: var(--color-ink);
  text-decoration: none;
}
.bb-suggest__option:hover,
.bb-suggest__option.is-active {
  background: var(--color-paper-2);
  color: var(--color-ink);
}
.bb-suggest__option.is-active .bb-suggest__name { text-decoration: underline; text-underline-offset: 0.2em; }
.bb-suggest__name { font-weight: 500; min-width: 0; }
.bb-suggest__meta { font-size: var(--text-xs); color: var(--color-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bb-suggest__empty { padding: var(--space-md); color: var(--color-ink-2); font-size: var(--text-sm); }
.bb-suggest__hint { color: var(--color-muted); font-size: var(--text-xs); }
.bb-suggest__empty .bb-suggest__option { padding: var(--space-2xs) 0; min-height: auto; color: var(--color-accent); }

/* ------------------------------------------------------------
   Page head — listings + content pages (no photo banner)
   ------------------------------------------------------------ */
.bb-pagehead {
  padding-block: var(--space-xl) var(--space-lg);
  background: var(--color-paper-2); /* mint banner — a branded, consistent page header */
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
@media (min-width: 60rem) {
  .bb-pagehead { padding-block: var(--space-2xl) var(--space-xl); }
}
.bb-pagehead h1 { font-size: var(--text-display-s); max-width: 22ch; margin-bottom: 0; }
.bb-pagehead .bb-lede { color: var(--color-ink-2); max-width: 58ch; margin: var(--space-md) 0 0; }
.bb-pagehead .bb-meta { margin-bottom: var(--space-sm); }

/* ------------------------------------------------------------
   Catalogue — package cards (F6), uniform on purpose
   ------------------------------------------------------------ */
.bb-item {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .bb-item:hover { transform: translateY(-4px); box-shadow: 0 24px 50px oklch(28% 0.04 200 / 0.16); }
}
.bb-item h3 .stretched-link { color: inherit; text-decoration: none; }
.bb-item__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-paper-2);
}

/* Availability badge (over a card image or in the booking card) */
.bb-badge {
  display: inline-flex; align-items: center; gap: var(--space-3xs);
  padding: 0.2rem var(--space-sm);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.02em;
  line-height: 1.2; white-space: nowrap;
}
.bb-item__media .bb-badge {
  position: absolute; top: var(--space-sm); left: var(--space-sm); z-index: 1;
  box-shadow: var(--shadow-whisper);
}
.bb-badge--limited     { background: var(--color-accent);  color: var(--color-accent-ink); }
.bb-badge--sold-out    { background: var(--color-ink);     color: var(--color-paper); }
.bb-badge--coming-soon { background: var(--color-primary); color: var(--color-primary-ink); }
.bb-badge--available   { background: var(--color-primary-tint); color: var(--color-primary); }
/* "X spots left" — green primary passes AA on white as small text. */
.bb-spots { font-size: var(--text-xs); font-weight: 600; color: var(--color-primary); }
/* Deposit line (booking card) + note (booking form) */
.bb-deposit { font-size: var(--text-sm); color: var(--color-ink); }
.bb-deposit i, .bb-deposit-note i { color: var(--color-primary); }
.bb-deposit-note {
  background: var(--color-primary-tint);
  border-color: var(--color-primary);
  color: var(--color-ink);
  font-size: var(--text-sm);
}

/* Upcoming departures list (package detail) */
.bb-departures { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule); max-width: 40rem; }
.bb-departure {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md);
  padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule);
}
.bb-departure__date { font-weight: 600; color: var(--color-ink); }
.bb-departure__return { font-weight: 400; color: var(--color-muted); margin-left: var(--space-2xs); }
.bb-departure__note { display: block; font-size: var(--text-xs); font-weight: 400; color: var(--color-muted); }
.bb-departure__spots { font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); white-space: nowrap; }
.bb-departure.is-full { opacity: 0.6; }
.bb-departure.is-full .bb-departure__spots { color: var(--color-muted); }
.bb-item__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-long) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .bb-item:hover .bb-item__media img { transform: scale(1.02); }
  /* The whole card is the link (stretched-link) — echo that on hover */
  .bb-item:hover .bb-link { color: var(--color-accent); text-decoration-thickness: 2px; }
  .bb-item:hover h3 a { color: var(--color-accent); }
}
.bb-item__body {
  display: flex; flex-direction: column; flex-grow: 1; gap: var(--space-xs);
  padding: var(--space-md) var(--space-md) var(--space-lg);
}
.bb-item h3 { font-size: var(--text-md); margin: 0; }
.bb-item h3 a { color: inherit; text-decoration: none; }
.bb-item h3 a:hover { color: var(--color-accent); }
.bb-item__foot { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); margin-top: auto; padding-top: var(--space-xs); }
.bb-price { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--color-ink); white-space: nowrap; }
.bb-price small { display: block; font-size: var(--text-xs); font-weight: 400; color: var(--color-muted); }

/* Section head row above a catalogue grid. Holds an optional eyebrow + heading
   block on the left and a "view all" link on the right, bottom-aligned. */
.bb-rowhead {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-lg);
}
.bb-rowhead > div { min-width: 0; }
/* Green primary, not orange — small uppercase text needs AA contrast on white. */
.bb-rowhead .bb-meta { color: var(--color-primary); }
.bb-rowhead h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Campaign tiles — photo-forward promo cards (like the reference's campaign
   strip). Image fills; a label + link overlays the lower third. */
.bb-campaign { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
@media (min-width: 40rem) { .bb-campaign { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .bb-campaign { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bb-campaign--3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .bb-campaign--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bb-tile {
  position: relative; display: block;
  aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--radius-card);
  color: var(--color-basalt-ink); text-decoration: none;
  background: var(--color-paper-2);
}
.bb-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-long) var(--ease-out); }
.bb-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, oklch(20% 0.02 55 / 0.75)); }
.bb-tile__label {
  position: absolute; inset-inline: 0; bottom: 0; z-index: var(--z-base);
  padding: var(--space-md);
}
.bb-tile__label { display: flex; flex-direction: column; gap: var(--space-3xs); }
.bb-tile__name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-md); color: var(--color-basalt-ink); line-height: 1.15; }
.bb-tile__go { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; color: var(--color-basalt-ink); }
.bb-tile__go i { color: var(--color-basalt-ink); }
@media (hover: hover) and (pointer: fine) {
  .bb-tile:hover img { transform: scale(1.04); }
  .bb-tile:hover .bb-tile__go { text-decoration: underline; text-underline-offset: 0.25em; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-tile img { transition: none; }
  .bb-tile:hover img { transform: none; }
}

/* Category index — outlined pill chips. They must read as pressable:
   border + fill + hover shift, active = ink fill. Harmonises with the
   .bba-chip active-filter pills on the results grid. */
.bb-index { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.bb-index a, .bb-index button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-lg);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out),
              background-color var(--dur-short) var(--ease-out),
              transform var(--dur-micro) var(--ease-out);
}
.bb-index a:hover, .bb-index button:hover {
  border-color: var(--color-ink-2);
  color: var(--color-ink);
  background: var(--color-paper-2);
}
.bb-index a:active, .bb-index button:active { transform: translateY(1px); }
.bb-index .active,
.bb-index .active:hover {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-paper);
}

/* ------------------------------------------------------------
   Experience highlights strip — icon + label (client home design)
   ------------------------------------------------------------ */
.bb-highlights {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md) var(--space-sm);
}
@media (min-width: 60rem) { .bb-highlights { gap: var(--space-lg) var(--space-md); } }
@media (min-width: 36rem) { .bb-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .bb-highlights { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.bb-highlight { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-xs); }
.bb-highlight__icon {
  width: 3.5rem; height: 3.5rem; display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-primary-tint); color: var(--color-primary);
  font-size: 1.4rem;
}
.bb-highlight__label { font-weight: 600; font-size: var(--text-sm); color: var(--color-ink); line-height: 1.25; }

/* Inline social row (how-it-works step 3, contact band) */
.bb-socials { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); }
.bb-socials a {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  color: var(--color-ink-2); text-decoration: none; font-weight: 600; font-size: var(--text-sm);
}
.bb-socials a:hover { color: var(--color-primary); }
.bb-socials i { color: var(--color-accent); font-size: 1.1rem; }
/* On a dark teal band, lift the social colours (teal-on-teal would vanish). */
.bb-band .bb-socials a { color: var(--color-basalt-ink); }
.bb-band .bb-socials a:hover { color: var(--color-basalt-ink); text-decoration: underline; }
.bb-band .bb-socials i { color: var(--color-basalt-ink); }

/* ------------------------------------------------------------
   Statement band (basalt) — CTA close
   ------------------------------------------------------------ */
.bb-band { background: var(--color-basalt); color: var(--color-basalt-muted); padding-block: var(--space-xl); }
@media (min-width: 60rem) {
  .bb-band { padding-block: var(--space-2xl); }
}
.bb-band h2 {
  color: var(--color-basalt-ink);
  font-size: var(--text-display-s);
  max-width: 24ch;
  margin-bottom: var(--space-md);
}
.bb-band p { max-width: 52ch; }
.bb-band a:not(.btn) { color: var(--color-basalt-ink); }
.bb-band .bb-meta { color: var(--color-basalt-muted); }
/* Primary CTA sits on the dark teal band — a teal fill would vanish, so it
   becomes a white button with teal text (Travel Panda's on-dark treatment). */
.bb-band .btn-bba-gold {
  --bs-btn-bg: var(--color-basalt-ink);
  --bs-btn-border-color: var(--color-basalt-ink);
  --bs-btn-color: var(--color-basalt);
  --bs-btn-hover-bg: var(--color-paper);
  --bs-btn-hover-border-color: var(--color-paper);
  --bs-btn-hover-color: var(--color-basalt);
  --bs-btn-active-bg: var(--color-paper);
  --bs-btn-active-border-color: var(--color-paper);
  --bs-btn-active-color: var(--color-basalt);
}

/* ------------------------------------------------------------
   Quotes — one huge (T3), supporting small (T1-ish)
   ------------------------------------------------------------ */
.bb-quote-huge {
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(1.5rem, 2.2vw + 0.8rem, 2.4rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  max-width: 34ch;
  margin: 0;
}
.bb-quote-huge + footer { margin-top: var(--space-lg); }

.bba-quote { border-left: 2px solid var(--color-rule); padding-left: var(--space-lg); margin: 0; }
.bba-quote p { font-family: var(--font-body); font-size: var(--text-base); color: var(--color-ink); }
.bba-quote footer, .bb-quote-huge + footer {
  font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted);
}

/* ------------------------------------------------------------
   Facts list (“why book with us”) — spec rows, not icon cards
   ------------------------------------------------------------ */
.bb-facts { display: grid; grid-template-columns: minmax(0, 1fr); }
.bb-fact { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.bb-fact:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.bb-fact h3 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 500; margin: 0; }
.bb-fact p { color: var(--color-ink-2); margin: 0; max-width: 60ch; }
@media (min-width: 40rem) {
  .bb-fact { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: var(--space-md) var(--space-xl); padding-block: var(--space-lg); }
}

/* Steps (custom trips) */
.bb-step { border-top: 3px solid var(--color-primary); padding-top: var(--space-md); height: 100%; }
.bb-step .num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums;
  color: var(--color-accent);
}
.bb-step h3 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 500; margin: var(--space-2xs) 0 var(--space-xs); }

/* Vision / mission */
.bba-vm { border-top: 2px solid var(--color-ink); padding-top: var(--space-lg); height: 100%; }
.bba-vm h3 { font-size: var(--text-md); }

/* ------------------------------------------------------------
   Long Document — articles, detail pages
   ------------------------------------------------------------ */
.bba-article { font-size: 1.0625rem; line-height: 1.7; max-width: 65ch; color: var(--color-ink-2); }
.bba-article p { margin-bottom: var(--space-lg); }
.bba-article img { max-width: 100%; height: auto; }
.bba-article h2 { font-size: var(--text-lg); margin: var(--space-xl) 0 var(--space-sm); }
.bba-article h3 { font-size: var(--text-md); margin: var(--space-lg) 0 var(--space-xs); }
.bba-article h4 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; margin: var(--space-md) 0 var(--space-2xs); }
.bba-article h2:first-child, .bba-article h3:first-child, .bba-article > :first-child { margin-top: 0; }
.bba-article ul, .bba-article ol { margin: 0 0 var(--space-lg); padding-left: 1.4em; }
.bba-article li { margin-bottom: var(--space-2xs); }
.bba-article li::marker { color: var(--color-primary); }
.bba-article strong { color: var(--color-ink); font-weight: 600; }
.bba-article a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 0.15em; }
.bba-article hr { border: 0; border-top: var(--rule-hair) solid var(--color-rule); margin: var(--space-xl) 0; }
.bba-article blockquote { margin: 0 0 var(--space-lg); padding-left: var(--space-lg); border-left: 3px solid var(--color-primary); color: var(--color-muted); }

.bb-lede-para { font-size: var(--text-md); line-height: 1.55; color: var(--color-ink-2); max-width: 58ch; }

.bba-detail-hero img, .bba-post-hero img {
  width: 100%;
  height: clamp(15rem, 42vw, 26rem);
  object-fit: cover;
}

.bba-meta-list { list-style: none; padding: 0; margin: 0; }
.bba-meta-list li { display: flex; gap: var(--space-sm); padding: var(--space-xs) 0; border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); }
.bba-meta-list li:last-child { border-bottom: 0; }
.bba-meta-list .k { color: var(--color-muted); min-width: 7.5rem; }
.bba-meta-list .v { font-weight: 500; color: var(--color-ink); font-variant-numeric: tabular-nums; }

.bba-inclusions { list-style: none; padding: 0; margin: 0; }
.bba-inclusions li { display: flex; gap: var(--space-xs); align-items: flex-start; padding: var(--space-2xs) 0; font-size: var(--text-sm); }
.bba-inclusions i { margin-top: 0.28rem; font-size: 0.85rem; }
.bba-inclusions .yes i { color: var(--color-good); }
.bba-inclusions .no i, .bba-inclusions .no { color: var(--color-muted); }

.bba-booking-card {
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper);
  /* Not sticky: the card holds the whole booking form, which is taller than a
     laptop viewport — pinning it left the bottom stuck off-screen and covered
     the content beside it. It scrolls with the page like everything else. */
}
.bba-booking-card .price-row { border-bottom: var(--rule-hair) solid var(--color-rule); }
.bba-booking-card .price-row .amount {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

/* Payment-methods placeholder (booking card). Real gateway comes later. */
.bb-paymethods { border-top: var(--rule-hair) solid var(--color-rule); }
.bb-paymethods__list {
  list-style: none; margin: 0 0 var(--space-sm); padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md);
}
.bb-paymethods__list li {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  font-size: var(--text-sm); font-weight: 500; color: var(--color-ink);
}
.bb-paymethods__list i { color: var(--color-muted); font-size: 1.05rem; }
.bb-paymethods__note { font-size: var(--text-xs); color: var(--color-muted); }

/* Booking receipt (swapped in after a successful booking) */
.bb-receipt__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-md); }
.bb-receipt__tick { color: var(--color-good); font-size: 1.75rem; line-height: 1; }
.bb-receipt__ref {
  margin: var(--space-md) 0 var(--space-lg);
  font-size: var(--text-sm); letter-spacing: 0.04em; color: var(--color-ink-2);
}
.bb-receipt__ref strong { color: var(--color-ink); font-variant-numeric: tabular-nums; }
.bb-receipt__lines { margin: 0 0 var(--space-lg); }
.bb-receipt__lines > div {
  display: flex; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-xs) 0; border-bottom: var(--rule-hair) solid var(--color-rule);
}
.bb-receipt__lines dt { margin: 0; color: var(--color-muted); font-size: var(--text-sm); }
.bb-receipt__lines dd { margin: 0; font-weight: 500; text-align: right; min-width: 0; }
.bb-receipt__wrap { overflow-wrap: anywhere; }
.bb-receipt__per { font-weight: 400; color: var(--color-muted); font-size: var(--text-xs); }
.bb-receipt__pay { background: var(--color-paper-2); padding: var(--space-md); margin-bottom: var(--space-lg); }
.bb-receipt__pay p:last-child { margin-bottom: 0; }
.bb-receipt__fineprint { margin: var(--space-md) 0 0; font-size: var(--text-xs); color: var(--color-muted); }

@media print {
  body * { visibility: hidden !important; }
  .bb-receipt, .bb-receipt * { visibility: visible !important; }
  .bb-receipt {
    position: absolute; inset: 0; margin: 0;
    border: 0; box-shadow: none; padding: 0 !important;
  }
  .bb-receipt__actions { display: none !important; }
}

/* ------------------------------------------------------------
   Gallery
   ------------------------------------------------------------ */
/* height:auto is required — the images carry a height="600" attribute, and with
   both width and height non-auto the browser ignores aspect-ratio (was cropping
   these into tall strips on narrow columns). */
.bba-gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.bba-gallery figcaption { font-size: var(--text-xs); letter-spacing: 0.06em; color: var(--color-muted); margin-top: var(--space-2xs); }

/* ------------------------------------------------------------
   Filter bar + results (packages)
   ------------------------------------------------------------ */
.bba-filter { background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); }
.bba-filter .form-label {
  font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 500; color: var(--color-muted); margin-bottom: var(--space-2xs);
}
.bba-filter .form-control, .bba-filter .form-select { border-color: var(--color-rule); }

.bba-result-count { font-size: var(--text-sm); color: var(--color-muted); }
.bba-filter-note { color: var(--color-muted); font-size: var(--text-sm); }
.bba-empty { border: 1px dashed var(--color-rule); color: var(--color-muted); background: var(--color-paper); }

/* Legacy tile class still used as buttons — quiet chips now */
.bba-cat {
  width: 100%;
  display: flex; align-items: center; gap: var(--space-xs);
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  padding: var(--space-sm) var(--space-md);
  min-height: 44px;
  text-align: left; text-decoration: none; cursor: pointer;
  color: var(--color-ink-2);
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.bba-cat:hover { border-color: var(--color-ink-2); color: var(--color-ink); }
.bba-cat i { color: var(--color-muted); font-size: 1.05rem; }
.bba-cat.active { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.bba-cat.active i { color: var(--color-paper); }

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */
.bba-form { background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); }
.bba-form .form-label {
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-muted);
}
.bba-form .form-control, .bba-form .form-select {
  background-color: var(--color-paper);
  border-color: var(--color-rule);
  color: var(--color-ink);
  border-radius: var(--radius-input);
  min-height: 44px;
}
.bba-form textarea.form-control { min-height: unset; }
.bba-form .form-control::placeholder { color: var(--color-muted); }
.bba-form .form-control:focus, .bba-form .form-select:focus,
.bba-filter .form-control:focus, .bba-filter .form-select:focus,
.bb-search .form-control:focus, .bb-search .form-select:focus {
  border-color: var(--color-ink-2);
  box-shadow: 0 0 0 3px var(--color-accent-tint);
}

.bba-form .is-invalid, .bba-form .form-control.is-invalid, .bba-form .form-select.is-invalid { border-color: var(--color-bad); }
.bba-field-error { display: block; margin-top: var(--space-2xs); font-size: var(--text-xs); color: var(--color-bad); }

.bba-alert { border: var(--rule-hair) solid transparent; padding: var(--space-md); font-size: var(--text-sm); border-radius: var(--radius-input); }
.bba-alert-success { background: var(--color-good-tint); border-color: var(--color-good); color: var(--color-good); }
.bba-alert-error { background: var(--color-bad-tint); border-color: var(--color-bad); color: var(--color-bad); }

/* FAQ accordion (Bootstrap) */
.accordion {
  --bs-accordion-bg: var(--color-paper);
  --bs-accordion-border-color: var(--color-rule);
  --bs-accordion-border-radius: var(--radius-card);
  --bs-accordion-inner-border-radius: var(--radius-card);
  --bs-accordion-btn-color: var(--color-ink);
  --bs-accordion-active-bg: var(--color-paper-2);
  --bs-accordion-active-color: var(--color-ink);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px var(--color-accent-tint);
}
.accordion-button { font-weight: 500; }

/* Contact channels — text blocks with a top rule, not icon cards */
.bb-channel { border-top: 2px solid var(--color-ink); padding-top: var(--space-md); height: 100%; }
.bb-channel h3 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 500; }
.bb-channel p { color: var(--color-ink-2); font-size: var(--text-sm); }

/* ------------------------------------------------------------
   Statement footer (Ft5) — basalt
   ------------------------------------------------------------ */
.bb-foot { background: var(--color-basalt); color: var(--color-basalt-muted); padding: var(--space-2xl) 0 max(var(--space-lg), env(safe-area-inset-bottom)); }
@media (min-width: 60rem) {
  .bb-foot { padding-top: var(--space-3xl); }
}
.bb-foot__line {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw + 0.9rem, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-basalt-ink);
  max-width: 38ch;
  margin: 0 0 var(--space-xl);
}
@media (min-width: 60rem) {
  .bb-foot__line { margin-bottom: var(--space-2xl); }
}
/* Footer columns: stacked base → 2-up → full row */
.bb-foot__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl) var(--space-2xl); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-basalt-rule); }
@media (min-width: 40rem) {
  .bb-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 60rem) {
  .bb-foot__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--space-lg) var(--space-3xl); }
}
.bb-foot__col { min-width: 0; }
.bb-foot .bb-wordmark { color: var(--color-basalt-ink); }
.bb-foot .bb-wordmark small { color: var(--color-basalt-muted); }
.bb-foot a { color: var(--color-basalt-muted); text-decoration: none; white-space: nowrap; }
.bb-foot a:hover { color: var(--color-basalt-ink); text-decoration: underline; }
.bb-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
.bb-foot__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs) var(--space-lg);
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-basalt-rule);
  font-size: var(--text-xs);
  color: var(--color-basalt-muted);
}
.bb-foot .social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: var(--rule-hair) solid var(--color-basalt-rule);
  border-radius: var(--radius-pill);
  color: var(--color-basalt-muted);
}
.bb-foot .social a:hover { border-color: var(--color-basalt-muted); color: var(--color-basalt-ink); text-decoration: none; }

/* ------------------------------------------------------------
   WhatsApp launcher (panel styles live in app.css)
   ------------------------------------------------------------ */
.bba-whatsapp {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: var(--radius-pill);
  background: var(--color-whatsapp);
  color: var(--color-whatsapp-ink); font-size: 1.6rem; border: 0; cursor: pointer;
  box-shadow: var(--shadow-whisper);
}
.bba-whatsapp:hover { color: var(--color-whatsapp-ink); }

/* ------------------------------------------------------------
   Pagination
   ------------------------------------------------------------ */
.bba-pager .page-link {
  color: var(--color-ink);
  border-color: var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-paper);
  padding: 0.5rem 0.85rem;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
.bba-pager .page-item.active .page-link { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.bba-pager .page-link:hover { background: var(--color-paper-2); color: var(--color-ink); }
.bba-pager .page-item.disabled .page-link { color: var(--color-muted); }

/* ------------------------------------------------------------
   Touch ergonomics — coarse pointers get full-size targets
   ------------------------------------------------------------ */
@media (pointer: coarse) {
  .bb-mast .nav-link { display: flex; align-items: center; min-height: 44px; }
  .bb-foot ul a, .bb-foot__meta a { display: inline-flex; align-items: center; min-height: 44px; }
  .bb-link { display: inline-flex; align-items: center; min-height: 44px; }
}

/* WhatsApp launcher respects notches / gesture bars */
.bba-wa {
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
  .bb-item__media img { transition: none; }
  .bb-item:hover .bb-item__media img { transform: none; }
}
