@import url('https://fonts.googleapis.com/css2?family=Patua+One&display=swap');

/* Brand wordmark — applied only to literal "Go To Nature" text */
.brand-font {
  font-family: 'Patua One', 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

/* ============================================
   Go To Nature — design tokens
   Palette sampled directly from the official presentation:
     #42674F  primary forest green (slide bg)
     #BDBEAE  sage divider bg
     #678471  sage-green axis / mid-accent
     #AA8667  warm tan (chart bar accent)
     #F1DFCB  warm cream
   ============================================ */
:root {
  /* Surfaces & ink (theme-flipping) */
  --bg: #f5f1de;          /* warm cream */
  --bg-alt: #ebe5c8;      /* sage-warm alt section bg */
  --surface: #fbf8eb;     /* card surface */
  --ink: #1f3528;         /* dark forest text */
  --ink-soft: #34503c;    /* secondary text */
  --muted: #687a6c;       /* muted sage-green */
  --line: #d8d2b6;        /* warm sage border */
  --line-soft: #e6e0c8;   /* subtle dividers */

  /* Forest greens — from presentation */
  --forest-900: #1d2e22;
  --forest-800: #2c4435;
  --forest-700: #42674f;
  --forest-500: #678471;
  --forest-200: #bdbeae;

  /* Warm accent (warm tan from chart) */
  --clay: #aa8667;
  --clay-soft: #f1dfcb;

  /* Theme-invariant tokens (stay light/dark in both modes) */
  --cream: #f5f1de;       /* "always light" — for text on dark surfaces */
  --ink-static: #1f3528;  /* "always dark" — for text on light pinned surfaces */
  --nav-bg: rgba(245, 241, 222, 0.88);  /* translucent nav background */

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(31, 53, 40, 0.05);
  --shadow: 0 4px 16px rgba(31, 53, 40, 0.07);
  --shadow-lg: 0 24px 48px -16px rgba(31, 53, 40, 0.18);
  --radius: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;
  --max: 1200px;

  --t: 0.25s cubic-bezier(0.2, 0.6, 0.2, 1);

  color-scheme: light;
}

/* ============================================
   Dark theme — inverted palette
   Brightness scale flips: anywhere a forest variable is used as
   foreground text, the dark-mode value must clear ~4.5:1 on var(--bg)
   or var(--surface).
   ============================================ */
[data-theme="dark"] {
  --bg: #15211a;          /* deep forest (inverted from cream) */
  --bg-alt: #1d2c22;      /* slightly lifted alt section */
  --surface: #2a3a30;     /* lifted card surface */
  --ink: #f5f1de;         /* same cream as light-mode bg — full inversion */
  --ink-soft: #ddd6bf;    /* slightly muted cream */
  --muted: #b4c0b4;       /* bright sage so secondary text stays readable */
  --line: #3a4a3e;
  --line-soft: #2a342c;

  /* Forest scale brightened across the board so any forest-* used as
     text remains visible on dark surfaces */
  --forest-900: #2e4839;  /* was darkest; now mid-dark for hero/CTA bg */
  --forest-800: #4a6a55;  /* visible green for primary button bg + accent text */
  --forest-700: #7ea687;  /* sage-green for hover and accent surfaces */
  --forest-500: #b0c8b6;  /* brightest sage — for fg accents (prices, active states) */
  --forest-200: #4d5e4f;

  /* Warm accent — brighter tan so eyebrows and quotes still pop */
  --clay: #d8b48d;
  --clay-soft: #4a3a30;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.6);

  --nav-bg: rgba(15, 23, 18, 0.92);  /* dark forest, near-opaque */

  color-scheme: dark;
}

/* Make nav link hover visible against the dark nav */
[data-theme="dark"] .nav-links a:hover { color: var(--forest-500); }

/* Targeted readability overrides for selectors that explicitly pick
   forest-900/-800 as text color and would lose contrast on dark cards. */
[data-theme="dark"] .activity-card h3 { color: var(--ink); }
[data-theme="dark"] .stat-value,
[data-theme="dark"] .nav-links a.active,
[data-theme="dark"] .trip-price,
[data-theme="dark"] .detail-block-head,
[data-theme="dark"] .detail-block-head h3,
[data-theme="dark"] .itinerary-time,
[data-theme="dark"] .founder-name {
  color: var(--forest-500);
}
[data-theme="dark"] .nav-links a.active::after {
  background: var(--forest-500);
}
[data-theme="dark"] .tab.active {
  background: var(--forest-700);
  border-color: var(--forest-700);
}
/* Form inputs need to contrast against dark page bg */
[data-theme="dark"] .form-row input,
[data-theme="dark"] .form-row select,
[data-theme="dark"] .form-row textarea {
  background: var(--bg-alt);
}
/* Hero scroll cue gets brighter line */
[data-theme="dark"] .hero-scroll { color: rgba(255, 255, 255, 0.75); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}
body[dir="ltr"] {
  font-family: 'Inter', 'Tajawal', system-ui, sans-serif;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Editorial serif headings for English */
body[dir="ltr"] h1,
body[dir="ltr"] h2,
body[dir="ltr"] h3 {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.85rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

p { color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1rem;
}
body[dir="ltr"] .eyebrow {
  font-family: 'Inter', sans-serif;
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
@media (max-width: 720px) { .section { padding: 3rem 0; } .section-tight { padding: 2rem 0; } }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 680px;
  margin: 0 auto 4rem;
  text-align: center;
}
.section-head p {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--muted);
}

/* ============================================
   Icons
   ============================================ */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   Nav
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1.1rem 1.75rem;
  max-width: var(--max);
  margin: 0 auto;
  gap: 2rem;
}

/* Brand is a fixed-size circle in both themes so nav items stay
   in the exact same place when toggling. Only background + shadow
   changes between modes. */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
  order: 3;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--forest-900);
  letter-spacing: -0.01em;
  overflow: hidden;
}
.brand img {
  height: 44px;
  width: auto;
  display: block;
}
/* Always show the original light-mode logo (the alt dark variant is hidden) */
.brand .logo-dark { display: none; }

