@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;
}
.brand-inline {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  margin-inline: 0.08em;
}

/* ============================================
   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); }
[data-theme="dark"] .nav-links a.active {
  color: var(--clay);
}

/* 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"] .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(--clay);
}
[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;
}
/* Hebrew uses Inter (no Tajawal — it's an Arabic font) */
body[lang="he"] h1,
body[lang="he"] h2,
body[lang="he"] h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
}
body[lang="he"],
body[lang="he"] p,
body[lang="he"] label,
body[lang="he"] input,
body[lang="he"] select,
body[lang="he"] textarea,
body[lang="he"] button {
  font-family: 'Inter', system-ui, sans-serif;
}

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: 72px;
  height: 72px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
  order: 1;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--forest-900);
  letter-spacing: -0.01em;
  overflow: hidden;
}
.brand img {
  height: 50px;
  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: 60px; height: 60px; }
  .brand img { height: 42px; }
}

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

.nav-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  order: 3;
  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;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
  transition: background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}
.menu-btn:hover {
  border-color: var(--forest-700);
  color: var(--forest-800);
}
.menu-btn .icon { width: 20px; height: 20px; stroke-width: 2; }
.menu-btn-line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--t), opacity var(--t);
}

@media (max-width: 880px) {
  .nav {
    box-shadow: 0 10px 30px -24px rgba(31, 53, 40, 0.45);
  }
  .nav-inner {
    justify-content: space-between;
    gap: 0.6rem;
    min-height: 64px;
    padding: 0.35rem 1rem;
  }
  .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 0.55rem);
    inset-inline: 1rem;
    background: var(--surface);
    flex-direction: column;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    gap: 0.2rem;
    align-items: stretch;
    flex: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--t), transform var(--t), visibility var(--t);
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links li { list-style: none; }
  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.82rem 0.95rem 0.96rem;
    border-bottom: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: var(--bg-alt);
    color: var(--clay);
  }
  .nav-links a.active::after {
    display: block;
    inset-inline: 0.95rem;
    bottom: 0.42rem;
    height: 2px;
    background: var(--clay);
    border-radius: 999px;
  }
  .nav-links a.nav-signup {
    justify-content: center;
    background: var(--forest-800);
    color: var(--cream);
    margin-top: 0.25rem;
  }
  .nav-links a.nav-signup:hover,
  .nav-links a.nav-signup.active {
    background: var(--forest-900);
    color: var(--cream);
  }
  .nav-links a.nav-signup.active::after {
    background: rgba(245, 241, 222, 0.82);
  }
  /* Mobile order follows the page direction: logo first, controls middle, menu opposite. */
  .brand { order: 1; }
  .menu-btn { display: grid; place-items: center; order: 3; }
  .nav-actions {
    order: 2;
    gap: 0.45rem;
  }
  .nav-vip-login {
    min-height: 40px;
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
  }
  .theme-toggle {
    width: 40px;
    height: 40px;
    background: var(--surface);
  }
  .lang-toggle {
    min-height: 40px;
    min-width: 48px;
    padding: 0.5rem 0.85rem;
    background: var(--surface);
  }
  .nav.menu-open .menu-btn {
    background: var(--forest-800);
    border-color: var(--forest-800);
    color: var(--cream);
    box-shadow: var(--shadow);
  }
  .nav.menu-open .menu-btn-line-1 {
    transform: translateY(5px) rotate(45deg);
  }
  .nav.menu-open .menu-btn-line-2 {
    opacity: 0;
  }
  .nav.menu-open .menu-btn-line-3 {
    transform: translateY(-5px) rotate(-45deg);
  }
}

@media (max-width: 380px) {
  .nav-inner { padding-inline: 0.75rem; gap: 0.45rem; }
  .nav-actions { gap: 0.35rem; }
  .nav-vip-login { padding-inline: 0.85rem; }
  .lang-toggle { min-width: 44px; padding-inline: 0.7rem; }
}

