.atlas-map-section {
  margin-top: 26px;
  scroll-margin-top: 16px;
}

.atlas-map-layout {
  border: 1px solid #3a5661;
  border-radius: 18px;
  background: #172a34;
  overflow: hidden;
}

.atlas-map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 13px 20px;
  padding: clamp(14px, 2.5vw, 26px);
}

.atlas-map-head h2 {
  margin: 0 0 3px;
  font-size: clamp(22px, 3.5vw, 36px);
  line-height: 1.2;
}

.atlas-map-head p,
.atlas-map-credit {
  margin: 0;
  color: #c4d0d6;
  font-size: 14px;
}

.atlas-map-filters,
.atlas-map-zoom {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.atlas-map-layout button:not(.atlas-map-pin) {
  min-height: 44px;
  border: 1px solid #476471;
  border-radius: 8px;
  background: #142730;
  color: #f2fffc;
}

.atlas-map-filters button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 760;
}

.atlas-map-layout button:not(.atlas-map-pin):hover,
.atlas-map-layout button[aria-pressed="true"] {
  border-color: #88e3d8;
  background: #204b50;
}

.atlas-map-frame {
  border-block: 1px solid #3a5661;
}

.atlas-map-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px clamp(14px, 2.5vw, 26px);
  background: #122632;
  border-bottom: 1px solid #3a5661;
}

.atlas-map-viewport {
  position: relative;
  height: clamp(450px, 61vw, 710px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #5d8a93 #162a34;
  background: radial-gradient(ellipse at center, #20424b, #12242e 75%);
  cursor: grab;
  touch-action: pan-x pan-y;
  user-select: none;
}

.atlas-map-viewport:focus-visible { outline-offset: -3px; }
.atlas-map-viewport[data-dragging] { cursor: grabbing; }

.atlas-map-stage {
  display: grid;
  place-items: center;
}

.atlas-map-canvas {
  position: relative;
  isolation: isolate;
}

.atlas-map-base {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #79c5c33d, 0 5px 30px #07131b94;
  pointer-events: none;
}

.atlas-map-pins {
  position: absolute;
  inset: 0;
}

.atlas-map-pin {
  --atlas-pin-color: #bdfff6;
  position: absolute;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  padding: 0;
  width: 44px;
  height: 44px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  touch-action: manipulation;
}

.atlas-map-pin[data-category="safes"] { --atlas-pin-color: #ffc478; }
.atlas-map-pin[data-category="vehicles"] { --atlas-pin-color: #ffafbe; }
.atlas-map-pin[data-category="weapons"] { --atlas-pin-color: #d4c8ff; }

.atlas-map-pin span {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 2px solid #f4ffff;
  border-radius: 50%;
  background: var(--atlas-pin-color);
  color: #152933;
  box-shadow: 0 0 0 1px #193438, 0 3px 8px #061721ba;
  font-weight: 850;
  font-size: 14px;
}

.atlas-map-pin:focus-visible,
.atlas-map-pin:hover { z-index: 1; }
.atlas-map-pin:focus-visible span,
.atlas-map-pin:hover span,
.atlas-map-pin[aria-expanded="true"] span { background: #fff; }

.atlas-map-pin[data-atlas-found] span {
  border-color: #b6c5c8;
  background: #343c42;
  color: #f2f8f9;
}

.atlas-map-pin[data-atlas-found]:not([aria-expanded])::after {
  content: "✓";
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid #b6c5c8;
  border-radius: 50%;
  background: #d9e6e5;
  color: #26353b;
  font-size: 11px;
  font-weight: 850;
}

.atlas-map-zoom button {
  min-width: 44px;
  padding: 0 5px;
  font-weight: 800;
  line-height: 1;
}

.atlas-map-zoom button:disabled {
  cursor: default;
  opacity: .62;
}

.atlas-map-summary {
  color: #deefee;
  font-size: 14px;
}

.atlas-map-choices {
  padding: 12px clamp(14px, 2.5vw, 26px) 16px;
  border-bottom: 1px solid #3a5661;
  background: #203944;
}

.atlas-map-choice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.atlas-map-choice-head button { min-width: 44px; font-size: 22px; }

.atlas-map-choices ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 6px;
  max-height: 290px;
  margin: 0;
  padding: 4px;
  overflow: auto;
  list-style: none;
}

.atlas-map-choices li button {
  display: grid;
  gap: 2px;
  width: 100%;
  height: 100%;
  padding: 7px 11px;
  text-align: left;
}

.atlas-map-choices li button span { color: #bdd1d3; font-size: 13px; }
.atlas-map-choices li button .atlas-map-choice-found { margin-inline-start: 5px; color: #a6eadc; white-space: nowrap; }

.atlas-map-credit {
  padding: 11px clamp(14px, 2.5vw, 26px);
  overflow-wrap: anywhere;
}

.atlas-map-credit a { color: #a3efe7; text-decoration: underline; }

@media (max-width: 620px) {
  .atlas-map-head { align-items: flex-start; }
  .atlas-map-viewport { height: clamp(420px, 126vw, 540px); }
}

@media (max-width: 370px) {
  .atlas-map-filters .icon { display: none; }
}
