.maplibregl-ctrl-attrib {
  background: rgba(28, 28, 30, 0.6) !important;
  color: #8e8e93 !important;
  font-size: 10px;
}
.maplibregl-ctrl-attrib a {
  color: #8e8e93 !important;
}
.maplibregl-popup-content {
  background: var(--glass);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  max-width: 300px;
}
.maplibregl-popup-tip {
  display: none;
}
.maplibregl-popup-content a {
  color: var(--blue);
  text-decoration: none;
}
.maplibregl-popup-content a:focus {
  outline: none;
}
.links {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.links a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.16);
  color: #7fbcff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.links a:hover {
  background: rgba(10, 132, 255, 0.28);
}
.kv {
  color: var(--muted);
}
.flag {
  font-size: 15px;
  margin-right: 6px;
  vertical-align: -1px;
}
.acinfo {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--sep);
}
.acroute {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--sep);
}
.route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  color: var(--fg);
}
.route .leg b {
  font-size: 14px;
  color: #fff;
}
.route .leg .kv {
  display: block;
  font-size: 11px;
}
.route .arrow {
  color: var(--blue);
  font-size: 18px;
}
.acphoto img {
  display: block;
  width: 100%;
  border-radius: 10px;
  margin: -2px 0 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.acphoto .cred {
  font-size: 10px;
  color: var(--muted);
  margin: -4px 0 8px;
}
.altbar {
  margin: 8px 0 2px;
}
.altbar .scale {
  position: relative;
  height: 8px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.altbar .pin {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 16px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  box-shadow:
    0 0 0 1.5px #000,
    0 0 8px rgba(255, 255, 255, 0.8);
}
.altbar .ticks {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 3px;
}
.altbar .altv {
  font-weight: 700;
  font-size: 14px;
  margin-top: 4px;
}
.maplibregl-popup-close-button {
  color: var(--muted);
  font-size: 18px;
  right: 6px;
  top: 4px;
}

.obj {
  width: 0;
  height: 0;
}
.obj svg {
  transform-origin: center;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}
.rz {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--green);
  box-shadow:
    0 0 0 6px rgba(48, 209, 88, 0.25),
    0 0 22px rgba(48, 209, 88, 0.7);
}
.rzlbl {
  position: absolute;
  left: 14px;
  top: -9px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px #000;
}
.maplibregl-popup-content {
  background: var(--panel);
  font-size: 14px;
  padding: 44px 16px 16px;
  max-height: 280px;
  overflow: auto;
  box-shadow: 0 8px 28px #0006;
}
.maplibregl-popup-close-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  top: 0;
  right: 0;
  color: var(--fg);
}
.maplibregl-popup-content a:focus-visible {
  outline: 3px solid var(--blue);
}
.maplibregl-popup-content a,
.links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}
.maplibregl-ctrl-attrib {
  font-size: 11px;
}
.rz {
  box-shadow: 0 0 0 4px #71deb033;
  background: var(--green);
  border: 2px solid #fff;
}

.zone-popup .maplibregl-popup-content { max-height: min(65vh, 520px); }
.zone-tooltip .maplibregl-popup-content { padding: 14px 16px; max-height: none; }
.zone-popup h3, .zone-tooltip h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.zone-popup p, .zone-tooltip p { margin: 10px 0; }
.zone-meaning { border-left: 3px solid var(--blue); padding-left: 10px; }
.zone-facts { margin: 16px 0; }
.zone-facts dt { color: var(--muted); margin-top: 10px; }
.zone-facts dd { margin: 2px 0 0; font-weight: 600; }
.zone-popup details { border-top: 1px solid var(--line); padding-top: 10px; overflow-wrap: anywhere; }
.radiation-marker { width:30px; height:30px; padding:0; border-radius:8px; background:#153c49; border:2px solid #85d3e9; color:#fff; font:700 14px/26px system-ui,sans-serif; box-shadow:0 2px 8px #0008; cursor:pointer; }
.radiation-marker[data-missing="true"] { background:#35414c; border-color:#a8b7c6; }
.radiation-marker[hidden] { display:none; }
