/*
Theme Name: Migration Route Safaris
Theme URI: https://migrationroutesafaris.com/
Author: Migration Route Safaris
Author URI: https://migrationroutesafaris.com/
Description: Custom theme for Migration Route Safaris — Kenya and Tanzania safari tour operator. Booking-focused, built to match the approved site preview exactly (red / near-black / gold brand system). Includes homepage, service, trip and packages-listing page templates and a built-in enquiry form that emails the operator. No page builder, no jQuery.
Version: 1.1.16
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: migration-route-safaris
Tags: travel, safari, kenya, tanzania, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. BRAND DESIGN SYSTEM — single source of truth (spec Section 2),
   values taken from the approved site preview.
   Never hard-code hex values, font names, radii or shadows in templates.
   ========================================================================== */
:root {
  /* 2.1 Colours */
  --primary: #e50914;
  --primary-hover: #c9000b;
  --primary-dark: #99000a;
  --primary-light: #ffeded;
  --secondary: #160707;
  --secondary-light: #2b1010;
  --secondary-dark: #090404;
  --accent: #f5b942;
  --accent-light: #fff3d6;

  /* Backgrounds */
  --bg-body: #fff;
  --bg-primary: #fff;
  --bg-secondary: #f8f8f8;
  --bg-tertiary: #f1f1f1;
  --bg-dark: #100707;
  --bg-card: #fff;
  --bg-hover: #fff1f1;

  /* Text */
  --text-primary: #171717;
  --heading-color: #151515;
  --body-color: #404040;
  --text-secondary: #525252;
  --text-muted: #858585;
  --text-light: #bdbdbd;
  --text-white: #fff;

  /* Borders */
  --border-color: #e5e5e5;
  --border-light: #f0f0f0;
  --border-dark: #352020;
  --border-primary: #e50914;

  /* Status — values from the approved preview. */
  --success: #16803c;
  --success-light: #e7f6ec;
  --warning: #d99016;
  --warning-light: #fdf3e0;
  --danger: #e50914;
  --danger-light: #ffeded;
  --info: #2563eb;
  --info-light: #e8effe;

  /* 2.2 Typography */
  --font-heading: "Poppins", sans-serif;
  --font-primary: "Inter", sans-serif;

  /* 2.3 Gradients */
  --gradient-primary: linear-gradient(135deg, #ff202a, #c9000b);
  --gradient-hero: linear-gradient(90deg, rgba(9, 4, 4, 0.88) 0%, rgba(9, 4, 4, 0.62) 55%, rgba(9, 4, 4, 0.25) 100%);
  --gradient-dark: linear-gradient(160deg, #160707, #090404);
  --gradient-safari: linear-gradient(180deg, #fff5e8, #fff);
  --btn-secondary-bg: #160707;
  --btn-secondary-hover: #2b1010;

  /* 2.6 Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 999px;

  /* Shadows — values from the approved preview. */
  --shadow-sm: 0 1px 3px rgba(22, 7, 7, 0.08);
  --shadow-md: 0 6px 18px rgba(22, 7, 7, 0.10);
  --shadow-lg: 0 14px 34px rgba(22, 7, 7, 0.16);
  --shadow-red: 0 8px 20px rgba(229, 9, 20, 0.32);

  /* Spacing — 4px base scale, 4px to 64px */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Layout — 1200px container, exactly as the approved preview. */
  --container-width: 1200px;
  --header-height: 76px;
  --section-spacing: 80px;

  /* Motion */
  --transition-fast: 180ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ==========================================================================
   Base styles
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-body);
  color: var(--body-color);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.18;
  margin: 0 0 var(--space-4);
}
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.08rem, 2vw, 1.3rem); }
p { margin: 0 0 var(--space-4); }
a { color: inherit; text-decoration: none; }
main a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-ghost):not(.btn-whatsapp):not(.trip-card):not(.dest-card):not(.destination-tile):not(.post-card__img):not(.post-card__title-link) {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }
ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-6); }
:focus-visible { outline: 3px solid var(--border-primary); outline-offset: 2px; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--secondary); color: var(--text-white);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-4); color: var(--text-white); }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--space-5); }
.container--narrow { max-width: 820px; }
.section { padding: var(--section-spacing) 0; }
.section.alt, .section--alt { background: var(--bg-secondary); }
.section.warm, .section--safari { background: var(--gradient-safari); }
.section.dark, .section--dark { background: var(--bg-dark); color: var(--text-light); }
.section.dark h2, .section.dark h3, .section--dark h2, .section--dark h3 { color: var(--text-white); }
.section-head { max-width: 760px; margin-bottom: var(--space-10); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary);
  margin-bottom: var(--space-3);
}
.kicker::after {
  content: ""; display: block; width: 44px; height: 3px;
  background: var(--accent); border-radius: var(--radius-full); margin-top: var(--space-2);
}
.section-head.center .kicker::after { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.08rem; color: var(--text-secondary); }
.section__intro { max-width: 720px; color: var(--text-secondary); }

