.gw-map-guided {
  --map-deep: #194958;
  --map-muted: #3d5f6b;
  margin-bottom: 0;
  border: 0;
  background: none;
}

.gw-map-guided .gw-discovery-heading { gap: 12px 32px; margin-bottom: 18px; }
.gw-map-guided .gw-discovery-heading h2 { margin-bottom: .35rem; }
.gw-map-guided .gw-discovery-all {
  min-height: 44px;
  padding: .25rem 0;
  color: var(--map-deep);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.gw-map-guided .gw-discovery-all:hover { color: var(--map-deep); background: none; }
.gw-map-rotation {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  margin-block: 0 22px;
}
.gw-map-rotation-media,
.gw-map-rotation-text { position: relative; overflow: hidden; }
.gw-map-rotation-media { width: 100%; aspect-ratio: 16 / 9; background: var(--atlas-bg); }
.gw-map-rotation-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.gw-map-guided :focus-visible { outline: 2px solid var(--map-deep); outline-offset: -2px; }
.gw-map-rotation-body { min-width: 0; }
.gw-map-rotation-text {
  --rotation-title-size: clamp(1.28rem, 2.04vw, 1.68rem);
  min-height: calc(2.34 * var(--rotation-title-size) + 3.85rem);
}
.gw-map-rotation-copy[aria-hidden="true"] { position: absolute; inset: 0; pointer-events: none; }
.gw-map-rotation-media img[aria-hidden="true"] { pointer-events: none; }
.gw-map-rotation-copy h3,
.gw-map-rotation-copy p:last-child {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.gw-map-rotation-copy p:first-child {
  margin: 0 0 .3rem;
  color: var(--map-deep);
  font: 620 .71rem/1.2 var(--body);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.gw-map-rotation-copy h3 { margin: 0; font: 550 var(--rotation-title-size)/1.17 var(--display); }
.gw-map-rotation-copy p:last-child {
  margin: .25rem 0 0;
  color: var(--map-muted);
  font-size: .87rem;
  line-height: 1.42;
}
.gw-map-rotation-footer,
.gw-map-rotation-controls { display: flex; align-items: center; gap: .25rem; }
.gw-map-rotation-footer {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem .65rem;
  max-width: 40rem;
}
.gw-map-rotation-footer button {
  min-height: 44px;
  color: var(--map-deep);
  background: transparent;
}
#gw-map-rotation-show {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding-inline: .7rem;
  border: 1px solid var(--atlas-border);
  font-size: .82rem;
  font-weight: 620;
}
.gw-map-rotation-controls button { min-width: 44px; padding: 0; border: 0; border-radius: 50%; }
.gw-map-rotation-footer button:hover { background: #e7f0f2; }
#gw-map-rotation-position {
  min-width: 5.6ch;
  text-align: center;
  color: var(--map-muted);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}
.gw-map-frame { border: 1px solid var(--atlas-border); background: var(--atlas-bg); }
.gw-map-utility {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 8px;
  border-bottom: 1px solid var(--atlas-border);
  padding: 0 .75rem;
}
.gw-map-guided summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  color: var(--map-deep);
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  width: fit-content;
}
.gw-map-guided summary::-webkit-details-marker { display: none; }
.gw-map-guided summary::after {
  display: inline-block;
  margin: 0 4px 3px 3px;
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.gw-map-guided details[open] > summary::after { transform: translateY(3px) rotate(225deg); }
#gw-map-place-status {
  padding-inline: .45rem;
  border-radius: 2px;
  background: #e3eef0;
  color: #284c58;
  font-size: .75rem;
}
.gw-map-locate .gw-national-controls { padding: .25rem 0 .65rem; border: 0; gap: .4rem 1rem; }
.gw-map-locate .gw-national-controls select { min-height: 44px; border-color: #8baeb8; background: #fff; }
.gw-map-guided .gw-national-modes { margin: 0; gap: 0; }
.gw-map-guided button[data-map-mode] { min-height: 44px; background: none; border: none; border-bottom: 2px solid transparent; }
.gw-map-guided button[data-map-mode][aria-pressed="true"] { color: var(--map-deep); background: #e7f0f2; border-bottom-color: var(--map-deep); }
.gw-map-guided button[data-map-mode]:hover { background: #dfecef; }
.gw-map-guided .gw-national-grid { grid-template-columns: minmax(0, 2.2fr) minmax(16rem, 1fr); }
.gw-map-guided .gw-national-toolbar { padding: .15rem .65rem; gap: 4px 8px; background: #f6fafb; }
.gw-map-guided .gw-national-toolbar button { min-height: 44px; min-width: 38px; border-color: transparent; background: none; }
.gw-map-guided .gw-national-toolbar :is(#gw-map-zoom-in, #gw-map-zoom-out) { border-color: #c3d5da; background: #fff; }
.gw-map-guided .gw-national-toolbar button:hover:not(:disabled) { border-color: #b8cfd5; background: #e7f0f2; }
.gw-map-pin-key { display: flex; flex-wrap: wrap; gap: .2rem .65rem; margin: 0; padding: 0; list-style: none; }
.gw-map-pin-key li { display: inline-flex; gap: .37rem; align-items: center; font-size: .74rem; }
.gw-map-pin-key i { display: inline-block; width: .6rem; height: .6rem; color: var(--atlas-road); border-radius: 50%; }
.gw-map-pin-key .gw-map-key-place { border: solid 1.5px currentColor; background: #fff; }
.gw-map-pin-key .gw-map-key-photo { transform: rotate(45deg); border-radius: 2px; background: var(--map-deep); }
.gw-map-pin-key .gw-map-key-route { background: currentColor; width: .47rem; height: .47rem; }
.gw-map-guided .gw-atlas-city,
.gw-map-guided .gw-atlas-city.is-photo { width: 38px; height: 38px; }
.gw-map-guided .gw-atlas-city:hover::before { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--map-deep); }
.gw-map-guided .gw-atlas-city.is-filter::before { background: var(--map-deep); }
.gw-map-guided .gw-atlas-city.is-photo::before {
  width: 11px; height: 11px; transform: rotate(45deg); border-radius: 2px;
  border-width: 1.5px; background: var(--map-deep); box-shadow: 0 0 0 1px var(--map-deep);
}
.gw-map-guided .gw-atlas-city.is-photo::after { display: none; }
.gw-map-guided .gw-atlas-city.is-photo[aria-pressed="true"] { background: transparent; }
.gw-map-guided .gw-atlas-city.is-photo:hover::before,
.gw-map-guided .gw-atlas-city.is-photo[aria-pressed="true"]::before {
  box-shadow: 0 0 0 1px var(--map-deep), 0 0 0 3px #fff, 0 0 0 4.5px var(--map-deep);
}
.gw-map-guided .gw-atlas-label.is-photo { color: var(--map-deep); }
.gw-map-map-notes {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0 .75rem;
  border-top: 1px solid var(--atlas-border);
}
.gw-map-map-notes .gw-national-legend { border-top: 0; min-height: 40px; }
.gw-map-credits { display: flex; align-items: center; gap: 12px; position: relative; margin-inline: auto .7rem; }
.gw-map-credits a, .gw-map-guided .gw-map-credits summary {
  display: inline-flex; align-items: center; min-height: 40px;
  font-size: .75rem; font-weight: 500; color: var(--map-muted); text-underline-offset: .22em;
}
.gw-map-credits dl {
  position: absolute; bottom: 100%; right: 0; z-index: 3;
  min-width: min(260px, 72vw); margin: 0; padding: .8rem;
  color: var(--atlas-ink); background: #fff; border: 1px solid #9eb8c0;
  box-shadow: 0 4px 18px #16394521; font-size: .8rem;
}
.gw-map-credits dt { font-weight: 650; }
.gw-map-credits dd { margin: .08rem 0 .5rem; }
.gw-map-credits dd:last-child { margin-bottom: 0; }
.gw-map-guided .gw-national-results { padding: 14px; background: #fff; }
.gw-national-results .gw-map-back-view {
  width: auto;
  min-height: 44px;
  margin: 0 0 .65rem;
  padding: .3rem .68rem;
  align-items: center;
  justify-content: start;
  background: #e7f0f2;
  color: var(--map-deep);
  font-weight: 650;
}
.gw-national-results .gw-map-back-view:hover { background: #dcebef; }
.gw-map-feature-photo { margin: 0; background: var(--atlas-bg); }
.gw-map-feature-photo img, .gw-map-route-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.05;
  object-fit: cover;
}
.gw-map-feature-photo img { aspect-ratio: 1.75; object-position: 50% 32%; }
.gw-map-feature-photo figcaption { padding: .68rem .78rem .38rem; }
.gw-map-feature-photo figcaption > span, .gw-map-route-meta {
  color: var(--map-muted); font-size: .73rem; font-weight: 650; letter-spacing: .065em; text-transform: uppercase;
}
.gw-map-feature-photo h3 {
  margin: .25rem 0; font: 535 clamp(1.2rem, 1.9vw, 1.48rem)/1.15 var(--display);
  scroll-margin-top: 96px;
}
.gw-map-feature-photo a { display: inline-flex; min-height: 44px; align-items: center; gap: .28rem; color: var(--map-deep); font-size: .88rem; text-underline-offset: .2em; }
.gw-national-current { padding: .8rem 0 .7rem; }
.gw-map-route-meta { margin: 0 0 .28rem; color: var(--map-muted); }
.gw-map-route-preview { margin: 0 0 .7rem; color: var(--map-muted); font-size: .85rem; line-height: 1.45; }
.gw-map-guided .gw-national-current #gw-map-active-link { min-height: 44px; padding-inline: .8rem; }
.gw-map-alternatives summary { width: 100%; }
.gw-map-guided #gw-map-results-list { max-height: 15rem; }
.gw-map-guided .gw-map-plateau-link { padding-block: 0; border: 0; background: none; }
.gw-map-guided .gw-map-plateau-link a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; }
.gw-map-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 850px) {
  .gw-map-guided .gw-national-grid { grid-template-columns: minmax(0, 1fr); }
  .gw-map-rotation-copy p:last-child { -webkit-line-clamp: 3; }
  .gw-map-rotation-text { min-height: calc(2.34 * var(--rotation-title-size) + 5.1rem); }
  .gw-map-guided .gw-national-results { display: grid; gap: 8px; grid-template-columns: minmax(0,1fr); }
  .gw-map-guided .gw-national-toolbar { justify-content: space-between; }
  .gw-map-route-cover { max-height: 190px; object-position: center 60%; }
}
@media (max-width: 560px) {
  .gw-map-guided .gw-discovery-heading { gap: 8px; }
  .gw-map-rotation { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 15px; }
  .gw-map-rotation-media { aspect-ratio: auto; height: clamp(125px, 36vw, 178px); }
  .gw-map-guided .gw-map-utility { grid-template-columns: minmax(0, 1fr); padding: 0 .55rem; }
  .gw-map-guided .gw-national-toolbar { gap: .1rem; padding: .2rem .55rem; }
  .gw-map-guided .gw-national-controls label { flex-basis: 100%; }
  .gw-map-guided .gw-national-toolbar > div { width: 100%; }
  .gw-map-pin-key { gap: .18rem .52rem; }
  .gw-map-pin-key li { font-size: .68rem; }
}
