:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #edf2eb;
  color: #1d2b20;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.shell { width: min(92vw, 38rem); margin: 0 auto; padding: 3rem 0; }
header { margin-bottom: 1.5rem; }
.eyebrow { color: #4f7155; font-weight: 700; letter-spacing: .08em; margin: 0; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 8vw, 3.25rem); margin: .25rem 0; }
h2 { margin-top: 0; }
.card { background: #fff; border: 1px solid #d4dfd1; border-radius: 1rem; box-shadow: 0 .75rem 2rem #21392412; margin-bottom: 1rem; padding: 1.25rem; }
form { display: grid; gap: 1rem; }
label { display: grid; font-weight: 650; gap: .4rem; }
input, select, button { border: 1px solid #aabca9; border-radius: .6rem; font: inherit; min-height: 3rem; padding: .7rem .8rem; }
button { background: #2f663c; border-color: #2f663c; color: #fff; cursor: pointer; font-weight: 750; }
button.secondary { background: #fff; color: #2f663c; margin-top: 1rem; }
.button-link { background: #2f663c; border-radius: .6rem; color: #fff; display: inline-block; font-weight: 750; margin-top: 1rem; padding: .85rem 1rem; text-decoration: none; }
.muted { color: #5d6a5e; }
.message { color: #9a2b20; min-height: 1.5rem; }
.profile { line-height: 1.6; }
.hidden { display: none; }
.map-card { background: #fff; border: 1px solid #d4dfd1; border-radius: 1rem; margin-bottom: 1rem; overflow: hidden; position: relative; }
#sign-map { height: min(77.5vh, 47.5rem); min-height: 30rem; width: 100%; }
.map-action {
  min-height: 2.4rem;
  padding: .4rem .65rem;
  position: absolute;
  top: .75rem;
  z-index: 1001;
}
.map-add { left: .75rem; }
.map-fullscreen { right: 7.5rem; }
.map-card.is-fullscreen { border: 0; border-radius: 0; height: 100vh; margin: 0; width: 100vw; }
.map-card.is-fullscreen #sign-map { height: 100vh; max-height: none; min-height: 0; }
.map-nav { display: flex; justify-content: space-between; margin-bottom: .75rem; }
.map-footer { border-top: 1px solid #c9d5c7; margin: 1.25rem 0 0; padding: 1rem 0; }
.compact-card { padding: .75rem; }
.compact-card button { width: 100%; }
.placement-armed { cursor: crosshair; }
body[data-page="signs"] .shell { padding-top: 1rem; }
.location-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.location-actions .secondary { margin: 0; }
.sign-popup img { border-radius: .5rem; display: block; margin-bottom: .5rem; max-height: 12rem; max-width: 14rem; object-fit: cover; }
.marker-existing, .marker-proposed, .marker-unverified, .marker-selection {
  border: 2px solid white;
  border-radius: 2px;
  box-shadow: 0 1px 4px #0008;
  height: 1.3rem;
  position: relative;
  width: .8rem;
}
.marker-existing::after, .marker-proposed::after, .marker-unverified::after, .marker-selection::after {
  background: white;
  box-shadow: 0 1px 2px #0007;
  content: "";
  height: .55rem;
  left: 50%;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
  width: 2px;
}
.marker-existing { background: #24723b; }
.marker-proposed { background: #e59b21; }
.marker-unverified { background: #246ba8; }
.marker-selection { background: #246ba8; }

/* Leaflet layout is kept locally so map rendering does not depend on a CDN stylesheet. */
.leaflet-pane, .leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow,
.leaflet-tile-container, .leaflet-pane > svg, .leaflet-pane > canvas,
.leaflet-zoom-box, .leaflet-image-layer, .leaflet-layer {
  left: 0;
  position: absolute;
  top: 0;
}
.leaflet-container { background: #ddd; font: .75rem/1.5 Arial, sans-serif; overflow: hidden; }
.leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}
.leaflet-container .leaflet-tile { max-height: none !important; max-width: none !important; padding: 0; width: auto; }
.leaflet-marker-icon, .leaflet-marker-shadow { display: block; }
.leaflet-container.leaflet-touch-zoom { touch-action: pan-x pan-y; }
.leaflet-container.leaflet-touch-drag { touch-action: pinch-zoom; }
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom { touch-action: none; }
.leaflet-tile { visibility: hidden; }
.leaflet-tile-loaded { visibility: inherit; }
.leaflet-pane { z-index: 400; }
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }
.leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-image-layer,
.leaflet-pane > svg path, .leaflet-tile-container { pointer-events: none; }
.leaflet-marker-icon.leaflet-interactive, .leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive { pointer-events: auto; }
.leaflet-zoom-animated { transform-origin: 0 0; }
.leaflet-zoom-anim .leaflet-zoom-animated { transition: transform .25s cubic-bezier(0,0,.25,1); }
.leaflet-zoom-anim .leaflet-tile, .leaflet-pan-anim .leaflet-tile { transition: none; }
.leaflet-grab { cursor: grab; }
.leaflet-dragging .leaflet-grab { cursor: grabbing; }
.leaflet-interactive { cursor: pointer; }
.leaflet-control { clear: both; float: left; pointer-events: auto; position: relative; z-index: 800; }
.leaflet-top, .leaflet-bottom { pointer-events: none; position: absolute; z-index: 1000; }
.leaflet-top { top: 0; }
.leaflet-bottom { bottom: 0; }
.leaflet-left { left: 0; }
.leaflet-right { right: 0; }
.leaflet-right .leaflet-control { float: right; }
.leaflet-top .leaflet-control { margin-top: 10px; }
.leaflet-bottom .leaflet-control { margin-bottom: 10px; }
.leaflet-left .leaflet-control { margin-left: 10px; }
.leaflet-right .leaflet-control { margin-right: 10px; }
.leaflet-bar { border-radius: 4px; box-shadow: 0 1px 5px #000a; }
.leaflet-bar a {
  background: #fff;
  border-bottom: 1px solid #ccc;
  color: #111;
  display: block;
  font: bold 22px/30px monospace;
  height: 30px;
  text-align: center;
  text-decoration: none;
  width: 30px;
}
.leaflet-bar a:first-child { border-radius: 4px 4px 0 0; }
.leaflet-bar a:last-child { border-bottom: 0; border-radius: 0 0 4px 4px; }
.leaflet-container .leaflet-control-attribution {
  background: #fffd;
  color: #333;
  line-height: 1.4;
  margin: 0;
  padding: 0 5px;
}
.leaflet-control-attribution a { color: #076c91; text-decoration: none; }
.leaflet-control-layers {
  background: #1d2b20e6;
  border-radius: .45rem;
  box-shadow: 0 1px 5px #0008;
  color: #fff;
  padding: .35rem .5rem;
}
.leaflet-control-layers-base { display: grid; gap: .1rem; }
.leaflet-control-layers label {
  align-items: center;
  color: #fff;
  display: flex;
  font-weight: 650;
  gap: .3rem;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}
.leaflet-control-layers-selector {
  margin: 0;
  min-height: 0;
  padding: 0;
  width: auto;
}
.leaflet-control-layers-separator { display: none; }
.leaflet-popup { margin-bottom: 20px; position: absolute; text-align: center; }
.leaflet-popup-content-wrapper {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 14px #0006;
  color: #333;
  padding: 1px;
  text-align: left;
}
.leaflet-popup-content { font-size: 1rem; line-height: 1.3; margin: 13px 24px 13px 20px; min-height: 1px; }
.leaflet-popup-tip-container { height: 20px; left: 50%; margin-left: -20px; overflow: hidden; pointer-events: none; position: absolute; width: 40px; }
.leaflet-popup-tip { background: #fff; box-shadow: 3px 3px 8px #0004; height: 17px; margin: -10px auto 0; transform: rotate(45deg); width: 17px; }
.leaflet-tooltip {
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 6px;
  box-shadow: 0 1px 5px #0005;
  color: #222;
  padding: .5rem;
  pointer-events: none;
  position: absolute;
  white-space: nowrap;
}
.leaflet-tooltip.sign-tooltip { margin-top: -2px; }
.leaflet-container a.leaflet-popup-close-button {
  background: transparent;
  border: 0;
  color: #666;
  font: 16px/24px sans-serif;
  height: 24px;
  position: absolute;
  right: 0;
  text-align: center;
  text-decoration: none;
  top: 0;
  width: 24px;
}
@media (max-width: 30rem) { .shell { padding: 1.5rem 0; } .card { border-radius: .8rem; } }
