/* Search return and multi-target map details, layered over the existing theme. */
.map-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.map-dialog>.dialog-heading{flex:none;margin-bottom:12px;background:#2d203c}
#map-dialog-content{min-height:0;overflow:auto;overscroll-behavior:contain}
.map-dialog>.journey-map-heading{align-items:center;gap:12px}
.journey-map-heading>div:first-child{min-width:0;flex:1 1 auto}
.journey-map-heading h2{font-size:22px;line-height:1.3;overflow-wrap:anywhere}
.journey-map-summary{margin:3px 0 0;font-size:11px;font-weight:600;line-height:1.35;color:#e4c9f0;letter-spacing:0}
.journey-heading-code{min-width:0;flex:0 1 auto}
.journey-map-targets{margin:0 0 16px;min-width:0}
.journey-map-target-heading{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;justify-content:space-between;margin-bottom:10px}
.journey-map-target-heading h3{margin:0;font-size:17px}
.journey-map-target-heading>span{color:#d3bfdc;font-size:12px;line-height:1.6}
.journey-map-target-list{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:3px 2px 10px;max-width:100%;scrollbar-color:#a684bb #2b1e3b}
.journey-map-target{display:flex;align-items:flex-start;gap:10px;flex:0 0 230px;scroll-snap-align:start;border:1px solid #88679b;border-radius:13px;background:#392749;padding:12px;color:#f7ebfa;text-align:left;min-height:94px;touch-action:manipulation}
.journey-map-target>span:last-child{min-width:0}
.journey-map-target strong,.journey-map-target small{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.journey-map-target strong{font-size:14px;margin-bottom:4px}
.journey-map-target small{font-size:12px;color:#d7c7e0}
.journey-map-target.is-active{border-color:var(--target-color);box-shadow:0 0 0 1px var(--target-color);background:#483153}
.journey-map-target.is-missing small:last-child{color:#f7cba5}
.journey-map-unmatched{margin:6px 0 12px;padding:8px 12px;border:1px solid #765e86;border-radius:10px;color:#e3d0eb;font-size:12px;line-height:1.7}
.journey-map-unmatched summary{min-height:44px;display:flex;align-items:center;cursor:pointer;list-style:none}
.journey-map-unmatched summary::after{content:'＋';margin-left:auto;padding-left:12px}
.journey-map-unmatched[open] summary::after{content:'−'}
.journey-map-unmatched p{margin:0 0 7px;color:#c9b5d3}
.journey-map-unmatched ul{padding-left:20px;margin:0 0 6px}
.journey-target-number{display:grid;place-items:center;flex:none;min-width:25px;height:25px;border-radius:50%;background:var(--target-color);color:#241d2e;font-size:13px;font-weight:800}
.journey-map-marker{cursor:pointer}
.journey-map-marker circle{stroke:#2a2038;stroke-width:.25}
.journey-map-marker.is-focused circle{stroke:#fff;stroke-width:.5}
.journey-target-point.is-focused{stroke:#fff;stroke-width:.5}
.map-selected-ring{pointer-events:none}
.journey-map-target:focus-visible,.journey-map-marker:focus-visible{outline:3px solid #fff3c5;outline-offset:3px}
.map-dialog .map-controls{flex-wrap:wrap;max-width:100%}
.map-dialog .map-intro>p{flex:1 1 230px}
.map-dialog .map-selected-info{line-height:1.7}
.map-dialog .map-position-list:empty{display:none}
@media(max-width:760px){
  .map-dialog>.journey-map-heading{gap:7px}
  .journey-map-heading h2{font-size:18px}
  .journey-map-target{flex-basis:220px;min-height:98px;padding:11px}
  .journey-map-target-heading{display:block}
  .journey-map-target-heading>span{display:block;margin-top:3px}
  .map-dialog .map-viewport{min-height:250px;max-height:54dvh}
  .map-dialog .map-controls{gap:6px}
  .map-dialog .map-controls button{min-width:44px;min-height:44px}
}
@media(prefers-reduced-motion:reduce){.journey-map-target-list{scroll-behavior:auto}}
