.tactical-map {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #050e19;
  color: #defbf4;
  font-family: inherit;
}

.tactical-map .maplibregl-canvas { outline: none; }
.tactical-map .maplibregl-canvas:focus-visible { outline: 2px solid #62e5df; outline-offset: -3px; }
.tactical-map .maplibregl-ctrl-top-left,
.tactical-map .maplibregl-ctrl-top-right,
.tactical-map .maplibregl-ctrl-bottom-left,
.tactical-map .maplibregl-ctrl-bottom-right { z-index: 8; }
.tactical-map .maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(79, 218, 216, .32);
  border-radius: 8px;
  background: rgba(7, 26, 37, .92);
  box-shadow: 0 4px 20px #0005;
}
.tactical-map .maplibregl-ctrl-group button { width: 34px; height: 34px; }
.tactical-map .maplibregl-ctrl-group button + button { border-top-color: rgba(79, 218, 216, .2); }
.tactical-map .maplibregl-ctrl-group button:hover { background: rgba(53, 206, 200, .14); }
.tactical-map .maplibregl-ctrl-group button:focus-visible { outline: 2px solid #62e5df; outline-offset: -2px; }
.tactical-map .maplibregl-ctrl-icon { filter: invert(93%) sepia(12%) saturate(1071%) hue-rotate(116deg); }
.tactical-map .maplibregl-ctrl-scale {
  border-color: #72bcbb;
  background: rgba(5, 14, 25, .75);
  color: #b5dedd;
  font-size: 11px;
  line-height: 1.5;
}
.tactical-map .maplibregl-ctrl-attrib {
  max-width: min(360px, 85vw);
  background: rgba(5, 14, 25, .88);
  color: #aaccc9;
  font-size: 11px;
}
.tactical-map .maplibregl-ctrl-attrib a { color: #a4dbd6; }
.tactical-map .maplibregl-ctrl-attrib-button { filter: invert(1); }
.tactical-radar-canvas { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tactical-map-unavailable {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 32px;
  text-align: center;
  color: #b7d3dc;
  font-size: 15px;
  line-height: 1.8;
}

.tactical-reservoir-pin {
  --pin-color: #38d9ed;
  position: absolute;
  z-index: 3;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pin-color);
  cursor: pointer;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}
.tactical-reservoir-dot {
  position: absolute;
  inset: 9px;
  display: block;
  border: 2px solid var(--pin-color);
  border-radius: 50%;
  background: #051523;
  box-shadow: 0 0 0 3px #051523bb, 0 0 12px var(--pin-color);
  transition: background .18s ease, box-shadow .18s ease;
}
.tactical-reservoir-dot::before,
.tactical-reservoir-dot::after {
  position: absolute;
  content: '';
  inset: -7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .28;
}
.tactical-reservoir-dot::after { inset: -2px; opacity: 0; }
.tactical-reservoir-label {
  position: absolute;
  left: 34px;
  top: 50%;
  display: block;
  width: max-content;
  max-width: 210px;
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--pin-color) 58%, transparent);
  border-radius: 4px;
  background: rgba(3, 18, 29, .93);
  box-shadow: 0 4px 18px #0008;
  color: #e1faf9;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-3px);
  transition: opacity .18s ease, transform .18s ease;
}
.tactical-reservoir-pin:is(:hover, :focus-visible, .is-selected) { z-index: 6; }
.tactical-reservoir-pin:is(:hover, :focus-visible, .is-selected) .tactical-reservoir-label { opacity: 1; transform: translateY(-50%) translateX(0); }
.tactical-reservoir-pin:is(:hover, :focus-visible, .is-selected) .tactical-reservoir-dot { background: var(--pin-color); box-shadow: 0 0 0 3px #051523cc, 0 0 18px var(--pin-color); }
.tactical-reservoir-pin:focus-visible { outline: 2px solid #ecffff; outline-offset: 4px; }
.tactical-reservoir-pin.is-selected .tactical-reservoir-dot::before { opacity: .7; inset: -9px; }
.tactical-reservoir-pin.is-selected .tactical-reservoir-dot::after { animation: tactical-reservoir-pulse 2.8s ease-out infinite; }
.tactical-reservoir-pin.is-stale .tactical-reservoir-dot { border-style: dashed; }
.tactical-effects-off .tactical-reservoir-dot::after { animation: none; opacity: 0; }
.tactical-effects-off .tactical-reservoir-dot,
.tactical-effects-off .tactical-reservoir-label { transition: none; }
.tactical-effects-off .tactical-radar-canvas { visibility: hidden; }

@keyframes tactical-reservoir-pulse {
  0% { transform: scale(1); opacity: .75; }
  85%, 100% { transform: scale(3.5); opacity: 0; }
}

@media (max-width: 600px) {
  .tactical-map .maplibregl-ctrl-top-right { top: 3px; right: 3px; }
  .tactical-map .maplibregl-ctrl-group button { width: 32px; height: 32px; }
  .tactical-reservoir-label { left: 29px; max-width: 180px; padding: 5px 7px; }
}
