/* Conservation campgrounds near Toronto — plain, fast, mobile-first */
:root {
  --ink: #1c2418;
  --muted: #4a5344;
  --bg: #f4f0e6;
  --paper: #fffcf6;
  --line: #d5ccb8;
  --green: #24553a;
  --green-dark: #163826;
  --link: #1a4d73;
  --accent: #c45c26;
  --warn: #7a3f12;
  --warn-bg: #f8e6d2;
  --group-bg: #e6efe8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(28,36,24,.06), 0 8px 24px rgba(28,36,24,.06);
  --max: 68rem;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Source Serif 4", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 1.05rem;
}
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
header.site {
  background: var(--green-dark);
  color: #f4f0e6;
  padding: 0.85rem 0;
}
header.site a { color: inherit; text-decoration: none; }
header.site .brand {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: .01em;
}
header.site .inner, footer.site .inner {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}
nav.site { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .95rem; }
nav.site a { padding: .25rem 0; border-bottom: 2px solid transparent; }
nav.site a[aria-current="page"], nav.site a:hover { border-bottom-color: #e8d5a3; }
.hero {
  background: linear-gradient(160deg, #163826 0%, #24553a 55%, #2f6a48 100%);
  color: #f7f3ea;
  padding: 3rem 0 3.25rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 .75rem;
  max-width: 18ch;
}
.hero p { margin: 0 0 1rem; max-width: 42rem; font-size: 1.12rem; color: #ece6d8; }
.hero .meta { font-size: .95rem; color: #d9d3c4; }
.btn {
  display: inline-block;
  background: #e8d5a3;
  color: var(--green-dark);
  font-weight: 650;
  text-decoration: none;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  margin-top: .75rem;
  margin-right: .4rem;
}
.btn:hover { background: #f3e6c0; }
.btn.ghost { background: transparent; color: #f7f3ea; outline: 2px solid #e8d5a3; }
main { padding: 2rem 0 3.5rem; }
h2 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.25; margin: 2rem 0 .6rem; }
h3 { font-size: 1.15rem; margin: 1.25rem 0 .4rem; }
.lede { font-size: 1.12rem; max-width: 46rem; }
.card, .note, article.authority {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: 1rem; }
@media (min-width: 700px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: 1fr 1fr 1fr; }
}
ul.plain { margin: .4rem 0 1rem; padding-left: 1.15rem; }
footer.site {
  background: #ece6d6;
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  font-size: .92rem;
  color: var(--muted);
}
.disclaimer { font-size: .95rem; color: var(--muted); max-width: 50rem; }

/* Directory filters */
.filters {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, white);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: .7rem 0 1rem;
  margin: .35rem 0 1.1rem;
}
.filters form {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .75rem;
  align-items: end;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .8rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.filters select {
  font: inherit;
  font-size: .95rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .45rem .55rem;
  min-width: 10rem;
}
.filters button {
  font: inherit;
  font-weight: 650;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: .45rem .8rem;
  cursor: pointer;
}
.filters button:hover { border-color: var(--green); }
.count { color: var(--muted); font-size: .95rem; margin: 0 0 1rem; }

/* Cards */
.results { display: grid; gap: 1rem; }
@media (min-width: 900px) {
  .results { grid-template-columns: 1fr 1fr; }
}
.camp {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.camp h2 { margin: 0; font-size: 1.28rem; }
.camp .sub { color: var(--muted); font-size: .95rem; margin: 0; }
.badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.badge {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .18rem .55rem;
  background: #e7efe8;
  color: var(--green-dark);
}
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.group { background: #d9e4f2; color: #16324d; }
.badge.seasonal { background: #efe4c8; color: #4a3a12; }
.badge.water { background: #d8e8ef; color: #1a3d4a; }
.camp dl { margin: .3rem 0 0; }
.camp dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .55rem;
}
.camp dd { margin: .1rem 0 0; }
.camp .actions { margin-top: auto; padding-top: .7rem; display: flex; flex-wrap: wrap; gap: .6rem .9rem; }
.camp .actions a { font-weight: 650; }
.hidden { display: none !important; }
.empty { padding: 1.5rem; background: var(--paper); border-radius: var(--radius); border: 1px dashed var(--line); }

/* About / booking typography */
article.authority { margin-bottom: 1rem; }
article.authority h2 { margin-top: 0; font-size: 1.3rem; }
.small { font-size: .92rem; color: var(--muted); }

.page-intro { padding-top: 2rem; padding-bottom: .25rem; }

/* Map page */
.map-frame {
  height: min(75vh, 740px);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #d9e4d6;
}
#map { height: 100%; width: 100%; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.1rem;
  margin: 0 0 1rem;
  font-size: .95rem;
}
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i {
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(28,36,24,.25);
}
.legend .open { background: #24553a; }
.legend .group { background: #1a4d73; }
.legend .closed { background: #c45c26; }
.pin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(28,36,24,.45);
}
.pin.open { background: #24553a; }
.pin.group { background: #1a4d73; }
.pin.closed { background: #c45c26; }
.leaflet-popup-content-wrapper { border-radius: 10px; }
.leaflet-popup-content { margin: .85rem 1rem; font-family: var(--sans); color: var(--ink); }
.leaflet-popup-content h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 0 0 .2rem;
  line-height: 1.25;
}
.leaflet-popup-content p { margin: 0 0 .3rem; font-size: .92rem; }
.leaflet-popup-content .meta { color: var(--muted); }
.leaflet-popup-content a { font-weight: 650; }
.leaflet-control-attribution { font-size: 11px; }

/* Guide pages */
.page-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 .4rem;
  line-height: 1.2;
}
.guide { max-width: 46rem; }
.guide-toc {
  list-style: none;
  margin: 1.1rem 0 1.6rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .95rem;
  font-weight: 650;
}
.guide h2 { margin-top: 2.2rem; }
.guide h2:first-of-type { margin-top: 1.4rem; }
.checklist {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem 1.1rem 2rem;
  box-shadow: var(--shadow);
}
.checklist li { margin: .45rem 0; }
.sources { font-size: .95rem; }
.sources li { margin: .35rem 0; }

/* Preparation checklist */
.print-actions { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin: 1rem 0 1.2rem; }
.print-actions button {
  font: inherit;
  font-weight: 650;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: .45rem .85rem;
  cursor: pointer;
}
.print-actions button:hover { border-color: var(--green); }
.print-actions .primary { background: var(--green); color: #f7f3ea; border-color: var(--green-dark); }
.ontario-box {
  background: var(--paper);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem 1.15rem;
  box-shadow: var(--shadow);
  margin: 1.2rem 0 1.6rem;
  max-width: 46rem;
}
.ontario-box h2 { margin-top: 0; }
.chk-list {
  list-style: none;
  margin: .4rem 0 1rem;
  padding: 0;
  max-width: 46rem;
}
.chk-list li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: .55rem .7rem;
  align-items: start;
  margin: .55rem 0;
  break-inside: avoid;
}
.chk-list input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: .28rem 0 0;
  border: 2px solid var(--green-dark);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.chk-list input[type="checkbox"]:checked {
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' d='M3 8.2l3.2 3.2L13 4.2'/%3E%3C/svg%3E") center/12px no-repeat;
}
.chk-list label { cursor: pointer; }
.guide section { max-width: 46rem; }
.affiliate-note {
  font-size: .95rem;
  color: var(--muted);
  max-width: 46rem;
  margin-top: 1.6rem;
}
@media print {
  :root { --bg: #fff; --paper: #fff; --shadow: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  header.site { background: none; color: #000; border-bottom: 1px solid #ccc; padding: .4rem 0; }
  header.site nav, footer.site, .print-actions, .guide-toc { display: none !important; }
  header.site .brand { color: #000; font-size: 1rem; }
  main { padding: .6rem 0 1rem; }
  a { color: #000; text-decoration: none; }
  .ontario-box, article.authority, .card, .note, .checklist { box-shadow: none; }
  .chk-list input[type="checkbox"] {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  h2, h3 { break-after: avoid; }
  .sources a[href]::after { content: " (" attr(href) ")"; font-size: .8em; word-break: break-all; }
}
