/*
Theme Name: Optimar Safaris
Theme URI: https://www.optimarsafaris.com
Author: Tsalwa
Description: A simple one-page theme for Optimar Safaris with a full-width hero, a short list of safari types and contact details.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: optimar
*/

:root {
  --ink: #101827;
  --dusk: #3b4a63;
  --ember: #e8711f;
  --ember-dark: #b9530c;
  --sky: #e9eff6;
  --paper: #ffffff;
  --line: #c7d2e0;
  --font-head: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

/* <picture> wrappers must stay transparent to the layout (responsive images) */
picture { display: contents; }


a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
}

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px;
  overflow: hidden;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

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

.site-header {
  background: var(--ink);
  color: #fff;
  position: relative;
  z-index: 10;
}

.site-header.is-overlay {
  position: absolute;
  inset: 0 0 auto 0;
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
}

.brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img { max-height: 48px; width: auto; }

.primary-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  padding-block: .25rem;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  border-bottom-color: var(--ember);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: inherit;
  border: 2px solid currentColor;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  padding: .35rem .9rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .primary-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--ink);
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: 0 20px 30px -12px rgba(0,0,0,.4);
  }

  .primary-nav.is-open { display: block; }

  .primary-nav ul { flex-direction: column; gap: .25rem; }

  .primary-nav a { display: block; padding: .65rem 0; font-size: 1.05rem; }
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 60%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16,24,39,.78) 0%, rgba(16,24,39,.38) 48%, rgba(16,24,39,0) 78%),
    linear-gradient(0deg, rgba(16,24,39,.55) 0%, rgba(16,24,39,0) 40%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-block: 8rem 5rem;
  max-width: 38rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  font-weight: 800;
  margin-bottom: .4em;
}

.hero p {
  font-size: 1.2rem;
  max-width: 30rem;
  margin: 0 0 2rem;
}

@media (max-width: 720px) {
  .hero::after {
    background: linear-gradient(0deg, rgba(16,24,39,.85) 0%, rgba(16,24,39,.35) 60%, rgba(16,24,39,.1) 100%);
  }
  .hero-img { object-position: 78% 60%; }
  .hero-copy { padding-block: 7rem 3rem; }
}

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

.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 6px;
  background: var(--ember);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  border: 2px solid var(--ember);
  cursor: pointer;
  font-family: inherit;
  transition: background .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
  min-height: 48px;
}

.btn:hover { background: #f58a41; border-color: #f58a41; }

.btn:active { transform: translateY(1px); }

.btn-plain {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
  margin-left: .5rem;
  backdrop-filter: blur(2px);
}

.btn-plain:hover { background: rgba(255,255,255,.12); border-color: #fff; }

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; margin-left: 0; width: 100%; }
}

/* ---------- Safaris ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.section-safaris { background: var(--sky); }

.section h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; }

.section-intro { max-width: 34rem; color: var(--dusk); margin-bottom: 3rem; }

.safari-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.safari-item { padding: 0 2rem; border-left: 2px solid var(--line); }
.safari-item:first-child { padding-left: 0; border-left: 0; }

.safari-item h3 { font-size: 1.4rem; font-weight: 700; }

.safari-item p { margin: 0; color: var(--dusk); }

@media (max-width: 800px) {
  .safari-list { grid-template-columns: 1fr; gap: 2rem; }
  .safari-item { padding: 1.5rem 0 0; border-left: 0; border-top: 2px solid var(--line); }
  .safari-item:first-child { padding-top: 0; border-top: 0; }
}

/* ---------- Inline SVG icons (brand marks filled, phone/mail stroked) ---------- */

.optimar-icon { flex: 0 0 auto; display: block; }

.optimar-icon path,
.optimar-icon rect { fill: currentColor; }

.optimar-icon-phone path,
.optimar-icon-mail path,
.optimar-icon-mail rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Contact ---------- */

