html, body { height: 100%; margin: 0; }
#map { height: 100%; width: 100%; }

#overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 280px;
  max-height: calc(100% - 24px);
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 1000;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.overlay-title {
  padding: 10px 12px;
  font-weight: 700;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.overlay-list {
  overflow: auto;
  max-height: calc(100vh - 140px);
}

.overlay-foot {
  padding: 8px 12px;
  font-size: 12px;
  opacity: 0.75;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.ac-row {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ac-row:hover { background: rgba(0,0,0,0.04); }
.ac-row.ac-near { border-left: 6px solid #d60000; background: rgba(214,0,0,0.06); }

.ac-main { display: flex; justify-content: space-between; gap: 8px; }
.ac-callsign { font-weight: 650; }
.ac-alt { font-variant-numeric: tabular-nums; }
.ac-sub { font-size: 12px; opacity: 0.75; margin-top: 2px; }

.ac-label {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 4px 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  font-size: 14px;
  line-height: 1.1;
  color: #111;
  white-space: nowrap;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.ac-label .row1 {
  font-weight: 700;
}

.ac-label .row2 {
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

.ac-label.near {
  border-color: rgba(214,0,0,0.6);
  box-shadow: 0 2px 10px rgba(214,0,0,0.15);
}

.ac-label.near .row1 {
  color: #d60000;
}

.ac-label.warn {
  border-color: rgba(255,140,0,0.7);
  box-shadow: 0 2px 10px rgba(255,140,0,0.15);
}
.ac-label.warn .row1 { color: #ff8c00; }