* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font: 14px/1.4 system-ui, sans-serif; color: #1d2329; }
body { display: flex; }
#panel { width: 360px; max-width: 45vw; height: 100%; overflow-y: auto; border-right: 1px solid #d0d5da;
         background: #fafbfc; }
#map { flex: 1; height: 100%; }
header, section { padding: 12px 16px; border-bottom: 1px solid #e3e6e9; }
h1 { font-size: 18px; margin: 0 0 4px; }
h2 { font-size: 15px; margin: 0 0 8px; }
h3 { font-size: 13px; margin: 12px 0 4px; }
.muted { color: #66707a; margin: 0; }
.error { color: #b00020; }
.note { background: #fff4d6; border-left: 3px solid #e0a100; padding: 6px 8px; }
button { font: inherit; padding: 4px 10px; border: 1px solid #b8bfc6; border-radius: 4px;
         background: #fff; cursor: pointer; }
button:hover { background: #eef1f4; }
.buttons { margin: 8px 0; }
#filters { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
#filters label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.events { list-style: none; padding: 0; margin: 0; }
.events li { display: flex; gap: 8px; padding: 6px 4px; border-bottom: 1px solid #eceff1; cursor: pointer; }
.events li:hover { background: #eef1f4; }
.events .title { font-weight: 600; }
.events .detail { color: #4a535c; font-size: 12px; }
.sources { list-style: none; padding: 0; margin: 0; font-size: 12px; }
.sources li { margin-bottom: 6px; }
.stale { color: #b00020; }
#route-maneuvers { padding-left: 20px; font-size: 13px; }
#route-maneuvers li { margin-bottom: 4px; }
.symbol { display: inline-flex; align-items: center; justify-content: center; flex: none;
          width: 22px; height: 22px; border-radius: 50%; color: #fff; font-weight: 700;
          font-size: 12px; border: 2px solid #fff; box-shadow: 0 0 2px rgba(0,0,0,.6); }
.leaflet-div-icon.event-icon { background: none; border: none; }
.route-point { background: #1565c0; }
.popup h4 { margin: 0 0 4px; font-size: 14px; }
.popup p { margin: 2px 0; }
@media (max-width: 700px) {
  body { flex-direction: column-reverse; }
  #panel { width: 100%; max-width: none; height: 45%; border-right: none; border-top: 1px solid #d0d5da; }
  #map { height: 55%; }
}
