/* =========================================================================
   Classic Kenya Safaris — kenya-safari-tour.com
   Palette: Savannah Sunset
   Design system: english-harbour-design (typography, layout, components)
   Mobile-first; all colors as CSS custom properties in :root only.
   ========================================================================= */

:root {
  /* Savannah Sunset palette (the only place hex values may live) */
  --color-primary: #A84924;        /* burnt terracotta — CTAs, links */
  --color-accent:  #D99A3D;        /* golden savannah — highlights, stars, hovers */
  --color-dark:    #2B2218;        /* roasted umber — text, headings, footer bg */
  --color-bg:      #F5EFE4;        /* warm ivory — page background */
  --color-support: #6B4A2B;        /* acacia bark — secondary text, borders */

  /* Derived tokens (rgba) */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-border: rgba(107, 74, 43, 0.18);
  --color-border-strong: rgba(107, 74, 43, 0.35);
  --color-text-muted: rgba(43, 34, 24, 0.72);
  --color-text-soft: rgba(43, 34, 24, 0.6);
  --color-surface-alt: rgba(255, 255, 255, 0.65);
  --color-overlay-30: rgba(0, 0, 0, 0.30);
  --color-overlay-50: rgba(0, 0, 0, 0.50);
  --color-overlay-70: rgba(0, 0, 0, 0.70);
  --color-card-shadow: rgba(43, 34, 24, 0.08);
  --color-warning-bg: rgba(217, 154, 61, 0.12);
  --color-warning-border: rgba(168, 73, 36, 0.35);

  /* Light category-intro panel shades */
  --color-primary-light: #E8D4CB;
  --color-accent-light:  #F4E4C6;
  --color-dark-light:    #D7D2CA;
  --color-support-light: #DDCEBE;
  --color-bg-deep:       #EBE2D0;

  /* Month-tab palette — two steps lighter than base (both inactive & active). Scoped to best-time tabs only. */
  --color-tab-best:         #C56E4A;   /* month tab active — "Best" */
  --color-tab-best-muted:   #D18A6B;   /* month tab inactive — "Best" */
  --color-tab-good:         #E5AE55;   /* month tab active — "Good" */
  --color-tab-good-muted:   #EFC683;   /* month tab inactive — "Good" */
  --color-tab-low:          #8C6D4F;   /* month tab active — "Low" */
  --color-tab-low-muted:    #A48869;   /* month tab inactive — "Low" */

  /* Layout tokens */
  --container-max: 1290px;
  --container-narrow: 800px;
  --header-height: 70px;
  --gap-xs: 8px;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 40px;
  --gap-xl: 60px;

  /* Type */
  --font-display: 'Montserrat', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, sans-serif;

  /* Easing */
  --ease: cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

@media (min-width: 1000px) {
  :root { --header-height: 88px; }
}

/* -------------------------------------------------------------------------
   Reset / base
   ------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-dark);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.12s var(--ease); }
a:hover { color: var(--color-accent); }
::selection { background: var(--color-primary); color: var(--color-white); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.2rem); line-height: 1.25; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.3; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

/* -------------------------------------------------------------------------
   Layout primitives
   ------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: var(--container-narrow); }

section[id] { scroll-margin-top: var(--header-height); }

.section { padding: 50px 0; }
@media (min-width: 1000px) { .section { padding: 70px 0; } }

.section--alt { background: var(--color-white); }
.section--dark { background: var(--color-dark); color: var(--color-white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--accent { background: var(--color-warning-bg); }

.section-heading { text-align: center; margin-bottom: var(--gap-lg); }
.section-heading p { max-width: 700px; margin: 0 auto; color: var(--color-text-muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 10px;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 14px 26px;
  min-height: 48px;
  border-radius: 0;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: translate3d(0, -2px, 0);
}
.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn--ghost:hover {
  background: var(--color-white);
  color: var(--color-dark);
}
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--hero {
  font-size: 17px;
  padding: 18px 34px;
  min-height: 60px;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  width: 100%;
}
.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--color-dark);
  text-decoration: none;
  line-height: 1.1;
}
.site-logo span { display: block; font-size: 11px; font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.18em; }

.site-nav { display: none; }
.site-nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav__list a {
  color: var(--color-dark);
  font-weight: 500;
  font-size: 15px;
}
.site-nav__list a:hover { color: var(--color-primary); }

.site-header__cta { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-border-strong);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 14px;
  cursor: pointer;
  border-radius: 0;
}
.menu-toggle__icon { display: inline-block; width: 18px; height: 12px; position: relative; margin-right: 8px; }
.menu-toggle__icon::before, .menu-toggle__icon::after,
.menu-toggle__icon span { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; }
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon span { top: 5px; display: block; }
.menu-toggle__icon::after { bottom: 0; }

@media (min-width: 1000px) {
  .site-nav { display: block; }
  .site-header__cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-dark);
  color: var(--color-white);
  z-index: 100;
  padding: 24px 24px 40px;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu[aria-hidden="false"] { display: flex; }
.mobile-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.mobile-menu__close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--color-white);
  font-size: 14px;
  padding: 8px 14px;
  cursor: pointer;
}
.mobile-menu__list { list-style: none; padding: 0; margin: 0 0 32px; }
.mobile-menu__list li { border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-menu__list a {
  display: block;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  padding: 18px 0;
  font-weight: 600;
}
.mobile-menu__cta { align-self: flex-start; }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  background-color: var(--color-dark);
  background-image: linear-gradient(var(--color-overlay-50), var(--color-overlay-50)), url('../safari-hero.webp');
  background-size: cover;
  background-position: center 35%;
  padding: 80px 0 60px;
}
@media (min-width: 1000px) {
  .hero { min-height: 680px; padding: 140px 0 190px; }
}
.hero__inner { max-width: 720px; }
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  max-width: 620px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  align-items: center;
}
.trust-row__item { display: inline-flex; align-items: center; gap: 6px; }
.trust-row__star { color: var(--color-accent); font-size: 16px; letter-spacing: 1px; }

/* -------------------------------------------------------------------------
   Pillars
   ------------------------------------------------------------------------- */

/* Hero pillar cards — overlap hero bottom on desktop */
.hero-pillars {
  position: relative;
  z-index: 2;
  margin-top: -80px; /* desktop overlap */
  padding: 0 0 48px;
}
.hero-pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.hero-pillar {
  position: relative;
  border-radius: 0;
  padding: 28px 24px 24px;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-pillar--1 { background: var(--color-primary); }
.hero-pillar--2 { background: var(--color-accent); color: var(--color-dark); }
.hero-pillar--3 { background: var(--color-dark); }
.hero-pillar--4 { background: var(--color-support); }
.hero-pillar__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
  color: inherit;
}
.hero-pillar__text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: inherit;
  opacity: 0.95;
}

