/* Open RV Stops — mobile-first, no build step */
:root {
  --ink: #1c1917;
  --muted: #57534e;
  --paper: #f6f1e8;
  --card: #fffdf8;
  --line: #e0d6c8;
  --header: #1f2a24;
  --header-ink: #f6f1e8;
  --dump: #c45c26;
  --dump-dark: #8a3b14;
  --overnight: #2f6f4e;
  --overnight-dark: #1c4a34;
  --warn: #7c4a12;
  --warn-bg: #f8e6c8;
  --focus: #0f6b8a;
  --shadow: 0 1px 3px rgba(28, 25, 23, 0.12);
  --radius: 10px;
  --pad: 1rem;
  --max: 72rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--focus); }
a:hover { text-decoration-thickness: 2px; }

.site-header {
  background: var(--header);
  color: var(--header-ink);
  padding: 0.75rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
}
.site-header a { color: var(--header-ink); }
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.tagline {
  margin: 0;
  color: #c4beb4;
  font-size: 0.8rem;
}
.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}
.site-header nav a { text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] {
  text-decoration: underline;
}

main { flex: 1; }
.site-footer {
  padding: 1.25rem var(--pad) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}
.site-footer p { margin: 0.4rem 0; }

/* Map page */
.map-page { display: flex; flex-direction: column; }
.toolbar {
  padding: 0.75rem var(--pad) 0.5rem;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.toolbar h1 {
  font-size: 1.15rem;
  margin: 0 0 0.2rem;
}
.lede {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.filters {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  -webkit-overflow-scrolling: touch;
}
.filter {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  min-height: 44px;
  cursor: pointer;
}
.filter[aria-pressed="true"] {
  background: var(--header);
  color: var(--header-ink);
  border-color: var(--header);
}
.search-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  align-items: center;
}
.search-row input[type="search"] {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  font: inherit;
  background: #fff;
}
.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.view-toggle button {
  min-height: 44px;
  min-width: 44px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 0 0.7rem;
  font: inherit;
  cursor: pointer;
}
.view-toggle button[aria-pressed="true"] {
  background: var(--header);
  color: var(--header-ink);
}

#map {
  height: 58vh;
  min-height: 16rem;
  width: 100%;
  background: #d7e0d4;
}
#map.hidden, #list.hidden { display: none; }

.list-wrap {
  padding: 0.75rem var(--pad) 1.5rem;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}