/* In dark mode the original logo sits inside a cream circle so its
   colors and silhouettes read against the dark navbar */
[data-theme="dark"] .brand {
  background: var(--cream);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-inner { padding-top: 0.3rem; padding-bottom: 0.3rem; }
@media (max-width: 480px) {
  .brand { width: 54px; height: 54px; }
  .brand img { height: 36px; }
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
  order: 1;
  flex: 1;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--t);
}
.nav-links a:hover,
.nav-links a.active { color: var(--forest-800); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  background: var(--forest-700);
}

.nav-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  order: 2;
  flex-shrink: 0;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  transition: all var(--t);
}
.lang-toggle:hover {
  background: var(--forest-800);
  color: var(--cream);
  border-color: var(--forest-800);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--t);
  padding: 0;
  position: relative;
}
.theme-toggle:hover {
  background: var(--forest-800);
  color: var(--cream);
  border-color: var(--forest-800);
}
.theme-toggle .icon { width: 16px; height: 16px; stroke-width: 1.8; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0.4rem;
}
.menu-btn .icon { width: 22px; height: 22px; stroke-width: 1.8; }

@media (max-width: 880px) {
  .nav-inner { gap: 1rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem 1.75rem 1.5rem;
    border-bottom: 1px solid var(--line);
    gap: 0.25rem;
    align-items: stretch;
    flex: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links li:last-child a { border-bottom: none; }
  /* Mobile order: burger (start) — theme+lang (middle) — brand (opposite edge) */
  .menu-btn { display: grid; place-items: center; order: 1; }
  .nav-actions { order: 2; }
  .brand { order: 3; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  letter-spacing: 0.01em;
}
.btn .icon { width: 16px; height: 16px; stroke-width: 1.8; }

.btn-primary {
  background: var(--forest-800);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--forest-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--forest-800);
  padding: 0.5rem 0;
  border-radius: 0;
  border-bottom: 1px solid currentColor;
}
.btn-ghost:hover { color: var(--clay); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(29, 46, 34, 0.45) 0%, rgba(29, 46, 34, 0.7) 70%, rgba(29, 46, 34, 0.88) 100%),
    url('https://images.unsplash.com/photo-1551632811-561732d1e306?auto=format&fit=crop&w=2400&q=85') center/cover no-repeat;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(29, 46, 34, 0.45) 100%);
  z-index: -1;
  pointer-events: none;
}

.hero-inner {
  max-width: 880px;
  padding: 6rem 1.75rem;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay-soft);
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
body[dir="rtl"] .hero h1 { font-weight: 800; }

.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  margin: 0 auto 2.75rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
}

.hero-cta {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--cream);
}
.hero .btn-outline:hover {
  background: var(--cream);
  color: var(--forest-900);
  border-color: var(--cream);
}
.hero .btn-primary {
  background: var(--cream);
  color: var(--forest-900);
}
.hero .btn-primary:hover {
  background: var(--clay-soft);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.4);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============================================
   Page header (interior pages)
   ============================================ */
.page-header {
  background: var(--forest-900);
  color: var(--cream);
  padding: 5rem 1.75rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(170, 134, 103, 0.18), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(103, 132, 113, 0.22), transparent 50%);
  z-index: 0;
}
.page-header > * { position: relative; z-index: 1; }
.page-header .eyebrow {
  color: var(--clay);
}
.page-header h1 {
  color: var(--cream);
  margin-bottom: 1rem;
  font-weight: 500;
}
body[dir="rtl"] .page-header h1 { font-weight: 800; }
.page-header p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============================================
   Features grid
   ============================================ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.5rem;
}
/* 5-card variant: force a single row on desktop, downshift gracefully */
.features.features-5 { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.features.features-5 .feature { padding: 1.75rem 1.25rem; }
.features.features-5 .feature h3 { font-size: 1.05rem; }
.features.features-5 .feature p { font-size: 0.9rem; }
@media (max-width: 1024px) { .features.features-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .features.features-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .features.features-5 { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.85rem;
  transition: all var(--t);
}
.feature:hover {
  border-color: var(--forest-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--forest-700);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
}
.feature-icon .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.feature h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ============================================
   Trip cards
   ============================================ */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.trip-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
}
.trip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--forest-200);
}

