* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #0a0e14; font-family: monospace; }
#shell   { display: flex; flex-direction: column; height: 100vh; }
#topbar  {
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px; height: 42px; flex-shrink: 0;
  background: #0f1520;
  border-bottom: 1px solid rgba(100,180,255,0.15);
}
.logo { font-size: 13px; font-weight: 700; color: #00d4ff; letter-spacing: 0.07em; }
#map { flex: 1; }
#statusbar {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; height: 26px; flex-shrink: 0;
  background: #0f1520;
  border-top: 1px solid rgba(100,180,255,0.12);
  font-size: 10px; color: rgba(100,150,200,0.6);
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #00d4ff; flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
#infoBox {
  position: absolute; bottom: 36px; left: 10px; z-index: 800;
  background: rgba(9,13,20,0.92);
  border: 1px solid rgba(100,180,255,0.25);
  border-radius: 5px;
  padding: 10px 13px;
  font-size: 10px; line-height: 1.8;
  color: rgba(180,210,240,0.9);
  display: none;
  min-width: 180px;
}
#infoBox .ib-key  { color: rgba(100,150,200,0.7); }
#infoBox .ib-val  { color: rgba(200,225,255,0.95); float: right; margin-left: 16px; }
#infoBox .ib-title {
  font-size: 9px; letter-spacing: 0.12em;
  color: rgba(0,212,255,0.7); margin-bottom: 6px;
  text-transform: uppercase;
}
#infoBox .ib-close {
  float: right; cursor: pointer; color: rgba(100,150,200,0.5);
  font-size: 12px; line-height: 1; margin-left: 8px;
}
#infoBox .ib-close:hover { color: #00d4ff; }
.leaflet-container { background: #080c12; }
.leaflet-control-zoom a {
  background: #151d2e !important; color: rgba(180,210,240,0.9) !important;
  border-color: rgba(100,180,255,0.25) !important;
}
.leaflet-control-zoom a:hover { color: #00d4ff !important; }
.leaflet-control-attribution {
  background: rgba(9,13,20,0.85) !important;
  color: rgba(180,210,240,0.85) !important; font-size: 10px !important;
  padding: 2px 6px !important;
}
.leaflet-control-attribution a {
  color: rgba(0,180,255,0.85) !important;
  text-decoration: none !important;
}
.leaflet-control-attribution a:hover { text-decoration: underline !important; }
.poi-tooltip {
  font-family: monospace;
  font-size: 11px;
  background: rgba(9,13,20,0.92);
  border: 1px solid rgba(200,60,20,0.6);
  color: rgba(220,200,200,0.95);
  padding: 3px 8px;
  border-radius: 3px;
  box-shadow: none;
}
.poi-tooltip::before { display: none; }

/* ── Mobile ≤ 700px ───────────────────────────────────────────────────────── */
#mobileMenuBtn {
  display: none;
  background: transparent;
  border: 1px solid rgba(100,180,255,0.25);
  color: rgba(180,210,240,0.8);
  font-size: 15px;
  padding: 4px 9px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

#mobileDrawer {
  display: none;
  position: absolute;
  top: 42px;
  right: 0;
  z-index: 1500;
  background: #0f1520;
  border: 1px solid rgba(100,180,255,0.2);
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 10px 12px;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}
#mobileDrawer.open { display: flex; }

#mobileDrawer select,
#mobileDrawer input[type="text"] {
  width: 100%;
  box-sizing: border-box;
}

#mobileDrawer .drawer-row {
  display: flex;
  gap: 6px;
}
#mobileDrawer .drawer-row > * {
  flex: 1;
  text-align: center;
}

@media (max-width: 700px) {
  #mobileMenuBtn { display: block; }

  #topbar > #catSelect,
  #topbar > #customTag,
  #topbar > #analyzeBtn,
  #topbar > #clearBtn,
  #topbar > #gridToggleBtn,
  #topbar > .docs-link,
  #topbar > .topbar-stats,
  #topbar > .topbar-sep,
  #topbar > .logo { display: none !important; }

  #topbar > #demoTimer {
    flex-shrink: 0;
  }

  #topbar > #home-link span { display: none; }

  #topbar > .search-wrap {
    width: auto !important;
    flex: 1;
    min-width: 0;
    margin-right: 4px;
  }

  #topbar > .search-wrap input {
    width: 100% !important;
  }
}