/* Selective map styles from V4 f7c96ab; surrounding B sections are unchanged. */
.v4-flat-view {
  position: absolute;
  inset: 0;
  z-index: 8;
}
.v4-flat-map {
  width: 100%;
  height: 100%;
  background: #102d40;
  font-family: var(--font-ui);
}
.v4-flat-map .leaflet-tile-pane {
  /* Keep the globe's dark landscape palette without recoloring source markers or controls. */
  filter: invert(1) hue-rotate(180deg) saturate(0.35) brightness(0.9) contrast(0.85);
}
.is-flat .globe-stage {
  visibility: hidden;
  pointer-events: none;
}
.map-footer {
  position: absolute;
  left: 18px;
  bottom: 48px;
  z-index: 1000;
  max-width: calc(100% - 36px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}
.map-footer > * {
  pointer-events: auto;
}
.lido-client .map-footer :is(.leaflet-control-scale, .maplibregl-ctrl-scale) {
  margin: 0;
  float: none;
}
.v4-flat-summary {
  padding: 10px 14px;
  background: #102d40;
  color: #fff;
  font-size: 13px;
  border-radius: 3px;
  pointer-events: none;
}
.v4-flat-summary span {
  display: block;
  font-size: 11px;
  max-width: 38ch;
}
.v4-flat-summary span:empty {
  display: none;
}
.lido-client .leaflet-bar {
  border: 0;
  box-shadow: 0 3px 14px #102d4026;
}
.lido-client .leaflet-bar a {
  width: 44px;
  height: 44px;
  line-height: 44px;
  color: #dce9ed;
  background: #102d40;
}
.lido-client .leaflet-bar a:hover,
.lido-client .leaflet-bar a:focus-visible {
  background: #153e56;
}
.lido-client .leaflet-container .leaflet-control-attribution {
  color: #dce9ed;
  background: #102d40;
  font-size: 11px;
  padding: 3px 6px;
}
.lido-client .leaflet-control-attribution a {
  color: #c7e3d5;
}
.lido-client .leaflet-control-scale-line {
  background: #102d40;
  color: #dce9ed;
  border-color: #c7e3d5;
  font: 11px/18px var(--font-ui);
  text-shadow: none;
}
.v4-map-point-container {
  background: transparent;
  border: 0;
}
.v4-map-point {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #166a63;
  color: #fff;
  font:
    700 15px var(--font-ui);
  cursor: pointer;
  box-shadow: 0 2px 8px #102d4033;
}
.v4-map-point:not(.is-counted)::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c7e3d5;
}
.v4-map-point:hover,
.v4-map-point.is-selected {
  background: #153e56;
}
.v4-map-point:focus-visible {
  outline: 3px solid #b75e35;
  outline-offset: 3px;
}
.lido-client .leaflet-popup-content {
  font-family: var(--font-body);
  color: #153e56;
  min-width: 200px;
}
.v4-location-records {
  display: grid;
  gap: 8px;
}
.v4-location-records > small {
  margin-bottom: 6px;
  color: #4b6472;
}
.v4-location-records button {
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  background: #edf4f5;
  color: #153e56;
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.v4-location-records button:hover {
  background: #c7e3d5;
}
.v4-location-records button small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
.aerial-actions svg,
.aerial-extent-info svg,
.aerial-loading svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.v4-aerial-view,
.v4-aerial-map {
  position: absolute;
  inset: 0;
}
.v4-aerial-view {
  z-index: 600;
  overflow: hidden;
  background: #102d40;
}
.lido-client .v4-aerial-map {
  position: absolute;
  width: 100%;
  height: 100%;
  font-family: var(--font-ui);
}
.is-aerial [data-flat-map] {
  visibility: hidden;
  pointer-events: none;
}
.aerial-loading {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 80px 24px;
  background: #102d40;
  color: #dce9ed;
  text-align: center;
}
.aerial-loading svg {
  width: 44px;
  height: 44px;
  color: #c7e3d5;
}
.aerial-loading p {
  max-width: 38ch;
  margin: 0;
  font-size: 15px;
}
.aerial-loading button {
  min-height: 44px;
  padding: 10px 20px;
  background: #c7e3d5;
  color: #102d40;
  font: inherit;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
.aerial-actions {
  position: absolute;
  z-index: 6;
  top: 168px;
  right: 12px;
  display: grid;
  gap: 8px;
}
.aerial-actions button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 3px;
  background: #102d40;
  color: #fff;
  cursor: pointer;
}
.aerial-actions button span {
  position: absolute;
  right: 3px;
  bottom: 1px;
  font:
    700 10px var(--font-ui);
}
.aerial-camera {
  position: relative;
}
.aerial-camera > summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  list-style: none;
  border-radius: 3px;
  background: #102d40;
  color: #fff;
  cursor: pointer;
}
.aerial-camera > summary::-webkit-details-marker {
  display: none;
}
.aerial-camera > summary > svg {
  transform: translateY(-4px);
}
.aerial-camera > summary > span {
  position: absolute;
  bottom: 2px;
  font:
    700 11px var(--font-body);
}
.aerial-camera[open] > summary {
  background: #c7e3d5;
  color: #102d40;
}
.aerial-camera-panel {
  position: absolute;
  right: 52px;
  bottom: 0;
  display: grid;
  gap: 14px;
  width: 244px;
  padding: 18px;
  border-radius: 3px;
  background: #102d40;
  color: #dce9ed;
  box-shadow: 0 6px 24px #102d4040;
}
.aerial-camera-panel > strong {
  font-size: 16px;
  line-height: 1.4;
}
.aerial-drag-modes {
  display: flex;
  gap: 4px;
}
.lido-client .aerial-drag-modes button {
  flex: 1;
  width: auto;
  gap: 8px;
  background: #153e56;
  color: #dce9ed;
  font: inherit;
  font-size: 14px;
}
.lido-client .aerial-drag-modes button[aria-pressed="true"] {
  background: #c7e3d5;
  color: #102d40;
}
.aerial-camera-range {
  display: grid;
  gap: 2px;
  font-size: 14px;
}
.aerial-camera-range > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.aerial-camera-range output {
  color: #c7e3d5;
  font-variant-numeric: tabular-nums;
}
.lido-client .aerial-camera-range input {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: #c7e3d5;
  cursor: pointer;
}
.lido-client .is-camera-open .v4-flat-summary {
  visibility: hidden;
}
.aerial-extent {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 8px 0 14px;
  border-radius: 3px;
  background: #102d40;
  color: #dce9ed;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.aerial-extent-swatch {
  width: 20px;
  height: 12px;
  border: 1px solid #edf4f5;
  background: #166a63;
}
.aerial-extent-info summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  list-style: none;
  cursor: pointer;
}
.aerial-extent-info summary::-webkit-details-marker {
  display: none;
}
.aerial-extent-info p {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: min(320px, calc(100vw - 72px));
  margin: 0;
  padding: 18px;
  background: #102d40;
  color: #dce9ed;
  font-size: 13px;
  line-height: 1.65;
  border-radius: 3px;
}
.lido-client .v4-aerial-map .maplibregl-ctrl-top-right {
  top: 18px;
  right: 12px;
}
.lido-client .v4-aerial-map .maplibregl-ctrl-group {
  margin: 0;
  background: #102d40;
  box-shadow: 0 4px 16px #102d4026;
  border-radius: 3px;
}
.lido-client .v4-aerial-map .maplibregl-ctrl-group button {
  width: 44px;
  height: 44px;
  border-color: #668a9b;
}
.lido-client .v4-aerial-map .maplibregl-ctrl-icon {
  filter: invert(1);
}
.lido-client .v4-aerial-map .maplibregl-ctrl-attrib {
  display: none !important;
}
.lido-client .map-footer .maplibregl-ctrl-scale {
  border-color: #c7e3d5;
  background: #102d40;
  color: #dce9ed;
  font:
    11px/18px var(--font-ui);
}
.aerial-provider-credit {
  position: absolute;
  z-index: 5;
  right: 8px;
  bottom: 6px;
  max-width: calc(100% - 16px);
  margin: 0;
  padding: 3px 6px;
  border-radius: 2px;
  background: rgba(16, 45, 64, 0.9);
  color: #c9dce3;
  font:
    11px/1.35 var(--font-body);
  text-align: right;
}
.aerial-provider-credit a {
  color: #c7e3d5;
  text-underline-offset: 2px;
}
.aerial-provider-credit a:focus-visible {
  outline: 3px solid #b75e35;
  outline-offset: 2px;
}
.v4-aerial-point {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #166a63;
  color: #fff;
  font:
    700 15px var(--font-ui);
  cursor: pointer;
  box-shadow: 0 3px 10px #102d4040;
}
.v4-aerial-point:not(.is-counted)::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: auto;
  border-radius: 50%;
  background: #c7e3d5;
}
.v4-aerial-point.is-selected {
  background: #153e56;
  outline: 3px solid #c7e3d5;
  outline-offset: 3px;
}
.lido-client .v4-aerial-map .maplibregl-popup-content {
  padding: 48px 18px 18px;
  border-radius: 3px;
  background: #edf4f5;
  color: #153e56;
  font:
    14px/1.5 var(--font-ui);
  box-shadow: 0 6px 24px #102d4026;
}
.lido-client .v4-aerial-map .maplibregl-popup {
  z-index: 7;
}
.lido-client .v4-aerial-map .maplibregl-popup-close-button {
  width: 44px;
  height: 44px;
  font-size: 24px;
}
.lido-client .v4-aerial-map .maplibregl-popup-tip {
  border-top-color: #edf4f5;
  border-bottom-color: #edf4f5;
}
.lido-client .v4-aerial-map .v4-location-records {
  max-height: 220px;
  overflow-y: auto;
}
@media (hover: hover) and (pointer: fine) {
  .aerial-actions button:hover {
    background: #153e56;
    color: #fff;
  }
  .v4-aerial-point:hover {
    background: #153e56;
  }
  .aerial-camera > summary:hover {
    background: #153e56;
    color: #fff;
  }
}
@media (max-width: 800px) {
  .lido-client .v4-flat-view .leaflet-top.leaflet-right {
    top: 66px;
  }
  .lido-client .v4-aerial-map .maplibregl-ctrl-top-right {
    top: 76px;
    right: 10px;
  }
  .aerial-actions {
    top: 218px;
    right: 10px;
  }
  .aerial-extent {
    gap: 8px;
    font-size: 12px;
  }
  .map-footer {
    left: 10px;
    max-width: calc(100% - 20px);
  }
  .lido-client .is-camera-open .aerial-extent,
  .lido-client .is-camera-open .maplibregl-ctrl-scale {
    visibility: hidden;
  }
}
@media (max-width: 480px) {
  .aerial-actions {
    top: 218px;
  }
  .aerial-extent {
    padding-left: 10px;
  }
  .aerial-extent-info p {
    width: min(290px, calc(100vw - 64px));
  }
  .aerial-camera-panel {
    width: 236px;
    padding: 16px;
  }
  .aerial-provider-credit {
    right: 5px;
    bottom: 4px;
    max-width: calc(100% - 10px);
    font-size: 11px;
  }
}
.lido-client .v4-map-point {
  position: relative;
}
.lido-client .v4-map-point::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.lido-client .is-station-focused .v4-flat-summary {
  display: none;
}
.v4-flat-hub-container {
  border: 0;
  background: transparent;
}
.v4-flat-hub-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #edf4f5;
  font:
    700 12px var(--font-body);
  cursor: pointer;
}
.v4-flat-hub-symbol {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.v4-flat-hub-label {
  position: absolute;
  left: 38px;
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 9px;
  border: 1px solid #ffa17c;
  border-radius: 3px;
  background: #102d40;
  color: #edf4f5;
}
.v4-hub-popup {
  max-width: 30ch;
  font:
    14px/1.6 var(--font-body);
}
.v4-hub-popup strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}
.v4-hub-popup p {
  margin: 8px 0;
}
.lido-client .v4-flat-hub-marker:focus-visible {
  outline: 3px solid #b75e35;
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .v4-flat-hub-marker:hover .v4-flat-hub-label {
    background: #153e56;
  }
}
@media (max-width: 800px) {
  .lido-client .v4-flat-view .leaflet-top.leaflet-right {
    top: 64px;
  }
  .lido-client .v4-aerial-map .maplibregl-ctrl-top-right {
    top: 64px;
  }
  .lido-client .v4-flat-view .leaflet-control-zoom {
    margin-top: 0;
  }
}