.trip-image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.trip-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 46, 34, 0) 60%, rgba(29, 46, 34, 0.45) 100%);
}

.trip-badge {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  background: var(--cream);
  color: var(--forest-800);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1;
}
.trip-badge.past { background: rgba(29, 46, 34, 0.7); color: var(--cream); backdrop-filter: blur(4px); }
.trip-badge.full { background: var(--clay); color: var(--cream); }

.trip-body {
  padding: 1.5rem 1.5rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.trip-meta {
  display: flex;
  gap: 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.trip-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.trip-meta .icon { width: 14px; height: 14px; }
.trip-card h3 { margin-bottom: 0.55rem; font-size: 1.25rem; }
.trip-card p {
  color: var(--muted);
  font-size: 0.94rem;
  flex: 1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.trip-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  gap: 0.75rem;
}
.trip-price {
  font-weight: 700;
  color: var(--forest-800);
  font-size: 1.05rem;
}
.trip-price-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.trip-cta {
  background: var(--forest-800);
  color: var(--cream);
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--t);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.trip-cta:hover { background: var(--forest-900); }
.trip-cta .icon { width: 14px; height: 14px; stroke-width: 2; }
body[dir="rtl"] .trip-cta .icon { transform: scaleX(-1); }

/* List view — same data, horizontal layout */
.trips-grid.list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.trips-grid.list .trip-card {
  flex-direction: row;
}
.trips-grid.list .trip-image {
  width: 320px;
  aspect-ratio: auto;
  flex-shrink: 0;
}
.trips-grid.list .trip-body {
  padding: 1.6rem 1.85rem;
}
.trips-grid.list .trip-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.trips-grid.list .trip-card p {
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 720px) {
  .trips-grid.list .trip-card { flex-direction: column; }
  .trips-grid.list .trip-image { width: 100%; aspect-ratio: 4/3; }
}

/* ============================================
   Trips toolbar (tabs + view toggle)
   ============================================ */
.trips-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 600px) {
  .trips-bar { flex-direction: column; align-items: stretch; gap: 0.5rem; padding-bottom: 0.75rem; }
}

.view-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px;
  align-self: center;
  margin-bottom: 0.5rem;
}
.view-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: var(--muted);
  transition: all var(--t);
  padding: 0;
}
.view-btn:hover { color: var(--ink); }
.view-btn.active {
  background: var(--forest-800);
  color: var(--cream);
}
.view-btn .icon { width: 16px; height: 16px; stroke-width: 1.8; }

/* Tabs */
.tabs {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.trips-bar .tabs {
  justify-content: flex-start;
  border-bottom: none;
  margin-bottom: 0;
}
.tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 0.85rem 1.5rem;
  border-radius: 0;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.92rem;
  transition: all var(--t);
  margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.active {
  color: var(--forest-800);
  border-bottom-color: var(--forest-800);
}

/* ============================================
   About page
   ============================================ */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
}
.about-hero img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about-hero p {
  color: var(--muted);
  font-size: 1.04rem;
  margin-top: 1.25rem;
  line-height: 1.75;
}
@media (max-width: 880px) {
  .about-hero { grid-template-columns: 1fr; gap: 2.5rem; }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--t);
}
.team-card:hover {
  transform: translateY(-2px);
  border-color: var(--forest-200);
  box-shadow: var(--shadow);
}
/* Team photo: portrait rectangle whose aspect exactly matches the
   source photos from the PDF, so the photo fills it edge-to-edge —
   nothing added (no empty space) and nothing missing (no cropping). */
.team-avatar {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  color: var(--forest-700);
  font-weight: 700;
  font-family: 'Fraunces', serif;
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card:hover .team-avatar {
  border-color: var(--forest-500);
  transform: translateY(-2px);
}
.team-card h3 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.team-role {
  color: var(--clay);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.team-card p { color: var(--muted); font-size: 0.92rem; }

/* ============================================
   Signup form
   ============================================ */
.signup-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 960px) { .signup-wrap { grid-template-columns: 1fr; } }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
}
@media (max-width: 600px) { .form-card { padding: 1.75rem; } }

.form-row { margin-bottom: 1.4rem; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: var(--ink);
}
.form-row .req { color: var(--clay); margin-inline-start: 0.15rem; }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  transition: all var(--t);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--forest-700);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(66, 103, 79, 0.16);
}
.form-row textarea { resize: vertical; min-height: 110px; }

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

