/* ── Variables ───────────────────────────────────────────────────────────────── */
:root {
  --forest:     #1a3a2a;
  --pine:       #2d5a3d;
  --sage:       #4a8c5c;
  --fern:       #6ab47a;
  --mist:       #e8f2eb;
  --stone:      #f7f5f2;
  --pebble:     #ede9e3;
  --clay:       #c8bfb0;
  --warm:       #8c7b6b;
  --ink:        #1c1917;
  --orange:     #e05c1a;
  --orange-lt:  #fef0e8;
  --white:      #ffffff;
  --danger:     #c0392b;
  --danger-lt:  #f8d7da;
  --success:    #1a5c30;
  --success-lt: #d4edda;

  --font-head: 'Fraunces', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --r:    10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow:    0 2px 8px rgba(26,58,42,0.07);
  --shadow-lg: 0 8px 24px rgba(26,58,42,0.12);
  --tap-min:   44px;
}

/* ── Reset ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--stone);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sage); text-decoration: none; transition: color .15s; }
a:hover { color: var(--forest); }

/* ── Layout ──────────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 0.75rem; }
@media (min-width: 480px)  { .container { padding: 0 1.25rem; } }
@media (min-width: 640px)  { .container { padding: 0 1.75rem; } }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

/* ── Header ──────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--pebble);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  gap: 0.5rem;
  position: relative;
}
.site-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--forest);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark img {
  width: 28px;
  height: 28px;
  filter: invert(1) brightness(1.1);
  object-fit: contain;
}
.logo-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.logo-name span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm);
}

/* Desktop nav */
.site-nav { display: flex; align-items: center; gap: 0.15rem; }
.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--warm);
  padding: 0.45rem 0.8rem;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  border-radius: var(--r);
  transition: all .15s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); background: var(--stone); }
.nav-admin { color: var(--orange) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--pebble);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--r);
  flex-shrink: 0;
}
.nav-toggle:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  min-height: var(--tap-min);
  padding: 0 1.25rem;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn--primary { background: var(--forest); color: var(--white); border-color: var(--forest); }
.btn--primary:hover { background: var(--pine); border-color: var(--pine); color: var(--white); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--forest); border-color: var(--clay); }
.btn--outline:hover { border-color: var(--forest); background: var(--mist); color: var(--forest); }
.btn--ghost { background: transparent; color: var(--warm); border-color: transparent; }
.btn--ghost:hover { background: var(--stone); color: var(--ink); }
.btn--danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn--large { font-size: 1rem; min-height: 52px; padding: 0 2rem; }
.btn--block { width: 100%; }
.btn--sm { font-size: 0.8rem; min-height: 34px; padding: 0 0.9rem; }

/* ── Flash messages ──────────────────────────────────────────────────────────── */
.flash { padding: 0.7rem 0; font-size: 0.9rem; font-weight: 500; }
.flash--success { background: var(--success-lt); color: var(--success); border-bottom: 1px solid #b8dacc; }
.flash--error   { background: var(--danger-lt);  color: var(--danger);  border-bottom: 1px solid #f1b0b7; }
.flash--info    { background: #fff8e8;            color: #7a5800;        border-bottom: 1px solid #ffe9a0; }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--pebble);
  padding: 4rem 0 3.5rem;
  text-align: center;
}
@media (min-width: 640px) { .hero { padding: 5.5rem 0 4.5rem; } }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mist);
  color: var(--pine);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--sage);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: var(--forest);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.hero h1 em { font-style: italic; color: var(--orange); }
.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
  color: var(--warm);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  padding: 0 1rem;
}
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; padding: 0 1rem; }
@media (max-width: 380px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
}

/* ── Stats strip ─────────────────────────────────────────────────────────────── */
.stats-strip { background: var(--forest); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  text-align: center;
  padding: 1.5rem 0.5rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: clamp(0.65rem, 1.8vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ── Filter bar ──────────────────────────────────────────────────────────────── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--pebble);
  padding: 0.875rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.filter-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  min-width: max-content;
  padding: 0 0.25rem;
}
.filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm);
  white-space: nowrap;
  padding-right: 0.25rem;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--pebble);
  border-radius: 99px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--warm);
  cursor: pointer;
  background: var(--white);
  transition: all .15s;
  white-space: nowrap;
  min-height: 34px;
  font-family: var(--font-body);
  text-decoration: none;
}
.filter-pill:hover,
.filter-pill.active { border-color: var(--forest); color: var(--forest); background: var(--mist); }
.filter-select {
  border: 1.5px solid var(--pebble);
  border-radius: 99px;
  padding: 0.3rem 2rem 0.3rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--warm);
  background: var(--white);
  font-family: var(--font-body);
  min-height: 34px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%238c7b6b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  cursor: pointer;
  transition: all .15s;
}
.filter-select:hover, .filter-select:focus { border-color: var(--forest); color: var(--forest); outline: none; }