/* Tablet — 2 columns, reduce overlap */
@media (max-width: 1023px) {
  .hero-pillars { margin-top: -48px; }
  .hero-pillars__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile — stack, keep overlap on first card */
@media (max-width: 639px) {
  .hero-pillars {
    margin-top: -40px;
    padding: 0 0 32px;
  }
  .hero-pillars__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-pillar { padding: 24px 20px 20px; }
}

/* -------------------------------------------------------------------------
   Intro
   ------------------------------------------------------------------------- */

.intro { padding: 30px 0 50px; }
.intro p { font-size: 1.1rem; line-height: 1.7; max-width: 820px; margin: 0 auto; text-align: center; color: var(--color-dark); }

/* -------------------------------------------------------------------------
   Destinations grid (parks)
   ------------------------------------------------------------------------- */

.dest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px)  { .dest-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (min-width: 1024px) { .dest-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.park-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.22);
  transition: transform 0.3s var(--ease);
}
.park-card:hover { transform: translateY(-4px); }
.park-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.park-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.park-card:hover .park-card__media img { transform: scale(1.04); }
.park-card__body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  min-height: 140px;
  background: var(--color-white);
  padding: 18px 16px 20px;
  border-radius: 0;
  text-align: center;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.park-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin: 0 0 8px;
}
.park-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------
   At-a-glance category cards (5 compact, edge-to-edge)
   ------------------------------------------------------------------------- */