.section-contact { background: var(--ink); color: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-grid p { max-width: 30rem; margin: 0 0 1.5rem; color: #d3dbe8; }

/* Phone / WhatsApp quick actions (sit above the email address) */
.contact-quick {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.75rem;
  margin: 0 0 .85rem;
  padding: 0;
  list-style: none;
}

.contact-quick-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 40px; /* comfortable tap target on mobile */
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}

.contact-quick-link .optimar-icon { color: var(--ember); }

.contact-quick-link:hover,
.contact-quick-link:focus-visible { color: var(--ember); }

.contact-quick-link.is-whatsapp .optimar-icon { color: #25d366; }

.contact-quick-link.is-whatsapp:hover,
.contact-quick-link.is-whatsapp:focus-visible { color: #25d366; }

.contact-email {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--ember);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

.contact-address { font-style: normal; color: #d3dbe8; }

.contact-address strong,
.contact-follow strong { display: block; color: #fff; margin-bottom: .5rem; }

/* Office address + social profiles share the right-hand column */
.contact-side { display: grid; gap: 2rem; align-content: start; }

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Social profile buttons (used in the contact section) ---------- */

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}

.social-link:hover,
.social-link:focus-visible {
  background: var(--ember);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ---------- Footer (legal line only) ---------- */

.site-footer {
  background: #0a101c;
  color: #7f90a8;
  padding-block: 1.5rem;
  font-size: .8rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 1.5rem;
}

/* ---------- Inner pages & posts ---------- */

.entry-wrap { padding-block: 4rem 6rem; max-width: 46rem; }

.entry { margin-bottom: 4rem; }

.entry-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }

.entry-title a { text-decoration: none; }

.entry-content > * + * { margin-top: 1.1em; }

.entry-content a { color: var(--ember-dark); }

.entry-content img { border-radius: 4px; }

/* ---------- Brand Logo & Header Additions ---------- */
.site-logo {
  height: 44px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

.nav-cta {
  background: var(--ember);
  color: var(--ink) !important;
  padding: .35rem .95rem !important;
  border-radius: 4px;
  border-bottom: none !important;
  transition: background .2s ease;
}

.nav-cta:hover {
  background: #f58a41 !important;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 3px 0;
  transition: transform .2s ease;
}

/* ---------- Eyebrows & Common Helpers ---------- */
.hero-eyebrow,
.section-eyebrow,
.spotlight-eyebrow,
.safari-hero-badge,
.archive-hero-eyebrow,
.booking-modal-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: .6rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.section-head {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: .4em;
}

.section-head .section-intro {
  margin-inline: auto;
  font-size: 1.125rem;
}

/* Nested sections (front-page safari catalog wrapper): no double padding */
.section .section {
  padding-block: 0;
}

/* ---------- Booking Notice Bar ---------- */
.booking-notice {
  padding: 1.25rem 0;
  color: #fff;
  font-size: .95rem;
}
.booking-notice.is-success { background: #15803d; }
.booking-notice.is-error { background: #b91c1c; }
.booking-notice-inner {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.booking-notice strong { font-size: 1.05rem; }

/* ---------- Featured Safari Spotlight ---------- */
.section-featured-safari {
  background: var(--paper);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.featured-spotlight-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 45px -15px rgba(16,24,39,.12), 0 0 0 1px rgba(16,24,39,.06);
}

.featured-spotlight-media {
  position: relative;
  min-height: 380px;
}

.featured-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--ember);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .04em;
  padding: .35rem .85rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.featured-spotlight-body {
  padding: clamp(2rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  margin-bottom: .6rem;
}

.spotlight-title a {
  text-decoration: none;
  color: var(--ink);
}

.spotlight-title a:hover {
  color: var(--ember-dark);
}

.spotlight-route {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .925rem;
  font-weight: 600;
  color: var(--dusk);
  margin-bottom: 1.1rem;
}

.spotlight-desc {
  color: var(--dusk);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.spotlight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sky);
}

.spotlight-price span {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--dusk);
}

.spotlight-price strong {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--ink);
}

.spotlight-price small {
  font-size: .85rem;
  color: var(--dusk);
}

.spotlight-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}

.btn-secondary {
  background: var(--sky);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: var(--line);
  border-color: var(--line);
}

@media (max-width: 900px) {
  .featured-spotlight-card {
    grid-template-columns: 1fr;
  }
  .featured-spotlight-media {
    min-height: 260px;
  }
}


/* ---------- Safari Cards Grid ---------- */
.safaris-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 560px) {
  .safaris-cards-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.safari-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(16,24,39,.06);
  border: 1px solid rgba(16,24,39,.07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.safari-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(16,24,39,.12);
}

.safari-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sky);
}

.safari-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.safari-card:hover .safari-card-media img {
  transform: scale(1.04);
}

.safari-pill {
  position: absolute;
  top: 1rem;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: .3rem .7rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.safari-pill-duration {
  left: 1rem;
  background: rgba(16,24,39,.82);
  color: #fff;
  backdrop-filter: blur(4px);
}

.safari-pill-featured {
  right: 1rem;
  background: var(--ember);
  color: var(--ink);
}

.safari-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.safari-card-route {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ember-dark);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .4rem;
}

.safari-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: .6rem;
}

.safari-card-title a {
  text-decoration: none;
  color: var(--ink);
}

.safari-card-title a:hover {
  color: var(--ember-dark);
}

.safari-card-excerpt {
  font-size: .9375rem;
  color: var(--dusk);
  line-height: 1.55;
  margin: 0 0 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.safari-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sky);
  margin-top: auto;
}

