/* netmov — itinéraires. Le langage de la maquette (papier, ticket perforé, bouton pilule bleu, frise verticale du
   trajet) gardé tel quel ; la page devient une application à deux volets sur grand écran : le panneau à gauche
   (recherche, résultats, détail, suivi), la carte du trajet à droite. Mobile d'abord : un seul volet, la carte en
   feuille plein écran à la demande. */
:root{--paper:#f2f3ec;--ink:#292b2e;--navy:#061c41;--blue:#056cf7;--royal:#0755ed;--sky:#77b4fc;--line:#e7e7e5;--muted:#a1a4ab;--soft:#b0b2b8;--radius:25px;
 --rail:#056cf7;--metro:#8b5cf6;--tram:#e8423f;--bus:#eaa112;--coach:#0ea5e9;--ferry:#22d3ee;--cable:#64748b;--other:#64748b;--walk:#c9ccd2;
 --ok:#15803d;--late:#c2410c;--scooter:#2fb8a4;--bike:#4f9d2f;--panel-w:440px}
*{box-sizing:border-box}
html{background:var(--paper);scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);font-family:"Century Gothic","Avenir Next","Inter","Lato","Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased;color:var(--ink);font-size:15px}
button,input{font:inherit}button{border:0;background:none;cursor:pointer;color:inherit;padding:0}
button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #8bb9ff;outline-offset:3px}button:active{transform:scale(.985)}
[hidden]{display:none!important}svg{display:block}a{color:var(--blue)}
.only-mobile{display:none}

/* -- layout ------------------------------------------------------------------------------------------------------ */
.app{min-height:100dvh}
.panel{width:min(100%,520px);margin:0 auto;padding:max(22px,env(safe-area-inset-top)) 18px max(30px,env(safe-area-inset-bottom))}
.screen{animation:fade .22s ease both}
.top{display:flex;align-items:center;gap:14px;height:44px}
.brand img{display:block;width:140px;height:27px;object-fit:contain;object-position:left center}
.brand-date{margin:0;color:#999ca3;font-size:13px;letter-spacing:-.2px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-link{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 13px 0 10px;border-radius:99px;background:#fff;color:var(--navy);text-decoration:none;font-size:13px;white-space:nowrap}
.top-link svg{width:17px;height:17px}.top-link:hover{background:#e9effa}

/* -- search ------------------------------------------------------------------------------------------------------ */
.hero-title{font-weight:500;font-size:clamp(28px,7.5vw,34px);line-height:1.23;letter-spacing:-1.45px;margin:44px 0 26px;max-width:365px}
/* the search card is a REAL ticket: scalloped punched edges on its seam */
.ticket{border-radius:26px;background:#fff;position:relative;padding:14px 24px 24px;filter:drop-shadow(0 5px 9px rgba(11,27,52,.018));isolation:isolate}
.ticket::before,.ticket::after{content:"";position:absolute;z-index:3;width:26px;height:26px;border-radius:50%;background:var(--paper);top:84px;pointer-events:none}
.ticket::before{left:-13px}.ticket::after{right:-13px}
.ticket-seam{position:absolute;left:36px;top:60px;width:0;height:92px;border-left:2px dotted #e4e5e8;pointer-events:none}
.ticket-row{display:flex;position:relative;height:76px;align-items:center;gap:17px}
.stop-circle{position:relative;z-index:2;width:17px;height:17px;flex:0 0 17px;border:2px solid #dcdee2;border-radius:50%;background:#fff}
.stop-pin{z-index:2;position:relative;flex:0 0 17px;color:#d1d4d9}.stop-pin svg{width:17px;height:19px;fill:currentColor;stroke:none}
.stop-circle.small{width:12px;height:12px;flex-basis:12px}.stop-pin.small{flex-basis:13px}.stop-pin.small svg{width:13px;height:15px}
.field-content{flex:1;min-width:0;display:block}.field-label{display:block;color:var(--soft);font-size:13px;margin-bottom:5px;letter-spacing:-.15px}
.field-content input{display:block;border:0;outline:0;background:transparent;width:100%;font-weight:400;font-size:19px;color:var(--ink);letter-spacing:-.3px;padding:0;text-overflow:ellipsis}
.field-content input::placeholder{color:#8b8e97;opacity:1}.field-content input:focus::placeholder{color:#b5b9c2}
.ticket-divider{height:1px;background:#e9eaed;margin-left:38px}
.swap{position:absolute;right:22px;top:72px;z-index:4;width:38px;height:38px;border-radius:50%;background:#f3f5f9;color:#4b5a73;display:grid;place-items:center;transition:background .15s,transform .25s}
.swap svg{width:19px;height:19px}.swap:hover{background:#e6edfa;color:var(--blue)}.swap.spin{transform:rotate(180deg)}
.suggest{position:absolute;left:24px;right:24px;z-index:20;margin:0;padding:6px;list-style:none;background:#fff;border-radius:18px;box-shadow:0 14px 40px rgba(6,28,65,.14),0 0 0 1px rgba(6,28,65,.05);max-height:320px;overflow:auto}
#originList{top:86px}#destinationList{top:184px}
.suggest li{display:flex;align-items:center;gap:11px;padding:9px 11px;border-radius:12px;cursor:pointer}
.suggest li[aria-selected="true"],.suggest li:hover{background:#eef3fc}
.suggest .s-icon{width:30px;height:30px;border-radius:50%;background:#f1f3f8;display:grid;place-items:center;color:#4b5a73;flex:none}.suggest .s-icon svg{width:16px;height:16px}
.suggest .s-text{flex:1;min-width:0}.suggest .s-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.suggest .s-sub{display:block;color:#9a9da3;font-size:12px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suggest .s-modes{display:flex;gap:4px;flex:none}.suggest .s-modes i{width:8px;height:8px;border-radius:50%;display:block}
.suggest .empty{color:#9a9da3;cursor:default;font-size:14px}
.suggest .group{cursor:default;padding:8px 11px 2px;font-size:11px;color:#9a9da3;text-transform:uppercase;letter-spacing:.5px}
.suggest .s-icon.addr{background:#eef3fc;color:var(--blue)}.suggest .s-icon.addr svg{fill:currentColor;stroke:none;width:15px;height:17px}
.when{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0 14px}
.seg-toggle{display:inline-flex;background:#f1f3f8;border-radius:99px;padding:3px}
.seg-toggle button{height:32px;padding:0 13px;border-radius:99px;font-size:13px;color:#6b7280;transition:background .15s,color .15s}
.seg-toggle button.on{background:#fff;color:var(--navy);box-shadow:0 1px 3px rgba(6,28,65,.12)}
.seg-toggle.small button{height:28px;padding:0 10px;font-size:12px}
.chip{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 13px;border-radius:99px;background:#f1f3f8;color:#4b5a73;font-size:13px}
.chip svg{width:16px;height:16px}.chip[aria-pressed="true"]{background:#e6efff;color:var(--blue)}
#whenInput{height:38px;border:1px solid var(--line);border-radius:12px;padding:0 10px;font-size:14px;color:var(--ink);background:#fff;flex:1;min-width:170px}
.primary-btn{height:58px;border-radius:99px;background:var(--blue);color:#fff;font-size:15px;font-weight:550;display:grid;place-items:center;width:100%;box-shadow:0 2px 3px #0043b409;transition:background .15s}
.primary-btn:hover,.route-footer button:hover{background:#0055dc}.primary-btn[disabled]{background:#9fc0f8;cursor:progress}
/* preferences: modes, operators, walking, changes */
.prefs{border:1px solid #edeef1;border-radius:18px;margin:0 0 16px;background:#fbfbf9}
.prefs-head{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;padding:6px 12px 6px 14px;text-align:left;color:#4b5a73;font-size:13px}
.prefs-head>svg{width:17px;height:17px;flex:none;color:var(--blue)}.prefs-title{font-weight:600;color:var(--navy);white-space:nowrap}
.prefs-sum{flex:1;min-width:0;color:#8e929b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prefs-chev{width:16px;height:16px;flex:none;transition:transform .2s;color:#9a9da3}.prefs-head[aria-expanded="true"] .prefs-chev{transform:rotate(90deg)}
.prefs-body{padding:2px 14px 14px;display:flex;flex-direction:column;gap:12px;border-top:1px solid #edeef1;padding-top:12px}
.pref-row.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pref-label{font-size:12px;color:#8e929b;margin-bottom:7px;display:flex;align-items:center;gap:8px;text-transform:uppercase;letter-spacing:.4px}
.pref-all{font-size:11px;color:var(--blue);text-transform:none;letter-spacing:0}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.pchip{display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 11px;border-radius:99px;background:#fff;border:1px solid #e3e5ea;color:#8e929b;font-size:13px;transition:all .15s}
.pchip svg{width:14px;height:14px}.pchip[aria-pressed="true"]{background:#e6efff;border-color:#c7dbfb;color:var(--blue)}
.pchip:hover{border-color:#b9c6dc}
.recent{background:#fff;border-radius:25px;overflow:hidden;margin-top:26px}
.recent-head{height:58px;border-bottom:1px solid #ebebeb;display:flex;align-items:center;justify-content:space-between;padding:0 24px}
.recent-head strong{font-size:17px;font-weight:500;color:var(--blue);letter-spacing:-.4px}.recent-head button{color:#9e9fa4;font-size:13px}
.recent ul{list-style:none;margin:0;padding:6px 0}
.recent li button{display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);align-items:center;width:100%;min-height:62px;padding:10px 24px;text-align:left;gap:5px}
.recent li button:hover{background:#f7f9fd}
.recent li strong{font-size:15px;font-weight:550;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.18px}
.recent li .arrive{text-align:right}.recent .pass-arrow{display:flex;justify-content:center;align-items:center;font-size:24px;font-weight:200;line-height:1;color:#d3d5d9;letter-spacing:-6px;padding-right:5px}
.footnote{color:#9a9da3;font-size:13px;line-height:1.6;margin:26px 2px 0}

/* -- results ----------------------------------------------------------------------------------------------------- */
.route-top{height:40px;display:flex;align-items:center;justify-content:space-between;margin-top:14px}
.route-top-actions{display:flex;gap:4px}
.icon-btn{height:40px;min-width:40px;display:grid;place-items:center;border-radius:50%;padding:8px}.icon-btn:hover{background:#e9ecf3}.icon-btn svg{width:22px;height:22px;stroke-width:1.8}
.query-card{background:#fff;border-radius:22px;padding:16px 20px 14px;margin-top:14px;position:relative}
.q-row{display:flex;align-items:center;gap:12px;min-height:30px}.q-row strong{font-weight:500;font-size:16px;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.q-row+.q-row{border-top:1px solid #f0f0f2;margin-top:4px;padding-top:4px}
.q-when{color:#9a9da3;font-size:13px;margin-top:10px;padding-left:24px;display:flex;flex-wrap:wrap;gap:4px 10px}
.q-prefs{color:var(--blue);font-size:12px;text-align:left}.q-prefs:empty{display:none}
.status{color:#9a9da3;font-size:13px;margin:16px 4px 8px;min-height:18px}
.status.error{color:#c53030}
.journeys{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.journey{background:#fff;border-radius:22px;padding:16px 18px 14px;width:100%;text-align:left;display:block;transition:box-shadow .15s,transform .15s;border:2px solid transparent}
.journey:hover{box-shadow:0 10px 30px rgba(6,28,65,.07)}.journey.on{border-color:var(--blue)}
.j-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.j-times{font-size:19px;letter-spacing:-.5px;font-weight:500}.j-times span{color:#c0c3c9;font-weight:300;margin:0 6px}
.j-dur{font-size:14px;color:#6b7280;white-space:nowrap}.j-dur b{font-weight:600;color:var(--ink)}
.j-legs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:11px}
.badge{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 9px;border-radius:8px;font-size:13px;font-weight:600;letter-spacing:-.2px;color:#fff;background:var(--c,#64748b);max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.badge svg{width:14px;height:14px;flex:none}.badge.walk{background:#eef0f4;color:#4b5a73;font-weight:500}
.badge.micro{background:var(--c,var(--scooter))}
/* the shared-vehicle step */
.micro-groups{display:flex;flex-direction:column;gap:8px;margin-top:18px}
.micro-h{font-size:12px;color:#8e929b;text-transform:uppercase;letter-spacing:.4px;margin:8px 4px 2px}
.micro-item{display:grid;grid-template-columns:40px minmax(0,1fr) 28px;gap:12px;align-items:center;background:#fff;border-radius:18px;padding:12px 14px;border:2px solid transparent;cursor:pointer}
.micro-item.on{border-color:var(--c,var(--scooter))}
.micro-ic{width:40px;height:40px;border-radius:50%;background:var(--c,var(--scooter));color:#fff;display:grid;place-items:center}.micro-ic svg{width:22px;height:22px}
.micro-t b{display:block;font-weight:600;font-size:15px}.micro-t small{display:block;color:#8e929b;font-size:13px;margin-top:2px}
.micro-check{width:26px;height:26px;border-radius:50%;border:2px solid #dcdee2;display:grid;place-items:center;color:#fff}
.micro-item.on .micro-check{background:var(--c,var(--scooter));border-color:var(--c,var(--scooter))}.micro-check svg{width:14px;height:14px}
.micro-actions{display:flex;flex-direction:column;gap:10px;margin-top:18px}.micro-actions .ghost{height:50px}
.seg.micro .seg-rail{width:0;background:none;border-left:6px dashed var(--c,var(--scooter));border-radius:0;margin-left:8px;min-height:44px}
.seg.micro .seg-rail::before,.seg.micro .seg-rail::after{display:none}
.seg.micro .seg-icon{color:var(--c,var(--scooter))}
.step.micro .step-ic{background:var(--c,var(--scooter))}
.veh-marker.parked{width:26px;height:26px;box-shadow:0 0 0 2px #fff,0 2px 8px rgba(6,28,65,.3)}.veh-marker.parked svg{width:15px;height:15px}
.j-chev{color:#c9ccd2;font-size:13px}
.j-foot{display:flex;gap:14px;margin-top:10px;color:#9a9da3;font-size:13px;flex-wrap:wrap}.j-foot .first{color:#4b5a73}
.more-row{display:flex;gap:10px;margin-top:14px}
.ghost{flex:1;height:46px;border-radius:99px;background:#fff;color:var(--navy);font-size:14px;transition:background .15s}.ghost:hover{background:#e9effa}.ghost[disabled]{opacity:.5;cursor:progress}
.skeleton{height:92px;border-radius:22px;background:linear-gradient(90deg,#fff 25%,#f4f5f2 50%,#fff 75%);background-size:200% 100%;animation:shimmer 1.2s linear infinite}
.delay{display:inline-block;font-size:12px;font-weight:600;border-radius:6px;padding:1px 6px;margin-left:6px;background:#e8f5ec;color:var(--ok);vertical-align:1px}
.delay.late{background:#fdebe3;color:var(--late)}.delay.early{background:#e6efff;color:var(--blue)}.delay.off{background:#fde8e8;color:#b91c1c}
.op-logo{height:16px;width:auto;max-width:60px;object-fit:contain;vertical-align:middle;border-radius:3px}
.op-logo.small{height:13px;max-width:44px;margin-right:5px}
.plat{color:#9a9da3}.plat.live{color:var(--blue);font-weight:600}
.banner{background:#fff4e8;border:1px solid #f6d3b6;color:#7c2d12;border-radius:14px;padding:10px 14px;font-size:13px;line-height:1.5;margin:12px 0 0}
.banner.ok{background:#e8f5ec;border-color:#bfe3c9;color:#14532d}
.now.alert{animation:flash 1.1s ease 3}
@keyframes flash{0%,100%{box-shadow:none}50%{box-shadow:0 0 0 6px rgba(5,108,247,.35)}}
.step.canceled .step-t{text-decoration:line-through;color:#b91c1c}

/* -- detail: the vertical journey, like the reference ---------------------------------------------------------- */
.route-heading{font-size:clamp(27px,7vw,33px);line-height:1.21;letter-spacing:-1.4px;font-weight:530;margin:30px 0 7px;max-width:420px}
.route-subheading{font-size:14px;color:#a0a3a9;margin:0}
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:18px}
.tile{background:#fff;border-radius:16px;padding:10px 10px 9px;min-width:0}
.tile small{display:block;font-size:11px;color:#9a9da3;text-transform:uppercase;letter-spacing:.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile b{display:block;font-size:17px;font-weight:600;letter-spacing:-.4px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile b span{font-size:12px;color:#9a9da3;font-weight:500}
.route-content{margin-top:14px;background:#fff;border-radius:25px;padding:6px 18px 4px}
.seg{display:grid;grid-template-columns:52px 34px 22px minmax(0,1fr);column-gap:10px;position:relative;border-top:1px solid #ececef;padding:20px 0 18px}
.seg:first-child{border-top:0}
.seg-times{display:flex;flex-direction:column;justify-content:space-between;font-size:15px;letter-spacing:-.35px;padding-top:2px;padding-bottom:2px}
.seg-times span+span{margin-top:auto}.seg-times .delay{display:block;margin:2px 0 0;width:max-content}
.seg-icon{display:flex;align-items:flex-start;justify-content:center;padding-top:2px;color:var(--ink)}.seg-icon svg{width:22px;height:22px}
.seg.walk .seg-icon svg{width:22px;height:25px;stroke-width:2}
.seg-rail{width:22px;border-radius:14px;background:var(--c,var(--blue));position:relative;min-height:46px;align-self:stretch}
.seg-rail::before,.seg-rail::after{content:"";position:absolute;left:5px;width:12px;height:12px;border-radius:50%;background:#fff}
.seg-rail::before{top:5px}.seg-rail::after{bottom:5px}
.seg.walk .seg-rail{width:0;background:none;border-left:6px dashed #dddddf;border-radius:0;margin-left:8px;min-height:40px}
.seg.walk .seg-rail::before,.seg.walk .seg-rail::after{display:none}
.seg.wait{grid-template-columns:52px 34px 22px minmax(0,1fr);padding:10px 0 10px}
.seg.wait .seg-rail{width:0;background:none;border-left:6px dotted #e4e5ea;border-radius:0;margin-left:8px;min-height:22px}
.seg.wait .seg-rail::before,.seg.wait .seg-rail::after{display:none}
.seg.wait .seg-body{font-size:13px;color:#8e929b;align-self:center}.seg.wait .seg-icon{color:#b0b2b8}.seg.wait .seg-icon svg{width:18px;height:18px}
.seg-body{min-width:0;padding-top:1px}
.seg-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:#6b7280;margin-bottom:8px}
.seg-line .op{color:#9a9da3}
.stops{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.stops li{font-size:15px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stops li.first,.stops li.last{font-weight:700}
.stops li small{color:#9a9da3;font-weight:400;margin-left:6px;font-size:13px}
.stops li .verb{display:block;font-size:12px;color:var(--blue);font-weight:600;line-height:16px;text-transform:uppercase;letter-spacing:.4px}
.stops li.mid{color:#6b7280;font-size:14px}
.stops button.fold{color:var(--blue);font-size:13px;text-align:left;padding:2px 0}
.walk-caption{line-height:24px;font-size:15px}.walk-caption b{font-weight:700}.walk-caption small{display:block;font-size:14px;color:#9a9da3}
.route-note{font-size:13px;color:#9a9da3;margin:14px 4px 0;line-height:1.55}.route-note:empty{display:none}
.route-footer{padding:22px 0 10px}
.route-footer button{height:56px;width:100%;display:flex;align-items:center;gap:10px;justify-content:center;border-radius:99px;background:var(--blue);color:#fff;font-size:15px;transition:background .15s}
.route-footer button svg{width:19px;height:19px}

/* -- live --------------------------------------------------------------------------------------------------------- */
.back-round{height:46px;width:46px;border-radius:50%;background:#fff;display:grid;place-items:center}.back-round svg{width:20px;height:20px;stroke-width:1.8}
.network-art{margin:22px -18px 18px;height:64px;position:relative}.network-art svg{width:100%;height:100%;overflow:visible}
.now{background:#fff;border-radius:22px;padding:18px 20px 18px;position:relative;overflow:hidden}
.now::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--c,var(--blue))}
.now-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.now-phase{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:99px;background:#eef3fc;color:var(--blue);font-size:12px;font-weight:600;letter-spacing:.3px;text-transform:uppercase}
.now-phase.ok{background:#e8f5ec;color:var(--ok)}.now-phase.warn{background:#fdebe3;color:var(--late)}
.now-when{font-size:13px;color:#8e929b;white-space:nowrap}
.now-title{display:flex;align-items:center;gap:12px;margin:12px 0 8px}
.now-icon{display:grid;place-items:center;border-radius:50%;width:42px;height:42px;background:var(--c,var(--blue));color:#fff;flex:none}.now-icon svg{width:22px;height:22px}
.now-title h2{font-size:clamp(21px,6vw,25px);line-height:1.2;letter-spacing:-.9px;font-weight:530;margin:0;min-width:0}
.now-meta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:14px;color:#4b5a73;align-items:center;min-height:20px}
.now-meta b{font-weight:600;color:var(--ink)}
.compass{display:inline-flex;align-items:center;gap:6px}
.compass i{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#eef3fc;color:var(--blue);transition:transform .35s}
.compass i svg{width:14px;height:14px}
.now-bar{height:6px;border-radius:99px;background:#eef0f4;margin:12px 0 2px;overflow:hidden}.now-bar i{display:block;height:100%;width:0;background:var(--c,var(--blue));border-radius:99px;transition:width .6s}
.now-next{font-size:14px;line-height:1.65;color:#6b7280;margin:12px 0 0}.now-next:empty{display:none}.now-next b{color:var(--ink);font-weight:600}
.now-veh{margin-top:12px;border-top:1px solid #f0f0f2;padding-top:11px;display:flex;align-items:center;gap:10px;font-size:13px;color:#4b5a73;flex-wrap:wrap}
.now-veh .veh-dot{width:9px;height:9px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px #e8f5ec;flex:none}.now-veh .veh-dot.old{background:#b0b2b8;box-shadow:0 0 0 3px #eef0f4}
.geo{display:flex;align-items:center;gap:9px;margin:12px 4px 0;font-size:13px;color:#8e929b;flex-wrap:wrap}
.geo-dot{width:9px;height:9px;border-radius:50%;background:#c9ccd2;flex:none}.geo.on .geo-dot{background:var(--blue);box-shadow:0 0 0 3px #dbe8ff}.geo.err .geo-dot{background:var(--late)}
.geo-text{flex:1;min-width:0}.geo-btn{height:30px;padding:0 12px;border-radius:99px;background:#fff;color:var(--blue);font-size:12px;font-weight:600}.geo.on .geo-btn{display:none}
.steps{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.step{display:grid;grid-template-columns:30px 54px minmax(0,1fr);gap:10px;align-items:start;background:#fff;border-radius:16px;padding:11px 14px 11px 12px;color:#6b7280;border:2px solid transparent}
.step.done{opacity:.55}.step.now{border-color:var(--blue);color:var(--ink)}
.step-ic{width:30px;height:30px;border-radius:50%;background:var(--c,#eef0f4);color:#fff;display:grid;place-items:center}.step-ic svg{width:16px;height:16px}
.step.walk .step-ic{background:#eef0f4;color:#4b5a73}.step.done .step-ic{background:#dfe3ea;color:#fff}
.step-t{font-size:14px;letter-spacing:-.3px;line-height:20px;padding-top:4px}.step-t .delay{margin:0;display:block;width:max-content}
.step-b{min-width:0;font-size:14px;line-height:20px;padding-top:4px}.step-b b{font-weight:600;color:inherit;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.step-b small{display:block;color:#9a9da3;font-size:12px;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.step.now .step-b small{color:#6b7280}
.live-foot{padding:18px 0 6px;display:flex}

/* -- map ---------------------------------------------------------------------------------------------------------- */
.map-wrap{position:fixed;inset:0;z-index:60;background:#e9ecef;display:none}
.map-wrap.open{display:block}
#map{position:absolute;inset:0}
.map-close{position:absolute;top:max(14px,env(safe-area-inset-top));right:14px;z-index:5;width:44px;height:44px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 6px 20px rgba(6,28,65,.18)}
.map-close svg{width:20px;height:20px}
.map-tools{position:absolute;left:14px;top:max(14px,env(safe-area-inset-top));z-index:5;display:flex;flex-direction:column;gap:8px}
.map-tools button{width:42px;height:42px;border-radius:50%;background:#fff;color:var(--navy);display:grid;place-items:center;box-shadow:0 6px 20px rgba(6,28,65,.14)}
.map-tools button svg{width:20px;height:20px}.map-tools button.on{background:var(--blue);color:#fff}
/* the current step, on the map sheet of a phone while following a journey */
.map-now{position:absolute;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));z-index:6;background:#fff;border-radius:20px;padding:13px 16px 14px 20px;box-shadow:0 10px 30px rgba(6,28,65,.18);overflow:hidden}
.map-now::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--c,var(--blue))}
.map-now .now-title{margin:8px 0 6px}.map-now .now-title h2{font-size:19px;letter-spacing:-.6px}.map-now .now-icon{width:36px;height:36px}.map-now .now-icon svg{width:19px;height:19px}
.map-now .now-meta{font-size:13px}.map-now .now-next{margin-top:8px;font-size:13px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.map-empty{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;border-radius:18px;padding:18px 22px;text-align:center;box-shadow:0 10px 30px rgba(6,28,65,.08);z-index:3;pointer-events:none}
.map-empty strong{display:block;font-weight:500;letter-spacing:-.3px}.map-empty span{display:block;color:#9a9da3;font-size:13px;margin-top:4px}
.map-attrib{position:absolute;right:8px;bottom:6px;z-index:3;margin:0;font-size:11px;color:#6b7280;background:rgba(255,255,255,.8);padding:2px 7px;border-radius:6px}.map-attrib a{color:inherit}
.stop-marker{width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid var(--c,var(--blue));box-shadow:0 1px 4px rgba(0,0,0,.25)}
.stop-marker.end{width:18px;height:18px;border-width:4px}
/* a live vehicle: the mode icon in the line's colour, a small arrow for its heading */
.veh-marker{width:30px;height:30px;border-radius:50%;background:var(--c,var(--blue));color:#fff;display:grid;place-items:center;box-shadow:0 0 0 3px #fff,0 3px 10px rgba(6,28,65,.35);transition:opacity .3s}
.veh-marker svg{width:17px;height:17px}.veh-marker.old{opacity:.55}
.veh-marker .veh-head{position:absolute;left:50%;top:50%;width:0;height:0;transform-origin:0 0;transform:rotate(var(--b,0deg))}
.veh-marker .veh-head::after{content:"";position:absolute;left:-6px;top:-24px;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:9px solid var(--c,var(--blue))}
.veh-marker .veh-label{position:absolute;left:50%;top:100%;transform:translate(-50%,5px);background:#fff;color:var(--ink);border-radius:6px;padding:1px 6px;font-size:11px;font-weight:600;white-space:nowrap;box-shadow:0 2px 6px rgba(6,28,65,.18)}
/* the traveller */
.me-marker{width:18px;height:18px;border-radius:50%;background:var(--blue);border:3px solid #fff;box-shadow:0 0 0 2px rgba(5,108,247,.35),0 3px 10px rgba(6,28,65,.3)}
.me-marker::before{content:"";position:absolute;inset:-14px;border-radius:50%;background:rgba(5,108,247,.25);animation:pulse 2.2s ease-out infinite}
.me-marker .me-head{position:absolute;left:50%;top:50%;width:0;height:0;transform:rotate(var(--b,0deg));transform-origin:0 0;display:none}
.me-marker.heading .me-head{display:block}
.me-marker .me-head::after{content:"";position:absolute;left:-7px;top:-22px;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:12px solid var(--blue)}
.maplibregl-popup-content{font-family:inherit;border-radius:12px;padding:8px 12px;font-size:13px}

/* -- toast & motion ----------------------------------------------------------------------------------------------- */
.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:var(--navy);color:#fff;border-radius:99px;padding:11px 19px;font-size:13px;white-space:nowrap;transition:all .22s;z-index:200;max-width:calc(100vw - 20px);overflow:hidden;text-overflow:ellipsis}
.toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes fade{from{opacity:.3;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
@keyframes pulse{0%{transform:scale(.4);opacity:.9}100%{transform:scale(1.5);opacity:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* -- small phones ------------------------------------------------------------------------------------------------ */
@media(max-width:380px){.hero-title{margin-top:30px;margin-bottom:20px}.panel{padding-left:14px;padding-right:14px}.suggest{left:14px;right:14px}.top-link span{display:none}.top-link{padding:0 10px}.tiles{grid-template-columns:repeat(2,1fr)}.pref-row.two{grid-template-columns:1fr}}
@media(max-width:959px){.only-mobile{display:grid}.maplibregl-ctrl-top-right{display:none}.map-wrap.sheet .map-attrib{bottom:auto;top:max(66px,calc(env(safe-area-inset-top) + 52px))}}

/* -- desktop: two panes, the map always there ------------------------------------------------------------------- */
@media(min-width:960px){
 .app{display:grid;grid-template-columns:var(--panel-w) minmax(0,1fr);height:100dvh;min-height:0}
 .panel{width:auto;margin:0;height:100dvh;overflow:auto;padding:26px 26px 40px;border-right:1px solid rgba(6,28,65,.06);scrollbar-width:thin}
 .hero-title{margin-top:38px;font-size:34px;max-width:360px}
 .map-wrap{position:relative;inset:auto;display:block;z-index:auto;height:100dvh}
 .map-close{display:none}
 .map-now{display:none!important}
 .network-art{margin-top:24px}
}
@media(min-width:1280px){:root{--panel-w:480px}.panel{padding:30px 32px 48px}}