.glance-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .glance-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

.glance-card {
  position: relative;
  display: flex;
  min-height: 360px;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  color: var(--color-white);
  text-decoration: none;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s var(--ease), filter 0.25s ease;
}
.glance-card:hover { transform: translateY(-4px); filter: brightness(1.05); }

.glance-card__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 32px 36px;
  width: 100%;
}

/* Six different image + palette overlay combos */
.glance-card--intro { background-image: linear-gradient(rgba(43, 34, 24, 0.15) 0%, rgba(43, 34, 24, 0.60) 55%, rgba(43, 34, 24, 0.92) 100%), url('../safari-hero.webp'); }
.glance-card--1     { background-image: linear-gradient(rgba(168, 73, 36, 0.10) 0%, rgba(168, 73, 36, 0.55) 55%, rgba(168, 73, 36, 0.90) 100%), url('../maasai-mara.webp'); }
.glance-card--2     { background-image: linear-gradient(rgba(217, 154, 61, 0.15) 0%, rgba(184, 120, 45, 0.65) 55%, rgba(140, 90, 30, 0.92) 100%), url('../lake-naivasha.webp'); }
.glance-card--3     { background-image: linear-gradient(rgba(107, 74, 43, 0.12) 0%, rgba(107, 74, 43, 0.55) 55%, rgba(107, 74, 43, 0.92) 100%), url('../amboseli.webp'); }
.glance-card--4     { background-image: linear-gradient(rgba(168, 73, 36, 0.10) 0%, rgba(100, 55, 30, 0.60) 55%, rgba(43, 34, 24, 0.92) 100%), url('../tsavo-east.webp'); }
.glance-card--5     { background-image: linear-gradient(rgba(43, 34, 24, 0.12) 0%, rgba(70, 55, 35, 0.55) 55%, rgba(107, 74, 43, 0.92) 100%), url('../samburu.webp'); }

.glance-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  margin: 0 0 10px;
}
@media (min-width: 1024px) {
  .glance-card__title { font-size: 26px; }
}
.glance-card--intro .glance-card__title {
  font-size: 28px;
}

.glance-card__stats {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.92;
  margin: 0 0 10px;
}

.glance-card__tagline {
  font-family: var(--font-heading);
  font-size: 15px;
  font-style: italic;
  font-weight: 600;
  color: var(--color-white);
  opacity: 0.95;
  margin: 0 0 14px;
  line-height: 1.35;
}

.glance-card__lede {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-white);
  opacity: 0.95;
  margin: 0 0 20px;
}
.glance-card--intro .glance-card__lede { margin-bottom: 0; }

.glance-card__cta {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.glance-card:hover .glance-card__cta {
  border-bottom-color: var(--color-white);
}

/* -------------------------------------------------------------------------
   Category sections
   ------------------------------------------------------------------------- */

.cat { border-top: 1px solid var(--color-border); padding-bottom: 60px; }
.cat > .container { padding-top: 40px; }

/* Category header — title + tagline + description */
.cat__header {
  margin: 0 0 28px;
}
.cat__header h2 {
  margin: 0;
  padding: 0 0 8px;
  position: relative;
  color: var(--color-dark);
}
.cat__header h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: var(--color-primary);
  margin-top: 8px;
  border-radius: 0;
}
.cat__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--color-support);
  margin: 14px 0 14px;
  line-height: 1.35;
}
.cat__desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-dark);
  max-width: 780px;
  margin: 0;
}
@media (min-width: 700px) {
  .cat__desc { font-size: 16px; }
}