.form-submit {
  width: 100%;
  padding: 1rem 1.6rem;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.contact-options {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--line);
}
.contact-options h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.contact-options > p { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.9rem; }
.contact-list { display: flex; flex-direction: column; gap: 0.6rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 500;
  transition: all var(--t);
}
.contact-link:hover {
  border-color: var(--forest-700);
  transform: translateX(2px);
}
body[dir="rtl"] .contact-link:hover { transform: translateX(-2px); }
.contact-link .icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--bg-alt);
  color: var(--forest-800);
  border: 1px solid var(--line);
}
.contact-link .icon-box .icon { width: 16px; height: 16px; }
.contact-link.wa .icon-box { background: #25d366; color: white; border-color: #25d366; }
.contact-link.gf .icon-box { background: var(--forest-700); color: var(--cream); border-color: var(--forest-700); }
.contact-link.em .icon-box { background: var(--clay); color: var(--cream); border-color: var(--clay); }
.contact-link strong { display: block; font-size: 0.93rem; color: var(--ink); }
.contact-link small { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; margin-top: 0.1rem; }

/* ============================================
   CTA strip
   ============================================ */
.cta-strip {
  background: var(--forest-900);
  color: var(--cream);
  padding: 5rem 2rem;
  text-align: center;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(170, 134, 103, 0.22), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(103, 132, 113, 0.3), transparent 50%);
}
.cta-strip > * { position: relative; }
.cta-strip h2 { color: var(--cream); margin-bottom: 1rem; font-weight: 500; }
body[dir="rtl"] .cta-strip h2 { font-weight: 800; }
.cta-strip p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto 2rem;
  max-width: 580px;
  font-size: 1.05rem;
}
.cta-strip .btn-primary {
  background: var(--cream);
  color: var(--forest-900);
}
.cta-strip .btn-primary:hover {
  background: var(--clay-soft);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  gap: 1rem;
  transition: color var(--t);
}
.faq-item summary::-webkit-details-marker,
.faq-item summary::marker { display: none; content: ""; }
.faq-item summary:hover { color: var(--forest-700); }
.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--clay);
  transition: transform var(--t);
  stroke-width: 2;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-a {
  padding: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.98rem;
  max-width: 95%;
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--forest-900);
  color: rgba(255, 255, 255, 0.78);
  padding: 4.5rem 0 2rem;
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
footer h4 {
  color: var(--cream);
  margin-bottom: 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
footer p { color: rgba(255, 255, 255, 0.65); font-size: 0.94rem; line-height: 1.7; }
footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  transition: color var(--t);
}
footer a:hover { color: var(--clay-soft); }

.footer-brand {
  font-family: 'Patua One', 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: 0.85rem;
  letter-spacing: 0.01em;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.socials { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  transition: all var(--t);
  color: rgba(255, 255, 255, 0.78);
}
.socials a:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--cream);
  transform: translateY(-2px);
}
.socials .icon { width: 16px; height: 16px; stroke-width: 1.8; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Trip detail page
   ============================================ */
.trip-hero {
  position: relative;
  padding: 5rem 0 4rem;
  color: var(--cream);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.trip-hero .container { position: relative; }

.trip-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.25);
  transition: all var(--t);
}
.trip-back:hover {
  background: rgba(255,255,255,0.1);
  color: var(--cream);
}
.trip-back .icon { width: 14px; height: 14px; }
body[dir="rtl"] .trip-back .icon { transform: scaleX(-1); }

.trip-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}
.trip-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.trip-hero-meta .icon { width: 16px; height: 16px; }

.trip-hero h1 {
  color: var(--cream);
  margin-bottom: 1.25rem;
  max-width: 800px;
  font-weight: 500;
}
body[dir="rtl"] .trip-hero h1 { font-weight: 800; }

.trip-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.trip-hero-cta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trip-hero .btn-primary {
  background: var(--cream);
  color: var(--forest-900);
}
.trip-hero .btn-primary:hover { background: var(--clay-soft); }
.trip-hero .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--cream);
}

.trip-hero-price {
  padding-inline-start: 2rem;
  border-inline-start: 1px solid rgba(255,255,255,0.25);
}
.trip-hero-price-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
}
.trip-hero-price-meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.15rem;
}

/* Trip detail body */
.trip-detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 880px) { .trip-detail-grid { grid-template-columns: 1fr; gap: 2rem; } }

.trip-detail-main h2 {
  margin-bottom: 1.25rem;
  font-size: 1.85rem;
}
.trip-long-desc {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 3rem;
}

.detail-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.detail-block-wide {
  background: transparent;
  border: none;
  padding: 0;
}

.detail-block-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  color: var(--forest-800);
}
.detail-block-head .icon {
  width: 18px;
  height: 18px;
  color: var(--clay);
  stroke-width: 1.8;
}
.detail-block-head h3 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--forest-800);
  margin: 0;
}
body[dir="ltr"] .detail-block-head h3 {
  font-family: 'Inter', sans-serif;
}
.detail-block p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.detail-list .icon {
  width: 16px;
  height: 16px;
  color: var(--forest-500);
  stroke-width: 2.2;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Itinerary timeline */
.itinerary {
  list-style: none;
  position: relative;
  padding-inline-start: 0;
}
.itinerary::before {
  content: "";
  position: absolute;
  inset-inline-start: 60px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--line);
}
.itinerary li {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 0.85rem 0;
  align-items: baseline;
}
.itinerary-time {
  font-weight: 700;
  color: var(--forest-800);
  font-size: 0.95rem;
  font-feature-settings: "tnum";
}
.itinerary-label {
  color: var(--ink-soft);
  font-size: 0.98rem;
  position: relative;
  padding-inline-start: 1.5rem;
}
.itinerary-label::before {
  content: "";
  position: absolute;
  inset-inline-start: -5px;
  top: 0.55rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--clay);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform var(--t);
  cursor: zoom-in;
}
.gallery-img:hover { transform: scale(1.02); }

