:root {
  --bg: #07090a;
  --panel: #0e1311;
  --panel-2: #131a17;
  --line: rgba(255, 255, 255, .10);
  --text: #eef3ee;
  --muted: #8c9c94;
  --accent: #e7b84a;
  --ocean: #163468;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 13px/1.45 "Inter", "Segoe UI", system-ui, Roboto, sans-serif; overflow: hidden; }
.hidden { display: none !important; }
button { font: inherit; cursor: pointer; color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; }
button:hover { border-color: rgba(231, 184, 74, .45); }
.shell { display: flex; height: 100%; }
.side { width: 300px; flex: none; padding: 18px 16px; overflow-y: auto; background: var(--panel); border-right: 1px solid var(--line); }
.back { color: var(--muted); text-decoration: none; font-size: 13px; }
.back:hover { color: var(--text); }
h1 { font-size: 26px; margin: 10px 0 2px; font-weight: 800; letter-spacing: .3px; }
.sub { color: var(--accent); font-weight: 700; font-size: 16px; margin: 0; }
.stats { color: #c8c8c8; font-size: 13px; margin: 4px 0 12px; }
h2 { color: var(--accent); font-size: 15px; margin: 18px 0 8px; letter-spacing: .5px; text-transform: uppercase; }
.search { position: relative; }
.search input, #world { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: #0a0f18;
  color: var(--text); font: inherit; }
#world { margin-top: 8px; }
.results { position: absolute; left: 0; right: 0; top: 40px; z-index: 5; list-style: none; margin: 0; padding: 4px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; max-height: 320px; overflow-y: auto; }
.results li { padding: 6px 8px; border-radius: 6px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.results li:hover, .results li.active { background: #22304a; }
.results small { color: var(--muted); }
.layers label { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.tool { width: 100%; margin-top: 12px; }
.tool.on { background: #f0b400; color: #111; border-color: #f0b400; font-weight: 700; }
.legend, .online { list-style: none; margin: 0; padding: 0; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: 13.5px; cursor: pointer; }
.legend li:hover { color: #fff; text-decoration: underline; }
.dot { width: 20px; height: 20px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; border: 2px solid #e8e8e8; box-shadow: 0 0 0 1px #141824; }
.online li { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; font-size: 13.5px; }
.online img { width: 16px; height: 16px; image-rendering: pixelated; border-radius: 3px; }
.online small { color: var(--muted); margin-left: auto; }
.map-wrap { position: relative; flex: 1; min-width: 0; background: var(--ocean); }
#map { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#map.dragging { cursor: grabbing; }
#map.street-pick { cursor: crosshair; }
.zoom { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 6px; }
.zoom button { width: 36px; height: 36px; font-size: 20px; font-weight: 700; background: rgba(12, 18, 30, .88); }
.coords { position: absolute; left: 12px; bottom: 10px; background: rgba(12, 18, 30, .8); padding: 4px 9px; border-radius: 6px;
  font: 12px ui-monospace, Consolas, monospace; color: #cdd6e4; }
.popup { position: absolute; z-index: 4; min-width: 240px; max-width: 320px; background: rgba(12, 18, 30, .96);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.popup h3 { margin: 0 0 2px; font-size: 16px; }
.popup .kind { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.popup dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0 0 10px; font-size: 13px; }
.popup dt { color: var(--muted); }
.popup dd { margin: 0; }
.popup a { color: #7cc0ff; }
.popup .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.popup .close { position: absolute; right: 8px; top: 6px; background: none; border: none; color: var(--muted); font-size: 18px; padding: 0 4px; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.badge.FREE { background: #1f6f3a; } .badge.SOLD { background: #8a2b2b; } .badge.RENTED { background: #8a6112; }
.toast { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: rgba(12, 18, 30, .92);
  border: 1px solid var(--line); padding: 7px 14px; border-radius: 8px; }
.street { position: fixed; inset: 0; z-index: 20; background: #000; }
#street-canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#street-canvas.dragging { cursor: grabbing; }
.street-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 14px; padding: 10px 14px;
  background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, 0)); }
.street-bar span { color: #e8eef8; text-shadow: 0 1px 2px #000; }
.compass { margin-left: auto; font-weight: 700; font-size: 15px; }
.street-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(12, 18, 30, .9);
  padding: 12px 18px; border-radius: 10px; }
.street-mini { position: absolute; left: 14px; bottom: 14px; border: 2px solid #e8e8e8; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .5); }
.street-mini canvas { display: block; }
@media (max-width: 760px) {
  .side { position: absolute; z-index: 6; left: 0; top: 0; bottom: 0; width: 86%; transform: translateX(-100%); }
  .side.open { transform: none; }
}

/* Routeplanner */
.route-tools { display: flex; gap: 6px; }
.route-tools select { flex: 0 0 auto; }
.route-tools .tool { flex: 1; }
.route-card { margin-top: 8px; padding: 10px 12px; background: rgba(24, 28, 36, .92); color: #ebeef2;
  border: 2px solid #505a6e; border-radius: 6px; font-size: 13px; line-height: 1.5; }
.route-card b { color: #ffd666; }
.route-card .line { display: inline-block; padding: 0 6px; border-radius: 4px; color: #fff; font-weight: 700;
  border: 1px solid #fff; }