/* ── Section ─────────────────────────────────────────────────────────────────── */
.section { padding: 2.5rem 0; }
@media (min-width: 768px) { .section { padding: 3rem 0; } }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--forest);
  letter-spacing: -0.02em;
}
.section-count { font-size: 0.82rem; color: var(--warm); white-space: nowrap; }

/* ── Trip grid ───────────────────────────────────────────────────────────────── */
.trips-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 540px)  { .trips-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .trips-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .trips-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Trip card ───────────────────────────────────────────────────────────────── */
.trip-card {
  background: var(--white);
  border: 1px solid var(--pebble);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .18s;
}
@media (hover: hover) {
  .trip-card:hover {
    border-color: var(--clay);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }
}
.trip-card-header {
  background: var(--forest);
  padding: 1rem 1.2rem 0.95rem;
  position: relative;
}
.trip-card-header.medium { background: var(--pine); }
.trip-card-header.hard   { background: #2a1f1a; }
.trip-card-state {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.3rem;
}
.trip-card-title {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  padding-right: 3rem;
}
.trip-card-title a { color: inherit; }
.trip-card-title a:hover { color: rgba(255,255,255,0.85); }

/* ── Badges ──────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  white-space: nowrap;
}
.badge--easy   { background: rgba(106,180,122,0.22); color: #8eeaa0; }
.badge--medium { background: rgba(239,159,39,0.22);  color: #fbd98a; }
.badge--hard   { background: rgba(224,92,26,0.22);   color: #ffb896; }
/* On light backgrounds */
.badge--easy-light   { background: #d4edda; color: #1a5c30; }
.badge--medium-light { background: #fff3cd; color: #7a4f00; }
.badge--hard-light   { background: #fde8df; color: #8b2a0a; }
.badge--slot  { background: var(--stone); color: var(--warm); border: 1px solid var(--pebble); }
.badge-diff {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
}

.trip-card-body {
  padding: 0.95rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.trip-meta { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.78rem;
  color: var(--warm);
  background: var(--stone);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
}
.trip-excerpt {
  font-size: 0.84rem;
  color: var(--warm);
  line-height: 1.55;
  flex: 1;
}
.trip-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  background: var(--stone);
  border-top: 1px solid var(--pebble);
  gap: 0.5rem;
}
.trip-leader { font-size: 0.8rem; color: var(--warm); min-width: 0; overflow: hidden; }
.trip-leader strong { color: var(--ink); font-weight: 600; }

/* ── Empty state ─────────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--warm);
}
.empty-state h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.empty-state p { margin-bottom: 1.5rem; }

/* ── Forms ───────────────────────────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border: 1px solid var(--pebble);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  max-width: 560px;
  margin: 2rem auto 3rem;
  box-shadow: var(--shadow);
}
@media (min-width: 560px) { .form-card { padding: 2.25rem 2rem; margin-top: 3rem; } }
.form-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--forest);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.form-subtitle { font-size: 0.9rem; color: var(--warm); margin-bottom: 1.5rem; }
.form-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  border-bottom: 1px solid var(--pebble);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.form-control {
  width: 100%;
  min-height: var(--tap-min);
  padding: 0 0.875rem;
  border: 1.5px solid var(--pebble);
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--white);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(74,140,92,0.12);
}
.form-control::placeholder { color: var(--clay); }
textarea.form-control { min-height: 120px; padding: 0.7rem 0.875rem; resize: vertical; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%238c7b6b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 0.3rem; }
.form-hint  { font-size: 0.8rem; color: var(--warm);   margin-top: 0.3rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.form-footer a { font-size: 0.875rem; color: var(--warm); }
.form-footer a:hover { color: var(--forest); }
@media (max-width: 380px) {
  .form-footer { flex-direction: column-reverse; align-items: stretch; }
  .form-footer .btn { width: 100%; }
}

/* ── Alert ───────────────────────────────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--r);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  border: 1px solid transparent;
}
.alert--error   { background: var(--danger-lt);  color: var(--danger);  border-color: #f1b0b7; }
.alert--success { background: var(--success-lt); color: var(--success); border-color: #b8dacc; }
.alert--info    { background: #fff8e8;            color: #7a5800;        border-color: #ffe9a0; }

/* ── Page header (inner pages) ───────────────────────────────────────────────── */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--pebble);
  padding: 2.5rem 0 2rem;
}
.page-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--forest);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.page-header p { font-size: 0.95rem; color: var(--warm); }
.breadcrumb { font-size: 0.8rem; color: var(--warm); margin-bottom: 0.5rem; }
.breadcrumb a { color: var(--warm); }
.breadcrumb a:hover { color: var(--forest); }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--forest); color: rgba(255,255,255,0.65); margin-top: 3rem; }
@media (min-width: 768px) { .site-footer { margin-top: 4rem; } }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding: 2.5rem 0 2rem;
}
@media (min-width: 640px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding: 3rem 0 2rem; } }
.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.65; }
.footer-links h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.75rem;
}
.footer-links a {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  min-height: 32px;
  transition: color .15s;
}
.footer-links a:hover { color: var(--white); }
.footer-base {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ── Mobile nav ──────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: -0.75rem;
    right: -0.75rem;
    background: var(--white);
    border-top: 1px solid var(--pebble);
    border-bottom: 2px solid var(--pebble);
    padding: 0.5rem 1rem 0.75rem;
    z-index: 199;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    width: 100%;
    padding: 0 0.5rem;
    min-height: 42px;
    font-size: 1rem;
    border-bottom: 1px solid var(--pebble);
    border-radius: 0;
    color: var(--ink);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav .btn--primary {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
    border-radius: var(--r);
    color: var(--white) !important;
  }
  .site-nav .btn--outline {
    width: 100%;
    justify-content: center;
    border-radius: var(--r);
  }
}