@media (max-width: 400px) {
  .safari-card-foot { flex-direction: column; align-items: stretch; }
  .safari-card-actions { justify-content: space-between; }
}

.safari-card-price .price-label {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  color: var(--dusk);
  letter-spacing: .05em;
}

.safari-card-price .price-value {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.safari-card-price .price-unit {
  font-size: .78rem;
  color: var(--dusk);
}

.safari-card-price-enquire .price-unit {
  font-size: .85rem;
  font-weight: 600;
  color: var(--dusk);
}

.safari-card-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.btn-text {
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.btn-text:hover { color: var(--ember-dark); }

.btn-sm {
  padding: .45rem .9rem;
  font-size: .875rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--ember);
  background: var(--ember);
  color: var(--ink);
  transition: background .2s ease;
}
.btn-sm:hover {
  background: #f58a41;
  border-color: #f58a41;
}


/* ---------- About / Why Optimar Section ---------- */
.section-about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-copy h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.about-copy p {
  color: var(--dusk);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sky);
}

.about-feature strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 800;
}

.about-feature span {
  font-size: .9rem;
  color: var(--dusk);
}

.about-media img {
  border-radius: 12px;
  box-shadow: 0 16px 36px -10px rgba(16,24,39,.18);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .about-features { grid-template-columns: 1fr; }
}

/* ---------- Single Safari Detail Layout ---------- */
.safari-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}

.safari-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.safari-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(16,24,39,.92) 0%, rgba(16,24,39,.5) 45%, rgba(16,24,39,.2) 100%),
    linear-gradient(90deg, rgba(16,24,39,.75) 0%, rgba(16,24,39,0) 65%);
}

.safari-hero-content {
  position: relative;
  z-index: 2;
  padding-block: 9rem 4rem;
  max-width: 52rem;
  margin-inline: auto;
}

@media (max-width: 720px) {
  .safari-hero-content { padding-block: 7.5rem 3rem; }
}

.safari-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.safari-hero-back {
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  text-decoration: none;
  opacity: .85;
}
.safari-hero-back:hover { opacity: 1; color: var(--ember); }

.safari-hero-badge {
  background: var(--ember);
  color: var(--ink);
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  margin: 0;
}

.safari-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: .6rem;
  color: #fff;
}

.safari-hero-route {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

.safari-hero-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-hero-book {
  background: var(--ember);
  color: var(--ink);
  font-weight: 800;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232,113,31,.35);
  transition: background .2s ease, transform .2s ease;
}
.btn-hero-book:hover {
  background: #f58a41;
  transform: translateY(-2px);
}

.safari-hero-price {
  color: #fff;
}
.safari-hero-price span {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .8;
}
.safari-hero-price strong {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
}
.safari-hero-price small {
  font-size: .85rem;
  opacity: .8;
}

