* { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; background: #f7f6f3; color: #1a1a1a; }
.header { padding: 12px 16px; background: white; border-bottom: 1px solid #e5e5e5; }
.title { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.subtitle { font-size: 12px; color: #666; margin: 0; }
.controls { display: flex; gap: 6px; padding: 10px 16px; background: white; border-bottom: 1px solid #e5e5e5; flex-wrap: wrap; }
.btn { background: white; border: 1px solid #d0d0d0; padding: 6px 12px; font-size: 13px; border-radius: 6px; cursor: pointer; color: #1a1a1a; font-family: inherit; transition: background 0.15s; }
.btn:hover { background: #f0f0f0; }
.btn.active { background: #2563eb; border-color: #2563eb; color: white; }
#map { height: 60vh; width: 100%; min-height: 400px; }
.legend { display: flex; gap: 16px; padding: 8px 16px; background: white; border-top: 1px solid #e5e5e5; flex-wrap: wrap; font-size: 11px; color: #555; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 2px; border: 1px solid rgba(0, 0, 0, 0.15); flex-shrink: 0; }
.swatch-circle { border-radius: 50%; }
.leaflet-popup-content { font-family: inherit; margin: 10px 12px; max-width: 260px; }
.pt { font-weight: 600; font-size: 14px; margin: 0 0 6px; color: #1a1a1a; }
.pm { font-size: 12px; color: #555; margin: 3px 0; line-height: 1.45; }
.pm a { color: #2563eb; text-decoration: none; }
.pm a:hover { text-decoration: underline; }
.pw { font-size: 11px; color: #b91c1c; margin-top: 6px; font-style: italic; line-height: 1.4; }
.pm strong { color: #333; font-weight: 600; }
.directory { background: white; padding: 16px; border-top: 1px solid #e5e5e5; }
.dir-title { font-size: 14px; font-weight: 600; margin: 0 0 10px; color: #1a1a1a; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.dir-card { border: 1px solid #e5e5e5; border-radius: 6px; padding: 10px 12px; background: #fafafa; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.dir-card:hover { background: #f0f4ff; border-color: #2563eb; }
.dir-name { font-size: 13px; font-weight: 600; margin: 0 0 4px; color: #1a1a1a; }
.dir-meta { font-size: 11px; color: #666; margin: 2px 0; line-height: 1.4; }
.dir-meta a { color: #2563eb; text-decoration: none; }
.dir-meta a:hover { text-decoration: underline; }
.dir-meta strong { color: #444; }
@media (max-width: 600px) {
  #map { height: 55vh; }
  .title { font-size: 14px; }
  .btn { padding: 5px 10px; font-size: 12px; }
  .dir-grid { grid-template-columns: 1fr; }
}