/* ============================================
   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 8.75rem;
  margin: 0 auto;
  text-align: center;
  transform: translateY(-2rem);
}

.hero-logo-lockup {
  width: clamp(190px, 28vw, 390px);
  margin: 0 auto 1.2rem;
}
.hero-logo {
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.34));
}

@media (max-width: 640px) {
  .hero-inner {
    padding: 5rem 1.25rem 8.25rem;
    transform: translateY(-1.4rem);
  }
  .hero-logo-lockup {
    width: min(68vw, 280px);
    margin-bottom: 1rem;
  }
}

.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: 1.35rem;
  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; }
}
@media (max-width: 640px) {
  .hero-scroll {
    bottom: 0.9rem;
  }
}
@media (max-height: 760px) {
  .hero-inner {
    padding-bottom: 6.75rem;
    transform: translateY(-1rem);
  }
  .hero-scroll {
    bottom: 0.8rem;
  }
}

/* ============================================
   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; } }
.signup-availability {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
}
.signup-availability[hidden] { display: none; }
.signup-availability .eyebrow { margin-bottom: 0.45rem; }
.signup-availability h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  margin-bottom: 0.35rem;
}
.signup-availability p {
  color: var(--muted);
  max-width: 680px;
}
@media (max-width: 720px) {
  .signup-availability {
    flex-direction: column;
    align-items: stretch;
  }
  .signup-availability .btn { width: 100%; }
}

.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-card[data-empty-trips="true"] select[data-empty-trips] {
  border-color: var(--clay);
  background: var(--clay-soft);
  color: var(--ink-static);
}
.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: clamp(2rem, 5vw, 3rem) 0 1.25rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(160px, 0.85fr) minmax(180px, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.75rem;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.1rem;
  }
  .footer-grid > div:first-child,
  .footer-grid > div:last-child { grid-column: auto; }
  footer p[data-i18n="footer.about"] { display: none; }
  footer h4 { margin-bottom: 0.4rem; }
  footer a { font-size: 0.84rem; }
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2rem 0.55rem;
  }
  .socials { margin-top: 0.6rem; }
}
@media (max-width: 380px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 0.22rem;
  }
}
footer h4 {
  color: var(--cream);
  margin-bottom: 0.5rem;
  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.9rem; line-height: 1.55; }
footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  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.25rem;
  color: var(--cream);
  margin-bottom: 0.55rem;
  letter-spacing: 0.01em;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.22rem; }
.footer-links a {
  display: inline-block;
  line-height: 1.25;
}

.socials { display: flex; gap: 0.55rem; margin-top: 0.9rem; }
.socials a {
  width: 34px;
  height: 34px;
  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: 1rem;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 520px) {
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2rem 0.55rem;
  }
}
@media (max-width: 380px) {
  .footer-links {
    flex-direction: column;
    gap: 0.22rem;
  }
}

/* ============================================
   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: 1.5rem;
}

.trip-hero-deadline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 140, 60, 0.18);
  border: 1px solid rgba(255, 140, 60, 0.45);
  border-radius: 6px;
  color: #ffc27a;
  font-size: 0.9rem;
}
.trip-hero-deadline .icon { width: 15px; height: 15px; flex-shrink: 0; }
.trip-hero-deadline strong { color: #fff; }

.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;
}

.trip-detail-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}
.trip-detail-empty h2 {
  margin-bottom: 0.65rem;
}
.trip-detail-empty p {
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 46rem;
}

.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 {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background-color: var(--surface);
  appearance: none;
  padding: 0;
  transition: transform var(--t);
  cursor: zoom-in;
}
.gallery-img:hover { transform: scale(1.02); }

.trip-lightbox-open {
  overflow: hidden;
}
.trip-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(11, 18, 14, 0.88);
  padding: clamp(1rem, 4vw, 3rem);
}
.trip-lightbox-img {
  max-width: min(1120px, 92vw);
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.trip-lightbox-close,
.trip-lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--t), transform var(--t);
}
.trip-lightbox-close:hover,
.trip-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}
.trip-lightbox-close {
  top: 1rem;
  inset-inline-end: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}
.trip-lightbox-nav {
  top: 50%;
  width: 46px;
  height: 58px;
  border-radius: var(--radius);
  transform: translateY(-50%);
  font-size: 2.2rem;
}
.trip-lightbox-prev { inset-inline-start: 1rem; }
.trip-lightbox-next { inset-inline-end: 1rem; }
@media (max-width: 620px) {
  .trip-lightbox { padding: 0.75rem; }
  .trip-lightbox-img { max-width: 96vw; max-height: 78vh; }
  .trip-lightbox-nav {
    top: auto;
    bottom: 1rem;
    transform: none;
    width: 44px;
    height: 44px;
  }
}

/* Public photo book gallery */
.gallery-page {
  background:
    linear-gradient(180deg, transparent 0, rgba(170, 134, 103, 0.08) 100%),
    var(--bg);
}
.gallery-app { min-height: 320px; }
.gallery-loading,
.gallery-empty {
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.gallery-empty h2 {
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.gallery-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.gallery-toolbar h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
body[dir="rtl"] .gallery-toolbar h2 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
}
.gallery-toolbar p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.65;
}
.gallery-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}
.gallery-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
}
.gallery-album-card,
.gallery-photo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-album-button,
.gallery-photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}
.gallery-album-cover {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  overflow: hidden;
}
.gallery-album-cover img,
.gallery-photo-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t), filter var(--t);
}
.gallery-album-button:hover img,
.gallery-photo-button:hover img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.02);
}
.gallery-album-meta,
.gallery-photo-meta {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
}
.gallery-album-meta strong,
.gallery-photo-meta strong {
  color: var(--ink);
  font-size: 1.05rem;
}
.gallery-album-meta span,
.gallery-photo-meta span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.gallery-album-count {
  color: var(--forest-700) !important;
  font-size: 0.76rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body[dir="rtl"] .gallery-album-count { letter-spacing: 0; }
.gallery-album-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0 1rem 1rem;
}
.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-photo-button {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  overflow: hidden;
}
.gallery-photo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.gallery-photo-tags a {
  color: var(--forest-800);
  background: color-mix(in srgb, var(--forest-200) 38%, transparent);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  padding: 0.18rem 0.55rem;
  font-size: 0.74rem;
  text-decoration: none;
}
.gallery-photo-permalink {
  width: max-content;
  color: var(--forest-700);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}