/* 4-pill fact strip */
.cat__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 28px 0;
  border: 1px solid var(--color-border);
  border-radius: 0;
}
.cat__fact {
  flex: 1 1 45%;
  min-width: 140px;
  padding: 18px 20px;
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  border-radius: 0;
}
.cat__fact:last-child {
  border-right: 0;
}
@media (min-width: 640px) {
  .cat__fact {
    flex: 1 1 0;
  }
}
.cat__fact-value {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
}
.cat__fact-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-support);
  margin-top: 6px;
}

/* Two-column info block */
.cat__info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 0 0 32px;
}
@media (min-width: 768px) {
  .cat__info {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}
.cat__info-col {
  background: transparent;
  border: 0;
}
.cat__info-heading {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-dark);
  margin: 0 0 16px;
  position: relative;
  padding-bottom: 8px;
}
.cat__info-heading::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
}
.cat__info-heading--extra {
  margin-top: 24px;
}

/* Definition-list variant — "Good to know" */
.cat__info-list {
  margin: 0;
  padding: 0;
}
.cat__info-item {
  margin-bottom: 16px;
}
.cat__info-item dt {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
}
.cat__info-item dd {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-support);
  margin: 0;
}
.cat__info-item--warn {
  border-left: 3px solid var(--color-primary);
  padding-left: 12px;
}
.cat__info-item--warn dt {
  color: var(--color-primary);
}

/* Bullet variant — "What's included" / "Usually extra" */
.cat__info-list--bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cat__info-list--bullets li {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-dark);
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}
.cat__info-list--bullets li::before {
  content: '\00B7';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
  line-height: 1.55;
}

/* Tour cards inside category */
.tours-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  align-items: stretch;
}
@media (min-width: 900px)  { .tours-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .tours-grid { grid-template-columns: repeat(3, 1fr); } }
.tour-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 18px -6px var(--color-card-shadow);
  overflow: hidden;
  scroll-margin-top: var(--header-height);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tour-card__body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.tour-card__pick {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-accent);
  color: var(--color-dark);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.tour-card__title {
  font-size: 1.2rem;
  margin: 0 0 10px;
  line-height: 1.3;
  color: var(--color-dark);
}
.tour-card__meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.tour-card__rating {
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.3px;
}
.tour-card__reviews,
.tour-card__duration {
  color: var(--color-text-muted);
}
.tour-card__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}
.tour-card__price-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  margin-left: 4px;
}
.tour-card__price-note {
  font-size: 13px;
  color: var(--color-support);
  margin: 0 0 14px;
  line-height: 1.5;
}
.tour-card__price-note--included::before {
  content: '✓ ';
  color: var(--color-primary);
  font-weight: 700;
}
.tour-card__highlights { list-style: none; padding: 0; margin: 6px 0 20px; }
.tour-card__highlights li { font-size: 14px; padding: 4px 0 4px 22px; position: relative; color: var(--color-text-muted); line-height: 1.5; }
.tour-card__highlights li::before { content: '✓'; position: absolute; left: 0; color: var(--color-primary); font-weight: 700; }

.tour-card__widget {
  border-top: 1px solid var(--color-border);
  margin: 8px -24px -28px;
  padding: 22px 24px 24px;
  background: var(--color-bg);
  scroll-margin-top: var(--header-height);
  margin-top: auto;
}

/* Accordion behavior on small screens */
@media (max-width: 639px) {
  .cat .tours-grid { display: none; }
  .cat.is-open .tours-grid { display: grid; }
  .cat__header h2 {
    cursor: pointer;
    position: relative;
    padding-right: 36px;
  }
  .cat__header h2::before {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.6rem;
    color: var(--color-primary);
    font-weight: 400;
    line-height: 1;
  }
  .cat.is-open .cat__header h2::before { content: '\2212'; }
}

/* -------------------------------------------------------------------------
   Decision guide
   ------------------------------------------------------------------------- */

.decision-list { display: grid; grid-template-columns: 1fr; gap: var(--gap-md); }
@media (min-width: 800px) { .decision-list { grid-template-columns: repeat(2, 1fr); } }
.decision {
  display: flex;
  gap: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 22px;
}
.decision__num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.decision h3 { font-size: 1.05rem; margin-bottom: 6px; }
.decision p  { font-size: 14px; margin: 0; color: var(--color-text-muted); line-height: 1.55; }