/* ============================================
   Partnerships block (about page)
   ============================================ */
.partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 880px) { .partners { grid-template-columns: 1fr; gap: 1.5rem; } }

.partners-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}
.partners-card .eyebrow { margin-bottom: 0.5rem; }
.partners-card h3 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--forest-800);
  margin-bottom: 1rem;
}
body[dir="ltr"] .partners-card h3 { font-family: 'Inter', sans-serif; }
.partners-card p {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.partners-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}
.partners-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.5;
}
.partners-card ul li::before {
  content: "—";
  color: var(--clay);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   Future vision (about page)
   ============================================ */
.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.future-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.future-item:hover { transform: translateY(-2px); border-color: var(--forest-500); }
.future-num {
  font-family: 'Fraunces', 'Cairo', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--clay);
  font-feature-settings: "tnum";
}
.future-item h3 { font-size: 1.08rem; margin: 0; }
.future-item p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* (legacy .summit-quote replaced by .quote.quote-section above) */

/* ============================================
   Stats strip
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat {
  padding: 2.25rem 1.5rem;
  text-align: center;
  border-inline-end: 1px solid var(--line);
}
.stats > .stat:last-child { border-inline-end: none; }
@media (max-width: 720px) {
  .stats > .stat:nth-child(2) { border-inline-end: none; }
  .stats > .stat:nth-child(1),
  .stats > .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

.stat-value {
  font-family: 'Fraunces', 'Cairo', serif;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600;
  color: var(--forest-800);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.stat-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ============================================
   Mission / Vision split
   ============================================ */
.mv-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 720px) { .mv-split { grid-template-columns: 1fr; } }

.mv-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.mv-card .eyebrow { margin-bottom: 0.75rem; }
.mv-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--forest-900);
}
.mv-card p {
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ============================================
   What-we-do checklist
   ============================================ */
.do-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 720px) { .do-list { grid-template-columns: 1fr; } }
.do-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}
.do-list li::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--forest-200);
  border: 1px solid var(--forest-500);
  flex-shrink: 0;
  margin-top: 0.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231f4a33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================
   Founder card
   ============================================ */
.founder {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow);
}
@media (max-width: 880px) {
  .founder { grid-template-columns: 1fr; padding: 2rem; gap: 1.75rem; }
}
.founder-portrait {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.founder-content .eyebrow { margin-bottom: 0.5rem; }
.founder-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest-700);
  margin-bottom: 0.25rem;
}
.founder-role {
  color: var(--clay);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.founder h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}
.founder p {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 1rem;
}
/* ============================================
   Quote / pull-quote
   Decorative opening + closing curly quote marks around the text,
   author cite below, clay accent border. The .quote-section variant
   is for centered "section closer" quotes between hairline rules.
   ============================================ */
.quote {
  margin: 1.75rem 0;
  padding: 1.6rem 1.85rem;
  background: var(--bg-alt);
  border-inline-start: 3px solid var(--clay);
  border-radius: 0 var(--radius) var(--radius) 0;
  text-align: start;
}
body[dir="rtl"] .quote {
  border-radius: var(--radius) 0 0 var(--radius);
}
.quote p {
  margin: 0;
  font-family: 'Fraunces', 'Tajawal', serif;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink);
  font-style: italic;
}
body[dir="rtl"] .quote p {
  font-family: 'Tajawal', sans-serif;
  font-style: normal;
  font-weight: 700;
}
.quote p::before {
  content: "\201C";
  font-family: 'Fraunces', 'Cairo', serif;
  color: var(--clay);
  font-size: 1.5em;
  line-height: 0;
  margin-inline-end: 0.1em;
  vertical-align: -0.18em;
  font-weight: 600;
}
.quote p::after {
  content: "\201D";
  font-family: 'Fraunces', 'Cairo', serif;
  color: var(--clay);
  font-size: 1.5em;
  line-height: 0;
  margin-inline-start: 0.1em;
  vertical-align: -0.18em;
  font-weight: 600;
}
.quote-cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.04em;
  font-family: 'Inter', 'Tajawal', sans-serif;
}
body[dir="rtl"] .quote-cite { font-family: 'Tajawal', sans-serif; }

/* Centered "section closer" variant — replaces the old .summit-quote */
.quote.quote-section {
  max-width: 740px;
  margin-inline: auto;
  margin-top: 3rem;
  padding: 2.25rem 2rem;
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
}
.quote.quote-section p { font-size: clamp(1.15rem, 2vw, 1.4rem); }

