#journey-map {
  color: #dbe4ef;
  margin: 28px 0;
  padding: 20px 0;
  border-top: 1px solid #59617a;
  min-width: 0;
}
#journey-map h2 {
  font-family: Cinzel, Georgia, serif;
  color: #e6bb70;
}
#journey-map p {
  max-width: 76ch;
}
#map-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  overflow: visible;
}
#map-svg .map-hop {
  fill: none;
  stroke: #9486b7;
  opacity: 0.7;
  cursor: pointer;
  stroke-linecap: round;
}
#map-svg .map-hop:focus,
#map-svg .map-selected {
  stroke: #e6bb70;
  opacity: 1;
  filter: drop-shadow(0 0 4px #e6bb70);
}
#map-svg .map-node {
  fill: #101d30;
  stroke: #c9d8ee;
  stroke-width: 3;
}
#map-svg .map-node-label {
  font:
    20px Georgia,
    serif;
  fill: #dbe4ef;
}
#map-svg .map-comet {
  fill: #e6bb70;
  filter: drop-shadow(0 0 9px #e6bb70);
}
#map-svg .map-comet-core {
  fill: #f4f8ff;
}
#map-svg .map-comet-tail {
  fill: none;
  stroke: #e6bb70;
  stroke-width: 6;
  stroke-linecap: round;
  opacity: 0.8;
}
#map-svg .map-mini-crystal {
  fill: #c3c9f0;
  stroke: #fff;
  stroke-width: 1.5;
}
#map-svg .map-growth-band {
  fill: none;
  stroke: #e6bb70;
  stroke-width: 2;
}
#map-svg .map-mini {
  pointer-events: none;
}
.map-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.map-controls button,
#map-stops button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #9486b7;
  border-radius: 6px;
  background: #18263d;
  color: #f0edf8;
  font: inherit;
  cursor: pointer;
}
.map-controls button:disabled {
  opacity: 0.55;
  cursor: default;
}
.map-controls button:focus-visible,
#map-stops button:focus-visible {
  outline: 3px solid #e6bb70;
  outline-offset: 3px;
}
#map-range {
  min-width: 140px;
  flex: 1;
  max-width: 360px;
  height: 44px;
  accent-color: #e6bb70;
}
#map-caption {
  flex-basis: 100%;
  overflow-wrap: anywhere;
  min-height: 2.6em;
}
#map-stops {
  padding-left: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 8px;
}
#map-stops button {
  text-align: left;
  width: 100%;
  overflow-wrap: anywhere;
}
#map-simulator {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #e6bb70;
  color: #101d30;
  padding: 5px;
  font:
    14px system-ui,
    sans-serif;
}
.journey-embed {
  margin: 0;
  background: transparent;
  color: #dbe4ef;
  font:
    16px system-ui,
    sans-serif;
}
.journey-embed #journey-map {
  border: 0;
  margin: 0;
  padding: 12px;
}
.journey-embed #map-stops {
  display: none;
}
.journey-embed h2 {
  font-size: 20px;
}
.journey-embed #map-svg {
  max-height: 440px;
}
@media (max-width: 480px) {
  #journey-map {
    padding: 12px 0;
  }
  #map-svg {
    min-height: 200px;
  }
  .map-controls {
    gap: 8px;
  }
  #map-svg .map-node-label {
    font-size: 25px;
  }
  .journey-embed #journey-map {
    padding: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #map-svg * {
    filter: none !important;
  }
}

.journey-embed #map-simulator {
  margin: 12px;
  width: max-content;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  top: 12px;
}

#map-svg .map-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 44;
  pointer-events: stroke;
  cursor: pointer;
}

#map-svg .map-node-label {
  paint-order: stroke;
  stroke: #101d30;
  stroke-width: 3;
  stroke-linejoin: round;
}

#map-svg .map-hop,
#map-svg .map-comet-tail,
#map-svg .map-growth-band {
  vector-effect: non-scaling-stroke;
}
#map-svg .map-hop {
  filter: drop-shadow(0 0 2px #9486b7);
}
#map-svg .map-selected {
  filter: drop-shadow(0 0 5px #e6bb70);
}
#map-svg .map-node-label {
  font-size: 20px;
}

#map-stops {
  padding-inline-start: 32px;
  column-gap: 40px;
  row-gap: 16px;
}
#map-stops > li {
  padding-inline-start: 16px;
  margin-block: 8px;
}
#map-stops button {
  min-height: 44px;
}