/* ── Focus styles ────────────────────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; border-radius: 4px; }

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
@media (min-width: 480px) {  }
@media (min-width: 768px) {  }
@media (min-width: 1024px) {  }
@media (min-width: 480px) {  }
@media (min-width: 768px) {  }
@media (min-width: 1024px) {  }

/* ── Logo sizing ─────────────────────────────────────────────────────────────── */
.site-logo img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (min-width: 400px)  { .site-logo img { height: 38px; } }
@media (min-width: 768px)  { .site-logo img { height: 60px; } }
@media (min-width: 1024px) { .site-logo img { height: 75px; } }

/* ── Header height ───────────────────────────────────────────────────────────── */
@media (min-width: 400px)  { .header-inner { height: 48px; } }
@media (min-width: 768px)  { .header-inner { height: 70px; } }
@media (min-width: 1024px) { .header-inner { height: 85px; } }

/* ── Admin ───────────────────────────────────────────────────────────────────── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 480px) { .admin-stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .admin-stats { grid-template-columns: repeat(6, 1fr); } }
.admin-stat {
  background: var(--white);
  border: 1px solid var(--pebble);
  border-radius: var(--r-lg);
  padding: 1.1rem 1rem;
  text-align: center;
}
.admin-stat--warn { border-color: #ffe9a0; background: #fff8e8; }
.admin-stat-n { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--forest); line-height: 1; }
.admin-stat--warn .admin-stat-n { color: #7a5800; }
.admin-stat-l { font-size: 0.75rem; font-weight: 600; color: var(--warm); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 900px) { .admin-grid { grid-template-columns: 1fr 1fr; } }

.admin-panel {
  background: var(--white);
  border: 1px solid var(--pebble);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--pebble);
  gap: 1rem;
}
.admin-panel-header h2 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.01em;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--warm);
  padding: 0.65rem 1rem;
  background: var(--stone);
  border-bottom: 1px solid var(--pebble);
  white-space: nowrap;
}
.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--pebble);
  vertical-align: middle;
  color: var(--ink);
}
.admin-table td small { font-size: 0.78rem; color: var(--warm); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--stone); }
.admin-table a { color: var(--forest); font-weight: 500; }
.admin-table a:hover { color: var(--sage); }

.admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

/* Status pills */
.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}
.status-active    { background: var(--success-lt); color: var(--success); }
.status-pending   { background: #fff8e8;            color: #7a5800; }
.status-suspended { background: var(--danger-lt);   color: var(--danger); }
.status-published { background: var(--success-lt);  color: var(--success); }
.status-draft     { background: var(--stone);        color: var(--warm); border: 1px solid var(--pebble); }
.status-cancelled { background: var(--danger-lt);    color: var(--danger); }
.status-approved  { background: var(--success-lt);  color: var(--success); }
.status-declined  { background: var(--danger-lt);   color: var(--danger); }

/* ── Profile page ────────────────────────────────────────────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .profile-grid { grid-template-columns: 320px 1fr; }
}
.profile-card {
  background: var(--forest);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.75);
}
.profile-avatar {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 1rem;
}
.profile-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.profile-meta {
  font-size: 0.875rem;
  line-height: 1.8;
}

/* ── Profile page ────────────────────────────────────────────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 900px) { .profile-grid { grid-template-columns: 300px 1fr; } }

.profile-card {
  background: var(--forest);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.75);
}
.profile-avatar-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-avatar-initials {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
}
.profile-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.profile-since {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.profile-detail {
  font-size: 0.875rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.7);
}

/* Avatar upload area */
.avatar-upload-area {
  border: 2px dashed var(--clay);
  border-radius: var(--r-lg);
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: var(--stone);
}
.avatar-upload-area:hover,
.avatar-upload-area.dragover {
  border-color: var(--sage);
  background: var(--mist);
}
.avatar-upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.avatar-upload-text {
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.avatar-upload-hint {
  font-size: 0.78rem;
  color: var(--warm);
}
.avatar-upload-filename {
  font-size: 0.82rem;
  color: var(--sage);
  margin-top: 0.5rem;
  font-weight: 500;
  word-break: break-all;
}

/* ── Trip view page ───────────────────────────────────────────────────────────── */
.trip-hero {
  background: var(--forest);
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.trip-hero--medium { background: var(--pine); }
.trip-hero--hard   { background: #2a1f1a; }
.trip-hero-state {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
}
.trip-hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.trip-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.trip-hero-chip {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
}
.trip-hero-chip--spots { background: rgba(106,180,122,0.25); color: #a8eab8; }
.trip-hero-chip--full  { background: rgba(224,92,26,0.25);   color: #ffb896; }
.trip-join-box { min-width: 200px; }

.join-status {
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r);
}
.join-status--approved { background: rgba(106,180,122,0.2); color: #a8eab8; }
.join-status--pending  { background: rgba(239,159,39,0.2);  color: #fbd98a; }
.join-status--declined { background: rgba(224,92,26,0.2);   color: #ffb896; }
.join-status--full     { background: rgba(255,255,255,0.08);color: rgba(255,255,255,0.5); }

/* Photo gallery */
.trip-gallery {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 200px;
  gap: 3px;
  background: var(--ink);
  max-height: 200px;
  overflow: hidden;
}
.trip-gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
}
.trip-gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
}
@media (min-width: 600px) {
  .trip-gallery {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 140px 140px;
    max-height: 283px;
  }
  .trip-gallery-item--main {
    grid-row: span 2;
  }
}
@media (min-width: 768px) {
  .trip-gallery {
    grid-template-rows: 160px 160px;
    max-height: 323px;
  }
}

/* Trip body layout */
.trip-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) { .trip-body-grid { grid-template-columns: 1fr 300px; } }

.trip-section { margin-bottom: 2rem; }
.trip-section-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--pebble);
}
.trip-prose {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink);
}

/* Participants */
.participant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.participant-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--pebble);
  border-radius: var(--r-lg);
  padding: 0.75rem 1rem;
}
.participant-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--forest);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.participant-avatar img { width:100%; height:100%; object-fit:cover; }
.participant-name { font-weight: 600; font-size: 0.875rem; color: var(--ink); }
.participant-vehicle { font-size: 0.78rem; color: var(--warm); }
.participant-location { font-size: 0.75rem; color: var(--warm); }

