html, body { height: 100%; margin: 0; }
body {
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #f4f4f4;
}

.site-header { background-color: #7ea253; }
.site-header .header-inner {
  width: 100%;
  margin: 0 auto;
  padding: 10px 16px;
  min-height: 64px;
  position: relative;
  display: flex;
  align-items: center;
}
.site-header .brand { display: inline-flex; align-items: center; text-decoration: none; }
.site-header .logo { height: 40px; width: auto; display: block; }
.site-header .header-text {
  position: absolute; left: 50%; transform: translateX(-50%);
  text-align: center; line-height: 1.2;
}
.site-header .site-title {
  color: #fff; font-size: 1.25rem; font-weight: 600;
  letter-spacing: 0.1px; margin: 0 8px 2px;
}
.site-header .site-link a {
  color: #cce8c1; font-size: 0.94rem; font-weight: 500;
  text-decoration: none; opacity: 0.95;
}
.site-header .site-link a:hover { text-decoration: underline; opacity: 1; }

@media (max-width: 720px) {
  .site-header .header-inner {
    flex-direction: column; align-items: center;
    padding: 10px 12px; min-height: unset;
  }
  .site-header .header-text { position: static; transform: none; margin-top: 6px; }
  .site-header .logo { height: 34px; }
  .site-header .site-title { font-size: 1.15rem; }
  .site-header .site-link a { font-size: 0.9rem; }
}

#map { flex: 1; width: 100%; }

.legend {
  position: static;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 12px 18px;
  width: 320px;
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
  margin: 0 0 8px 0;
}
.legend-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.legend-dot {
  flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.4); display: inline-block;
}
@media (max-width: 600px) {
  .legend { width: 260px; padding: 10px 14px; font-size: 0.9rem; }
  .legend-dot { width: 14px; height: 14px; }
}

.legend-toggle {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  padding: 6px 10px;
  font-size: 0.95rem;
  color: #333;
}
.legend-toggle label { cursor: pointer; user-select: none; }
.legend-toggle input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #7ea253;
}

/* Hamburger control */
.leaflet-control.menu-control {
  position: relative;
  background: transparent;
  border: 0;
}
.menu-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ddd;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  line-height: 1;
}
.menu-button:focus,
.menu-button:active {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,.25), 0 2px 10px rgba(0,0,0,.1);
  transform: none;
}

.menu-panel {
  position: absolute;
  top: 44px;
  right: 0;
  width: 280px;
  max-height: 70vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  padding: 10px 12px;
  display: none;
  z-index: 1000;
}
.menu-panel.open { display: block; }
.menu-title { font: 700 14px/1.2 Inter, system-ui, sans-serif; margin: 6px 0 8px; }
.menu-section { margin-bottom: 12px; }
.menu-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; }
.menu-row input[type="checkbox"] { width: 16px; height: 16px; }
.menu-help { color: #6b7280; font-size: 12px; margin-top: 4px; }
.menu-divider { height: 1px; background: linear-gradient(90deg,#0000,#dcdcdc,#0000); margin: 8px 0; }

.menu-legend .legend-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.menu-legend .legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