.safari-detail-section {
  background: #f8fafc;
}

.safari-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .safari-detail-layout { grid-template-columns: 1fr; }
}

.safari-lead-text p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 2.5rem;
}

.safari-section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
}


/* Timeline Day-by-Day */
.safari-timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--line);
  margin-bottom: 3rem;
}

.safari-timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.safari-timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: calc(-2rem - 6px);
  top: 1.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--line);
}

.timeline-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 8px rgba(16,24,39,.04);
  border: 1px solid rgba(16,24,39,.06);
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .6rem;
}

.timeline-body p {
  font-size: .975rem;
  color: var(--dusk);
  line-height: 1.65;
  margin: 0 0 .75rem;
}
.timeline-body p:last-child { margin-bottom: 0; }

/* Inclusions Grid */
.safari-inclusions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 680px) {
  .safari-inclusions-grid { grid-template-columns: 1fr; }
}

.inclusions-col {
  background: #fff;
  border-radius: 10px;
  padding: 1.75rem;
  border: 1px solid rgba(16,24,39,.07);
}

.inclusions-col h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.col-includes h3 { color: #15803d; }
.col-excludes h3 { color: #b91c1c; }

.inclusions-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.inclusions-col li {
  font-size: .925rem;
  color: var(--dusk);
  line-height: 1.45;
  position: relative;
  padding-left: 1.25rem;
}

.col-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #15803d;
  font-weight: 800;
}

.col-excludes li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #b91c1c;
  font-weight: 800;
}

/* Safari Bottom Book Banner */
.safari-book-banner {
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 2.25rem;
  margin-top: 3rem;
}

.safari-book-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.safari-book-banner h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: .35rem;
}

.safari-book-banner p {
  color: #cbd5e1;
  margin: 0;
  font-size: 1rem;
  max-width: 30rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
}

/* Sidebar Card */
.safari-detail-sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
}
.safari-sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px -10px rgba(16,24,39,.12);
  border: 1px solid rgba(16,24,39,.08);
}

.sidebar-price {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--sky);
  margin-bottom: 1.25rem;
}

.sidebar-price-label {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--dusk);
}

.sidebar-price-amount {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ink);
}

.sidebar-price-unit {
  font-size: .85rem;
  color: var(--dusk);
  display: block;
}

.sidebar-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.sidebar-meta-list li {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  font-size: .9rem;
}

.sidebar-meta-list .meta-label { color: var(--dusk); }
.sidebar-meta-list .meta-value { color: var(--ink); font-weight: 700; text-align: right; }

.btn-sidebar-book {
  width: 100%;
  padding: 1rem;
  background: var(--ember);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background .2s ease;
}
.btn-sidebar-book:hover { background: #f58a41; }

.sidebar-contact-alt {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sky);
  font-size: .85rem;
  color: var(--dusk);
  text-align: center;
}
.sidebar-contact-alt span { display: block; margin-bottom: .25rem; }
.sidebar-contact-alt a {
  color: var(--ember-dark);
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Archive Template Styles ---------- */
.archive-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}

.archive-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16,24,39,.95) 0%, rgba(16,24,39,.6) 50%, rgba(16,24,39,.3) 100%);
}

.archive-hero-content {
  position: relative;
  z-index: 2;
  padding-block: 8rem 3.5rem;
  max-width: 48rem;
}

@media (max-width: 720px) {
  .archive-hero-content { padding-block: 7rem 2.5rem; }
}

.archive-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: .6rem;
  color: #fff;
}

.archive-hero-sub {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin: 0;
}

.archive-grid-header {
  margin-bottom: 2.5rem;
}
.archive-grid-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: .25rem;
}
.archive-grid-count {
  color: var(--dusk);
  font-size: .95rem;
  margin: 0;
}


/* ---------- Booking Enquiry Modal ---------- */
body.modal-open {
  overflow: hidden;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

@media (min-width: 700px) {
  .booking-modal { align-items: center; }
}

.booking-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16,24,39,.78);
  backdrop-filter: blur(4px);
}