/* ============================================
   Activities grid
   ============================================ */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.activity-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.5rem;
  transition: all var(--t);
}
.activity-card:hover {
  transform: translateY(-3px);
  border-color: var(--forest-500);
  box-shadow: var(--shadow);
}
.activity-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  color: var(--forest-700);
}
.activity-icon .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
}
.activity-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--forest-900);
}
.activity-card p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* category filter (reuses .tabs but smaller) */
.cat-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.cat-tabs .tab {
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all var(--t);
}
.cat-tabs .tab:hover { border-color: var(--forest-500); color: var(--ink); }
.cat-tabs .tab.active {
  background: var(--forest-800);
  border-color: var(--forest-800);
  color: var(--cream);
}

/* ============================================
   Admin panel (admin.html)
   ============================================ */
.admin-gate {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  z-index: 100;
  padding: 1.5rem;
}
/* Make sure the [hidden] attribute wins over the display: grid above
   so JS toggling `gate.hidden = true` actually hides the gate. */
.admin-gate[hidden] { display: none; }
.admin-login {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow);
}
.admin-login h2 { margin-bottom: 0.5rem; font-size: 1.4rem; }
.admin-login > p { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.admin-login input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.admin-login input:focus {
  outline: none;
  border-color: var(--forest-700);
  box-shadow: 0 0 0 3px rgba(66, 103, 79, 0.16);
}
.admin-login button:not(.admin-login-lang) { width: 100%; }
/* Lang-toggle pill in the corner of the login card. Doesn't span full
   width like the Sign-in button — it's a small UI affordance. */
.admin-login {
  position: relative;
}
.admin-login-lang {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  width: auto !important;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
}
.admin-error { color: #c0392b; margin-top: 0.75rem; font-size: 0.9rem; }
.admin-help { margin-top: 1rem; font-size: 0.8rem; color: var(--muted); }
.admin-help code { background: var(--bg-alt); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.85em; }

.admin-dash {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.admin-back:hover { color: var(--ink); }
.admin-bar h1 { font-size: 1.6rem; margin: 0; }
.admin-bar-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Admin tab nav: Trips / Team / Admin users */
.admin-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line);
  margin: 0 0 2rem;
  flex-wrap: wrap;
}
.admin-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 0.85rem 1.4rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t);
  margin-bottom: -1px; /* overlap parent border */
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.active {
  color: var(--ink);
  border-bottom-color: var(--forest-700);
}
@media (max-width: 600px) {
  .admin-tab { flex: 1; padding: 0.75rem 0.5rem; font-size: 0.88rem; text-align: center; }
}
#admin-theme-toggle {
  padding: 0.5rem 0.85rem;
  font-size: 1rem;
  line-height: 1;
  min-width: 2.4rem;
}
.form-row-checkbox {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.92rem;
}
.form-row-checkbox input[type="checkbox"] { width: auto; margin: 0; }

/* Prominent status flag block at the top of the trip form. Sits above
   the field grid so admins see "Finished" before they fill in details. */
.admin-flag {
  background: var(--bg);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--clay);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
}
.admin-flag .form-row-checkbox {
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  font-weight: 400;
  width: 100%;
  text-transform: none;
  color: var(--ink);
}
.admin-flag input[type="checkbox"] { margin-top: 0.15rem; }
.admin-flag strong { color: var(--ink); font-weight: 600; }
.admin-intro {
  background: var(--bg-alt);
  border-inline-start: 3px solid var(--clay);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.admin-intro code {
  background: var(--surface);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  border: 1px solid var(--line);
}

.admin-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-section-head h2 { margin: 0; font-size: 1.3rem; }
.admin-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.admin-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  gap: 1rem;
}
.admin-bulk-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}
.admin-bulk-all input { cursor: pointer; accent-color: var(--forest-700); }
[data-bulk-delete],
[data-bulk-email] {
  transition: opacity var(--t);
}
[data-bulk-delete][disabled],
[data-bulk-email][disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-sub-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  white-space: nowrap;
}
.admin-sub-status.active   { background: #d1f5e0; color: #1a6b3c; }
.admin-sub-status.inactive { background: #ebebeb; color: var(--muted); }
[data-theme="dark"] .admin-sub-status.active   { background: #1a4d2e; color: #6fcf97; }
[data-theme="dark"] .admin-sub-status.inactive { background: #2c2c2c; color: var(--muted); }
.admin-row-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--forest-700);
  margin-inline-end: 0.3rem;
}
.admin-empty {
  color: var(--muted);
  font-style: italic;
  padding: 1.5rem;
  text-align: center;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.admin-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.admin-row-img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--forest-700);
}
.admin-row-img-wide { width: 80px; height: 56px; }
.admin-row-img img { width: 100%; height: 100%; object-fit: cover; }
.admin-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.admin-row-info strong { font-weight: 600; color: var(--ink); }
.admin-row-info .muted { font-size: 0.85rem; color: var(--muted); }

.admin-add {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.admin-form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}
.admin-section-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: -0.5rem 0 1rem;
  max-width: 700px;
  line-height: 1.6;
}
.admin-row-actions {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}

