.route-explorer{border:1px solid var(--color-border-subtle);border-radius:var(--radius-xl);background:var(--color-surface);grid-template-columns:minmax(0,1fr) minmax(18rem,22rem);display:grid;overflow:hidden}.route-explorer[data-stops=hidden]{grid-template-columns:minmax(0,1fr)}.route-explorer__map{background:var(--map-bg);flex-direction:column;min-width:0;display:flex;position:relative}.route-explorer__canvas{height:clamp(24rem,64vh,40rem);transition:opacity .5s var(--ease-standard)}.route-explorer__canvas.is-loading{opacity:0}.route-explorer__message{padding:var(--space-6);text-align:center;font-size:var(--text-sm);color:var(--color-text-muted);pointer-events:none;place-items:center;display:grid;position:absolute;inset:0}.route-explorer__empty{align-items:center;gap:var(--space-3);padding:var(--space-5);color:var(--color-text-muted);font-size:var(--text-sm);display:flex}.route-explorer__empty svg{color:var(--color-text-subtle);flex-shrink:0}.route-explorer__note{padding:var(--space-3) var(--space-4);border-top:1px solid var(--color-border-subtle);background:var(--color-surface);color:var(--color-text-muted);font-size:var(--text-sm)}.route-explorer__tools{top:var(--space-3);right:var(--space-3);gap:var(--space-2);flex-direction:column;display:flex;position:absolute}.map-fab{background:var(--color-surface);width:2.5rem;height:2.5rem;color:var(--color-text);box-shadow:var(--shadow-pill);transition:transform var(--duration-fast) var(--ease-standard);border-radius:50%;place-items:center;display:grid}.map-fab:hover{transform:scale(1.05)}.map-fab:active{transform:scale(.92)}.map-fab:disabled{opacity:.5}.route-explorer__legend{top:var(--space-3);left:var(--space-3);align-items:center;gap:var(--space-2);height:2rem;padding:0 var(--space-3);border-radius:var(--radius-full);background:var(--color-surface);box-shadow:var(--shadow-pill);font-size:var(--text-xs);font-weight:var(--weight-semibold);display:inline-flex;position:absolute}.route-explorer__legend i{background:var(--map-route);width:18px;height:4px;box-shadow:0 0 0 2px var(--map-route-casing);border-radius:2px}.route-explorer__follow{left:50%;bottom:var(--space-5);height:3rem;padding-inline:var(--space-6);border-radius:var(--radius-full);animation:rise-in .5s var(--ease-out) both;position:absolute;translate:-50%;box-shadow:0 10px 28px -6px #0006}.route-card{left:var(--space-3);right:var(--space-3);bottom:calc(var(--space-5) + 3.75rem);gap:var(--space-3);max-width:24rem;padding:var(--space-2);border-radius:var(--radius-lg);background:var(--color-surface);box-shadow:var(--shadow-float);animation:rise-in .3s var(--ease-out) both;margin-inline:auto;display:flex;position:absolute}.route-card picture,.route-card img{object-fit:cover;border-radius:var(--radius-md);flex-shrink:0;width:6rem;height:4.5rem}.route-card__text{min-width:0;padding:var(--space-1) var(--space-6) var(--space-1) 0;font-size:var(--text-sm);flex-direction:column;gap:2px;display:flex}.route-card__text small{color:var(--color-text-muted);font-size:var(--text-xs)}.route-card__text strong{-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3;display:-webkit-box;overflow:hidden}.route-card__text a{font-weight:var(--weight-semibold);color:var(--color-accent-ink);align-items:center;gap:2px;margin-top:auto;display:inline-flex}.route-card__close{top:var(--space-1);right:var(--space-1);width:1.75rem;height:1.75rem;color:var(--color-text-muted);border-radius:50%;place-items:center;display:grid;position:absolute}.route-card__close:hover{background:var(--color-hover)}.follow-panel{left:var(--space-3);right:var(--space-3);bottom:var(--space-3);align-items:center;gap:var(--space-2);pointer-events:none;flex-direction:column;display:flex;position:absolute}.follow-panel>*{pointer-events:auto}.follow-panel__card{gap:var(--space-1-5);width:min(100%,26rem);padding:var(--space-4) var(--space-5);border-radius:var(--radius-xl);background:var(--color-surface);box-shadow:var(--shadow-float);animation:rise-in .3s var(--ease-out) both;flex-direction:column;display:flex}.follow-panel__progress{align-items:center;gap:var(--space-3);font-size:var(--text-xs);font-weight:var(--weight-semibold);color:var(--color-text-muted);display:flex}.follow-panel__bar{background:var(--color-surface-sunken);border-radius:2px;flex:1;height:4px;overflow:hidden}.follow-panel__bar span{background:var(--color-accent);height:100%;transition:width .6s var(--ease-out);display:block}.follow-panel__label{margin-top:var(--space-1);font-size:var(--text-xs);font-weight:var(--weight-semibold);text-transform:uppercase;letter-spacing:var(--tracking-wide);color:var(--color-accent-ink)}.follow-panel__title{font-family:var(--font-display);font-size:var(--text-xl);font-weight:600;line-height:1.15}.follow-panel__meta,.follow-panel__status{align-items:center;gap:var(--space-2);font-size:var(--text-sm);color:var(--color-text-muted);flex-wrap:wrap;display:flex}.follow-panel__meta strong{color:var(--color-text)}.follow-panel__warn{padding:2px var(--space-2);border-radius:var(--radius-sm);background:var(--color-warning-subtle,#fdf0d5);color:var(--color-warning-ink,#7a4b00);font-size:var(--text-xs);font-weight:var(--weight-semibold)}.follow-panel__actions{gap:var(--space-2);margin-top:var(--space-2);display:flex}.follow-panel__actions .btn{flex:1}.follow-panel__recenter{align-self:flex-end}.spin-slow{animation:2.4s linear infinite spin}@keyframes spin{to{rotate:360deg}}.route-explorer__stops li.is-done .route-stop__index{background:var(--color-success,#2e6b47);border-color:var(--color-success,#2e6b47);color:#fff}.route-explorer__stops li.is-done .route-stop__text strong{color:var(--color-text-muted)}.route-stop:disabled{opacity:.6}.route-explorer__stops{border-left:1px solid var(--color-border);flex-direction:column;min-width:0;max-height:clamp(24rem,64vh,40rem);display:flex}.route-explorer__stops-head{justify-content:space-between;align-items:baseline;gap:var(--space-3);padding:var(--space-4) var(--space-5) var(--space-3);border-bottom:1px solid var(--color-border-subtle);display:flex}.route-explorer__stops-head h2{font-size:var(--text-base)}.route-explorer__stops-head p{margin-top:var(--space-1);font-size:var(--text-xs);color:var(--color-text-subtle)}.route-explorer__stops ol{overscroll-behavior:contain;padding:var(--space-2) 0;counter-reset:none;list-style:none;overflow-y:auto}.route-explorer__stops li{align-items:center;gap:var(--space-1);padding:0 var(--space-2) 0 var(--space-3);display:flex;position:relative}.route-explorer__stops li:before{content:"";left:calc(var(--space-3) + var(--space-2) + 11px);background:var(--color-border);width:2px;position:absolute;top:0;bottom:0}.route-explorer__stops li:first-child:before{top:50%}.route-explorer__stops li:last-child:before{bottom:50%}.route-explorer__stops li[aria-current=step]{background:var(--color-selected)}.route-stop{align-items:center;gap:var(--space-3);min-width:0;padding:var(--space-2);border-radius:var(--radius-md);text-align:left;flex:1;display:flex;position:relative}.route-stop:hover{background:var(--color-hover)}.route-stop__index{z-index:1;background:var(--color-surface);border:2px solid var(--map-route);width:24px;height:24px;font-size:var(--text-2xs);font-weight:var(--weight-bold);border-radius:50%;flex-shrink:0;place-items:center;display:grid;position:relative}li[aria-current=step] .route-stop__index{background:var(--color-accent);border-color:var(--color-accent);color:var(--color-text-on-accent)}.route-stop>picture,.route-stop__noimg{border-radius:var(--radius-sm);background:var(--color-surface-muted);flex-shrink:0;width:3.5rem;height:2.625rem;overflow:hidden}.route-stop__noimg{color:var(--color-text-subtle);place-items:center;display:grid}.route-stop img{object-fit:cover;width:100%;height:100%}.route-stop__text{min-width:0}.route-stop__text strong{-webkit-line-clamp:2;font-size:var(--text-sm);font-weight:var(--weight-medium);line-height:var(--leading-snug);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.route-stop__text small{font-size:var(--text-xs);color:var(--color-text-subtle);margin-top:2px;display:block}@media (width<=1000px){.route-explorer{grid-template-columns:1fr}.route-explorer__stops{border-left:0;border-top:1px solid var(--color-border-subtle);max-height:none}}@media (width<=760px){.route-explorer{margin-inline:calc(-1 * var(--gutter));border-inline:0;border-radius:0}.route-explorer__canvas{height:60svh}}@media (width<=1000px){.route-explorer.is-following .route-explorer__map{z-index:var(--z-modal,1000);position:fixed;inset:0}.route-explorer.is-following .route-explorer__canvas{height:100dvh}.route-explorer.is-following .route-explorer__tools{top:max(var(--space-3), env(safe-area-inset-top))}.route-explorer.is-following .follow-panel{bottom:max(var(--space-3), env(safe-area-inset-bottom))}html.is-following-route{overflow:hidden}}