/* Sidebar */
.trip-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--pebble);
  border-radius: var(--r-lg);
  padding: 1.25rem;
}
.sidebar-card--cta { background: var(--mist); border-color: var(--fern); }
.sidebar-card-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.sidebar-table { width: 100%; font-size: 0.85rem; border-collapse: collapse; }
.sidebar-table td { padding: 0.4rem 0; border-bottom: 1px solid var(--pebble); vertical-align: middle; }
.sidebar-table td:first-child { color: var(--warm); width: 45%; }
.sidebar-table tr:last-child td { border-bottom: none; }

.leader-profile { display: flex; align-items: center; gap: 0.875rem; }
.leader-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--forest);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.leader-avatar img { width:100%; height:100%; object-fit:cover; }
.leader-name { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.leader-detail { font-size: 0.8rem; color: var(--warm); line-height: 1.7; }

/* Photo upload previews */
.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.photo-preview-thumb {
  aspect-ratio: 1;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--pebble);
}
.photo-preview-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.photo-delete-btn {
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.photo-delete-btn:hover { background: var(--danger); }

/* ── Waitlist ─────────────────────────────────────────────────────────────────── */
.join-status--waitlist {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r);
  background: rgba(186,117,23,0.2);
  color: #fbd98a;
}
.status-waitlist { background: #fff8e8; color: #7a5800; }

/* ── Leader dashboard ────────────────────────────────────────────────────────── */
.leader-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff8e8;
  border: 1px solid #ffe9a0;
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.leader-alert-icon { font-size: 1.5rem; flex-shrink: 0; }

.pending-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  padding: 0 5px;
  margin-left: 6px;
  vertical-align: middle;
}