body.gallery-book-open { overflow: hidden; }
.gallery-book[hidden] { display: none !important; }
.gallery-book {
  position: fixed;
  inset: 0;
  z-index: 2200;
  color: var(--ink);
}
.gallery-book-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 15, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.gallery-book-panel {
  position: relative;
  height: min(92dvh, 940px);
  width: min(1180px, calc(100vw - 2rem));
  margin: 4dvh auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--line) 70%, white);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}
.gallery-book-bar,
.gallery-book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, var(--bg));
}
.gallery-book-footer {
  border-top: 1px solid var(--line);
  border-bottom: none;
}
.gallery-book-bar p {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body[dir="rtl"] .gallery-book-bar p { letter-spacing: 0; }
.gallery-book-bar h2 {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}
.gallery-book-caption-line {
  display: block;
  max-width: min(62vw, 720px);
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}
.gallery-book-bar[data-share-status]::after {
  content: attr(data-share-status);
  color: var(--forest-700);
  font-size: 0.8rem;
  font-weight: 700;
}
.gallery-book-actions,
.gallery-zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.gallery-icon-btn,
.gallery-zoom-controls button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.gallery-icon-btn:hover,
.gallery-zoom-controls button:hover {
  background: var(--forest-800);
  border-color: var(--forest-800);
  color: var(--cream);
}
.gallery-icon-btn .icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gallery-book-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem) clamp(3.4rem, 6vw, 4.8rem);
  background:
    linear-gradient(90deg, rgba(31, 53, 40, 0.06), transparent 20%, transparent 80%, rgba(31, 53, 40, 0.06)),
    var(--bg-alt);
}
.gallery-book-cover,
.gallery-book-spread {
  width: 100%;
  max-width: 860px;
  height: 100%;
  min-height: 0;
  max-height: 100%;
}
.gallery-book-cover {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.gallery-book-cover-art img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.gallery-book-cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.gallery-book-cover-copy h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 1rem;
}
body[dir="rtl"] .gallery-book-cover-copy h2 {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
}
.gallery-book-cover-copy p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.gallery-book-cover-copy span {
  width: max-content;
  color: var(--forest-800);
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.gallery-book-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-self: center;
  justify-self: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.gallery-book-page {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  padding: clamp(0.85rem, 2vw, 1.4rem);
  background: var(--surface);
}
.gallery-book-page + .gallery-book-page {
  border-inline-start: 1px solid var(--line);
}
.gallery-book-image-frame {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
}
.gallery-book-image-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: width var(--t), height var(--t);
}
.gallery-book-page-zoomed .gallery-book-image-frame {
  display: block;
  overflow: auto;
}
.gallery-book-page-zoomed .gallery-book-image-frame img {
  position: static;
  max-width: none;
  max-height: none;
}
.gallery-book-page-empty {
  background:
    linear-gradient(90deg, rgba(31, 53, 40, 0.06), transparent),
    var(--surface);
}
.gallery-book-nav {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background var(--t), color var(--t);
}
.gallery-book-nav:hover {
  background: var(--forest-800);
  color: var(--cream);
}
.gallery-book-nav .icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gallery-book-prev { left: 1rem; right: auto; }
.gallery-book-next { right: 1rem; left: auto; }
.gallery-book-thumbs {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  direction: ltr;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}
body[dir="rtl"] .gallery-book-thumbs {
  direction: rtl;
}
.gallery-book-thumbs button {
  flex: 0 0 auto;
  width: 58px;
  height: 42px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 700;
  direction: inherit;
  unicode-bidi: isolate;
}
.gallery-book-thumbs button.active {
  border-color: var(--forest-700);
}
.gallery-book-thumbs img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.gallery-zoom-controls button {
  font-weight: 800;
  font-size: 0.9rem;
}
.gallery-zoom-controls button:nth-child(2) {
  width: 56px;
  font-size: 0.78rem;
}
@media (max-width: 820px) {
  .gallery-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .gallery-toolbar-actions { justify-content: flex-start; }
  .gallery-book-panel {
    width: calc(100vw - 1rem);
    height: calc(100dvh - 1rem);
    margin: 0.5rem auto;
  }
  .gallery-book-stage {
    padding-inline: 3rem;
  }
  .gallery-book-cover,
  .gallery-book-spread {
    height: 100%;
    max-height: 100%;
  }
  .gallery-book-cover {
    grid-template-columns: 1fr;
  }
  .gallery-book-cover-art img {
    min-height: 220px;
    max-height: 42dvh;
  }
  .gallery-book-page-empty { display: none; }
  .gallery-book-page + .gallery-book-page {
    border-inline-start: none;
  }
  .gallery-book-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (max-width: 560px) {
  .gallery-album-actions,
  .gallery-toolbar-actions {
    flex-direction: column;
  }
  .gallery-album-actions .btn,
  .gallery-toolbar-actions .btn {
    width: 100%;
  }
  .gallery-book-bar {
    align-items: flex-start;
  }
  .gallery-book-caption-line {
    max-width: 100%;
    font-size: 0.8rem;
  }
  .gallery-book-stage {
    padding: 0.8rem 0.75rem 4.5rem;
  }
  .gallery-book-nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
  .gallery-book-prev { left: 1rem; right: auto; }
  .gallery-book-next { right: 1rem; left: auto; }
}

/* ============================================
   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;
  direction: ltr;
  unicode-bidi: isolate;
}
.stat-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ============================================
   Home field proof
   ============================================ */
.home-proof {
  background: var(--forest-900);
  color: var(--cream);
}
.home-proof .eyebrow { color: var(--clay); }
.home-proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: center;
}
.home-proof-copy h2 {
  color: var(--cream);
  margin-bottom: 1rem;
  max-width: 620px;
}
.home-proof-copy p {
  color: rgba(245, 241, 222, 0.78);
  font-size: 1.05rem;
  max-width: 560px;
}
.home-proof-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.75rem;
}
.home-proof-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(245, 241, 222, 0.9);
  font-weight: 600;
}
.home-proof-list span::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 5px rgba(170, 134, 103, 0.16);
  flex-shrink: 0;
}
.home-proof-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: minmax(170px, 1fr) minmax(170px, 1fr);
  gap: 1rem;
  min-height: 480px;
}
.home-proof-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 241, 222, 0.18);
  background: rgba(245, 241, 222, 0.08);
  box-shadow: var(--shadow-lg);
}
.home-proof-photo-main { grid-row: 1 / span 2; }
.home-proof-photo img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}
.home-proof-photo figcaption {
  position: absolute;
  inset-inline: 0.85rem;
  bottom: 0.85rem;
  color: var(--cream);
  background: rgba(29, 46, 34, 0.72);
  border: 1px solid rgba(245, 241, 222, 0.16);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.home-proof-note {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(170, 134, 103, 0.36), rgba(103, 132, 113, 0.2)),
    var(--forest-800);
}
.home-proof-note strong {
  color: var(--cream);
  font-family: 'Fraunces', 'Tajawal', serif;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 0.9;
}
.home-proof-note span {
  color: rgba(245, 241, 222, 0.84);
  font-weight: 600;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .home-proof-layout { grid-template-columns: 1fr; gap: 2rem; }
  .home-proof-gallery { min-height: 420px; }
}
@media (max-width: 620px) {
  .home-proof-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
  .home-proof-photo,
  .home-proof-photo-main {
    grid-row: auto;
    min-height: 230px;
  }
  .home-proof-note { min-height: 190px; }
}

