/* camp-page.css — public camp pages (/camps/<slug>, rendered by seo_pages.py).
   Borrows the main site's look from public.css: tent-photo header, green and
   orange palette, and the same theme-pill colours as the camp cards. */

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f7f5;
  color: #2d3a2d;
  line-height: 1.6;
}
a { color: #2e7d32; }

/* ── Header ── */
.hero {
  /* --hero-img lets a themed page swap the photo (see THEME_PHOTOS in
     seo_pages.py); everything else keeps the tent. The gradient over it is
     what keeps white text readable on any photo. */
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.5) 55%, rgba(0,0,0,0.68) 100%),
    var(--hero-img, url('/og-image.jpg'));
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #1b5e20;
  color: #fff;
  padding: 16px 24px 96px;
}
.hero-inner { max-width: 1060px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 36px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.3px;
}
.brand img {
  width: 34px; height: 34px; background: #fff; border-radius: 50%;
  border: 2px solid #000; padding: 2px; object-fit: contain;
}
.topbar-btn {
  color: #fff; text-decoration: none; font-size: 0.85rem; font-weight: 600; white-space: nowrap;
  padding: 7px 14px; border-radius: 20px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.45);
}
.topbar-btn:hover { background: rgba(255,255,255,0.28); }

.crumbs { font-size: 0.82rem; color: rgba(255,255,255,0.72); margin-bottom: 10px; }
.crumbs a { color: rgba(255,255,255,0.9); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.title-row { display: flex; align-items: center; gap: 14px; }
.camp-logo {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; background: #fff;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.camp-logo img { width: 32px; height: 32px; }
.hero h1 {
  margin: 0; font-size: 2.3rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.5px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.summary { margin: 10px 0 14px; font-size: 1.05rem; color: rgba(255,255,255,0.92); max-width: 640px; }
.hero .pills { gap: 6px; }

/* ── Pills (same colours as the camp cards in the app) ── */
.pills { display: flex; flex-wrap: wrap; gap: 4px; }
.pill {
  font-size: 0.74rem; font-weight: 700; padding: 3px 10px; border-radius: 12px;
  text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap;
}
.pill-sports    { background: #fff3e0; color: #bf360c; border: 1px solid #ffcc80; }
.pill-arts      { background: #fce4ec; color: #880e4f; border: 1px solid #f48fb1; }
.pill-stem      { background: #e8eaf6; color: #283593; border: 1px solid #9fa8da; }
.pill-nature    { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.pill-other     { background: #f5f5f5; color: #555;    border: 1px solid #e0e0e0; }
.pill-overnight { background: #4527a0; color: #fff;    border: 1px solid #4527a0; }
.pill-day       { background: #f5f5f5; color: #555;    border: 1px solid #e0e0e0; }
.hero .pill-day { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.45); }

/* ── Layout ── */
.layout {
  max-width: 1060px; margin: -64px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start;
}
.layout-single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.content { grid-column: 1; grid-row: 1; padding-top: 64px; min-width: 0; }
.layout-single .content { padding-top: 0; }
.glance { grid-column: 2; grid-row: 1; position: sticky; top: 16px; }

/* ── At-a-glance card ── */
.glance {
  background: #fff; border-radius: 16px; padding: 20px;
  box-shadow: 0 10px 30px rgba(27,94,32,0.14), 0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid #e8f0e8;
}
.stats { display: grid; gap: 8px; margin-bottom: 14px; }
.stats-1 { grid-template-columns: 1fr; }
.stats-2 { grid-template-columns: 1fr 1fr; }
.stats-3 { grid-template-columns: 1fr 1fr 1fr; }
.stat {
  background: #f1f8f1; border-radius: 12px; padding: 10px 8px; text-align: center;
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
}
.stat-label { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #6b7d6b; }
.stat-value { font-size: 1.3rem; font-weight: 800; color: #1b5e20; line-height: 1.25; overflow-wrap: anywhere; }
.stat-value-text { font-size: 0.88rem; font-weight: 700; }
.stat-small { display: block; font-size: 0.72rem; font-weight: 600; color: #4f6b4f; white-space: nowrap; }
.stars { color: #f57f17; font-size: 1rem; margin-left: 1px; }

.season { margin: 0 0 14px; font-size: 0.82rem; padding: 8px 12px; border-radius: 10px; }
.season-ok   { background: #e8f5e9; color: #1b5e20; font-weight: 700; }
.season-wait { background: #fff8e1; color: #6d4c00; border: 1px solid #ffe082; }

.cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #f57f17; color: #fff; text-decoration: none; font-weight: 800; font-size: 0.95rem;
  line-height: 1.3; text-align: center; padding: 13px 18px; border-radius: 12px;
  box-shadow: 0 3px 10px rgba(245,127,23,0.35);
  transition: background 0.15s, transform 0.15s;
}
.cta:hover { background: #e65100; transform: translateY(-1px); }
.cta-inline { display: inline-flex; }

.inside {
  list-style: none; margin: 12px 0 4px; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px;
}
.inside li { font-size: 0.78rem; color: #6b7d6b; padding-left: 18px; position: relative; }
.inside li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 11px; height: 11px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9.5' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9.5' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rows { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid #edf2ed; }
.rows li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; padding: 5px 0; overflow-wrap: anywhere; }
.rows a { text-decoration: none; font-weight: 600; }
.rows a:hover { text-decoration: underline; }
.row-icon { flex: 0 0 18px; text-align: center; }
.checked { margin: 12px 0 0; font-size: 0.74rem; color: #8a9a8a; }

/* ── Main column ── */
.panel {
  background: #fff; border-radius: 14px; border: 1px solid #e8f0e8;
  padding: 22px 24px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.panel h2, .section-title { margin: 0 0 10px; font-size: 1.15rem; color: #1b5e20; }
.panel p { margin: 0 0 10px; color: #3f4f3f; font-size: 1rem; }
.panel p:last-child { margin-bottom: 0; }
.locations { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.locations li { font-size: 0.9rem; color: #3f4f3f; padding: 3px 0; break-inside: avoid; }

.section-title { margin: 30px 0 12px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mini-card {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid #e8f0e8; border-radius: 10px; padding: 13px 15px;
  text-decoration: none; color: inherit; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.15s;
}
.mini-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.1); transform: translateY(-2px); }
.mini-name { font-weight: 700; color: #1b5e20; font-size: 0.95rem; line-height: 1.3; }
.mini-meta { font-size: 0.8rem; color: #6b7d6b; }

.band {
  margin: 32px 0 0; padding: 26px 24px; border-radius: 16px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
}
.band h2 { margin: 0 0 6px; font-size: 1.3rem; }
.band p { margin: 0 auto 16px; max-width: 460px; color: rgba(255,255,255,0.88); }

/* ── Footer ── */
.site-footer { max-width: 1060px; margin: 48px auto 0; padding: 22px 24px 40px; text-align: center; border-top: 1px solid #e3ebe3; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 0.85rem; }
.site-footer nav a { color: #5b6e5b; text-decoration: none; }
.site-footer nav a:hover { color: #1b5e20; text-decoration: underline; }
.site-footer p { font-size: 0.75rem; color: #9aa89a; margin: 12px 0 0; }

/* ── Phone / narrow ── */
@media (max-width: 860px) {
  .hero { padding: 12px 16px 76px; }
  .topbar { margin-bottom: 24px; }
  .brand { font-size: 1.1rem; }
  .brand img { width: 30px; height: 30px; }
  .topbar-btn { font-size: 0.76rem; padding: 6px 11px; }
  .hero h1 { font-size: 1.75rem; }
  .camp-logo { width: 44px; height: 44px; border-radius: 10px; }
  .camp-logo img { width: 26px; height: 26px; }
  .summary { font-size: 0.95rem; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: -52px; padding: 0 16px; }
  .glance { grid-column: 1; grid-row: 1; position: static; padding: 16px; }
  .content { grid-column: 1; grid-row: 2; padding-top: 20px; }
  .panel { padding: 18px; }
  .locations { columns: 1; }
  .band { padding: 22px 18px; }
}
@media (max-width: 380px) {
  .topbar-btn { display: none; }
  .stat-value { font-size: 1.1rem; }
}

/* ── Line icons (same set as public.js) ─────────────────────────────────── */
.ic {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  vertical-align: -0.2em;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic-filled { fill: currentColor; }
.ic-xl { width: 56px; height: 56px; stroke-width: 1.6; }