/* ---------- Drag-and-drop reorder ---------- */
.admin-bulk-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.admin-row-drag {
  display: none; /* hidden until reorder mode for this section */
  place-items: center;
  width: 28px;
  height: 36px;
  flex-shrink: 0;
  color: var(--muted);
  cursor: grab;
  user-select: none;
  border-radius: var(--radius);
  transition: all var(--t);
}
.admin-row-drag:hover { color: var(--ink); background: var(--surface); }
.admin-row-drag:active { cursor: grabbing; }

/* Reorder mode is per-section: body.reorder-team / -upcoming / -past */
body.reorder-team #admin-team-list .admin-row-drag,
body.reorder-upcoming #admin-upcoming-list .admin-row-drag,
body.reorder-past #admin-past-list .admin-row-drag {
  display: grid;
  order: -2; /* leftmost */
}
/* Hide checkboxes + action buttons in reorder mode so the row collapses */
body.reorder-team #admin-team-list .admin-row-actions,
body.reorder-team #admin-team-list .admin-row-check,
body.reorder-upcoming #admin-upcoming-list .admin-row-actions,
body.reorder-upcoming #admin-upcoming-list .admin-row-check,
body.reorder-past #admin-past-list .admin-row-actions,
body.reorder-past #admin-past-list .admin-row-check {
  display: none;
}

/* SortableJS visual states */
.admin-row.admin-row-chosen { background: var(--surface); }
.admin-row.admin-row-dragging {
  background: var(--surface);
  border-color: var(--forest-700);
  box-shadow: var(--shadow-lg);
  cursor: grabbing;
}
.admin-row.admin-row-ghost { opacity: 0.35; }

.admin-form .form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 720px) { .admin-form .form-grid-2 { grid-template-columns: 1fr; } }
.admin-form .form-row-wide { grid-column: 1 / -1; }
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 400;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--forest-700);
  box-shadow: 0 0 0 3px rgba(66, 103, 79, 0.12);
}

.admin-advanced {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.admin-advanced > summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  padding: 0.4rem 0;
}

.admin-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest-800);
  color: var(--cream);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  max-width: 90%;
}
.admin-toast-error { background: #c0392b; }

.admin-idle-warning {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clay);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-width: 92%;
}
.admin-idle-warning .btn {
  background: #ffffff;
  color: var(--clay);
  border-color: #ffffff;
}
.admin-idle-warning .btn:hover {
  background: #f5e6d8;
  color: var(--clay);
  border-color: #f5e6d8;
}
.admin-idle-warning[hidden] { display: none; }

/* ============================================
   Admin panel — mobile (≤ 600px)
   ============================================ */
@media (max-width: 600px) {
  .admin-dash {
    padding: 1.5rem 0.85rem 3rem;
  }
  .admin-bar {
    padding: 1rem 0 1.25rem;
    margin-bottom: 1.5rem;
  }
  .admin-bar h1 { font-size: 1.35rem; }
  .admin-back { font-size: 0.85rem; }

  .admin-intro {
    font-size: 0.88rem;
    padding: 0.85rem 1rem;
    line-height: 1.55;
  }
  .admin-section {
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
  }
  /* Stack section title and "+ Add" button vertically; button goes full-width */
  .admin-section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
  }
  .admin-section-head h2 { font-size: 1.15rem; }
  .admin-section-head > .btn {
    width: 100%;
    justify-content: center;
  }
  .admin-section-note { font-size: 0.85rem; }

  /* Add-form card and its action row */
  .admin-add { padding: 1rem; }
  .admin-form-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }
  .admin-form-actions > .btn { width: 100%; justify-content: center; }
  .admin-form .form-grid-2 { gap: 0.85rem; }

  /* List rows wrap so the action buttons sit on their own row below the
     image+info, instead of overflowing the side */
  .admin-row {
    flex-wrap: wrap;
    padding: 0.75rem;
    gap: 0.7rem;
  }
  .admin-row-img { width: 44px; height: 44px; }
  .admin-row-img-wide { width: 64px; height: 48px; }
  .admin-row-info { flex: 1 1 0; min-width: 0; }
  .admin-row-info strong { font-size: 0.92rem; word-break: break-word; }
  .admin-row-info .muted { font-size: 0.78rem; }
  .admin-row-actions {
    flex: 1 1 100%;
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    padding-top: 0.55rem;
    margin-top: 0.25rem;
  }
  .admin-row-actions .btn { font-size: 0.78rem; padding: 0.4rem 0.85rem; }

  .admin-bulk-bar {
    flex-wrap: wrap;
    padding: 0.5rem;
    gap: 0.6rem;
  }
  .admin-bulk-bar > [data-bulk-delete],
  .admin-bulk-bar > [data-bulk-email] { font-size: 0.8rem; padding: 0.4rem 0.85rem; }

  /* Login gate */
  .admin-login {
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius);
  }

  /* Idle-timeout warning banner */
  .admin-idle-warning {
    width: calc(100% - 1.5rem);
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
    font-size: 0.88rem;
    top: 0.75rem;
  }
  .admin-idle-warning .btn { width: 100%; }
}

