.travel-map {
  min-height: 100svh;
  padding: 64px 16px 76px;
  background: repeating-linear-gradient(45deg, #f7f0d8 0 12px, #efe5c7 12px 14px);
  color: #482c22;
}

.travel-map__header,
.travel-map__figure,
.travel-map__methods,
.travel-map__actions,
.travel-map__status {
  width: min(100%, 760px);
  margin-inline: auto;
}

.travel-map__header { margin-bottom: 24px; text-align: center; }
.travel-map__eyebrow { margin: 0 0 5px; color: #b94a55; font-size: 0.8rem; font-weight: 900; }
.travel-map__title { margin: 0; font-size: clamp(1.7rem, 8vw, 2.5rem); letter-spacing: 0; text-shadow: 2px 2px #e6bb77; }

.travel-map__figure {
  position: relative;
  margin-top: 0;
  margin-bottom: 22px;
  padding: 8px;
  border: 8px solid #6e3d29;
  outline: 4px solid #c27a43;
  background: #e1a95f;
  box-shadow: 8px 9px 0 rgb(77 59 38 / 22%);
}

.travel-map__image {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  image-rendering: pixelated;
}

.travel-map__marker {
  position: absolute;
  top: 43%;
  left: 63%;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 4px solid #6e292d;
  border-radius: 50% 50% 50% 2px;
  background: #d94c59;
  color: #fff5cf;
  transform: rotate(-45deg);
  animation: travel-marker 1.4s steps(2, end) infinite;
}

.travel-map__marker::first-letter { transform: rotate(45deg); }

.travel-map__caption {
  display: grid;
  padding: 14px 10px 6px;
  gap: 4px;
  text-align: center;
}

.travel-map__caption strong { color: #b93c4e; font-size: 1.2rem; }
.travel-map__caption span { overflow-wrap: anywhere; }

.travel-map__methods {
  display: grid;
  gap: 12px;
}

.travel-map__method {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 104px;
  border: 5px solid #6e3d29;
  background: #fff0bd;
  box-shadow: inset 0 0 0 3px #d8a15c;
}

.travel-map__method-visual {
  display: grid;
  place-items: center;
  border-right: 4px solid #9d6743;
  background: #9bd26a;
  color: #47764c;
  font-size: 1.5rem;
}

.travel-map__horse { width: 64px; height: 64px; image-rendering: pixelated; }

.travel-map__transit-icon {
  position: relative;
  display: block;
  width: 42px;
  height: 28px;
  border: 4px solid #426f47;
  background: #f2d66f;
  box-shadow: inset 0 -7px #d66a50;
}

.travel-map__transit-icon::before,
.travel-map__transit-icon::after {
  position: absolute;
  bottom: -8px;
  width: 8px;
  height: 8px;
  background: #3e413d;
  content: "";
}

.travel-map__transit-icon::before { left: 3px; }
.travel-map__transit-icon::after { right: 3px; }
.travel-map__transit-icon.is-rail { width: 46px; height: 20px; box-shadow: inset 0 6px #86c9c4; }
.travel-map__transit-icon.is-rail::before { left: 5px; }
.travel-map__transit-icon.is-rail::after { right: 5px; }

.travel-map__method-copy { padding: 15px 14px; }
.travel-map__method-copy h3 { margin: 0; color: #b33e4e; font-size: 1.05rem; }
.travel-map__method-copy p { margin: 6px 0 0; line-height: 1.55; }

.travel-map__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  gap: 8px;
}

.travel-map__button {
  display: flex;
  min-width: 0;
  min-height: 48px;
  padding: 9px 7px;
  border: 4px solid #6f332a;
  border-radius: 3px;
  align-items: center;
  justify-content: center;
  background: #c33f50;
  color: #fff4d0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 -4px #8d2d3d;
}

.travel-map__button:focus-visible { outline: 3px solid #356d95; outline-offset: 2px; }
.travel-map__button.is-disabled { opacity: 0.48; pointer-events: none; }
.travel-map__status { min-height: 24px; margin-top: 12px; color: #6f4e3d; font-size: 0.85rem; text-align: center; }

@keyframes travel-marker { 50% { translate: 0 -5px; } }

@media (min-width: 640px) {
  .travel-map__methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .travel-map__button { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .travel-map__marker { animation: none; }
}