/* ==========================================================================
   Header (sticky, 76px) + navigation — as the approved preview.
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--secondary); color: var(--text-white);
  box-shadow: var(--shadow-md);
}
.header-inner, .site-header .container {
  display: flex; align-items: center; gap: var(--space-4);
  min-height: var(--header-height); width: 100%;
}
.site-branding, .brand {
  display: flex; align-items: center; gap: var(--space-3); flex: none;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
  line-height: 1.15; color: var(--text-white);
}
.site-branding a, .brand a { color: var(--text-white); text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; flex: none; border-radius: var(--radius-md);
  background: var(--gradient-primary); display: flex; align-items: center;
  justify-content: center; font-size: 1.05rem; color: var(--text-white);
  box-shadow: var(--shadow-red);
}
.brand small, .site-title small {
  display: block; font-family: var(--font-primary); font-weight: 500;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.brand-text { white-space: nowrap; }
.custom-logo { max-height: 52px; width: auto; flex: none; }
/* Narrow phones: the brand row (logo + name + hamburger) needs ~395px at
   full size, so below 420px shrink the logo and name so the name is never
   cut off and the hamburger stays on screen. */
@media (max-width: 420px) {
  .brand { font-size: 0.85rem; gap: var(--space-2); }
  .custom-logo { max-height: 36px; }
}
.site-title {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
  line-height: 1.15; margin: 0; color: var(--text-white);
}
.site-title a:hover { color: var(--text-white); }
.main-navigation, .main-nav { margin-left: auto; display: none; }
.main-navigation ul, .main-nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-1);
}
.main-navigation a, .main-nav a {
  display: block; padding: var(--space-3) var(--space-2); font-weight: 500; font-size: 0.9rem;
  color: var(--text-light); border-radius: var(--radius-sm); white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none; min-height: 44px;
}
.main-navigation a:hover, .main-nav a:hover,
.main-navigation a.active, .main-nav a.active,
.main-navigation .current-menu-item > a {
  color: var(--text-white); background: var(--secondary-light);
}
.header-cta { display: none; margin-left: var(--space-2); flex-shrink: 0; }
.menu-toggle, .nav-toggle {
  margin-left: auto; background: var(--secondary-light);
  border: 1px solid var(--border-dark); color: var(--text-white);
  border-radius: var(--radius-sm); min-width: 44px; min-height: 44px;
  font-size: 1.25rem; line-height: 1; cursor: pointer; font-weight: 600;
}
.mobile-nav {
  display: none; background: var(--secondary); border-top: 1px solid var(--border-dark);
  padding: var(--space-3) var(--space-5) var(--space-5);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: var(--space-3) var(--space-2); min-height: 44px;
  color: var(--text-light); font-weight: 500; border-bottom: 1px solid var(--border-dark);
  text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: none; }
