/* The PS5 map uses a large atlas, a compact layer rail and a local place readout. */
.atlas-page {
  --atlas-panel: #252337;
  --atlas-dim: #c9c3d6;
  --atlas-line: #4c445b;
  --atlas-pink: #ffadd2;
  padding-block: 17px 30px;
}
.atlas-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 12px;
}
.atlas-title h1 {
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 850;
  line-height: 1.15;
}
.atlas-title > span {
  font-size: 13px;
  color: var(--atlas-dim);
}
.atlas-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 210px);
  gap: 8px;
  margin-bottom: 9px;
}
.atlas-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 12px;
  background: #292537;
  border: 1px solid #66566b;
  border-radius: 6px;
  color: var(--atlas-pink);
}
.atlas-search:focus-within {
  outline: 2px solid var(--atlas-pink);
}
#atlas-card-scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 8px;
  margin-bottom: 8px;
  padding-inline: 10px;
  border-left: 3px solid #ffd390;
  border-radius: 3px;
  background: var(--atlas-panel);
  color: var(--atlas-dim);
  font-size: 13px;
  overflow-wrap: anywhere;
}
#atlas-card-scope b {
  color: #ffdfb4;
}
#atlas-card-scope button {
  min-height: 40px;
  color: #ffc4df;
  text-decoration: underline;
}
.atlas-search input,
.atlas-select select {
  min-height: 44px;
  font: inherit;
  font-size: 16px;
  width: 100%;
  min-width: 0;
}
.atlas-search input {
  border: 0;
  background: transparent;
  color: #fff4fa;
  outline: none;
  padding: 4px 0;
}
.atlas-search input:focus-visible {
  outline: 0;
}
.atlas-search input::placeholder {
  color: #c4b9c8;
}
.atlas-select select {
  background: #322b3e;
  color: #fff4fa;
  border: 1px solid #66566b;
  border-radius: 6px;
  padding-inline: 9px;
}
.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(226px, 0.85fr);
  gap: 16px;
  align-items: start;
}
.map-column {
  min-width: 0;
}
.atlas-page .map-stage {
  isolation: isolate;
  background: #343348;
  border: 1px solid #5e516d;
  border-radius: 9px;
}
.atlas-page #world-map {
  display: block;
  width: 100%;
  height: clamp(300px, 59vh, 620px);
  cursor: grab;
  background: #35374b;
  touch-action: none;
}
.atlas-page #world-map.dragging {
  cursor: grabbing;
}
.atlas-page #world-map:focus-visible {
  outline: 3px solid var(--atlas-pink);
  outline-offset: -3px;
}
#atlas-artwork-status {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 110px);
  padding: 5px 10px;
  background: #262234f5;
  border: 1px solid #98899e;
  border-radius: 6px;
  color: #fff4fa;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
}
#atlas-artwork-status button {
  min-height: 40px;
  padding-inline: 9px;
  color: #ffc4df;
  text-decoration: underline;
  font-weight: 700;
  pointer-events: auto;
}
#atlas-artwork-status[hidden],
#atlas-artwork-status button[hidden] {
  display: none;
}
.atlas-layer-dock,
.atlas-page .map-tools {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 10px;
  gap: 1px;
  background: #1b1829ed;
  border: 1px solid #a399b2a6;
  border-radius: 5px;
  padding: 2px;
  color: #f9eff8;
}
.atlas-layer-dock {
  left: 10px;
}
.atlas-page .map-tools {
  right: 10px;
}
.atlas-page .map-tools button,
.atlas-layer-dock button {
  display: grid;
  place-items: center;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 2px;
  min-width: 40px;
  min-height: 40px;
  padding: 4px;
  box-shadow: none;
  font-size: 20px;
}
.atlas-page .map-tools #map-all {
  font-size: 12px;
  font-weight: 700;
}
.atlas-page .map-tools button:disabled {
  color: #988d9d;
  cursor: default;
}
.atlas-layer-dock button {
  position: relative;
  border-left: 3px solid transparent;
}
.atlas-layer-dock button[aria-pressed="true"] {
  color: #271d2e;
  background: #f4b2d1;
  border-left-color: #fff3f7;
}
.atlas-layer-dock button span {
  position: absolute;
  left: calc(100% + 5px);
  padding: 5px 8px;
  border-radius: 3px;
  font-weight: 650;
  background: #211c30;
  color: #ffedf6;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
@media (hover: hover) {
  .atlas-layer-dock button:hover span,
  .atlas-layer-dock button:focus-visible span {
    opacity: 1;
  }
}
.atlas-scale {
  position: absolute;
  right: 10px;
  bottom: 10px;
  pointer-events: none;
  background: #242033e3;
  border: 1px solid #b4aabd66;
  border-radius: 3px;
  color: white;
  font: 600 12px/1.2 var(--sans);
  padding: 4px 6px;
}
#atlas-callout {
  position: absolute;
  bottom: 10px;
  left: 10px;
  max-width: calc(100% - 72px);
  display: grid;
  padding: 7px 10px;
  background: #201d30ed;
  color: white;
  border-left: 3px solid #f69bc2;
  pointer-events: none;
}
#atlas-callout strong {
  font-size: 15px;
  line-height: 1.3;
}
#atlas-callout small {
  font-size: 11px;
  color: #f2c2d9;
}
#map-nearby {
  position: absolute;
  z-index: 3;
  width: min(340px, calc(100% - 20px));
  bottom: 10px;
  left: 10px;
  color: #fdf3f7;
  background: #242033fa;
  border: 1px solid #a991a8;
  border-radius: 7px;
  box-shadow: 0 4px 20px #1117;
}
#map-nearby header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 12px;
  border-bottom: 1px solid #655369;
  font-size: 14px;
}
#nearby-close {
  min-height: 39px;
  min-width: 40px;
  color: #fac4dc;
}
.nearby-list {
  overflow-y: auto;
  max-height: clamp(82px, 23vh, 215px);
  overscroll-behavior: contain;
}
.nearby-list > button {
  color: #f8bddb;
  min-height: 42px;
  padding: 6px 12px;
  font-size: 14px;
}
.atlas-page .map-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--atlas-line);
}
.atlas-page .atlas-visit-filter {
  min-height: 44px;
  margin: 0;
  color: var(--atlas-dim);
  font-size: 13px;
}
#map-to-list {
  display: none;
  align-items: center;
  gap: 3px;
  min-height: 44px;
  color: #f2b3d1;
  font-size: 13px;
}
.atlas-page .map-list,
.atlas-pin-card {
  background: var(--atlas-panel);
  border: 1px solid var(--atlas-line);
  border-radius: 8px;
  padding: 14px;
}
.atlas-page #map-count {
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 6px;
}
.atlas-page .pin-link,
.nearby-pin {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 3px;
  min-height: 45px;
  color: #fbf5f7;
  border-top: 1px solid #484052;
}
.nearby-pin {
  padding-inline: 11px;
}
.atlas-page .pin-link span,
.nearby-pin span {
  flex: 1;
  min-width: 0;
}
.nearby-pin small,
.atlas-page .pin-link small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--atlas-dim);
}
.nearby-pin b,
.atlas-page .pin-link b {
  font-size: 14px;
  line-height: 1.35;
}
.atlas-page .pin-link[aria-current],
.nearby-pin[aria-current] {
  background: #4a3348;
}
.atlas-dot {
  display: inline-block;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pin-tone);
  border: 1px solid #fff8;
}
.tone-services {
  --pin-tone: #afe0fc;
}
.tone-motion {
  --pin-tone: #ffb8d1;
}
.tone-collection {
  --pin-tone: #ffd390;
}
.tone-activity {
  --pin-tone: #97e4b9;
}
.atlas-page #map-info {
  padding: 0;
}
.atlas-pin-card {
  margin-top: 9px;
}
.atlas-pin-card h3 {
  font-size: 15px;
  margin: 12px 0 4px;
}
.atlas-page #map-info p {
  color: var(--atlas-dim);
}
#map-info .pin-approach {
  margin: 9px 0;
  color: #fbf2f5;
}
#map-info button,
#map-info .jump-links a {
  min-height: 40px;
}
.atlas-original-note {
  margin-block: 10px;
  overflow-wrap: anywhere;
}
.atlas-original-note summary,
.pin-guides details summary {
  padding: 8px 0;
  color: #e8bcd3;
  font-weight: 650;
  font-size: 14px;
}
.atlas-source {
  display: inline-block;
  font-size: 12px;
  color: var(--atlas-dim);
  text-decoration: underline;
  margin-top: 10px;
}
.atlas-reference {
  margin-top: 15px;
  border-top: 1px solid var(--atlas-line);
  color: var(--atlas-dim);
  font-size: 13px;
}
.atlas-reference summary {
  padding: 11px 0;
  font-weight: 700;
}
.atlas-reference p {
  margin: 7px 0;
}
.atlas-reference a {
  color: #a6e4d6;
  text-decoration: underline;
}
.atlas-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
}
.atlas-legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
@media (max-width: 760px) {
  .atlas-page {
    padding-block: 12px 25px;
  }
  .atlas-title {
    margin-bottom: 9px;
  }
  .atlas-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 34%);
  }
  .atlas-search {
    padding-inline: 8px;
    gap: 4px;
  }
  .atlas-select select {
    font-size: 14px;
    padding-inline: 4px;
  }
  .atlas-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .atlas-page #world-map {
    height: clamp(243px, 45dvh, 420px);
  }
  .atlas-layer-dock,
  .atlas-page .map-tools {
    top: 6px;
  }
  .atlas-layer-dock {
    left: 6px;
  }
  .atlas-page .map-tools {
    right: 6px;
  }
  .atlas-layer-dock button,
  .atlas-page .map-tools button {
    min-height: 40px;
    min-width: 38px;
  }
  #map-to-list {
    display: flex;
  }
  .atlas-page .map-list {
    width: 100%;
    padding: 11px;
  }
}
@media (max-height: 500px) and (min-width: 650px) {
  .atlas-page #world-map {
    height: clamp(270px, 78vh, 370px);
  }
}