.booking-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--pebble);
  flex-wrap: wrap;
}
.booking-row:last-child { border-bottom: none; }
.booking-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--forest);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.booking-avatar img { width:100%; height:100%; object-fit:cover; }
.booking-info { flex: 1; min-width: 180px; }
.booking-name { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.booking-detail { font-size: 0.78rem; color: var(--warm); margin-top: 2px; }
.booking-trip { font-size: 0.78rem; color: var(--warm); margin-top: 4px; }
.booking-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }

/* ── Trip messages ───────────────────────────────────────────────────────────── */
.message-thread {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.message-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.message-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--forest);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.message-avatar img { width:100%; height:100%; object-fit:cover; }
.message-bubble-wrap { flex: 1; min-width: 0; }
.message-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}
.message-author {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
}
.message-role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--mist);
  color: var(--pine);
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
}
.message-time {
  font-size: 0.75rem;
  color: var(--clay);
}
.message-delete {
  background: none;
  border: none;
  color: var(--clay);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  margin-left: auto;
  transition: color .15s;
}
.message-delete:hover { color: var(--danger); }
.message-bubble {
  background: var(--white);
  border: 1px solid var(--pebble);
  border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
  padding: 0.65rem 0.875rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
  word-break: break-word;
}
.message-row--mine .message-bubble {
  background: var(--mist);
  border-color: #c5dfc9;
  border-radius: var(--r-lg) 0 var(--r-lg) var(--r-lg);
}
.message-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.message-form-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--forest);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  margin-top: 2px;
}
.message-form-avatar img { width:100%; height:100%; object-fit:cover; }
.message-textarea {
  min-height: 80px;
  resize: vertical;
  padding: 0.6rem 0.875rem;
}
.message-login-prompt {
  margin-top: 1rem;
  padding: 0.875rem;
  background: var(--stone);
  border: 1px solid var(--pebble);
  border-radius: var(--r);
  font-size: 0.875rem;
  color: var(--warm);
  text-align: center;
}

/* ── Ratings ─────────────────────────────────────────────────────────────────── */
.trip-hero-chip--rating { background: rgba(232,130,12,0.25); color: #fbd98a; }

.star-display { display: inline-flex; gap: 1px; }
.star-display--sm { font-size: 0.85rem; }
.star-on  { color: #e8820c; }
.star-off { color: rgba(0,0,0,0.15); }

.rating-summary-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.75rem;
  vertical-align: middle;
}
.rating-avg   { font-size: 1rem; font-weight: 700; color: var(--forest); font-family: var(--font-head); }
.rating-count { font-size: 0.82rem; color: var(--warm); font-family: var(--font-body); font-weight: 400; }

.rating-notice {
  background: var(--stone);
  border: 1px solid var(--pebble);
  border-radius: var(--r);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: var(--warm);
  margin-bottom: 1rem;
}

.rating-form-card {
  background: var(--white);
  border: 1px solid var(--pebble);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.rating-form-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.875rem;
}

.star-picker {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.3rem;
}
.star-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--clay);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color .1s, transform .1s;
}
.star-btn:hover,
.star-btn.active { color: #e8820c; transform: scale(1.15); }
.star-picker-label {
  font-size: 0.82rem;
  color: var(--warm);
  min-height: 1.2em;
  margin-bottom: 0.25rem;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1rem;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--pebble);
  border-radius: var(--r-lg);
  padding: 1rem 1.1rem;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--forest);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.review-avatar img { width:100%; height:100%; object-fit:cover; }
.review-author { font-weight: 600; font-size: 0.875rem; color: var(--ink); }
.review-date   { font-size: 0.75rem; color: var(--clay); }
.review-stars  { display: flex; gap: 1px; font-size: 1rem; margin-left: auto; }
.review-body   { font-size: 0.875rem; color: var(--ink); line-height: 1.6; padding-top: 0.25rem; }