@media (min-width: 1200px) {
  .main-navigation, .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ==========================================================================
   Buttons (2.3) — as the approved preview.
   ========================================================================== */
.btn, .btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 13px 24px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 0.98rem; line-height: 1.2; cursor: pointer; border: none;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
  text-decoration: none;
}
.btn, .btn-primary {
  background: var(--gradient-primary); color: var(--text-white);
  box-shadow: var(--shadow-red);
}
.btn:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text-white); }
.btn-secondary { background: var(--secondary); color: var(--text-white); }
.btn-secondary:hover { background: var(--secondary-light); transform: translateY(-2px); color: var(--text-white); }
.btn-ghost {
  background: transparent; color: var(--text-white);
  border: 2px solid var(--text-white); padding: 11px 22px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: var(--text-white); }
.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  background: #25d366; color: #ffffff;
  border: 2px solid #25d366; border-radius: var(--radius-md);
  padding: 11px 22px; font-weight: 600; font-size: 0.95rem; min-height: 48px;
  cursor: pointer; text-align: center; text-decoration: none; white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.btn-whatsapp:hover { background: #1eb856; border-color: #1eb856; color: #ffffff; transform: translateY(-2px); }
.btn-whatsapp.on-dark { background: #25d366; color: #ffffff; border-color: #25d366; }
.btn-whatsapp .wa-icon { width: 20px; height: 20px; flex: none; }
span.btn-whatsapp {
  background: var(--bg-tertiary); color: var(--text-secondary);
  border: 2px dashed var(--text-muted); cursor: not-allowed; transform: none;
}
span.btn-whatsapp:hover { background: var(--bg-tertiary); border-color: var(--text-muted); color: var(--text-secondary); transform: none; }
a.btn-whatsapp[href^="https://wa.me"] { cursor: pointer; }

/* Placeholders */
.price-tag {
  display: inline-block; background: var(--warning-light); color: var(--warning);
  border: 1px dashed var(--warning); border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3); font-weight: 700; font-size: 0.85rem;
}
.price-tag.big { font-size: 1rem; padding: var(--space-2) var(--space-5); }
.price-placeholder { color: var(--text-muted); font-weight: 500; }
.placeholder-note {
  background: var(--accent-light); border: 1px dashed var(--accent);
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-5);
  color: var(--text-secondary); font-size: 0.93rem;
}
.placeholder-note strong { color: var(--heading-color); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; color: var(--text-white); background: var(--secondary-dark); }
.hero img.bg, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero .overlay, .hero__overlay { position: absolute; inset: 0; background: var(--gradient-hero); }
.hero__media { position: absolute; inset: 0; }
.hero-inner, .hero__content {
  position: relative; padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
  max-width: 820px;
}
.hero h1 { color: var(--text-white); }
.hero .kicker { color: var(--accent); }
.hero p, .hero__sub { color: var(--text-light); font-size: clamp(1rem, 2vw, 1.18rem); max-width: 640px; }
.hero-ctas, .hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-meta, .hero__trust { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-8); }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text-white); border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4); font-size: 0.85rem; font-weight: 500;
  max-width: 100%; overflow-wrap: anywhere;
}
.chip b { color: var(--accent); }

/* Page hero (inner pages) — photo + overlay + breadcrumb, as the preview. */
.page-hero { position: relative; color: var(--text-white); background: var(--secondary-dark); }
.page-hero img.bg, .page-hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero .overlay, .page-hero__overlay { position: absolute; inset: 0; background: var(--gradient-hero); }
.page-hero-inner { position: relative; padding: clamp(44px, 7vw, 84px) 0; }
.page-hero h1 { color: var(--text-white); max-width: 820px; }
.page-hero p { color: var(--text-light); max-width: 680px; font-size: 1.05rem; margin-bottom: 0; }
.page-hero .hero-ctas { margin-top: var(--space-6); }
.breadcrumb, .breadcrumbs { font-size: 0.85rem; color: var(--text-light); margin-bottom: var(--space-4); }
.breadcrumb a, .breadcrumbs a { color: var(--accent); text-decoration: none; font-weight: 500; }
.breadcrumbs { color: var(--text-muted); }
.breadcrumbs a { color: var(--text-secondary); }
.page-hero .breadcrumbs { color: var(--text-light); }
.page-hero .breadcrumbs a { color: var(--accent); }

