.route-app {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 500px;
  height: calc(100dvh - var(--shell-height, 114px));
  background: var(--sl-panel, #11151c);
  color: #e6e5d8;
  overflow: hidden;
}
.route-sidebar {
  padding: 28px 20px;
  overflow: auto;
  background: var(--sl-panel, #11151c);
  border-right: 1px solid var(--sl-raised, #1a2029);
}
.route-heading .tool-title {
  margin: 8px 0;
  font-size: 27px;
  line-height: 1.12;
}
.route-heading p {
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0 22px;
}
.route-controls > summary {
  display: none;
}
.route-section {
  border-top: 1px solid var(--sl-line, #373940);
  padding: 20px 0;
}
.route-label {
  color: #c8ad6a;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.route-places {
  display: grid;
  gap: 7px;
}
.route-place {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 11px;
  border: 1px solid var(--sl-line, #373940);
  background: var(--sl-raised, #1a2029);
  color: inherit;
  cursor: pointer;
  border-radius: 5px;
}
.route-place.is-selected {
  border-color: #c8ad6a;
  background: var(--sl-raised, #1a2029);
}
.route-place-symbol {
  color: #dfc77f;
  font-size: 19px;
}
.route-place strong,
.route-place small {
  display: block;
}
.route-place strong {
  font-size: 13px;
  line-height: 1.35;
}
.route-place small {
  font-size: 11px;
  margin-top: 4px;
  color: var(--sl-muted, #b7b1a4);
}
.route-visit,
.route-set {
  width: 100%;
  margin-top: 12px;
}
.route-saved {
  display: block;
  color: var(--sl-muted, #b7b1a4);
  margin-top: 7px;
  font-size: 11px;
}
.route-help,
.route-sources {
  color: var(--sl-muted, #b7b1a4);
  font-size: 12px;
  line-height: 1.55;
}
.route-help {
  margin: 0;
}
.route-text-button {
  display: block;
  padding: 9px 0 0;
  border: 0;
  background: none;
  color: #e0c782;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.route-result {
  margin-top: 16px;
  padding: 14px;
  background: var(--sl-panel, #11151c);
  border-left: 2px solid #c8ad6a;
  display: grid;
  gap: 5px;
}
.route-result > span,
.route-result small {
  color: var(--sl-muted, #b7b1a4);
  font-size: 11px;
}
.route-result strong {
  font-size: 25px;
  color: #e8d6a0;
}
.route-sources {
  border-top: 1px solid var(--sl-line, #373940);
  padding-top: 16px;
}
.route-sources summary {
  cursor: pointer;
  color: var(--sl-muted, #b7b1a4);
}
.route-sources a {
  color: #dfc77f;
}
.route-map-shell {
  position: relative;
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
  background: var(--sl-bg, #0b0e13);
}
.route-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  outline-offset: -4px;
}
.route-map:active {
  cursor: grabbing;
}
.route-placing .route-map {
  cursor: crosshair;
}
.route-scene {
  position: absolute;
  width: 960px;
  height: 540px;
  left: 50%;
  top: 50%;
  margin-left: -480px;
  margin-top: -270px;
  transform-origin: center;
  will-change: transform;
}
.route-scene img {
  display: block;
  width: 960px;
  height: 540px;
  pointer-events: none;
  user-select: none;
}
.route-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.route-line line {
  stroke: #f1dc9a;
  stroke-width: 2;
  stroke-dasharray: 6 5;
  vector-effect: non-scaling-stroke;
}
.route-pin {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--route-inverse, 1));
  border: 0;
  background: none;
  color: #fff5d4;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  text-align: center;
  filter: drop-shadow(0 2px 3px #000);
  font: inherit;
}
.route-pin span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ffe7a6;
  background: var(--sl-raised, #1a2029);
  font-size: 18px;
}
.route-pin.is-selected span {
  background: #b4863d;
  color: #fff;
}
.route-pin b {
  position: absolute;
  left: 50%;
  top: 34px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px #000;
  background: #11151cba;
  padding: 3px 6px;
  border-radius: 3px;
}
.route-pin-dark {
  left: 544.171875px;
  top: 136.363159px;
}
.route-pin-tomb {
  left: 364px;
  top: 420px;
}
.route-origin-pin {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--route-inverse, 1));
  color: white;
  font-size: 24px;
  line-height: 1;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
}
.route-compass {
  position: absolute;
  right: 22px;
  top: 22px;
  display: grid;
  text-align: center;
  color: #e7d69f;
  font-size: 11px;
  font-weight: bold;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
}
.route-compass span {
  font-size: 24px;
  line-height: 1;
}
.route-map-actions {
  position: absolute;
  right: 18px;
  bottom: 58px;
  display: grid;
  gap: 5px;
}
.route-map-actions button {
  min-width: 38px;
  min-height: 38px;
}
.route-map-footer {
  position: absolute;
  left: 20px;
  right: 70px;
  bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  color: var(--sl-text, #ede4cf);
  font-size: 11px;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
}
.route-scale {
  display: grid;
  gap: 4px;
  min-width: 80px;
}
.route-scale i {
  display: block;
  height: 6px;
  border: solid #fff;
  border-width: 0 1px 2px;
}
.route-placement-notice {
  display: none;
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  background: #1a2029ed;
  border: 1px solid #c8ad6a;
  padding: 9px 14px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}
.route-placing .route-placement-notice {
  display: block;
}
.route-app button:focus-visible,
.route-app summary:focus-visible,
.route-app a:focus-visible,
.route-map:focus-visible {
  outline: 2px solid #ffe1a1;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .route-app {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .route-sidebar {
    padding: 18px;
    border-right: 0;
  }
  .route-heading .tool-title {
    font-size: 23px;
  }
  .route-heading p {
    margin-bottom: 12px;
  }
  .route-controls > summary {
    display: list-item;
    color: #e3ca87;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 0;
  }
  .route-section {
    padding: 14px 0;
  }
  .route-map-shell {
    height: 55vh;
    min-height: 360px;
  }
  .route-map-footer > span {
    display: none;
  }
  .route-pin b {
    font-size: 12px;
  }
  .route-compass {
    right: 15px;
    top: 15px;
  }
}

.route-pin {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
}
.route-pin b {
  top: 43px;
}
.route-pin.is-visited span {
  background: var(--sl-line, #373940);
  border-color: var(--sl-text, #ede4cf);
}
.route-pin.is-visited span::after {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  background: var(--sl-line, #373940);
  color: white;
  font-size: 11px;
  border-radius: 50%;
  width: 15px;
  height: 15px;
}
.route-line-label {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--route-inverse, 1));
  white-space: nowrap;
  background: #11151ce8;
  color: #f5e5b8;
  border: 1px solid #a18b58;
  border-radius: 3px;
  padding: 4px 7px;
  font-size: 11px;
  pointer-events: none;
}
.route-mobile-result {
  display: none;
}
@media (max-width: 700px) {
  .route-map-shell {
    order: 0;
    height: calc(100dvh - var(--shell-height, 110px) - 145px);
    min-height: 310px;
  }
  .route-sidebar {
    order: 1;
  }
  .route-heading p {
    display: none;
  }
  .route-heading .tool-title {
    margin: 4px 0 8px;
  }
  .route-mobile-result {
    display: block;
    color: #e8d6a0;
    font-size: 14px;
    font-weight: 700;
    margin: 8px 0;
  }
  .route-controls:not([open]) {
    border-top: 1px solid var(--sl-line, #373940);
  }
  .route-pin b {
    font-size: 11px;
  }
}