/* ============================================
   Page fade-in (excluded on admin — admin owns its own bootstrap)
   ============================================ */
body:not(.admin) { opacity: 0; transition: opacity 0.4s ease; }
body:not(.admin).ready { opacity: 1; }

/* ============================================
   Lazy-load shimmer placeholder
   ============================================ */
.lazy-bg:not([data-bg-loaded]) {
  background-color: var(--bg-alt);
  background-image: linear-gradient(90deg,
    var(--bg-alt) 0%, var(--surface) 50%, var(--bg-alt) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================
   Trip filters (difficulty pills)
   ============================================ */
.trip-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0 2.5rem;
}
.filter-pill {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--t);
}
.filter-pill:hover { color: var(--ink); border-color: var(--forest-700); }
.filter-pill.active {
  background: var(--forest-700);
  border-color: var(--forest-700);
  color: var(--cream);
}

/* ============================================
   Newsletter card
   ============================================ */
.newsletter {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  align-items: center;
}
@media (max-width: 720px) {
  .newsletter { grid-template-columns: 1fr; padding: 1.75rem; gap: 1.25rem; }
}
.newsletter h2 { font-size: 1.6rem; margin-top: 0.4rem; }
.newsletter p { color: var(--muted); margin-top: 0.5rem; }
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  position: relative;
}
.newsletter-form input {
  flex: 1 1 220px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--forest-700); }
.newsletter-form button { white-space: nowrap; }
.newsletter-msg {
  width: 100%;
  font-size: 0.88rem;
  margin-top: 0.4rem;
  min-height: 1.2em;
}

/* ============================================
   Sticky mobile CTA on trip detail
   ============================================ */
.trip-sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 0.85rem 1.25rem env(safe-area-inset-bottom, 0.85rem);
  box-shadow: 0 -10px 30px -12px rgba(31, 53, 40, 0.25);
  transform: translateY(100%);
  transition: transform var(--t), opacity var(--t);
  opacity: 0;
}
.trip-sticky-cta.show { transform: translateY(0); opacity: 1; }
.trip-sticky-cta .trip-sticky-price { font-weight: 600; color: var(--forest-700); }
.trip-sticky-cta .btn { padding: 0.7rem 1.25rem; }
@media (max-width: 700px) { .trip-sticky-cta { display: flex; } }

/* ============================================
   Cookie banner
   ============================================ */
.cookie-banner {
  position: fixed;
  inset-inline: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  max-width: 720px;
  margin: 0 auto;
}
.btn-mini-cookie {
  background: var(--forest-700);
  color: var(--cream);
  border: 1px solid var(--forest-700);
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
}
.btn-mini-cookie:hover { background: var(--forest-800); border-color: var(--forest-800); }

/* ============================================
   Markdown rendering inside trip long descriptions
   ============================================ */
.trip-long-desc p { margin-block: 0.6rem; color: var(--ink-soft); }
.trip-long-desc strong { color: var(--ink); font-weight: 600; }
.trip-long-desc em { font-style: italic; }
.trip-long-desc a { color: var(--forest-700); text-decoration: underline; }

/* ============================================
   Health declaration form
   ============================================ */
.hd-form { max-width: 760px; margin: 0 auto; }

.hd-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 600px) { .hd-section { padding: 1.5rem; } }

.hd-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest-700);
  margin: 0 0 1.4rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-soft);
}

/* Radio cards (self / guardian) */
.hd-radio-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  transition: border-color var(--t), background var(--t);
}
.hd-radio-label:has(input:checked) {
  border-color: var(--forest-700);
  background: rgba(66, 103, 79, 0.07);
}
.hd-radio-label input[type="radio"] { accent-color: var(--forest-700); flex-shrink: 0; }

/* Inline pill radios (swim, fitness, yes/no) */
.hd-inline-radios { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.hd-inline-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: border-color var(--t), background var(--t), font-weight var(--t);
  line-height: 1.3;
}
.hd-inline-label:has(input:checked) {
  border-color: var(--forest-700);
  background: rgba(66, 103, 79, 0.09);
  font-weight: 600;
}
.hd-inline-label input[type="radio"] { accent-color: var(--forest-700); }

/* Small label above inline radios */
.hd-field-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
  color: var(--ink);
}

/* Medical yes/no rows */
.hd-yn-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.hd-yn-row:last-child { border-bottom: none; }

.hd-yn-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hd-yn-label {
  font-size: 0.92rem;
  color: var(--ink);
  flex: 1;
  min-width: 180px;
}

.hd-yn-options { display: flex; gap: 0.55rem; flex-shrink: 0; }

.hd-medical-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: -0.5rem 0 1rem;
}

/* Signature pad */
.hd-sig-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
[data-theme="dark"] .hd-sig-wrap { background: var(--bg-alt); }

#hd-sig-canvas {
  display: block;
  width: 100%;
  height: 160px;
  cursor: crosshair;
  touch-action: none;
}

.hd-sig-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0.45rem 0.75rem;
  border-top: 1px solid var(--line-soft);
}

.hd-sig-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================
   Utility
   ============================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-3 { margin-top: 3rem; }
