.route-guide {
  --atlas-ink: #263628;
  --atlas-clay: #974828;
  padding-block: clamp(4rem, 7vw, 7rem);
  scroll-margin-top: 5rem;
}
.page > .route-guide > .wrap { width: 100%; }
.atlas-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.8rem);
}
.atlas-heading h2 { margin: 0; font-size: clamp(2.2rem, 4.2vw, 4.25rem); line-height: 1.08; }
.atlas-heading h2 em { color: var(--atlas-clay); }
.atlas-heading p { max-width: 36ch; margin: 0; line-height: 1.55; }
.atlas-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.atlas-figure { margin: 0; display: flex; flex-direction: column; background: #dddcc4; }
.atlas-map {
  flex: 1;
  min-height: 21rem;
  aspect-ratio: 1.75;
  position: relative;
  isolation: isolate;
  background: #dedfc9 url("img/kapadokya-arazi.webp") center / 100% 100% no-repeat;
  color: var(--atlas-ink);
}
.atlas-roads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.atlas-road {
  fill: none;
  stroke: #6c7560;
  stroke-width: 1.6;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}
.atlas-road.is-current { stroke: var(--atlas-clay); stroke-width: 3; stroke-dasharray: none; }
.atlas-pin, .atlas-origin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
}
.atlas-pin { left: var(--x); top: var(--y); color: var(--atlas-ink); text-decoration: none; }
.atlas-pin::before, .atlas-origin::before {
  content: "";
  width: 9px;
  height: 9px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--atlas-ink);
  border: 2px solid #f7f4e8;
  box-shadow: 0 0 0 1px var(--atlas-ink);
}
.atlas-pin span, .atlas-origin b {
  position: absolute;
  width: max-content;
  font-size: clamp(.78rem, 1vw, .95rem);
  line-height: 1.45;
  font-weight: 600;
}
.atlas-pin span { top: 100%; padding: 0 3px; background: #eeecda; }
.atlas-pin.is-current::before, .atlas-pin:hover::before { background: var(--atlas-clay); box-shadow: 0 0 0 2px var(--atlas-clay); }
.atlas-pin.is-current span { color: #81371c; }
.atlas-selime span, .atlas-ihlara span { left: 100%; top: 50%; transform: translateY(-50%); }
.atlas-goreme span { top: auto; bottom: 100%; }
.atlas-origin { left: 39%; top: 51.8%; }
.atlas-origin::before { background: #f9f5e6; border: 4px solid var(--atlas-ink); box-shadow: 0 0 0 2px #f4f0db; }
.atlas-origin b { bottom: calc(100% + 1px); background: var(--atlas-ink); color: #fff; padding: 3px 9px; }
.atlas-north { position: absolute; top: 1.25rem; left: 1.4rem; display: grid; justify-items: center; gap: 3px; font-size: .75rem; font-weight: 650; }
.atlas-north::after { content: ""; width: 10px; height: 22px; background: linear-gradient(90deg, var(--atlas-ink) 50%, #8b947f 50%); clip-path: polygon(50% 0, 100% 100%, 50% 77%, 0 100%); }
.atlas-figure figcaption { display: flex; justify-content: space-between; gap: 8px; padding: .65rem 1.1rem; border-top: 1px solid #a6ab92; color: #3d4738; font-size: .75rem; }
.atlas-figure figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.atlas-stops {
  background: var(--atlas-ink);
  color: #faf6ec;
  padding: clamp(1.3rem, 3vw, 3rem);
}
.atlas-stops h3 { margin: 0 0 1.1rem; font-size: clamp(1.6rem, 2.2vw, 2.15rem); color: inherit; }
.atlas-stop { margin: 0; padding: 0; border: 0; border-top: 1px solid #566252; scroll-margin-top: 7rem; }
.atlas-stop:last-child { border-bottom: 1px solid #566252; }
.atlas-stop summary {
  display: grid;
  grid-template-columns: 1.2rem 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .95rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 550;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.3;
}
.atlas-stop summary::-webkit-details-marker { display: none; }
.atlas-stop .line-icon { width: 1.2rem; height: 1.2rem; color: #eabc9e; }
.atlas-time { font-size: .83rem; color: #d3d9cd; white-space: nowrap; font-weight: 450; }
.atlas-stop[open] summary, .atlas-stop summary:hover { color: #f1bc95; }
.atlas-note { padding: 0 0 1rem 1.95rem; }
.atlas-note p { color: #dce0d5; font-size: .93rem; margin: 0 0 .5rem; line-height: 1.5; }
.atlas-note a { color: #fff; text-decoration: underline; text-underline-offset: .25em; font-size: .9rem; }
.route-guide :is(a, summary):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media(max-width: 840px) {
  .atlas-layout { grid-template-columns: 1fr; }
  .atlas-map { min-height: 0; aspect-ratio: 1.9; }
  .atlas-stops { padding: 1.6rem; }
}
@media(max-width: 600px) {
  .atlas-heading { display: block; }
  .atlas-heading p { margin-top: .75rem; }
  .atlas-map { aspect-ratio: 1.13; }
  .atlas-stops { padding: 1.35rem 1.1rem; }
  .atlas-stop summary { gap: .6rem; }
  .atlas-note { padding-left: 1.8rem; }
}
