:root {
  --bg: #0b0f14;
  --panel: #0f1620;
  --text: #e8eef7;
  --muted: #9fb0c3;
  --line: rgba(255,255,255,0.08);
  --chip: rgba(255,255,255,0.08);
  --focus: rgba(140, 200, 255, 0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

.topbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
}

.title { font-weight: 700; letter-spacing: 0.2px; }
.subtitle { color: var(--muted); font-size: 13px; margin-top: 2px; }

.controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

input, select, button {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}

input { width: min(48vw, 420px); }
input:focus, select:focus, button:focus {
  box-shadow: 0 0 0 3px var(--focus);
  border-color: rgba(140, 200, 255, 0.35);
}

button { cursor: pointer; }
button:hover { border-color: rgba(255,255,255,0.18); }

.layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: calc(100% - 60px);
}

.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.list {
  padding: 10px;
  overflow: auto;
  flex: 1;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 10px;
  margin-bottom: 10px;
  background: rgba(0,0,0,0.15);
}

.card .name { font-weight: 650; }
.card .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.chip {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line);
  color: var(--muted);
}

.card a {
  color: #bfe3ff;
  text-decoration: none;
}
.card a:hover { text-decoration: underline; }

.footer-note {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}

.map { width: 100%; height: 100%; }

/* Mobile */
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; grid-template-rows: 46vh 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--line); }
  input { width: 52vw; }
}