/* ============================================
   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;
}
.activity-gallery-link {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 1rem;
  color: var(--forest-700);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.activity-gallery-link:hover { color: var(--forest-900); }

/* 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 gallery CMS */
.admin-gallery-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(0, 1.55fr);
  gap: 1.25rem;
  align-items: start;
}
.admin-gallery-shell {
  margin-top: 1rem;
}
.admin-gallery-sidebar,
.admin-gallery-workspace {
  min-width: 0;
}
.admin-gallery-help {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid color-mix(in srgb, var(--forest-700) 25%, var(--line));
  border-inline-start: 4px solid var(--forest-700);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--forest-700) 7%, var(--surface));
  padding: 1rem 1.15rem;
  margin-top: 0.75rem;
}
.admin-gallery-help strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.admin-gallery-help p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}
.admin-gallery-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.admin-gallery-panel-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}
.admin-gallery-panel-head p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.admin-gallery-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 0.7rem;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: 0.85rem;
  margin-bottom: 1rem;
}
.admin-toolbar-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}
.admin-toolbar-field span {
  white-space: nowrap;
}
.admin-toolbar-field input,
.admin-toolbar-field select {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  padding: 0.62rem 0.7rem;
}
.admin-gallery-bulk-field input[type="file"] {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
}
.admin-gallery-toolbar > .btn {
  min-width: 0;
  width: 100%;
  white-space: normal;
  align-self: end;
}
.admin-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
.admin-gallery-header-actions {
  min-width: 0;
}
.admin-gallery-header-actions .btn {
  flex: 1 1 140px;
  min-width: 0;
  max-width: 220px;
  white-space: normal;
  line-height: 1.25;
}
.admin-label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.admin-gallery-album-card,
.admin-gallery-photo-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.75rem;
}
.admin-gallery-album-card {
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.admin-gallery-album-card:hover {
  border-color: color-mix(in srgb, var(--forest-700) 45%, var(--line));
  transform: translateY(-1px);
}
.admin-gallery-album-card .admin-row-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.admin-gallery-actions {
  min-width: 0;
  width: 100%;
}
.admin-gallery-actions .btn {
  flex: 1 1 118px;
  min-width: 0;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}
.admin-gallery-selected {
  border-color: var(--forest-700);
  box-shadow: 0 16px 34px rgba(32, 88, 55, 0.14);
  background: color-mix(in srgb, var(--forest-700) 5%, var(--surface));
}
.admin-list.admin-gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}
.admin-gallery-photo-tile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem;
  overflow: hidden;
}
.admin-gallery-photo-thumb {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius) - 2px);
  background: var(--bg-alt);
  overflow: hidden;
}
.admin-gallery-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-gallery-photo-meta {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.admin-gallery-photo-meta strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}
.admin-gallery-photo-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-self: end;
  width: 100%;
}
.admin-gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.admin-gallery-tags label,
.admin-gallery-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.65rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}
.admin-gallery-tags input {
  margin: 0;
}
@media (max-width: 980px) {
  .admin-gallery-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .admin-gallery-album-card,
  .admin-gallery-photo-card {
    grid-template-columns: 1fr;
  }
  .admin-gallery-help {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-section-actions {
    justify-content: flex-start;
  }
  .admin-gallery-header-actions .btn {
    max-width: none;
  }
}

/* ============================================
   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-featured {
  color: var(--forest-800);
  background: color-mix(in srgb, var(--forest-700) 8%, transparent);
  border-radius: var(--radius) var(--radius) 0 0;
}
.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-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .admin-dashboard-grid,
  .admin-media-grid { grid-template-columns: 1fr; }
}
#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-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.admin-dashboard-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.admin-ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1rem;
  align-items: start;
}
.admin-ai-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: 1rem;
}
.admin-ai-preview h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}
.admin-ai-preview > .admin-form-actions {
  justify-content: flex-start;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.admin-ai-preview > .admin-section-note {
  max-width: none;
  margin: 0.85rem 0 0;
}
.admin-ai-summary dl {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}
.admin-ai-summary dl > div {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line-soft);
}
.admin-ai-summary dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.admin-ai-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.admin-ai-notes {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.admin-ai-notes ul {
  margin: 0.4rem 0 0;
  padding-inline-start: 1.2rem;
}
@media (max-width: 860px) {
  .admin-ai-layout { grid-template-columns: 1fr; }
}
.admin-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: 1rem;
  display: grid;
  gap: 0.35rem;
}
.admin-stat span {
  color: var(--muted);
  font-size: 0.82rem;
}
.admin-stat strong {
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
}

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.85rem;
}
.admin-media-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  overflow: hidden;
  display: grid;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
}
.admin-media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--line-soft);
}
.admin-media-card > div,
.admin-media-card > button {
  margin-inline: 0.85rem;
}
.admin-media-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}
.admin-field-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
}
.admin-field-with-action label { min-width: 0; }
.admin-field-with-action .btn {
  white-space: nowrap;
  margin-bottom: 0.05rem;
}
.admin-modal[hidden] { display: none; }
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 22, 0.58);
}
.admin-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(720px, 88vh);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  padding: 1.25rem;
}
.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.admin-modal-head h2 {
  margin: 0;
  font-size: 1.25rem;
}
.admin-modal-close {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}
.admin-media-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}
.admin-media-picker-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--ink);
  padding: 0;
  text-align: start;
  overflow: hidden;
  cursor: pointer;
  display: grid;
  gap: 0.45rem;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.admin-media-picker-card:hover,
.admin-media-picker-card.selected {
  border-color: var(--forest-700);
  box-shadow: 0 0 0 2px rgba(68, 98, 74, 0.18);
}
.admin-media-picker-card.selected { transform: translateY(-1px); }
.admin-media-picker-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--line-soft);
}
.admin-media-picker-card span,
.admin-media-picker-card small {
  margin-inline: 0.7rem;
}
.admin-media-picker-card span {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
}
.admin-media-picker-card small {
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 0.7rem;
}
.admin-modal-open { overflow: hidden; }
@media (max-width: 600px) {
  .admin-field-with-action { grid-template-columns: 1fr; }
  .admin-field-with-action .btn {
    width: 100%;
    margin-bottom: 0;
  }
  .admin-modal {
    align-items: end;
    padding: 0.75rem;
  }
  .admin-modal-panel {
    max-height: 90vh;
    padding: 1rem;
  }
  .admin-modal-actions {
    flex-direction: column-reverse;
  }
  .admin-modal-actions .btn { width: 100%; }
}
.admin-row-actions select {
  min-width: 140px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.5rem 0.65rem;
  font: inherit;
}

.admin-guide-content {
  max-width: 880px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.admin-guide-content h2,
.admin-guide-content h3,
.admin-guide-content h4 {
  color: var(--ink);
  margin: 1.5rem 0 0.65rem;
}
.admin-guide-content h2:first-child,
.admin-guide-content h3:first-child { margin-top: 0; }
.admin-guide-content p,
.admin-guide-content ul,
.admin-guide-content ol,
.admin-guide-content pre { margin: 0 0 1rem; }
.admin-guide-content li { margin-bottom: 0.35rem; }
.admin-guide-content code {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.08rem 0.3rem;
}
.admin-guide-content pre {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  overflow-x: auto;
}
.admin-guide-content pre code {
  border: 0;
  padding: 0;
  background: transparent;
}

.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;
}
.admin-health-pdf-missing {
  align-self: center;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* ---------- 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);
}
body.trips-no-results .trips-bar .view-toggle,
body.trips-no-results #trip-filters,
body.trips-current-empty .trips-bar .view-toggle,
body.trips-current-empty #trip-filters {
  display: none;
}
.trip-empty {
  grid-column: 1 / -1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}
.trip-empty-kicker {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.trip-empty h3 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}
.trip-empty p {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  color: var(--muted);
}
.trip-empty-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
@media (max-width: 520px) {
  .trip-empty { text-align: start; }
  .trip-empty-actions { align-items: stretch; flex-direction: column; }
  .trip-empty-actions .btn { width: 100%; }
}

/* ============================================
   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;
}
.cookie-banner.compact {
  inset-inline-start: auto;
  inset-inline-end: 1rem;
  bottom: 1rem;
  max-width: min(420px, calc(100vw - 2rem));
  justify-content: flex-start;
  padding: 0.65rem 0.75rem 0.65rem 1rem;
  font-size: 0.84rem;
  line-height: 1.45;
  border-radius: var(--radius);
}
.cookie-banner.compact span {
  flex: 1 1 180px;
}
.cookie-banner.compact .btn-mini-cookie {
  flex-shrink: 0;
  padding: 0.38rem 0.8rem;
}
@media (max-width: 520px) {
  .cookie-banner.compact {
    inset-inline: 0.75rem;
    max-width: none;
    padding: 0.62rem 0.7rem;
  }
}
.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;
}
.hd-sub-heading {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--forest-700);
  margin: 1.2rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

/* 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; }

/* ============================================
   VIP nav
   ============================================ */
.nav-vip-login {
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}
.nav-vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--forest-700);
  border: 1px solid var(--forest-700);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
}
.nav-vip-badge[hidden] { display: none !important; }
.nav-vip-logout {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  transition: color var(--t);
}
.nav-vip-logout:hover { color: var(--ink); }