/* ==========================================================================
   Cards (2.4 .premium-card) — as the approved preview.
   ========================================================================== */
.grid { display: grid; gap: var(--space-6); }
.grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6); margin-top: var(--space-6);
}
.premium-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex; flex-direction: column;
}
.premium-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trip-card { text-decoration: none; color: inherit; }
.trip-card .card-img, .premium-card__media { aspect-ratio: 16/10; overflow: hidden; position: relative; background: var(--bg-tertiary); }
.trip-card .card-img img, .premium-card__media img {
  width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow);
}
.trip-card:hover .card-img img, .premium-card:hover .premium-card__media img { transform: scale(1.05); }
.badge {
  position: absolute; top: var(--space-3); left: var(--space-3);
  background: var(--accent); color: var(--secondary-dark);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
}
.badge--gold { background: var(--accent); }
.card-body, .premium-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.card-body h3, .premium-card__body h3 { margin: 0; }
.card-body h3 a, .premium-card__body h3 a { color: var(--heading-color); text-decoration: none; }
.card-body h3 a:hover, .premium-card__body h3 a:hover { color: var(--primary); }
.card-meta, .premium-card__meta {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  font-size: 0.86rem; color: var(--text-muted); font-weight: 500;
}
.card-highlights, .premium-card__highlights {
  margin: 0; padding-left: 1.1em; font-size: 0.93rem; color: var(--text-secondary);
}
.card-highlights li, .premium-card__highlights li { margin-bottom: 2px; }
.card-foot, .premium-card__foot {
  margin-top: auto; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--space-3);
  padding-top: var(--space-3); border-top: 1px solid var(--border-light);
}
.card-link { font-weight: 700; color: var(--primary); font-size: 0.93rem; text-decoration: none; }
.premium-card__price { font-weight: 700; color: var(--heading-color); margin-bottom: var(--space-3); }

/* Destination photo cards — as the approved preview. */
.dest-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 240px; display: flex; align-items: flex-end; text-decoration: none;
  box-shadow: var(--shadow-md);
}
.dest-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition-slow);
}
.dest-card:hover img { transform: scale(1.05); }
.dest-card .dest-info {
  position: relative; width: 100%; padding: var(--space-5);
  background: linear-gradient(0deg, rgba(9, 4, 4, 0.85), transparent); color: var(--text-white);
}
.dest-card h3 { color: var(--text-white); margin: 0 0 var(--space-1); }
.dest-card p { margin: 0; font-size: 0.9rem; color: var(--text-light); }
.destination-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4); margin-top: var(--space-6);
}
.destination-tile {
  border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: var(--space-5); background: var(--bg-card); color: var(--heading-color);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-decoration: none;
}
.destination-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--heading-color); }
.destination-tile h3 { margin-bottom: var(--space-1); }
.destination-tile p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

/* Split rows */
.split { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.wide-img { grid-template-columns: 1.15fr 1fr; }
}
.split img.photo {
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
.check-list { list-style: none; margin: 0 0 var(--space-5); padding: 0; }
.check-list li {
  padding: var(--space-2) 0 var(--space-2) var(--space-8); position: relative;
  border-bottom: 1px solid var(--border-light);
}
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 14px; width: 14px; height: 8px;
  border-left: 3px solid var(--success); border-bottom: 3px solid var(--success);
  transform: rotate(-45deg);
}
.check-list li strong { color: var(--heading-color); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); text-align: center; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-num {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--accent);
}
.stat-label { color: var(--text-light); font-size: 0.92rem; }

/* Steps */
.steps { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border-top: 3px solid var(--accent); padding-top: var(--space-4); }
.step .num { font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem; color: var(--primary); }
.step h3 { margin: var(--space-2) 0; }
.step p { font-size: 0.94rem; color: var(--text-secondary); }

/* ==========================================================================
   Trip page — as the approved preview.
   ========================================================================== */
