:root {
  --bg: #0d0d0d;
  --panel: #151515;
  --accent: #e09131;
  --text: #f4f4f4;
  --muted: #9ca3af;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
header .brand h1 { margin: 0; font-size: 1.4rem; }
header .brand p { margin: 0; color: var(--muted); }
#search {
  width: 320px;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 999px;
  outline: none;
  background: #1f1f1f;
  color: var(--text);
}
main {
  flex: 1;
  display: flex;
  min-height: 0;
}
#sidebar {
  width: 360px;
  background: var(--panel);
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,0.05);
}
#dealer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
#dealer-list li {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background 0.2s;
}
#dealer-list li:hover,
#dealer-list li.active {
  background: rgba(224,145,49,0.15);
}
#dealer-list .company {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  font-weight: 600;
}
#dealer-list .meta {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.3;
}
#map {
  flex: 1;
  height: 100%;
}
.leaflet-popup-content-wrapper {
  background: #111;
  color: var(--text);
}
.leaflet-popup-tip {
  background: #111;
}
.leaflet-container {
  font-family: 'Inter', system-ui, sans-serif;
}
@media (max-width: 900px) {
  header { flex-direction: column; gap: 1rem; }
  #search { width: 100%; }
  #sidebar { display: none; }
}
