* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font: 14px/1.45 system-ui, sans-serif; color: #1b1b1b; }
body { display: flex; flex-direction: column; height: 100dvh; background: #fff; }
#app { display: flex; flex: 1; min-height: 0; }
#panel { width: 300px; flex: none; overflow-y: auto; padding: 14px; background: #fff; border-right: 1px solid #ccc; z-index: 2; }
#map { flex: 1; min-width: 0; }
h1 { font-size: 17px; margin: 0 0 8px; }
h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #555; margin: 14px 0 4px; }
h3 { font-size: 13px; margin: 10px 0 2px; }
label { display: flex; align-items: center; gap: 6px; padding: 3px 0; cursor: pointer; }
.sw { display: inline-block; width: 14px; height: 14px; flex: none; }
.key { display: flex; align-items: center; gap: 6px; padding: 3px 0 3px 19px; }
.sw-open { border: 1px solid #999; background: #fff; }
.sw-private { border: 1px solid #c62828; background: repeating-linear-gradient(45deg, #c62828 0 2px, transparent 2px 5px); }
.sw-closed { border: 1px solid #c62828; background: rgba(198, 40, 40, .5); }
.sw-outside { background: #bdbdbd; }
.sw-road { height: 3px; background: #222; }
.sw-rec { border-radius: 50%; background: #6a1b9a; }
.road-key { list-style: none; margin: 0 0 4px 20px; padding: 0; font-size: 13px; }
.road-key li { display: flex; align-items: center; gap: 6px; }
.line { display: inline-block; width: 22px; border-top: 3px solid #222; }
.line.dashed { border-top: 2px dashed #222; }
.line.grey { border-top: 2px dashed #999; }
.line.thick { border-top-color: #555; }
.base-sat .road-key .line { border-top-color: #ffeb3b; box-shadow: 0 0 0 2px #333; }
.base-sat .road-key .line.grey { border-top-color: #e0e0e0; }
.base-sat .road-key .line.thick { border-top-color: #fff; }
.base-sat .sw-road { background: #ffeb3b; box-shadow: 0 0 0 2px #333; }
#permit-button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; margin: 16px 0 0; padding: 8px 12px; border-radius: 8px; background: #1b5e20; color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
#permit-button span { font-size: 12px; font-weight: 400; opacity: .9; }
#permit-button:hover { background: #2e7d32; }
#permit-button:focus-visible { outline: 3px solid #ffb300; outline-offset: 2px; }
.byline { margin: -4px 0 10px; font-size: 12px; color: #555; }
.byline a { color: inherit; }
#brand { margin-top: 14px; padding-top: 12px; border-top: 1px solid #ccc; }
#brand p { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #555; }
#brand a { display: inline-flex; align-items: center; gap: 10px; color: #1f1f1f; text-decoration: none; }
#brand a:hover { color: #9a5a14; }
.brand-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 2px solid currentColor; border-radius: 4px; font: 700 19px Raleway, system-ui, sans-serif; }
.brand-text { display: flex; flex-direction: column; }
.brand-primary { font: 700 13px/1.2 Raleway, system-ui, sans-serif; letter-spacing: .06em; }
.brand-secondary { font-size: 10px; line-height: 1.2; letter-spacing: .06em; }
#season-banner { padding: 8px; margin-bottom: 8px; background: #fff3cd; border: 1px solid #e0c36a; border-radius: 4px; }
#footer { margin-top: 16px; padding-top: 10px; border-top: 1px solid #ccc; font-size: 12px; color: #444; }
#footer p { margin: 0 0 6px; }
#strip { flex: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 6px 12px; font-size: 12px; line-height: 1.35; background: #fff8e1; border-top: 1px solid #d8c27a; z-index: 3; }
#strip strong { font-weight: 600; }
@media (max-width: 767px) {
  #app { flex-direction: column-reverse; }
  #panel { width: 100%; height: 34%; border-right: 0; border-top: 1px solid #999; border-radius: 12px 12px 0 0; box-shadow: 0 -2px 8px rgba(0,0,0,.2); }
  #map { flex: 1; }
  #strip { gap: 1px 10px; padding: 5px 10px; font-size: 11px; }
  #strip .strip-maps { width: 100%; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
  h1 { margin-bottom: 10px; }
}
@media (pointer: coarse) {
  label { padding: 7px 0; }
}

.pp-status { margin: 0 0 4px; }
.pp-open { color: #1b5e20; }
.pp-closed { color: #c62828; }
.pp-outside, .pp-warn { color: #6a4a00; }
.maplibregl-popup-content p { margin: 4px 0; }