/* ── Avatar size constraints ─────────────────────────────────────────────────── */
.leader-avatar,
.participant-avatar,
.message-avatar,
.message-form-avatar,
.booking-avatar,
.review-avatar {
  flex-shrink: 0;
  max-width: 48px;
  max-height: 48px;
}
.leader-avatar { width: 48px; height: 48px; }
.participant-avatar { width: 40px; height: 40px; }
.message-avatar,
.message-form-avatar { width: 38px; height: 38px; }
.review-avatar,
.booking-avatar { width: 36px; height: 36px; }

/* Ensure images inside avatars never overflow */
.leader-avatar img,
.participant-avatar img,
.message-avatar img,
.message-form-avatar img,
.booking-avatar img,
.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
}

/* ── Leader rating ───────────────────────────────────────────────────────────── */
.leader-rating {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--pebble);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.leader-rating--none {
  font-size: 0.75rem;
  color: var(--clay);
  font-style: italic;
}
.leader-rating-score {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink);
}
.leader-rating-meta {
  font-size: 0.75rem;
  color: var(--warm);
  width: 100%;
}
.trip-leader-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 2px;
}

/* ── Trip reports ────────────────────────────────────────────────────────────── */
.reports-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 560px)  { .reports-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .reports-grid { grid-template-columns: repeat(3, 1fr); } }

.report-card {
  background: var(--white);
  border: 1px solid var(--pebble);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all .18s;
}
@media (hover: hover) {
  .report-card:hover { border-color: var(--clay); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
}
.report-card-image {
  height: 180px;
  overflow: hidden;
  background: var(--earth);
  position: relative;
}
.report-card-image img { width:100%; height:100%; object-fit:cover; display:block; }
.report-card-noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255,255,255,0.35);
  font-size: 0.875rem;
}
.report-card-diff { position: absolute; top: 0.75rem; left: 0.875rem; }
.report-card-body { padding: 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.report-card-state { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm); }
.report-card-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--forest); line-height: 1.25; letter-spacing: -0.01em; }
.report-card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.78rem; color: var(--warm); margin-top: 0.25rem; }
.report-card-leader { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--warm); margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--pebble); }
.report-leader-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--mist); color: var(--forest); font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.report-leader-avatar img { width:100%; height:100%; object-fit:cover; }

/* Report view */
.report-body-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .report-body-grid { grid-template-columns: 1fr 280px; } }

.report-entries { display: flex; flex-direction: column; gap: 0; }
.report-entry {
  padding: 2rem 0;
  border-bottom: 1px solid var(--pebble);
}
.report-entry:last-child { border-bottom: none; }
.report-entry-header { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.report-entry-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.report-author { display: flex; align-items: center; gap: 0.6rem; }
.report-author-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--mist); color: var(--forest); font-weight: 800; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.report-author-avatar img { width:100%; height:100%; object-fit:cover; }
.report-day-badge {
  display: inline-flex;
  align-items: center;
  background: var(--forest);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
  white-space: nowrap;
}
.report-entry-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--forest); letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.report-prose { font-size: 0.95rem; line-height: 1.8; color: var(--ink); }

.report-callout {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r);
  border-left: 3px solid;
}
.report-callout--highlight { background: #f0faf2; border-color: var(--sage); }
.report-callout--challenge { background: #fff8e8; border-color: #e8820c; }
.report-callout--tip       { background: #eef4ff; border-color: #4a7fd4; }
.report-callout-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warm); margin-bottom: 0.5rem; }

/* Report photo grid */
.report-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  margin-top: 1.25rem;
}
.report-photo-thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  aspect-ratio: 4/3;
  display: block;
  background: var(--pebble);
  cursor: pointer;
}
.report-photo-thumb--main {
  grid-column: span 2;
  grid-row: span 2;
}
.report-photo-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .2s; }
.report-photo-thumb:hover img { transform: scale(1.04); }
.report-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.72rem;
  padding: 0.75rem 0.5rem 0.4rem;
}
.report-photo-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stone);
  border: 1px solid var(--pebble);
  border-radius: var(--r);
  aspect-ratio: 4/3;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
}

/* Full gallery page */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  aspect-ratio: 4/3;
  background: var(--pebble);
  cursor: pointer;
}
.gallery-item img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .2s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.75rem;
  padding: 1rem 0.6rem 0.5rem;
}

/* ── Member directory ────────────────────────────────────────────────────────── */
.directory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 560px)  { .directory-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .directory-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .directory-grid { grid-template-columns: repeat(4, 1fr); } }