.facts, .facts-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.facts th, .facts-table th {
  text-align: left; font-family: var(--font-heading); color: var(--heading-color);
  padding: var(--space-3) var(--space-4); background: var(--bg-secondary);
  border: 1px solid var(--border-color); width: 34%; vertical-align: top;
}
.facts td, .facts-table td {
  padding: var(--space-3) var(--space-4); border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.facts-table { margin: var(--space-6) 0; }
.itinerary { display: flex; flex-direction: column; list-style: none; margin: var(--space-6) 0; padding: 0; }
.day {
  display: grid; gap: var(--space-2); padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border-color);
}
@media (min-width: 760px) { .day { grid-template-columns: 110px 1fr; gap: var(--space-6); } }
.day-tag {
  font-family: var(--font-heading); font-weight: 700; color: var(--text-white);
  background: var(--secondary); border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3); text-align: center; height: fit-content; font-size: 0.9rem;
}
.day h3 { margin: 0 0 var(--space-2); }
.day p { margin: 0; color: var(--text-secondary); font-size: 0.97rem; }
.day .stay { margin-top: var(--space-2); font-size: 0.86rem; color: var(--text-muted); font-weight: 600; }
.itinerary li {
  border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: var(--space-5); margin-bottom: var(--space-4); background: var(--bg-card);
}
.itinerary li h3 { margin-bottom: var(--space-2); }
.inc-exc { display: grid; gap: var(--space-6); }
@media (min-width: 820px) { .inc-exc { grid-template-columns: 1fr 1fr; } }
.inc-box {
  background: var(--success-light); border: 1px solid var(--success);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.exc-box {
  background: var(--danger-light); border: 1px solid var(--danger);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.inc-box h3 { color: var(--success); }
.exc-box h3 { color: var(--danger); }
.inc-box ul, .exc-box ul { margin: 0; padding-left: 1.15em; font-size: 0.95rem; color: var(--text-secondary); }
.inc-box li, .exc-box li { margin-bottom: var(--space-2); }
.included-list, .excluded-list { list-style: none; padding: 0; margin: 0 0 var(--space-6); }
.included-list li, .excluded-list li {
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); margin-bottom: var(--space-2);
}
.included-list li { background: var(--success-light); color: var(--success); }
.included-list li::before { content: "\2713  "; font-weight: 700; }
.excluded-list li { background: var(--danger-light); color: var(--danger); }
.excluded-list li::before { content: "\2715  "; font-weight: 700; }

/* ==========================================================================
   FAQ — as the approved preview (arrow rotates when open).
   ========================================================================== */
.faq-list { margin-top: var(--space-6); }
.faq-item {
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  margin-bottom: var(--space-3); background: var(--bg-card); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: var(--space-4) var(--space-5); font-weight: 600;
  font-size: 1rem; color: var(--heading-color);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  min-height: 52px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--primary); font-size: 1.2rem; flex: none;
  transition: transform var(--transition-fast); line-height: 1;
}
.faq-item[open ] summary::after { transform: rotate(45deg); }
.faq-item__answer, .faq-answer { padding: 0 var(--space-5) var(--space-5); color: var(--text-secondary); font-size: 0.96rem; }
.faq-answer { display: none; }
.faq-item.open .faq-answer { display: block; }

/* ==========================================================================
   Enquiry form (spec Section 8) — as the approved preview.
   ========================================================================== */