.status {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.place-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.place-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.place-card h2 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}
.place-card .meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.badges { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.35rem 0; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.badge-dump { background: #f3d4c4; color: var(--dump-dark); }
.badge-overnight { background: #d4eadc; color: var(--overnight-dark); }
.badge-unverified { background: var(--warn-bg); color: var(--warn); }

.leaflet-popup-content { font-size: 0.9rem; margin: 0.7rem 0.9rem; }
.leaflet-popup-content .popup-name { font-weight: 700; margin: 0 0 0.25rem; }
.leaflet-popup-content a { display: inline-block; margin-top: 0.3rem; min-height: 32px; }

.marker-dot {
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}
.marker-dump { background: var(--dump); }
.marker-overnight { background: var(--overnight); }
.marker-both { background: linear-gradient(135deg, var(--dump) 50%, var(--overnight) 50%); }

/* Location + about pages */
.place, .about {
  padding: 1rem var(--pad) 2rem;
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
}
.crumb { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.5rem; }
.place h1, .about h1 { margin: 0 0 0.4rem; font-size: 1.6rem; }
.place h2, .about h2 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.fine, .unverified { color: var(--muted); font-size: 0.9rem; }
p.unverified { margin: 0.3rem 0 0.6rem; }
.mini-map {
  height: 14rem;
  border-radius: var(--radius);
  margin: 0.8rem 0 1rem;
  border: 1px solid var(--line);
}
.facts {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}
.fact {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { margin: 0; color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.facts dd { margin: 0; }
dd.unverified { color: var(--muted); font-style: italic; }
.directions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.1rem 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 650;
  text-align: center;
  border: 1px solid transparent;
}
.btn-primary { background: var(--header); color: var(--header-ink); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.sourced { background: var(--card); border: 1px solid var(--line); padding: 0.7rem 0.85rem; border-radius: var(--radius); }
.tag-list { margin: 0; padding-left: 1.1rem; }
.tag-list code { font-size: 0.85rem; }
.source-block, .correction {
  margin-top: 1.5rem;
  padding-top: 0.5rem;
}
.about ul { padding-left: 1.15rem; }

@media (min-width: 720px) {
  #map { height: 68vh; }
  .directions { flex-direction: row; }
  .directions .btn { flex: 1; }
  .place-list { grid-template-columns: 1fr 1fr; }
  .fact { grid-template-columns: 14rem 1fr; }
}

.toolbar .status { margin: 0.35rem 0 0.15rem; }

/* Amenity icons on location pages */
.amenity-list {
  list-style: none;
  margin: 0.6rem 0 0.9rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.amenity {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
}
.amenity-icon {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.amenity-icon-rv_ok {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 14h1.1a3.5 3.5 0 0 0 6.8 0h4.2a3.5 3.5 0 0 0 6.8 0H23v-3l-3-5h-6l-2-2H4v10zm14-6h3l2 3h-5V8zM7.5 17A1.5 1.5 0 1 1 9 15.5 1.5 1.5 0 0 1 7.5 17zm11 0A1.5 1.5 0 1 1 20 15.5 1.5 1.5 0 0 1 18.5 17z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 14h1.1a3.5 3.5 0 0 0 6.8 0h4.2a3.5 3.5 0 0 0 6.8 0H23v-3l-3-5h-6l-2-2H4v10zm14-6h3l2 3h-5V8zM7.5 17A1.5 1.5 0 1 1 9 15.5 1.5 1.5 0 0 1 7.5 17zm11 0A1.5 1.5 0 1 1 20 15.5 1.5 1.5 0 0 1 18.5 17z'/></svg>");
}
.amenity-icon-tent_ok {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 3 2 21h5l5-9 5 9h5L12 3z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 3 2 21h5l5-9 5 9h5L12 3z'/></svg>");
}
.amenity-icon-big_rig {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M2 7h11v8H2V7zm11 3h4l3 3v2h-7v-5zM6 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm12 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M2 7h11v8H2V7zm11 3h4l3 3v2h-7v-5zM6 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm12 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/></svg>");
}
.amenity-icon-bathrooms {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM4 10h6v10H8v-4H6v4H4V10zm10 0h6l-1 10h-2v-4h-1v4h-2l0-10z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM4 10h6v10H8v-4H6v4H4V10zm10 0h6l-1 10h-2v-4h-1v4h-2l0-10z'/></svg>");
}
.amenity-icon-showers {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a3 3 0 0 1 3 3v1h4v2h-2.2A7 7 0 0 1 5 13H3a9 9 0 0 0 8 4.97V21h2v-3.03A9 9 0 0 0 21 13h-2a7 7 0 0 1-7-7V5a1 1 0 0 0-1-1H9V2h3z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a3 3 0 0 1 3 3v1h4v2h-2.2A7 7 0 0 1 5 13H3a9 9 0 0 0 8 4.97V21h2v-3.03A9 9 0 0 0 21 13h-2a7 7 0 0 1-7-7V5a1 1 0 0 0-1-1H9V2h3z'/></svg>");
}
.amenity-yes { color: var(--overnight-dark); }
.amenity-no { color: var(--muted); }
.amenity-unknown { color: var(--warn); }
.amenity-unknown .amenity-text { font-style: italic; }

.coming-soon {
  background: var(--warn-bg);
  color: var(--warn);
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  margin: 0 0 0.8rem;
}
.review-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem 1rem;
  display: grid;
  gap: 0.7rem;
  background: var(--card);
}
.review-form legend { font-weight: 650; padding: 0 0.3rem; }
.review-form label, .review-form .field-label { font-size: 0.9rem; font-weight: 600; display: block; }
.review-form select, .review-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font: inherit;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.review-form .stars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: center;
}
.review-form .stars label { font-weight: 500; }
.review-form fieldset:disabled, .review-form[aria-disabled="true"] { opacity: 0.85; }
.filters + .filters { margin-top: 0.35rem; }