.member-card {
  background: var(--white);
  border: 1px solid var(--pebble);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .18s;
}
@media (hover: hover) {
  .member-card:hover { border-color: var(--clay); box-shadow: var(--shadow); transform: translateY(-2px); }
}
.member-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--forest);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 1.25rem auto 0.75rem;
  flex-shrink: 0;
  border: 3px solid var(--pebble);
}
.member-card-avatar img { width:100%; height:100%; object-fit:cover; }
.member-card-info { padding: 0 1rem; text-align: center; flex: 1; }
.member-card-name { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--forest); letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.member-card-role { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.member-card-detail { font-size: 0.8rem; color: var(--warm); line-height: 1.8; }
.member-card-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 0.875rem;
  border-top: 1px solid var(--pebble);
}
.member-stat {
  flex: 1;
  text-align: center;
  padding: 0.6rem 0.5rem;
  border-right: 1px solid var(--pebble);
}
.member-stat:last-child { border-right: none; }
.member-stat-n { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: var(--forest); line-height: 1; }
.member-stat-l { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warm); margin-top: 2px; }

/* ── Trip archive ────────────────────────────────────────────────────────────── */
.archive-list { display: flex; flex-direction: column; gap: 1.25rem; }

.archive-card {
  background: var(--white);
  border: 1px solid var(--pebble);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transition: all .18s;
}
@media (min-width: 640px) {
  .archive-card { grid-template-columns: 200px 1fr; }
}
@media (hover: hover) {
  .archive-card:hover { border-color: var(--clay); box-shadow: var(--shadow); }
}
.archive-card-image {
  height: 160px;
  overflow: hidden;
  background: var(--earth);
  flex-shrink: 0;
}
@media (min-width: 640px) { .archive-card-image { height: auto; min-height: 140px; } }
.archive-card-image img { width:100%; height:100%; object-fit:cover; display:block; }
.archive-card-noimage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stone);
}
.archive-card-body { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; justify-content: space-between; gap: 0.75rem; }
.archive-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.archive-card-state { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--warm); margin-bottom: 0.25rem; }
.archive-card-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: var(--forest); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.4rem; }
.archive-card-title a { color: inherit; }
.archive-card-title a:hover { color: var(--sage); }
.archive-card-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.82rem; color: var(--warm); }
.archive-card-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; padding-top: 0.5rem; border-top: 1px solid var(--pebble); }
.archive-leader { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.archive-leader-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--forest);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.archive-leader-avatar img { width:100%; height:100%; object-fit:cover; }

/* ── State map ───────────────────────────────────────────────────────────────── */
.map-section {
  background: var(--white);
  border-bottom: 1px solid var(--pebble);
  padding: 2rem 0;
}
.map-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.aus-map-wrap { text-align: center; display: flex; justify-content: center; }

.map-state {
  cursor: pointer;
}
.map-state path {
  fill: #c8d4cc;
  stroke: #fff;
  stroke-width: 8;
  stroke-linejoin: round;
  transition: fill .2s;
}
.map-state:hover path,
.map-state.active path {
  fill: var(--forest);
}
.map-label {
  font-family: var(--font-body);
  font-size: 52px !important;
  font-weight: 700;
  fill: var(--ink);
  pointer-events: none;
  transition: fill .2s;
}
.map-count {
  font-family: var(--font-body);
  font-size: 36px !important;
  fill: var(--warm);
  pointer-events: none;
  transition: fill .2s;
}
.map-state:hover .map-label,
.map-state:hover .map-count,
.map-state.active .map-label,
.map-state.active .map-count {
  fill: var(--white);
}

/* ── Featured trips ──────────────────────────────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 0;
}
@media (min-width: 640px)  { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .featured-grid { grid-template-columns: repeat(3, 1fr); } }

.featured-card {
  background: var(--white);
  border: 2px solid var(--amber);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(232,130,12,0.15);
  transition: all .18s;
}
@media (hover: hover) {
  .featured-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,130,12,0.2); }
}

/* ── Trip photo thumbnail grid ───────────────────────────────────────────────── */
.trip-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
}
@media (min-width: 600px) {
  .trip-thumb-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
.trip-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--r);
  cursor: pointer;
  background: var(--pebble);
}
.trip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}
.trip-thumb:hover img { transform: scale(1.06); }
.trip-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: all .2s;
}
.trip-thumb:hover .trip-thumb-overlay {
  background: rgba(0,0,0,0.35);
  opacity: 1;
}