.enquiry {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: clamp(20px, 4vw, 40px);
}
.enquiry h2 { margin-bottom: var(--space-2); }
.enquiry-form {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-md);
}
.enquiry .enquiry-form { background: none; border: none; border-radius: 0; padding: 0; box-shadow: none; }
.form-grid { display: grid; gap: var(--space-4); }
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.enquiry-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field label, .enquiry-form label {
  display: block; font-weight: 600; font-size: 0.9rem; color: var(--heading-color);
  margin-bottom: var(--space-2);
}
.field input, .field select, .field textarea,
.enquiry-form input[type="text"], .enquiry-form input[type="email"],
.enquiry-form input[type="tel"], .enquiry-form input[type="date"],
.enquiry-form select, .enquiry-form textarea {
  width: 100%; border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 12px 14px; font-family: inherit; font-size: 1rem; color: var(--text-primary);
  background: var(--bg-primary); min-height: 48px;
}
.field textarea, .enquiry-form textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus {
  outline: none; border-color: var(--border-primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.enquiry-form .form-field { margin-bottom: var(--space-4); }
.form-note {
  font-size: 0.87rem; color: var(--text-muted); background: var(--bg-secondary);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); margin-top: var(--space-4);
}
.enquiry-form .form-note { background: var(--bg-secondary); }
.form-message { border-radius: var(--radius-md); padding: var(--space-4); margin-bottom: var(--space-4); }
.form-message--success { background: var(--success-light); color: var(--success); }
.form-message--error { background: var(--danger-light); color: var(--danger); }
.form-message--info { background: var(--info-light); color: var(--info); }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Filter bar (packages page) */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.filter-btn {
  background: var(--bg-primary); border: 1px solid var(--border-color);
  border-radius: var(--radius-full); padding: var(--space-2) var(--space-5);
  min-height: 44px; font-weight: 600; font-size: 0.9rem; color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.filter-btn:hover { background: var(--bg-hover); }
.filter-btn.active { background: var(--secondary); color: var(--text-white); border-color: var(--secondary); }

/* ==========================================================================
   CTA band, footer, sticky WhatsApp — as the approved preview.
   ========================================================================== */
.cta-band {
  background: var(--gradient-dark); color: var(--text-light); text-align: center;
}
.cta-band h2 { color: var(--text-white); }
.cta-band .hero-ctas { justify-content: center; }
.cta-band p { color: var(--text-light); max-width: 640px; margin: 0 auto var(--space-6); }
.site-footer {
  background: var(--secondary-dark); color: var(--text-light);
  padding: var(--space-16) 0 var(--space-8);
}
.site-footer h3 { color: var(--text-white); font-size: 1rem; margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--space-2); }
.site-footer a { color: var(--text-light); font-size: 0.93rem; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { font-size: 0.93rem; }
.footer-grid { display: grid; gap: var(--space-8); }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: var(--space-2); }
.site-info, .footer-bottom {
  border-top: 1px solid var(--border-dark); margin-top: var(--space-10);
  padding-top: var(--space-5); font-size: 0.85rem; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between;
}
.sticky-wa {
  position: fixed; right: var(--space-4); bottom: var(--space-4);
  z-index: 50; opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}
.sticky-wa.visible { opacity: 1; transform: none; pointer-events: auto; }
/* Floating button: the round green WhatsApp icon, text hidden (aria-label kept). */
.sticky-wa .btn-whatsapp {
  width: 60px; height: 60px; min-height: 60px; padding: 0;
  border-radius: var(--radius-full); box-shadow: var(--shadow-lg);
}
.sticky-wa .btn-whatsapp:hover { transform: translateY(-2px); }
.sticky-wa .btn-whatsapp .wa-icon { width: 32px; height: 32px; }
.sticky-wa .btn-whatsapp span { display: none; }
/* Red notification badge on the floating button, as in the reference design. */
.sticky-wa__badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 5px;
  background: #ff3b30; color: #ffffff;
  border: 2px solid #ffffff; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; line-height: 1;
  pointer-events: none;
}
@media (min-width: 820px) {
  .sticky-wa { right: var(--space-6); bottom: var(--space-6); }
}
.whatsapp-float {
  position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 60;
  display: none; align-items: center; gap: var(--space-2);
  background: var(--secondary); color: var(--text-white);
  border-radius: var(--radius-full); padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-lg); font-weight: 600; min-height: 44px;
}
.whatsapp-float:hover { color: var(--text-white); background: var(--secondary-light); }
.whatsapp-float--placeholder { background: var(--secondary); }
@media (max-width: 768px) {
  .whatsapp-float { display: inline-flex; }
}

