/* CTR trip tracking: shared by browser and packaged native views. */
#map-section.card{padding:0!important;overflow:hidden;border:1px solid #e4e3df!important;border-radius:24px;box-shadow:0 12px 38px #15151512!important;background:#fff!important;margin:22px 0}
.ctr-map-header{padding:24px 22px 16px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.ctr-map-eyebrow{font-size:11px;font-weight:850;letter-spacing:.16em;color:#867043;margin:0 0 7px;text-transform:uppercase}
#map-section #map-title{font-size:clamp(22px,5vw,28px);line-height:1.15;letter-spacing:-.7px;margin:0!important;color:#161918!important}
.ctr-map-badge{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border-radius:30px;background:#f0f0ec;color:#535750;font-size:11px;font-weight:800;padding:8px 10px;margin-top:1px}
.ctr-map-badge::before{content:'';width:6px;height:6px;border-radius:50%;background:#8a8f86}
#map-section[data-state=live] .ctr-map-badge{background:#e1f3e8;color:#1d6241}
#map-section[data-state=live] .ctr-map-badge::before{background:#208153;box-shadow:0 0 0 3px #2081531a}
#map-section[data-state=waiting] .ctr-map-badge{background:#fff2d1;color:#785716}
.ctr-map-select{padding:0 22px 16px;display:flex;align-items:center;gap:10px}
.ctr-map-select label{font-size:12px;font-weight:750;color:#687069!important;white-space:nowrap}
#map-section #map-trip{font:700 13px system-ui;min-height:42px;border:1px solid #dedfd9!important;border-radius:11px!important;padding:10px 12px;width:100%;margin:0;background:#f8f9f6!important}
.ctr-map-viewport{position:relative;background:#eaece5;min-height:350px;border-top:1px solid #e7e8e2;border-bottom:1px solid #e7e8e2}
#map-stage{position:relative}#ctr-map{height:390px;width:100%;background:#eaece5;isolation:isolate}
#ctr-map .leaflet-tile-pane{filter:saturate(.38) contrast(.97) brightness(1.035)}
#map-section .leaflet-control-attribution{font:10px/1.5 system-ui;background:#fffffff0;color:#444;max-width:calc(100% - 14px)}
#map-section .leaflet-control-attribution a{color:#515b4e;text-decoration:underline}
#map-section .leaflet-control-zoom{border:0;border-radius:14px;box-shadow:0 4px 14px #0002;overflow:hidden;margin-bottom:36px;margin-right:15px}
#map-section .leaflet-control-zoom a{width:42px;height:42px;line-height:42px;color:#191f19;background:#fff;font-size:23px}
#map-section .leaflet-control-zoom a:first-child{border-bottom:1px solid #e4e7e0}
#map-section #map-recenter{position:absolute;z-index:500;top:16px;right:16px;width:auto;margin:0;padding:11px 14px;font-size:12px;font-weight:800;background:#fff!important;color:#171c19!important;border:1px solid #dee2d7!important;box-shadow:0 3px 15px #0002;border-radius:14px;min-height:44px}
.ctr-location-marker{background:none;border:0;position:relative}
.ctr-marker-halo{position:absolute;inset:-12px;background:#d2b55f24;border:1px solid #c5a34250;border-radius:50%}
.ctr-marker-body{position:absolute;inset:0;display:grid;place-items:center;border-radius:19px;background:#171d1a;color:#fff;border:3px solid #fff;box-shadow:0 5px 18px #0004;transform:rotate(-8deg)}
.ctr-marker-body svg{width:33px;height:33px}.ctr-marker-body.ctr-person{background:#156e63;transform:none;border-radius:50%;color:#fff}
.ctr-marker-label.leaflet-tooltip{background:#171d1a;color:white;border:0;border-radius:8px;font:750 11px system-ui;padding:7px 11px;box-shadow:0 3px 10px #0002}
.ctr-marker-label.leaflet-tooltip-top::before{border-top-color:#171d1a}
.ctr-map-empty{min-height:350px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:35px 28px;background:radial-gradient(ellipse at center,#ffffffd9,#eff0e7aa),repeating-linear-gradient(25deg,transparent 0 40px,#c4cab8 41px 44px,transparent 45px 90px)}
.ctr-map-empty-symbol{width:66px;height:66px;border-radius:22px;display:grid;place-items:center;background:#1a211c;color:#e8c263;box-shadow:0 10px 30px #1a211c24;margin-bottom:18px}
.ctr-map-empty-symbol svg{width:30px;height:30px}
#map-empty-title{font-size:20px;letter-spacing:-.4px;line-height:1.25;max-width:280px;margin:0 0 9px}
#map-empty-copy{font-size:14px;line-height:1.5;color:#61675b;max-width:270px;margin:0}
.ctr-map-bottom{padding:20px 22px 22px}
.ctr-map-meta{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:14px}
#map-trip-status{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#756031;background:#faf2df;padding:6px 9px;border-radius:7px}
#map-updated{font-size:11px;color:#6e746b}#map-status{font-size:13px;line-height:1.5;margin:0 0 13px;color:#60675f!important}
#map-eta{display:inline-block;background:#171d1a;color:white;border-radius:9px;padding:10px 12px;font-size:14px;font-weight:800;margin:0 0 14px}
.ctr-map-route{position:relative;display:grid;gap:17px;margin:2px 0 20px;padding-left:24px}
.ctr-map-route::before{content:'';position:absolute;left:5px;top:10px;bottom:16px;border-left:2px dotted #c5cbbf}
.ctr-map-stop{position:relative}.ctr-map-stop::before{content:'';position:absolute;left:-23px;top:5px;width:9px;height:9px;border-radius:50%;background:#d5b35c;outline:3px solid #fff}
.ctr-map-stop:last-child::before{background:#1a211c;border-radius:2px}
.ctr-map-stop small{font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#70776b}
.ctr-map-stop p{font-size:13px;font-weight:700;line-height:1.45;margin:4px 0 0;overflow-wrap:anywhere;color:#242a24}
.ctr-map-actions{display:grid;grid-template-columns:1fr auto;gap:9px}
#map-section .ctr-map-actions button{margin:0;min-height:48px;border-radius:13px;font-size:14px;padding:13px 18px;box-shadow:none}
#map-section #map-open{background:#171d1a!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
#map-section #map-close{background:#f4f5f0!important;color:#42493e!important;-webkit-text-fill-color:#42493e!important;border:1px solid #e2e4dc}
#ctr-map-fallback{display:block;text-align:center;margin-top:14px;color:#606b57;font-size:12px;font-weight:750;text-decoration:underline;padding:7px;min-height:32px}
#gps-section{border:1px solid #e3e4de!important;border-radius:22px;padding:22px;box-shadow:0 6px 24px #00000008!important}
#gps-section h2{font-size:22px;letter-spacing:-.5px;margin:0 0 12px}#gps-section>.muted{font-size:14px;line-height:1.5}
#gps-section #gps-consent-wrap{font-size:14px;line-height:1.5;margin:16px 0;display:block}#gps-section #gps-status{font-size:13px;line-height:1.5;padding:12px 14px;background:#f6f7f2;border-radius:10px}
@media(max-width:380px){.ctr-map-header{display:block}.ctr-map-badge{margin-top:12px}.ctr-map-header,.ctr-map-bottom{padding-left:17px;padding-right:17px}.ctr-map-select{padding-left:17px;padding-right:17px}#ctr-map{height:350px}.ctr-map-actions button{padding-left:12px;padding-right:12px}}
@media(prefers-reduced-motion:reduce){#map-section *{animation:none!important;transition:none!important}}
