#bike-planner[hidden] { display:none; }
#bike-planner { position:fixed; z-index:1050; top:calc(var(--nv-bar-h) + 12px); left:12px; bottom:12px; width:370px; overflow:auto; overscroll-behavior:contain; padding:16px; border:1px solid #d8dadd; border-radius:6px; background:#fff; color:#202124; font:inherit; }
.cycle-planning .bike-panel,.cycle-planning .bike-search,.cycle-planning .location-button { display:none; }
#bike-planner header { position:sticky; top:-16px; z-index:3; display:flex; align-items:center; justify-content:space-between; gap:12px; margin:-16px -16px 12px; padding:16px 16px 8px; background:#fff; }
#bike-planner h2 { margin:0; font-size:22px; line-height:1.2; }
#bike-planner h3 { margin:12px 0 6px; font-size:15px; }
.nv #bike-planner button { min-height:44px; margin:0; padding:8px 12px; border:1px solid #d8dadd; border-radius:6px; background:#fff; color:#202124; font:inherit; font-size:13px; cursor:pointer; }
#bike-planner header button { display:grid; place-items:center; width:44px; padding:0; flex-shrink:0; }
#bike-planner header button svg { width:20px; height:20px; }
.cycle-fields { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:8px; align-items:end; }
.cycle-fields label { display:block; min-width:0; font-size:12px; font-weight:600; }
.cycle-fields label:last-child { grid-column:1/-1; }
.cycle-fields input { display:block; width:100%; min-height:44px; padding:10px; margin-top:4px; border:1px solid #d8dadd; border-radius:6px; background:#fff; color:#202124; font:inherit; font-size:16px; }
.cycle-tools { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.nv #bike-planner .cycle-primary { background:#e9b83a; border-color:#e9b83a; color:#121316; font-weight:700; }
#cycle-form > .cycle-primary { width:100%; }
#cycle-suggestions { max-height:180px; overflow:auto; margin:6px 0; font-size:13px; }
#cycle-suggestions:not(:empty) { padding:4px; border:1px solid #121316; border-radius:6px; background:#fff; box-shadow:0 24px 48px -24px rgba(28,36,56,.4); }
.nv #cycle-suggestions button { display:block; width:100%; min-height:44px; padding:6px 10px; border:0; border-radius:4px; background:transparent; text-align:left; }
.cycle-sug-name, .cycle-sug-sub { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cycle-sug-name { font-size:15px; font-weight:600; }
.cycle-sug-sub { margin-top:1px; font-size:13px; color:#64686e; }
.nv #cycle-suggestions button:hover, .nv #cycle-suggestions button:focus-visible { outline:none; background:#e9b83a; }
.nv #cycle-suggestions button:hover .cycle-sug-sub, .nv #cycle-suggestions button:focus-visible .cycle-sug-sub { color:#121316; }
#cycle-pick-hint { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0 8px; padding:8px 8px 8px 12px; border:1px solid #d8dadd; border-radius:6px; font-size:14px; font-weight:600; }
#cycle-pick-hint[hidden] { display:none; }
#cycle-status { margin:8px 0; font-size:13px; overflow-wrap:anywhere; }
#cycle-status:empty { display:none; }
.cycle-card { border-top:3px solid #202124; margin-top:16px; padding:12px 0 0; }
#bike-planner p { line-height:1.45; }
.cycle-card p { margin:4px 0; }
#bike-planner .cycle-time { font-size:28px; font-weight:750; line-height:1.15; }
.cycle-muted { font-size:12px; color:#64686e; }
#cycle-next { position:sticky; top:60px; z-index:2; margin:0 0 8px; padding:12px; border:2px solid #202124; border-radius:6px; background:#e9b83a; font-weight:700; }
#cycle-parking { border-top:1px solid #d8dadd; font-size:13px; }
.nv #cycle-parking button { display:block; width:100%; border:0; border-bottom:1px solid #e8e9eb; border-radius:0; text-align:left; padding:10px 0; }
#cycle-parking small { display:block; margin-top:4px; color:#64686e; }
.cycle-steps { border-top:1px solid #d8dadd; }
.cycle-steps summary { min-height:44px; padding:12px 0; cursor:pointer; font-size:14px; font-weight:700; }
.cycle-steps ol { margin:0; padding:0; list-style:none; }
.cycle-steps li { border-top:1px solid #e8e9eb; }
.nv #bike-planner .cycle-steps li button { display:flex; align-items:center; gap:12px; width:100%; min-height:56px; padding:12px 8px; border:0; border-radius:0; background:transparent; text-align:left; font-size:14px; }
.cycle-steps li button > span { font-size:26px; width:28px; text-align:center; flex-shrink:0; }
.cycle-steps small { display:block; color:#64686e; font-size:12px; margin-top:4px; }
.nv #bike-planner .cycle-steps li button.is-current { background:#fff2cf; }
.nv #bike-planner .cycle-steps li button.is-selected { background:#fff2cf; box-shadow:inset 4px 0 0 #121316; }
.cycle-strip { display:flex; flex-wrap:wrap; gap:4px 12px; margin:0 0 8px; padding:0; list-style:none; font-size:13px; color:#64686e; }
.cycle-strip li:first-child { font-size:28px; font-weight:750; line-height:1.15; color:#202124; }
.cycle-strip li { align-self:baseline; }
.cycle-options { display:grid; gap:6px; margin:8px 0 4px; }
.nv #bike-planner .cycle-options button { display:grid; gap:2px; width:100%; text-align:left; padding:10px 12px; }
.nv #bike-planner .cycle-options button[aria-checked="true"] { border:2px solid #121316; background:#fff2cf; }
.cycle-options span { font-size:15px; font-weight:600; }
.cycle-options small { color:#64686e; font-size:12px; }
.cycle-legend { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; margin:6px 0; font-size:12px; color:#64686e; }
.cycle-legend .sw { display:inline-block; width:22px; height:5px; border-radius:3px; border:1px solid #121316; }
.sw-path { background:#2f6f4f; } .sw-road { background:#e9b83a; }
.cycle-km { display:block; padding:1px 5px; border:1px solid #121316; border-radius:6px; background:#fff; color:#121316; font:600 11px/16px sans-serif; text-align:center; }
.cycle-chev { display:block; width:18px; height:18px; color:#fff; font-size:14px; line-height:18px; text-align:center; text-shadow:0 0 2px #121316,0 0 2px #121316,0 0 3px #121316; }
.cycle-turn { display:block; width:14px; height:14px; margin:9px; border:3px solid #121316; border-radius:50%; background:#fff; box-sizing:content-box; }
.leaflet-tooltip.cycle-step-label { width:max-content; max-width:240px; font-weight:700; }
.leaflet-tooltip.cycle-pin-label { width:max-content; max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.cycle-route-fade { animation:cycle-fade .5s ease-out .5s both; }
.cycle-zoom-far .cycle-turn { display:none; }
@keyframes cycle-fade { from { opacity:0; } to { opacity:1; } }
.cycle-pin { display:grid; place-items:center; width:30px; height:30px; border:2px solid #121316; border-radius:50%; background:#e9b83a; color:#121316; font:700 14px sans-serif; }
.cycle-route-draw { animation:cycle-draw .8s ease-out both; }
@keyframes cycle-draw { from { stroke-dashoffset:1; } to { stroke-dashoffset:0; } }
#bike-planner.cycle-navigating #cycle-form { display:none; }
#bike-planner.cycle-navigating .cycle-card { margin-top:0; }
#bike-planner.cycle-result-ready #cycle-form { display:none; }
.cycle-journey { display:flex; align-items:center; gap:8px; font-size:13px; }
.cycle-journey p { flex:1; margin:0; }
.cycle-journey button { flex-shrink:0; }
@media(max-width:767px) { #bike-planner.cycle-picking { max-height:none; padding-top:0; padding-bottom:max(8px,env(safe-area-inset-bottom)); } #bike-planner.cycle-picking #cycle-form, #bike-planner.cycle-picking #cycle-result, #bike-planner.cycle-picking #cycle-status { display:none; } #bike-planner.cycle-picking header { margin-bottom:0; padding-bottom:0; } #bike-planner header { top:-12px; margin:-12px -16px 8px; padding:12px 16px 4px; } #cycle-next { top:52px; } #bike-planner { top:auto; left:0; bottom:0; width:100%; max-height:53dvh; padding:12px 16px max(12px,env(safe-area-inset-bottom)); border-radius:8px 8px 0 0; } #bike-planner h2 { font-size:20px; } #bike-planner header { margin-bottom:8px; } #cycle-suggestions { max-height:132px; } }
@media(prefers-reduced-motion:reduce) { .cycle-route-draw, .cycle-route-fade { animation:none; } }