/* Prose pages */
.prose { max-width: 820px; }
.prose h2 { margin-top: var(--space-10); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; color: var(--text-secondary); }
.prose li { margin-bottom: var(--space-2); }

/* ==========================================================================
   Blog / search / 404
   ========================================================================== */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--border-light); padding: var(--space-5) 0; }
.post-list h2 { margin-bottom: var(--space-1); }
.post-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: var(--space-2); }
.pagination { margin-top: var(--space-8); display: flex; gap: var(--space-2); flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  padding: var(--space-2) var(--space-3); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}
.pagination .current { background: var(--primary); border-color: var(--primary); color: var(--text-white); }

/* ==========================================================================
   Blog (v1.1.0) — single-post layout, TOC, cards, share, author box
   ========================================================================== */
.section--alt { background: var(--bg-light); }

/* Reading progress bar (single posts only). */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: transparent; z-index: 999; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 0; background: var(--primary); transition: width 120ms linear; }

/* Post hero. */
.post-hero { position: relative; overflow: hidden; background: var(--secondary); color: var(--text-white); }
.post-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.post-hero .overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 4, 4, 0.88), rgba(9, 4, 4, 0.62) 55%, rgba(9, 4, 4, 0.25)); }
.post-hero-inner { position: relative; z-index: 1; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(48px, 7vw, 88px); max-width: 860px; }
.post-hero-inner h1 { color: var(--text-white); font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.12; margin: 0 0 var(--space-4); }
.post-hero-inner .breadcrumbs, .post-hero-inner .breadcrumbs a { color: var(--text-light); }
.post-hero-cat { margin: 0 0 var(--space-3); }
.post-hero-cat a { display: inline-block; background: var(--accent); color: var(--secondary); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-full); }
.post-meta { color: var(--text-light); font-size: 0.95rem; margin: 0; }

/* Post layout: content + sticky TOC sidebar. */
.post-section { padding-top: var(--space-10); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-10); align-items: start; }
.post-content { grid-column: 1; grid-row: 1; min-width: 0; }
.post-content h2 { scroll-margin-top: 110px; margin-top: var(--space-10); padding-top: var(--space-2); border-top: 1px solid var(--border-light); }
.post-content h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.post-content h3 { scroll-margin-top: 110px; }
.post-content .lead { font-size: 1.18rem; line-height: 1.65; color: var(--text-secondary); margin-bottom: var(--space-6); }
.post-content .lead strong { color: var(--heading-color); }

/* Tables inside posts. */
.post-content table.blog-table, .post-content table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-6); font-size: 0.95rem; }
.post-content table caption { text-align: left; font-weight: 600; color: var(--heading-color); margin-bottom: var(--space-2); }
.post-content table th { background: var(--secondary); color: var(--text-white); text-align: left; padding: 10px 14px; font-weight: 600; }
.post-content table td { padding: 10px 14px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.post-content table tr:nth-child(even) td { background: var(--bg-light); }

/* Callout + figures. */
.callout { background: var(--accent-light); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: var(--space-4) var(--space-5); margin: 0 0 var(--space-6); }
.callout p:last-child { margin-bottom: 0; }
.post-figure { margin: 0 0 var(--space-6); }
.post-figure img { width: 100%; border-radius: var(--radius-lg); }
.post-figure figcaption { font-size: 0.88rem; color: var(--text-muted); margin-top: var(--space-2); }

/* Table of contents. */
.toc { grid-column: 2; grid-row: 1; position: sticky; top: 96px; }
.toc-mobile { display: none; }
.toc-desktop { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: var(--space-5); }
.toc-title { font-weight: 700; color: var(--heading-color); margin: 0 0 var(--space-3); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.toc-desktop ul { list-style: none; margin: 0; padding: 0; }
.toc-desktop li { margin-bottom: var(--space-2); }
.toc-desktop li:last-child { margin-bottom: 0; }
.toc-desktop a { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.45; display: block; padding-left: 12px; border-left: 2px solid var(--border-light); }
.toc-desktop a:hover { color: var(--primary); }
.toc-desktop a.active { color: var(--primary); font-weight: 600; border-left-color: var(--primary); }

/* Post CTA block (appended by the template, not written by authors). */
.post-cta { background: var(--secondary); color: var(--text-white); border-radius: var(--radius-lg); padding: var(--space-8); margin: var(--space-10) 0 var(--space-8); }
.post-cta h2 { color: var(--text-white); margin: 0 0 var(--space-3); border: 0; padding: 0; }
.post-cta p { color: var(--text-light); }
.post-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-5) 0 0; }
.post-cta__actions .btn-whatsapp { color: var(--text-white); }