/* ── Moderation flag button ──────────────────────────────────────────────────── */
.flag-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.72rem;
  color: var(--clay);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color .15s, background .15s;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.flag-btn:hover {
  color: #e05c1a;
  background: #fff3ed;
}

/* ── Destinations, Routes & Guides ──────────────────────────────────────────── */
.dest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 560px)  { .dest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .dest-grid { grid-template-columns: repeat(3, 1fr); } }

.dest-card {
  background: var(--white);
  border: 1px solid var(--pebble);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all .18s;
}
@media (hover: hover) {
  .dest-card:hover { border-color: var(--clay); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
}
.dest-card-image {
  height: 200px;
  overflow: hidden;
  background: var(--earth);
  position: relative;
  flex-shrink: 0;
}
.dest-card-image img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s; }
.dest-card:hover .dest-card-image img { transform: scale(1.04); }
.dest-card-noimage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: var(--mist);
}
.dest-card-featured {
  position: absolute;
  top: 0.75rem;
  left: 0.875rem;
  background: var(--amber);
  color: #7a5800;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}
.dest-card-state {
  position: absolute;
  top: 0.75rem;
  right: 0.875rem;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  letter-spacing: 0.06em;
}
.dest-card-body { padding: 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.dest-card-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--forest); line-height: 1.25; letter-spacing: -0.01em; }
.dest-card-excerpt { font-size: 0.85rem; color: var(--warm); line-height: 1.6; flex: 1; }
.dest-card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.78rem; color: var(--clay); margin-top: auto; padding-top: 0.5rem; border-top: 1px solid var(--pebble); }
.dest-card-type { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* Type colour coding */
.dest-type--destination { color: var(--forest); }
.dest-type--route       { color: #7a5800; }
.dest-type--guide       { color: #1d4ed8; }

/* Destination article hero */
.dest-hero {
  min-height: 380px;
  background: var(--earth);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.dest-hero-overlay {
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  padding: 3rem 0 2rem;
}
.dest-hero-type {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.5rem;
}
.dest-hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.dest-hero-excerpt {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  line-height: 1.6;
}

/* Destination body layout */
.dest-body-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .dest-body-grid { grid-template-columns: 1fr 280px; } }

.dest-main { min-width: 0; }
.dest-prose {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  max-width: 72ch;
}
.dest-prose p { margin-bottom: 1.25em; }

/* Related trip link */
.dest-trip-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--stone);
  border: 1px solid var(--pebble);
  border-radius: var(--r);
  text-decoration: none;
  transition: border-color .15s;
}
.dest-trip-link:hover { border-color: var(--sage); }

/* ── Destination rich text prose ─────────────────────────────────────────────── */
.dest-prose h2 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--forest); margin: 1.75rem 0 0.75rem; letter-spacing: -0.02em; }
.dest-prose h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--forest); margin: 1.5rem 0 0.5rem; }
.dest-prose h4 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--ink); margin: 1.25rem 0 0.4rem; }
.dest-prose p  { margin-bottom: 1.25em; }
.dest-prose ul, .dest-prose ol { margin: 0.75em 0 1.25em 1.5em; }
.dest-prose li { margin-bottom: 0.4em; line-height: 1.7; }
.dest-prose blockquote { border-left: 4px solid var(--sage); padding: 0.75em 1em; background: var(--mist); border-radius: 0 var(--r) var(--r) 0; margin: 1.5em 0; font-style: italic; color: var(--pine); }
.dest-prose img { max-width: 100%; height: auto; border-radius: var(--r); margin: 1rem 0; display: block; }
.dest-prose a { color: var(--sage); text-decoration: underline; }
.dest-prose strong { font-weight: 700; color: var(--ink); }
.dest-prose table { width: 100%; border-collapse: collapse; margin: 1.25em 0; font-size: 0.9rem; }
.dest-prose th { background: var(--mist); font-weight: 700; text-align: left; padding: 0.6rem 0.875rem; border: 1px solid var(--pebble); }
.dest-prose td { padding: 0.6rem 0.875rem; border: 1px solid var(--pebble); }

/* ── Terms page ──────────────────────────────────────────────────────────────── */
.terms-body { max-width: 72ch; }
.terms-body h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--forest);
  margin: 2rem 0 0.5rem;
  letter-spacing: -0.01em;
}
.terms-body p  { font-size: 0.95rem; line-height: 1.8; color: var(--ink); margin-bottom: 0.875em; }
.terms-body ul { margin: 0.5em 0 1em 1.5em; }
.terms-body li { font-size: 0.95rem; line-height: 1.8; color: var(--ink); margin-bottom: 0.35em; }