/* -------------------------------------------------------------------------
   Tables
   ------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; margin: 0 0 var(--gap-md); }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  font-size: 14px;
  min-width: 480px;
}
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
th {
  background: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
tbody tr:nth-child(even) { background: var(--color-bg); }

/* Cost split */
.cost-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  margin-top: var(--gap-lg);
}
@media (min-width: 800px) { .cost-split { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------------------------------------------
   Park fees warning (split image)
   ------------------------------------------------------------------------- */

.split-image {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
@media (min-width: 900px) {
  .split-image { grid-template-columns: 1fr 1fr; min-height: 420px; }
}
.split-image__image {
  min-height: 240px;
  background-size: cover;
  background-position: center;
}
.split-image__content { padding: 32px 28px; }
.split-image__image--fees { background-image: url('../maasai-mara.webp'); }
.split-image__image--besttime { background-image: url('https://cdn.getyourguide.com/img/tour/0ace9122ac1b2867076f1204571062c32acb5315cfdc3a6b08ffacf1a15af1d0.jpg/99.jpg'); }
.split-image__content h2 { margin-bottom: 16px; }

.warning-callout {
  background: var(--color-warning-bg);
  border-left: 4px solid var(--color-primary);
  padding: 18px 22px;
  margin: 18px 0;
  font-size: 15px;
  color: var(--color-dark);
  line-height: 1.55;
}
.warning-callout strong { color: var(--color-primary); }

/* -------------------------------------------------------------------------
   Reviews
   ------------------------------------------------------------------------- */

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}
@media (min-width: 700px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 26px 24px;
  box-shadow: 0 12px 18px -6px var(--color-card-shadow);
}
.review__stars { color: var(--color-accent); letter-spacing: 2px; margin-bottom: 10px; font-size: 16px; }
.review__body { font-style: italic; font-size: 16px; line-height: 1.55; color: var(--color-dark); margin-bottom: 12px; }
.review__attr { font-weight: 600; font-size: 14px; color: var(--color-text-muted); }
.review__attr strong { color: var(--color-dark); }

/* -------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */

.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-dark);
  position: relative;
  padding-right: 50px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item__body { padding: 0 22px 22px; font-size: 15px; line-height: 1.65; color: var(--color-text-muted); }
.faq-item__body p { margin: 0 0 0.8em; }

/* -------------------------------------------------------------------------
   Practical info / Packing
   ------------------------------------------------------------------------- */

.cols-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}
@media (min-width: 800px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }
.cols-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}
@media (min-width: 700px) { .cols-2 { grid-template-columns: repeat(2, 1fr); } }
.info-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 24px;
}
.info-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.info-card ul { padding-left: 1.1em; }
.info-card li { font-size: 14px; color: var(--color-text-muted); line-height: 1.55; margin-bottom: 6px; }

/* -------------------------------------------------------------------------
   Final CTA banner
   ------------------------------------------------------------------------- */

