/* radar.css — dual canvas layout, radar overlays, zoom & layer controls */

#radars {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;               /* allow flex children to shrink so canvas gets real height */
  min-width: 0;
  background: #05080f;
}

.radar-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
#aerial-wrap { flex: 0 0 60%; }
#ground-wrap { flex: 1 1 0; min-width: 0; }

/* draggable slider between the two radars */
#radar-divider {
  flex: 0 0 7px;
  position: relative;
  cursor: col-resize;
  background: linear-gradient(180deg, #141c28, #0b111a);
  border-left: 1px solid #060a12;
  border-right: 1px solid #060a12;
  display: grid;
  place-items: center;
  z-index: 6;
}
#radar-divider:hover, #radar-divider.drag { background: linear-gradient(180deg, #1b3348, #12202e); }
#radar-divider .grip { width: 3px; height: 34px; border-radius: 3px; background: repeating-linear-gradient(180deg, var(--text-2) 0 2px, transparent 2px 5px); opacity: .55; }
#radar-divider:hover .grip { opacity: .9; }

.radar-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;         /* let JS handle wheel/drag */
}
.radar-wrap canvas.grabbing { cursor: grabbing; }

/* overlay control clusters */
.radar-ctl {
  position: absolute;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}
.radar-ctl.tl { left: 8px; }
.radar-ctl.tr { right: 8px; }

.rtitle {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--text-2);
  background: rgba(10, 15, 26, 0.6);
  border: 1px solid rgba(31, 41, 55, 0.7);
  border-radius: 4px;
  padding: 3px 8px;
}

.zbtn {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.85);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.zbtn:hover { border-color: var(--accent); color: var(--accent); }

/* dropdown (layers / labels) */
.dropdown { position: relative; }
.dd-btn {
  height: 26px;
  padding: 0 10px;
  background: rgba(17, 24, 39, 0.85);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
}
.dd-btn:hover { border-color: var(--accent); }
.dd-panel {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  min-width: 168px;
  background: rgba(13, 20, 32, 0.97);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.dropdown.open .dd-panel { display: block; }
.dd-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  font-size: 12px;
  color: var(--text-2);
  border-radius: 4px;
  cursor: pointer;
}
.dd-panel label:hover { background: rgba(31, 41, 55, 0.6); color: var(--text); }
.dd-panel input { accent-color: var(--accent); }
