*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark: #1b5e20;
  --green: #2e7d32;
  --amber: #f57f17;
  --bg: #f0f4f0;
  --card: #fff;
  --text: #212121;
  --muted: #5f6b5f;
  --border: #e0e0e0;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
}

html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--green-dark); }

.intro { padding: 1.15rem 1.25rem 0.4rem; max-width: 860px; margin: 0 auto; }
.intro h1 {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--green-dark);
  letter-spacing: -0.3px;
  line-height: 1.15;
}
.intro p { color: var(--muted); margin-top: .4rem; max-width: 62ch; line-height: 1.55; }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.15rem;
  margin: .85rem auto;
  max-width: 860px;
}

label.field { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .35rem; }
select, button, input {
  font: inherit;
  font-size: 16px;
}
select, input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: .55rem .7rem;
  border: 1px solid #cfd8d0;
  border-radius: 8px;
  background: #fff;
}
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 .2rem; }
.chip {
  min-height: 40px;
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid #c8dccb;
  background: #fff;
  color: var(--green-dark);
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
}
.chip.on { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }

.open-list { list-style: none; }
.open-list li { padding: .35rem 0; border-bottom: 1px solid #eef2ef; font-size: .95rem; line-height: 1.45; }
.open-list li:last-child { border-bottom: 0; }

.site-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: .7rem; }
.site-head h2 { font-size: 1.15rem; color: var(--green-dark); }
#site-count { font-size: .8rem; color: var(--muted); }

.site-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .9rem 1rem;
  background: #fafcfa;
  margin-bottom: .7rem;
}
.site-top { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .25rem; }
.kind {
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 999px; padding: .15rem .5rem;
  background: #eef2ef; color: #3d4a40;
}
.kind.warn { background: #fff3e0; color: #e65100; }
.dist { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--green); }
.site-card h3 { font-size: 1.12rem; margin: .15rem 0 .25rem; }
.addr, .hours, .note, .notes { font-size: .9rem; line-height: 1.5; color: #444; margin: .25rem 0; }

.site-actions, .row-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .45rem .85rem;
  background: var(--green); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .9rem; border-radius: 8px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--green-dark); }
.btn.ghost { background: #fff; color: var(--green-dark); border: 1px solid #c8dccb; }
.btn.ghost:hover { background: #eef6f0; }

#gps-status { font-size: .8rem; color: var(--muted); margin-top: .45rem; }

#map {
  height: 300px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: .6rem;
}

.rules li { margin: .4rem 0 .4rem 1.1rem; line-height: 1.5; font-size: .93rem; }
.panel h2 { font-size: 1.12rem; color: var(--green-dark); margin-bottom: .5rem; }
.fine { font-size: .8rem; color: var(--muted); margin-top: .6rem; line-height: 1.5; }

footer {
  text-align: center;
  padding: 1.6rem 1rem 2.4rem;
  color: #5a6a62;
  font-size: .85rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: center; margin-bottom: .7rem; }
.footer-links a { color: var(--green-dark); }

@media (max-width: 700px) {
  .intro h1 { font-size: 1.35rem; }
  #map { height: 240px; }
}
