.travel-section {
  --map-height: calc(100vh - var(--nav-height));
  container-type: inline-size;
  padding-block: calc(2 * var(--chapter-inset));
}
@supports (height: 100dvh) {
  .travel-section { --map-height: calc(100dvh - var(--nav-height)); }
}

#work:has(+ .travel-section) { padding-block-end: 0; }

.travel-map {
  --map-width: calc(min(100cqi, var(--map-height) * 1120 / 554) * 0.92);
  position: relative;
  width: var(--map-width);
  aspect-ratio: 1120 / 554;
  margin-inline: auto;
  /* Exclude the transparent strips above and below the land in the 1120-wide SVG. */
  margin-block: calc(-17.656 * var(--map-width) / 1120) calc(-18.786 * var(--map-width) / 1120);
  scroll-margin-top: calc(var(--nav-height) + (var(--map-height) - var(--map-width) * 554 / 1120) / 2);
}
.travel-map > img, .travel-areas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.travel-areas path {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.travel-areas path:focus-visible {
  outline: none;
  stroke: var(--site-fg);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}
.travel-label {
  position: absolute;
  transform: translate(-50%, calc(-100% - 8px));
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--site-fg);
  color: var(--site-bg);
  font: 400 12px/18px var(--site-font);
  white-space: nowrap;
  pointer-events: none;
}
@media (min-width: 640px) {
  .travel-label { font-size: 14px; line-height: 20px; }
}
@media (forced-colors: active) {
  .travel-areas path { fill: ButtonText; }
  .travel-areas path:focus-visible { fill: Highlight; }
}