/* ============================================
   VIP Modal  (native <dialog> top-layer)
   ============================================ */
#gtn-vip-dialog {
  background: transparent;
  border: none;
  padding: 1.5rem;
  margin: auto;
  width: min(680px, 100vw - 2rem);
  max-height: 100dvh;
  overflow-y: auto;
  outline: none;
}
#gtn-vip-dialog::backdrop {
  background: rgba(15, 30, 20, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.vip-modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  width: 100%;
  max-width: 640px;
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
}

.vip-modal-close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  background: none;
  border: none;
  color: var(--muted);
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color var(--t);
}
.vip-modal-close:hover { color: var(--ink); }
.vip-modal-close svg {
  width: 15px; height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.vip-modal-star {
  color: var(--forest-700);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  line-height: 1;
  display: block;
}

.vip-modal-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.vip-modal-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.vip-field-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.vip-input {
  flex: 1;
  min-width: 0;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.72rem 1rem;
  font-family: inherit;
  font-size: 0.88rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--t);
}
.vip-input:focus { border-color: var(--forest-700); }
.vip-input::placeholder { color: var(--muted); }

.vip-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.vip-divider::before,
.vip-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.vip-error {
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 0.75rem;
}

.vip-status-block { text-align: center; padding: 1rem 0; }
.vip-status-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.vip-status-icon--ok  { color: var(--forest-700); }
.vip-status-icon--err { color: #c0392b; }
.vip-status-msg  { font-size: 1rem; color: var(--ink); margin-bottom: 0.5rem; font-weight: 600; }
.vip-status-hint { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

@media (max-width: 480px) {
  #gtn-vip-dialog { padding: 1rem; }
  .vip-modal { padding: 2rem 1.25rem 1.5rem; }
  .vip-field-group { flex-direction: column; }
  .vip-input, .vip-field-group .btn { width: 100%; }
}
