/* Laluan home view (home.js). Calm idle screen: round corner icons, speed bubble,
   report button, and a clean "Where to?" sheet. Only body.lh-idle / body.lh-calm change;
   navigation and route preview keep their own look. Laluan's own icons and colours. */
.lh-where{position:relative}
.lh .where{gap:12px;padding-right:62px!important}
.lh .where .lh-s{display:flex;color:var(--acc2,#0a84ff)}
.lh .where span{color:var(--mut);font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.lh-mic{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;display:flex;align-items:center;justify-content:center;background:transparent!important;color:var(--mut);box-shadow:none!important}
.lh-mic:active{transform:translateY(-50%) scale(.9)}
.sheet:not(.min) .lh-where{display:none}
#lhHome{display:none}
body.lh-idle #lhHome{display:block}
body.lh-idle #shortcuts{display:none!important}
.lh-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:12px 1px 4px}
.lh-chips::-webkit-scrollbar{display:none}
.lh-chip{flex:none;display:flex;align-items:center;gap:7px;min-height:42px;padding:8px 15px 8px 12px;border-radius:999px;background:var(--solid)!important;border:1px solid var(--line)!important;font-weight:700;font-size:15px;color:var(--fg);box-shadow:0 1px 3px #0a1a3a12;max-width:46vw}
.lh-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lh-chip svg{flex:none;width:19px;height:19px;color:var(--acc2,#0a84ff)}
.lh-chip.unset{color:var(--mut)}.lh-chip.unset svg{color:var(--mut)}
.lh-chip.lh-new{color:var(--acc2,#0a84ff)}
.lh-rh{margin:14px 4px 2px;font-size:13px;font-weight:800;letter-spacing:.3px;color:var(--mut);text-transform:uppercase}
.lh-rl{list-style:none;margin:0;padding:0}
.lh-rl li+li{border-top:1px solid var(--line)}
.lh-r{width:100%;display:flex;align-items:center;gap:14px;padding:11px 4px;min-height:56px;background:transparent!important;border-radius:14px;text-align:left;box-shadow:none!important}
.lh-ri{flex:none;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--card);color:var(--mut)}
.lh-ri svg{width:19px;height:19px}
.lh-rt{display:flex;flex-direction:column;min-width:0}
.lh-rt b{font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lh-rt small{font-size:13px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.lh-empty{margin:6px 4px 4px;color:var(--mut);font-size:14px}

/* corner buttons: small round icons while idle */
.lh-ic{display:none}
body.lh-idle #fabs .fab{width:48px!important;height:48px!important;min-height:48px!important;border-radius:50%!important;border:1px solid var(--line)!important;background:var(--solid)!important;color:var(--fg)!important;box-shadow:0 3px 12px #0a1a3a24!important;flex:none!important;max-width:none!important}
body.lh-idle #fabs .fab>.ic,body.lh-idle #fabs .fab>small{display:none!important}
body.lh-idle #fabs .fab>.lh-ic{display:flex;align-items:center;justify-content:center}
body.lh-idle #fabs .fab.on{background:var(--solid)!important}
body.lh-idle #fabs .fab.on>.lh-ic{color:var(--acc2,#0a84ff)}
body.lh-idle #fabTraffic.on{box-shadow:0 0 0 2px var(--acc2,#0a84ff) inset,0 3px 12px #0a1a3a24!important}
body.lh-idle #fabSound .lh-off,body.lh-idle #fabSound.off .lh-on{display:none}
body.lh-idle #fabSound.off .lh-off{display:flex;color:#c81e1e}
body.lh-idle #fabSound .lh-on{display:flex}
body.lh-idle #fabs{top:calc(env(safe-area-inset-top) + 10px)!important;bottom:auto!important;left:auto!important;right:calc(env(safe-area-inset-right) + 12px)!important;flex-direction:column!important;gap:10px!important;width:auto!important}
body.lh-idle #fabSound{order:1}body.lh-idle #fabTraffic{order:2}body.lh-idle #fabSimple{order:3}
body.lh-idle #fabs>:not(#fabSound):not(#fabTraffic):not(#fabSimple){display:none!important}
/* left column: menu, then SOS in the same place as before (locate and compass stay in the drawer) */
body.lh-idle #drawerBtn{border-radius:16px;box-shadow:0 3px 12px #0a1a3a24}
body.lh-idle #sosBtn{border-radius:50%}

/* speed bubble + report button sit just above the sheet */
#lhSpeed,#lhReport{display:none}
body.lh-idle #lhSpeed.has{display:flex;position:fixed;z-index:940;left:calc(env(safe-area-inset-left) + 12px);bottom:calc(var(--lh-sheet,280px) + 14px);width:62px;height:62px;border-radius:50%;flex-direction:column;align-items:center;justify-content:center;background:#14233a;color:#fff;box-shadow:0 4px 14px #0a1a3a40;border:3px solid #fff;pointer-events:none}
#lhSpeed b{font-size:22px;line-height:1;font-variant-numeric:tabular-nums}#lhSpeed small{font-size:10px;font-weight:700;opacity:.8;margin-top:1px}
body.lh-idle #lhReport{display:flex;position:fixed;z-index:940;right:calc(env(safe-area-inset-right) + 14px);bottom:calc(var(--lh-sheet,280px) + 14px);width:66px;height:66px;min-height:66px;padding:0;border-radius:50%;align-items:center;justify-content:center;background:linear-gradient(160deg,var(--acc,#16c1f3),var(--acc2,#0a84ff))!important;color:#fff;border:3px solid #fff;box-shadow:0 6px 18px #0a84ff55}
body.lh-idle #lhReport:active{transform:scale(.92)}
body.dark.lh-idle #lhSpeed,body.dark.lh-idle #lhReport{border-color:#1f2a3c}
body.dark #lhSpeed{background:#0b1220}
/* GPS start pin duplicates the blue dot on the calm map */
body.lh-calm.lh-gps .lm.pin{display:none}
body.kbOpen #lhSpeed,body.kbOpen #lhReport{opacity:0;pointer-events:none}
@media(min-width:760px){body.lh-idle #lhSpeed{left:452px;bottom:24px}body.lh-idle #lhReport{bottom:24px}}
@media(max-height:560px){body.lh-idle #lhSpeed{display:none}}