.booking-modal-dialog {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 14px;
  max-width: 620px;
  width: 100%;
  max-height: calc(100vh - 3rem);
  max-height: calc(100svh - 3rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 25px 50px -12px rgba(16,24,39,.35);
  transform: translateY(12px) scale(.98);
  transition: transform .25s ease;
}

@media (max-width: 560px) {
  .booking-modal { padding: .75rem; }
  .booking-modal-dialog {
    border-radius: 12px;
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100svh - 1.5rem);
  }
}

.booking-modal.is-open .booking-modal-dialog {
  transform: translateY(0) scale(1);
}

.booking-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--sky);
  color: var(--ink);
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.booking-modal-close:hover {
  background: var(--line);
}

.booking-modal-header {
  margin-bottom: 1.5rem;
  padding-right: 2.5rem;
}

.booking-modal-title {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 800;
  margin-bottom: .6rem;
}

.booking-modal-safari-preview {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem .95rem;
  background: var(--sky);
  border-radius: 8px;
  margin-top: .6rem;
}

.booking-modal-safari-preview img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.booking-modal-safari-preview strong {
  display: block;
  font-size: .95rem;
  color: var(--ink);
  line-height: 1.25;
}

.modal-duration-tag {
  display: inline-block;
  font-size: .75rem;
  color: var(--ember-dark);
  font-weight: 700;
  margin-top: 2px;
}

/* Modal Form Styles */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .form-row-2col { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
}

.form-label {
  font-size: .875rem;
  font-weight: 700;
  color: var(--ink);
}

.form-label .required {
  color: #b91c1c;
}

.form-hint {
  font-size: .775rem;
  color: var(--dusk);
}

.form-input,
.form-textarea {
  font-family: inherit;
  font-size: .95rem;
  padding: .65rem .85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(232,113,31,.18);
}

.form-fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  margin: 0;
}

.form-legend {
  font-size: .85rem;
  font-weight: 800;
  padding: 0 .4rem;
  color: var(--ink);
  font-family: var(--font-head);
  letter-spacing: .02em;
}

/* Travelers Grid Counters */
.travelers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}

@media (max-width: 680px) {
  .travelers-grid { grid-template-columns: 1fr; }
}

.counter-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem .8rem;
  background: var(--sky);
  border-radius: 6px;
}

.counter-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.counter-label strong {
  font-size: .85rem;
  color: var(--ink);
}

.counter-label span {
  font-size: .725rem;
  color: var(--dusk);
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.counter-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease;
}

.counter-btn:hover {
  background: var(--sky);
}

.counter-input {
  width: 36px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.counter-input::-webkit-outer-spin-button,
.counter-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.booking-modal-footer {
  margin-top: .75rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.btn-submit-booking {
  width: 100%;
  padding: .95rem;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-head);
  letter-spacing: .02em;
  background: var(--ember);
  color: var(--ink);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(232,113,31,.25);
  transition: background .2s ease;
}

.btn-submit-booking:hover {
  background: #f58a41;
}

.booking-guarantee-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-size: .775rem;
  color: var(--dusk);
  text-align: center;
}


/* Reduced motion: respect users who disable animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .safari-card:hover { transform: none; }
  .safari-card:hover .safari-card-media img { transform: none; }
}

/* Residency selector (booking modal) — vertical list */
.residency-fieldset .form-hint {
  display: block;
  margin-bottom: .5rem;
}
.residency-options {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.residency-option {
  display: flex;
  gap: .65rem;
  align-items: center;
  padding: .65rem .8rem;
  cursor: pointer;
  font-size: .9rem;
  border-bottom: 1px solid var(--line);
}
.residency-option:last-child {
  border-bottom: none;
}
.residency-option:hover {
  background: var(--sky);
}
.residency-option:has(input:checked) {
  background: #fff7f0;
  box-shadow: inset 3px 0 0 var(--ember);
}
.residency-option input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ember);
}
.residency-option-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.residency-option-text strong {
  color: var(--ink);
  font-weight: 700;
}
.residency-option-text span {
  font-size: .78rem;
  color: var(--dusk);
}