.book-now {
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  padding: 70px 0;
}
.book-now h2 { color: var(--color-white); margin-bottom: 14px; }
.book-now p { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto 26px; font-size: 1.05rem; }
.book-now .urgency {
  display: inline-block;
  background: var(--color-warning-bg);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.72);
  padding: 60px 0 30px;
}
.site-footer a { color: var(--color-white); }
.site-footer a:hover { color: var(--color-accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  margin-bottom: 40px;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px; } }
.footer-col h4 {
  color: var(--color-white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; font-size: 14px; }
.footer-disclosure {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.footer-disclosure p { margin: 0 0 8px; }

/* -------------------------------------------------------------------------
   Sticky mobile bottom CTA
   ------------------------------------------------------------------------- */

.sticky-cta-mobile {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.18);
  display: block;
}
.sticky-cta-mobile:hover { background: var(--color-accent); color: var(--color-white); }
@media (min-width: 640px) { .sticky-cta-mobile { display: none; } }

@media (max-width: 639px) {
  body { padding-bottom: 64px; }
}

/* -------------------------------------------------------------------------
   Visually-hidden helper
   ------------------------------------------------------------------------- */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Focus outline */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Utility classes (so index.html avoids inline style for color/font) */
.site-logo--on-dark { color: var(--color-white); }
.footer-about {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  margin: 0 0 12px;
}
.table-wrap--spaced { margin-top: 36px; }

/* -------------------------------------------------------------------------
   404 page
   ------------------------------------------------------------------------- */

.notfound {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.notfound h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: 12px; }
.notfound p { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: 28px; }
.notfound__links {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.notfound__links a {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 10px 18px;
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 600;
}
.notfound__links a:hover { background: var(--color-primary); color: var(--color-white); }

/* -------------------------------------------------------------------------
   Best time to visit — 12-month tab/slider hybrid
   Mobile-first. Sharp corners (border-radius: 0) throughout.
   Uses :root custom properties only — no hex values here.
   ------------------------------------------------------------------------- */

.best-time__intro {
  max-width: var(--container-narrow);
  margin: 0 auto;
  color: var(--color-text-muted);
}

/* Legend */
.best-time__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 24px 0 16px;
}
.best-time__legend-item {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
}
.best-time__legend-item--best { background: var(--color-primary); }
.best-time__legend-item--good { background: var(--color-accent); }
.best-time__legend-item--low  { background: var(--color-support); }

/* Tablist — mobile: horizontal scroll with snap */
.best-time__tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
  margin: 0 0 24px;
}
.best-time__tab {
  flex: 0 0 auto;
  min-width: 72px;
  scroll-snap-align: start;
  padding: 14px 10px;
  border-radius: 0;
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.best-time__tab--best { background: var(--color-tab-best-muted); color: var(--color-white); }
.best-time__tab--good { background: var(--color-tab-good-muted); color: var(--color-dark); }
.best-time__tab--low  { background: var(--color-tab-low-muted);  color: var(--color-white); }

.best-time__tab:focus-visible {
  outline: 2px solid var(--color-dark);
  outline-offset: 2px;
}

.best-time__tab--active { font-weight: 700; }
.best-time__tab--active.best-time__tab--best { background: var(--color-primary); color: var(--color-white); }
.best-time__tab--active.best-time__tab--good { background: var(--color-accent);  color: var(--color-dark); }
.best-time__tab--active.best-time__tab--low  { background: var(--color-support); color: var(--color-white); }

/* Desktop: 12 equal columns, no scroll */
@media (min-width: 640px) {
  .best-time__tabs {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
    overflow: visible;
  }
  .best-time__tab { min-width: 0; }
}

/* Panels */
.best-time__panels {
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.best-time__panel {
  display: grid;
  grid-template-columns: 1fr;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.best-time__panel[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .best-time__panel { transition: none; }
}

@media (min-width: 900px) {
  .best-time__panel {
    grid-template-columns: 1fr 1fr;
  }
}

.best-time__panel-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}

.best-time__panel-body {
  padding: 24px;
}
@media (min-width: 640px) {
  .best-time__panel-body { padding: 32px; }
}

.best-time__panel-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--color-dark);
}

.best-time__panel-rating {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
}
.best-time__panel-rating--best { color: var(--color-primary); }
.best-time__panel-rating--good { color: var(--color-accent); }
.best-time__panel-rating--low  { color: var(--color-support); }

.best-time__panel-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.best-time__panel-bullets li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
  padding-left: 22px;
  position: relative;
}
.best-time__panel-bullets li::before {
  content: "\25B8"; /* ▸ */
  color: var(--color-accent);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.best-time__stats {
  list-style: none;
  padding: 16px 0 0;
  margin: 0;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
}
@media (min-width: 640px) {
  .best-time__stats { grid-template-columns: repeat(3, 1fr); }
}
.best-time__stats li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text-muted);
}
.best-time__stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}
