/* Map-only rules; shared app typography and surfaces remain in styles.css. */
.map.maplibregl-map{font:inherit;position:relative;isolation:isolate}
.map .maplibregl-canvas{touch-action:none}
.map .maplibregl-control-container{direction:ltr}
.map .maplibregl-ctrl-top-right{top:16px;right:16px}
.map .maplibregl-ctrl-group{margin:0;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 3px 12px #00000014;overflow:hidden}
.map .maplibregl-ctrl-group button{width:44px;height:44px;min-height:44px;padding:0;border-radius:0;color:var(--ink);display:grid;place-items:center}
.map .maplibregl-ctrl-group button+button{border-color:var(--line)}
.map .maplibregl-ctrl-group button:hover{background:var(--surface)}
.map .maplibregl-ctrl-attrib{background:var(--card);color:var(--muted);padding:2px 6px;font-size:10px;line-height:1.4;max-width:calc(100% - 8px);border-radius:4px}
.map .maplibregl-ctrl-attrib a{color:inherit}
.map .maplibregl-ctrl-bottom-left{width:100%;bottom:4px;pointer-events:none}
.map .maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 4px;pointer-events:auto}
.aman-map-marker{width:20px;height:20px;background:#141414;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 2px var(--accent),0 3px 10px #0003}
.aman-map-dropoff{border-radius:4px;background:var(--accent)}
.aman-map-driver{width:40px;height:48px;display:grid;place-items:center;background:#fff;color:var(--accent);border:1px solid #dedede;border-radius:12px;box-shadow:0 3px 12px #0003}
.aman-map-sos{background:var(--red);box-shadow:0 0 0 2px var(--red),0 3px 10px #0003}
.aman-map-status{position:absolute;top:18px;left:16px;right:76px;z-index:3;padding:12px;background:var(--card);color:var(--muted);border:1px solid var(--line);border-radius:12px;font-size:16px;pointer-events:none;text-align:center}
.aman-map-status[hidden]{display:none}
/* Ride cards overlay the planner; keep legal attribution within the visible map. */
.ride-planner #ride-map .maplibregl-ctrl-bottom-left{bottom:4px}
.map.offer-map{height:120px;flex:0 0 120px;margin:16px 0;border-radius:16px}
.map.active-map{height:220px;margin:16px 0;border-radius:16px}
.offer-map .maplibregl-ctrl-top-right{top:8px;right:8px}

.ride-planner>#ride-map{bottom:calc(64px + env(safe-area-inset-bottom) + var(--map-sheet-height,280px))}

/* The map's offline state keeps the authenticated rider's text planner reachable. */
.app-body:has(#rider-dashboard:not(.hidden)):has(#ride-map[data-map-offline="true"]) .native-offline{display:none}
