.atlas-map-intro {
  color: #fffaef;
  padding-block: clamp(35px, 7vw, 80px);
  background: linear-gradient(270deg, #152c33 0%, #142a32ed 50%, #142a32bf 100%),
    url("assets/journey-map.webp") center 41% / cover, #152c33;
  border-bottom: 3px solid #b58d58;
}
.atlas-map-intro h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.5; }
.atlas-map-intro p { max-width: 600px; font-size: 1.08rem; color: #f1e4d0; margin-top: 8px; }
.atlas-map-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.atlas-map-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid #e9d1a797;
  border-radius: 6px;
  padding: 6px 14px;
  background: #1a3a4059;
  font-weight: 700;
}
.atlas-map-jumps a:hover { background: #25484e; }
.atlas-map-section { padding-top: clamp(28px, 5vw, 56px); scroll-margin-block-start: 15px; }
.atlas-map-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 25px;
  margin-bottom: 16px;
}
.atlas-map-section-head p { color: var(--muted); margin-top: 3px; }
.atlas-event-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.atlas-event-controls label { display: grid; gap: 3px; font-size: .94rem; font-weight: 700; }
.atlas-event-controls select {
  min-height: 44px;
  max-width: 100%;
  appearance: none;
  color: var(--ink);
  background: #fffdf6;
  background-image: linear-gradient(45deg, transparent 52%, #6f512e 52%), linear-gradient(135deg, #6f512e 52%, transparent 52%);
  background-position: 13px 52%, 8px 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  border: 1px solid #cbb89f;
  border-radius: 7px;
  padding: 6px 12px 6px 28px;
  font: inherit;
  font-weight: 600;
}
.atlas-map-board {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(280px, 1fr);
  align-items: start;
  gap: 14px;
  padding: 12px;
  background: #142b30;
  border: 1px solid #33494d;
  border-radius: 13px;
  box-shadow: 0 8px 20px #142b3014;
}
.atlas-map-figure { margin: 0; min-width: 0; display: grid; gap: 8px; color: #f3e6d1; }
.atlas-map-plane {
  position: relative;
  isolation: isolate;
  border-radius: 8px;
  background: #12333d;
  aspect-ratio: 1206 / 648;
}
.atlas-map-plane img { display: block; width: 100%; height: auto; border-radius: inherit; }
.atlas-map-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.atlas-map-figure figcaption { padding-inline: 5px; font-size: .88rem; }
.atlas-marker {
  position: absolute;
  top: var(--pin-y);
  left: var(--pin-x);
  translate: -50% -50%;
  width: 29px;
  height: 29px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  pointer-events: auto;
}
.atlas-marker[aria-pressed="true"] { z-index: 2; }
.atlas-marker > span {
  height: 10px;
  width: 10px;
  background: #f7d390;
  border: 1px solid #152c33;
  outline: 1px solid #142b3069;
  border-radius: 50%;
}
.atlas-marker[aria-pressed="true"] > span {
  width: 16px;
  height: 16px;
  background: #fff4d6;
  border: 3px solid #a1512d;
  outline-color: #112c31;
  box-shadow: 0 0 0 5px #f2b6608a;
}
.atlas-marker:hover > span { box-shadow: 0 0 0 4px #f2b6608a; }
.atlas-map-choices, .atlas-route-options, .atlas-route-stepper { display: flex; flex-wrap: wrap; gap: 6px; }
.atlas-map-choices { padding: 0 3px 3px; }
.atlas-map-choices button, .atlas-route-options button, .atlas-route-stepper button {
  min-height: 39px;
  border: 1px solid #baad98;
  border-radius: 6px;
  padding: 5px 10px;
  font-weight: 700;
  font-size: .92rem;
  color: #264642;
  background: #fffaf0;
}
.atlas-map-choices button { background: #234146; color: #fff5e1; border-color: #72837a; }
.atlas-map-choices button:hover { background: #34595e; }
.atlas-map-choices button[aria-pressed="true"] { color: #222b2a; background: #f1cc8f; border-color: #f1cc8f; }
.atlas-route-options button[aria-pressed="true"] { color: #fffaf0; background: #254a48; border-color: #254a48; }
.atlas-route-options button:not([aria-pressed="true"]):hover, .atlas-route-stepper button:not(:disabled):hover { background: #f0e3c9; }
.atlas-route-stepper { margin-top: 15px; }
.atlas-route-stepper button:disabled { opacity: .56; cursor: default; }
.atlas-map-card {
  background: #fffdf5;
  padding: clamp(13px, 2.1vw, 23px);
  border-radius: 8px;
  border-top: 3px solid #c29a62;
}
.atlas-map-card h3 { font-size: clamp(1.14rem, 2.3vw, 1.52rem); line-height: 1.6; margin: 2px 0 6px; }
.atlas-map-card > p:not(.atlas-map-date) { color: #4c5654; }
.atlas-map-date { color: #3c6055; font-weight: 700; font-size: .9rem; }
.atlas-map-location { margin-top: 13px; padding: 9px 11px; border-inline-start: 3px solid #6c9390; border-radius: 3px; background: #edf4ed; }
.atlas-map-location strong { display: block; color: #284a45; }
.atlas-map-location p:not(.atlas-map-date) { margin-top: 2px; }
.atlas-map-people { margin-top: 12px; }
.atlas-map-people:empty { display: none; }
.atlas-map-people strong { display: block; font-size: .92rem; }
.atlas-map-people ul, .atlas-map-links { display: flex; flex-wrap: wrap; gap: 4px 12px; list-style: none; padding: 0; margin: 4px 0 0; }
.atlas-map-links { margin-top: 14px; padding-top: 9px; border-top: 1px solid var(--line); }
.atlas-map-card a, .atlas-map-credit a { color: #694821; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.atlas-map-card a:hover, .atlas-map-credit a:hover { color: #49321c; }
.atlas-map-related { margin-block-start: 12px; }
.atlas-map-related summary { cursor: pointer; width: fit-content; color: #3c6055; font-weight: 700; }
.atlas-map-related ul { margin: 4px 0 0; padding-inline-start: 20px; }
.atlas-map-credit { padding-block: 16px 42px; font-size: .89rem; }
@media (max-width: 880px) {
  .atlas-map-board { grid-template-columns: 1fr; }
  .atlas-map-plane { max-width: 100%; }
}
@media (max-width: 520px) {
  .atlas-map-board { padding: 8px; }
  .atlas-event-controls { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr); }
  .atlas-event-controls label { min-width: 0; }
  .atlas-map-choices button { min-height: 44px; }
}
