html, body { height: 100%; margin: 0; font-family: -apple-system, Segoe UI, Roboto, sans-serif; }
#app { display: flex; flex-direction: column; height: 100%; }
header { padding: 10px 16px; background: #1f2937; color: #fff; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
header h1 { font-size: 16px; margin: 0; font-weight: 600; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.dropdown { position: relative; }
.dropdown summary {
  list-style: none; cursor: pointer; user-select: none;
  background: #374151; color: #fff; padding: 6px 12px; border-radius: 6px;
  display: flex; align-items: center; gap: 6px;
}
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: '▾'; font-size: 10px; opacity: 0.8; }
.dropdown[open] summary { background: #4b5563; }
.dropdown-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 1000;
  background: #fff; color: #1f2937; border-radius: 8px; padding: 10px 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25); min-width: 180px;
  display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto;
}
.dropdown-panel label { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.dropdown-actions { display: flex; gap: 8px; margin-bottom: 4px; padding-bottom: 6px; border-bottom: 1px solid #eee; }
.dropdown-actions button {
  font-size: 12px; border: none; background: none; color: #2563eb; cursor: pointer; padding: 0;
}
#map { flex: 1; }
.popup .address { margin-bottom: 6px; }
.popup h3 { margin: 0 0 4px; font-size: 15px; }
.popup .entry { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.popup .entry:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.popup .meta { font-size: 12px; color: #444; }
.popup a { color: #2563eb; }
#count { font-size: 12px; color: #cbd5e1; }