/* Share row + author box. */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-5) 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); margin-bottom: var(--space-8); }
.share-row > span { font-weight: 600; color: var(--heading-color); margin-right: var(--space-2); }
.share-btn { display: inline-block; background: var(--bg-light); border: 1px solid var(--border-light); color: var(--text-secondary); font-size: 0.9rem; font-weight: 600; padding: 8px 14px; border-radius: var(--radius-full); cursor: pointer; }
.share-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--text-white); }
.author-box { background: var(--bg-light); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-8); }
.author-box__name { font-weight: 700; color: var(--heading-color); margin-bottom: var(--space-2); }
.author-box p:last-child { margin-bottom: 0; }

/* Post cards (archive, category, related, homepage). */
.post-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: transform 180ms ease, box-shadow 180ms ease; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__chip { position: absolute; top: var(--space-3); left: var(--space-3); background: var(--primary); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: var(--radius-full); box-shadow: var(--shadow-md); }
.post-card__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); flex: 1; }
.post-card__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; line-height: 1.35; color: var(--heading-color); margin: 0; }
.post-card__title a:hover { color: var(--primary); }
.post-card__excerpt { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__meta { font-size: 0.85rem; color: var(--text-muted); margin: 0; margin-top: auto; padding-top: var(--space-2); }
.post-card__read { align-self: flex-start; margin-top: var(--space-2); padding: 0.6rem 1.15rem; font-size: 0.9rem; min-height: 0; }

/* Prev/next post navigation. */
.post-nav { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) 0 var(--space-10); }
.post-nav__prev, .post-nav__next { max-width: 48%; }
.post-nav__next { text-align: right; margin-left: auto; }
.post-nav a { font-weight: 600; color: var(--heading-color); }
.post-nav a:hover { color: var(--primary); }

/* Back-to-top button (site-wide). */
.back-to-top { position: fixed; left: 20px; bottom: 20px; z-index: 998; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-light); background: var(--bg-card); color: var(--heading-color); font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary); border-color: var(--primary); color: var(--text-white); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .header-cta { display: none; }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-content { grid-column: 1; grid-row: 2; }
  .toc { grid-column: 1; grid-row: 1; position: static; }
  .toc-mobile { display: block; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); }
  .toc-mobile summary { font-weight: 700; color: var(--heading-color); cursor: pointer; }
  .toc-mobile ul { list-style: none; margin: var(--space-3) 0 0; padding: 0; }
  .toc-mobile li { margin-bottom: var(--space-2); }
  .toc-mobile a { color: var(--text-secondary); font-size: 0.93rem; }
  .toc-desktop { display: none; }
}
@media (max-width: 768px) {
  :root { --section-spacing: 48px; }
  .enquiry-form .form-row, .form-grid { grid-template-columns: 1fr; }
  .hero__content, .hero-inner { padding-top: var(--space-12); padding-bottom: var(--space-12); }
  .facts-table th, .facts th { width: 140px; }
  .post-hero-inner { padding-top: var(--space-10); padding-bottom: var(--space-10); }
  .post-cta { padding: var(--space-6); }
  .post-nav { flex-direction: column; gap: var(--space-2); }
  .post-nav__prev, .post-nav__next { max-width: 100%; text-align: left; }
  .back-to-top { left: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
