/*
  BuildMyTrip — Signal Road visual refresh
  A deliberately sharper, route-instrument aesthetic layered over the existing UI.
  Remove the single <link> in index.html to return to the original design.
*/

:root {
  --bg: #202124;
  --panel: #292b2f;
  --panel2: #34363b;
  --line: #4b4e55;
  --ink: #f4f7f0;
  --muted: #8fa0a3;
  --accent: #d9ff57;
  --accent2: #45e6c2;
  --good: #5ae49b;
  --warm: #ffc857;
  --hot: #ff6b5f;
  --radius: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .38);
}

body {
  background:
    radial-gradient(circle at 16% -10%, rgba(217, 255, 87, .07), transparent 30rem),
    #202124;
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

button, input, textarea { font-family: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(217, 255, 87, .86);
  outline-offset: 3px;
}

/* Shared product mark: less app-icon, more road badge. */
.logo, .dg-logo {
  position: relative;
  overflow: hidden;
  color: #07100d;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 9px 9px 9px 2px;
  box-shadow: 4px 4px 0 rgba(69, 230, 194, .18);
}
.logo::after, .dg-logo::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 150%;
  top: -25%;
  right: 8%;
  background: rgba(69, 230, 194, .62);
  transform: rotate(22deg);
  pointer-events: none;
}

/* Desktop workspace */
#panel {
  background: rgba(41, 43, 47, .98);
  border-left-color: rgba(217, 255, 87, .22);
}
.brand {
  background: rgba(10, 16, 19, .68);
  border-bottom-color: var(--line);
}
.brand h1, .mtop .ttl h1, .dg-card h1 {
  letter-spacing: -.035em;
}
.scroll { scrollbar-color: #34454a transparent; }
.ctl, .netbtn, .fromline, .stepper, .modalcard {
  background: #34363b;
}
.ctl:focus, .minput:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 255, 87, .12);
}
.go, .impbtn.go2, .daychip.on, .bchip.on::after {
  color: #0a120d;
  background: linear-gradient(105deg, var(--accent), #baf56b 56%, var(--accent2));
  box-shadow: 0 8px 24px rgba(217, 255, 87, .13);
}

/* Desktop hand-off gate */
#deskgate {
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(69,230,194,.11), transparent 28rem),
    #202124;
  background-size: 42px 42px, 42px 42px, auto, auto;
}
.dg-card {
  position: relative;
  max-width: 444px;
  padding: 38px 40px 34px;
  background: rgba(43, 45, 49, .97);
  border: 1px solid rgba(217, 255, 87, .3);
  border-radius: 24px 24px 24px 7px;
  box-shadow: 12px 12px 0 rgba(217, 255, 87, .055), 0 34px 90px rgba(0,0,0,.48);
}
.dg-card::before {
  content: "EV ROUTE INSTRUMENT  /  01";
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}
.dg-logo { border-radius: 13px 13px 13px 4px; }
.dg-card h1 { font-size: 38px; margin-top: 22px; }
.dg-tag { color: #c4ceca; }
.dg-pitch {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dg-pitch li::before { color: var(--accent); content: "→"; }
.dg-qr {
  padding: 10px;
  background: #fff;
  border: 6px solid var(--accent);
  border-radius: 14px 14px 14px 3px;
}
.dg-scan { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.dg-url { color: var(--accent2); }
.dg-here { color: #d2ddd8; text-underline-offset: 4px; }

@media (max-width: 820px), (max-height: 600px) {
  #mdeck {
    background:
      radial-gradient(circle at 100% 0, rgba(69,230,194,.08), transparent 16rem),
      linear-gradient(180deg, #2d2f33 0%, var(--bg) 52%);
  }
}

@media (min-width: 821px) and (min-height: 601px) {
  body.forcedeck #mdeck {
    background:
      radial-gradient(circle at 100% 0, rgba(69,230,194,.08), transparent 18rem),
      linear-gradient(180deg, #2d2f33 0%, var(--bg) 52%);
    border-color: var(--line);
  }
}

/* Mobile header */
.mtop {
  position: relative;
  z-index: 4;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 18px 10px;
  background: linear-gradient(180deg, rgba(32,33,36,.98), rgba(32,33,36,.78) 76%, transparent);
}
.mtop .logo { width: 34px; height: 34px; }
.mtop .ttl h1 { font-size: 17px; font-weight: 850; }
.mtop .ttl .sub {
  color: #839397;
  font-size: 10px;
  letter-spacing: .02em;
}
.uToggle, .mtop .mreset, .mtop .mback {
  background: rgba(21,33,38,.86);
  border-color: #314248;
  color: var(--ink);
  box-shadow: none;
}
.uToggle { width: 38px; height: 38px; font-size: 17px; }

/* Home becomes a compact launch dashboard with a strong primary route. */
.mhome {
  gap: 10px;
  padding: 15px 16px max(18px, env(safe-area-inset-bottom));
}
.mhome::before {
  display: none;
}
.homeintro {
  margin: 5px 2px 10px;
}
.homeintro-kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .17em;
}
.homeintro h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: .98;
  letter-spacing: -.05em;
}
.homeintro p {
  max-width: 330px;
  margin: 10px 0 0;
  color: #9da0a6;
  font-size: 12px;
  line-height: 1.45;
}
.hcard.hero {
  position: relative;
  min-height: 154px;
  justify-content: flex-end;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(217,255,87,.72);
  border-radius: 22px 22px 22px 6px;
  border-color: rgba(217,255,87,.8);
  background: linear-gradient(145deg, #dfff62, #8be7b9 78%);
  color: #111714;
  box-shadow: 7px 7px 0 rgba(217,255,87,.12), 0 20px 50px rgba(0,0,0,.28);
}
.hcard.hero::before {
  content: "PLAN / CHARGE / GO";
  position: absolute;
  top: 18px;
  left: 20px;
  color: #183127;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .17em;
}
.hcard.hero::after {
  display: none;
}
.hero-route-art {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 150px;
  height: 70px;
  opacity: .92;
  pointer-events: none;
}
.hero-route-art svg { width: 100%; height: 100%; overflow: visible; }
.hero-route-art .route-line { stroke: rgba(9,66,52,.54); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 7; }
.hero-route-art .route-start { fill: #0d4b3d; stroke: rgba(255,255,255,.7); stroke-width: 4; }
.hero-route-art .route-charge { fill: #26322b; }
.hero-route-art .route-flag { stroke: #ff6b66; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero-row { position: relative; z-index: 1; align-items: flex-end; }
.hic-plan {
  width: 48px;
  height: 48px;
  border-radius: 13px 13px 13px 3px;
  background: rgba(255,255,255,.42);
  box-shadow: none;
}
.hcard.hero h2 { color: #101713; font-size: 23px; letter-spacing: -.035em; line-height: 1.02; }
.hcard.hero p { color: #294039; max-width: 220px; }
.hcard.hero .arw { color: #193329; font-size: 32px; line-height: .8; }

.home-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hmini {
  min-height: 76px;
  padding: 13px 14px;
  border-radius: 16px 16px 16px 5px;
  background: rgba(47,49,54,.96);
  box-shadow: none;
}
.home-tools .hmini, .home-tools .homehistory {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 128px;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 13px;
  border: 1px solid #50535a;
  border-radius: 16px 16px 16px 5px;
  background: rgba(47,49,54,.96);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.home-tools .hmini.radar {
  border-color: rgba(143,160,255,.82);
  background: linear-gradient(145deg, #9ba9ff, #7789e8);
  color: #101424;
}
.home-tools .homehistory {
  border-color: rgba(91,232,177,.82);
  background: linear-gradient(145deg, #62e7ba, #43cfa5);
  color: #0e211b;
}
.home-tools .homehistory .hhtx,
.home-tools .homehistory .hhtx b { color: #0a1815; }
.home-tools .homehistory .hhtx small,
.home-tools .homehistory .hhc { color: rgba(10,24,21,.78); }
.home-tools .hic-radar, .home-tools .homehistory .hhic { background: rgba(255,255,255,.35); color: #10201c; }
.home-tools .hmtx small, .home-tools .hhtx small, .home-tools .homehistory .hhc { color: rgba(10,24,21,.8); }
.home-tools .arw { color: rgba(10,24,21,.62); }
.home-tools .hmtx, .home-tools .hhtx {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.home-tools .hmtx b, .home-tools .hhtx b { font-size: 14px; font-weight: 850; }
.home-tools .hmtx small, .home-tools .hhtx small { color: #90949a; font-size: 10.5px; line-height: 1.3; }
.home-tools .arw { position: absolute; top: 17px; right: 14px; color: #777b82; font-size: 20px; }
.homehistory .hhic {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px 12px 12px 3px;
  background: var(--accent2);
  color: #10201c;
}
.homehistory .hhic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.homehistory .hhc { margin-left: 0; font-weight: 600; }
#fullroutes { display:none; }
#mlive.reviewmode #fullroutes { display:flex;gap:8px;position:absolute;z-index:500;top:calc(env(safe-area-inset-top, 0px) + 48px);left:14px;right:14px; }
#fullroutes button { flex:1;min-width:0;padding:12px 8px;border-radius:15px;border:1px solid #555;background:#282b30ee;color:#f5f7f5;text-align:left;font:inherit;box-shadow:0 4px 16px #0005; }
#fullroutes button.on { border-color:var(--route-col);background:#343a3fee; }
#fullroutes span,#fullroutes b,#fullroutes small { display:block; }
#fullroutes span { color:var(--route-col);font-size:11px;font-weight:800;text-transform:uppercase; }
#fullroutes b { font-size:17px;margin:5px 0; }
#fullroutes small { color:#bcc5ca;font-size:12px; }
.brandword > span { color: #a9b6ff; }
.brandword > span:nth-of-type(2) { color: #d9ff57; }
.brandword > span:nth-of-type(3) { color: var(--accent2); }
.home-trust {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: auto;
  padding: 14px 4px 3px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #91949a;
}
.home-trust > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.home-trust b { color: #c8cac7; font-size: 11px; }
.home-trust small { max-width: 310px; font-size: 10px; line-height: 1.4; }
.trust-check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(69,230,194,.4);
  border-radius: 50%;
  color: var(--accent2);
  font-size: 12px;
  font-weight: 900;
}
.hmini.radar, .hmini.drive, .hmini.quick {
  background: rgba(47,49,54,.96);
  border-color: #50535a;
}
.hic-radar, .hic-drive, .hic-nav {
  width: 46px;
  height: 46px;
  border-radius: 12px 12px 12px 3px;
  box-shadow: none;
}
.hic-radar { background: #90a1ff; }
.hic-drive { background: var(--warm); }
.hic-nav { background: var(--good); }
.hmini .hmtx b { font-size: 15px; letter-spacing: -.01em; }
.hmini .hmtx small { color: #86979a; }
.hmini .arw { color: #63777b; }
.mhome .htagline {
  margin-top: 4px;
  color: #64777b;
  font-size: 10px;
  letter-spacing: .035em;
}

/* Route builder */
.mh {
  color: #f7f9f4;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -.045em;
}
.msub { color: #8d9da0; max-width: 340px; }
.mflab {
  color: #9caaac;
  font-size: 10px;
  letter-spacing: .14em;
}
.mtripcard, .mgroup {
  border-radius: 17px 17px 17px 5px;
  box-shadow: none;
}
.mtripcard::before, .mgroup::before { width: 3px; }
.mtripcard.from {
  background:
    radial-gradient(circle at 100% 0, rgba(90,228,155,.14), transparent 150px),
    linear-gradient(145deg, #383b3f, #2b2d31);
  border-color: rgba(90,228,155,.36);
}
.mtripcard.to, .mgroup.dest {
  background:
    radial-gradient(circle at 100% 0, rgba(255,107,95,.13), transparent 150px),
    linear-gradient(145deg, #383b3f, #2b2d31);
  border-color: rgba(255,107,95,.32);
}
.mtripcard.from, .mtripcard.to {
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.mtripcard.from::before, .mtripcard.to::before {
  display: none;
}
.mtripcard-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}
.mtrip-node {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  color: #151714;
}
.mtrip-node.a { background: var(--good); box-shadow: 0 0 0 5px rgba(90,228,155,.09); }
.mtrip-node.b { background: var(--hot); box-shadow: 0 0 0 5px rgba(255,107,95,.09); }
.mtrip-headcopy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.mtrip-headcopy b {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: -.01em;
}
.mtrip-headcopy small {
  color: #8d9096;
  font-size: 10px;
  font-weight: 650;
}
.mplacepick {
  position: relative;
  z-index: 1;
  min-height: 78px;
  margin-top: 17px;
  padding: 11px 12px;
  gap: 12px;
  border-color: #50535a;
  border-radius: 17px 17px 17px 5px;
  background: #2d2f33 !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.04);
}
.mplace-ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px 12px 12px 4px;
  background: rgba(255,255,255,.055);
}
.mplace-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mtripcard.from .mplace-ico { color: var(--good); }
.mtripcard.to .mplace-ico { color: var(--hot); }
.mplacepick .pk {
  color: #f7f8f4;
  font-size: 16px;
  font-weight: 760;
}
.mplacepick .pk.ph { color: #a0a3a9; }
.mplacepick .chev {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(217,255,87,.22);
  border-radius: 50%;
  background: rgba(217,255,87,.07);
  color: var(--accent);
}
.mtripcard .mstarthint {
  margin: 13px 5px 0;
  padding: 0;
  border: 0;
  color: var(--accent2);
  font-size: 11px;
}
.mpick, .mfield .minput, .mrec, .mstop, .mendcard, .msum, .mpreview, .mgo-opt, .mbig, .mspeed {
  background: #33363b;
  border-color: #4b4e55;
  border-radius: 13px 13px 13px 4px;
  box-shadow: none;
}
.mtripcard .mpick { background: rgba(27,28,31,.72); }
.mpick .chev { color: var(--accent); }
.mbrandtag { border-radius: 9px 9px 9px 3px; }
.mbseltag, .daychip.on {
  color: #08110d;
  background: var(--accent);
  border-radius: 8px 8px 8px 2px;
}
.mnav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px max(14px, env(safe-area-inset-bottom));
  background: rgba(36,37,41,.94);
  border-top-color: rgba(255,255,255,.07);
  backdrop-filter: blur(14px);
}
.mnav .mdots { display: none; }

/* Step 1's mini-wizard: short, explicit decisions before networks. */
.mmini {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 6px 0 34px;
}
.mmini > span {
  height: 1px;
  background: #51545b;
}
.mminitab {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #71747a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mminitab i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #5b5e65;
  border-radius: 50%;
  background: #2d2f33;
  color: #85888f;
  font-style: normal;
}
.mminitab.on { color: var(--ink); }
.mminitab.on i {
  color: #11130d;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(217,255,87,.08);
}
.mminitab.done:not(.on) i {
  color: var(--accent2);
  border-color: rgba(69,230,194,.55);
}
.mminitab:disabled { cursor: default; }
.mmini-kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.mminipane[hidden] { display: none !important; }
.mminipane .mh { margin-top: 0; margin-bottom: 9px; }
.mminipane .msub { margin-bottom: 28px; }
.mvia-hero {
  width: 100%;
  min-height: 92px;
  margin: 0 0 12px;
  border: 1px dashed rgba(255,200,87,.55);
  border-radius: 16px 16px 16px 5px;
  background: linear-gradient(135deg, rgba(255,200,87,.11), rgba(48,49,53,.92));
  color: #ffe29b;
  font-size: 15px;
}
.mmini-note {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #303238;
  color: #7f8288;
  font-size: 12px;
}
.mmini-note b { color: var(--accent2); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; }
.mmini-summary {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}
.mmini-summary span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #a7aaaf;
  font-size: 12px;
}
.mmini-summary b {
  color: #6f7278;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mhistory-link {
  width: 100%;
  margin-top: 28px;
  color: var(--accent2);
  border-color: rgba(69,230,194,.3);
}

/* Tall phones have room: let the wizard breathe instead of pinning everything to the top. */
@media (min-height: 740px) and (max-width: 820px) {
  #mstartslide { padding-top: 14px; }
  #mstartslide .mmini { margin-bottom: clamp(36px, 5vh, 48px); }
  #mstartslide .mminipane { padding-inline: 2px; }
  #mstartslide .mminipane .msub { margin-bottom: clamp(30px, 4vh, 40px); }
  #mstartslide .mhistory-link { margin-top: clamp(28px, 4vh, 40px); }
}

/* Device Lab adds the phone's status/home safe areas around the real app. */
html.simulator-mode .mtop { padding-top: 52px; }
html.simulator-mode .mnav { padding-bottom: 28px; }
html.simulator-mode #msearch { padding-top: 70px; padding-bottom: 32px; }

/* Address selection stays in context: a focused dialog over the route wizard. */
#msearch {
  background: rgba(12,13,15,.58);
  -webkit-backdrop-filter: blur(13px) saturate(.8);
  backdrop-filter: blur(13px) saturate(.8);
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}
.search-sheet {
  width: min(100%, 520px);
  max-height: min(72vh, 620px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(55,58,62,.98), rgba(36,38,42,.99));
  box-shadow: 0 28px 80px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.06);
}
.search-sheet .lsheet-hd { justify-content: space-between; padding: 18px 18px 10px 20px; }
.search-sheet .lsheet-ttl { font-size: 20px; letter-spacing: -.02em; }
.search-sheet .lsheet-hd .lbtn {
  order: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: #dfe2e4;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}
.search-sheet .lsheet-body { flex: 1; padding: 8px 18px 20px; }
.search-sheet .mfield {
  border-radius: 16px;
  border-color: rgba(217,255,87,.7);
  background: #202226;
  box-shadow: 0 0 0 3px rgba(217,255,87,.08);
}
.search-sheet .mgpsrow { border-radius: 15px; }
html.simulator-mode #msearch { padding: 42px 16px 28px; }

/* Start/destination are fields, not another layer of action cards. */
.mtrip-node { width: 32px; height: 38px; border-radius: 0; background: transparent !important; box-shadow: none !important; }
.mtrip-node svg { width: 27px; height: 32px; overflow: visible; }
.mtrip-node svg path { fill: currentColor; }
.mtrip-node svg circle { fill: #17201c; }
.mtrip-node.a { color: var(--good); }
.mtrip-node.b { color: var(--hot); }
.mtripcard .searchpick {
  min-height: 58px;
  margin-top: 12px;
  padding: 12px 14px;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(25,27,30,.66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.mtripcard.from .searchpick:focus-visible { border-color: var(--good); box-shadow: 0 0 0 3px rgba(90,228,155,.12); }
.mtripcard.to .searchpick:focus-visible { border-color: var(--hot); box-shadow: 0 0 0 3px rgba(255,107,95,.12); }
.searchpick .search-ico { width: 26px; height: 26px; flex: none; display: grid; place-items: center; color: #8f949a; }
.searchpick .search-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.searchpick .pk { font-size: 16px; font-weight: 750; }
.searchpick .inline-place-input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: inherit; }
.searchpick .inline-place-input::placeholder { color: #7f848b; opacity: 1; }
.searchpick:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,255,87,.1); }
.inline-gps { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid rgba(91,232,177,.35); border-radius: 11px; background: rgba(91,232,177,.1); color: var(--accent2); font-size: 20px; cursor: pointer; }
.inline-place-results { max-height: 230px; overflow-y: auto; margin-top: 7px; padding: 6px; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; background: #25272b; box-shadow: 0 15px 34px rgba(0,0,0,.32); }
.inline-place-results[hidden] { display: none; }
.inline-place-results .mrec { width: 100%; margin: 0; padding: 11px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-family: inherit; text-align: left; }
.inline-place-results .mrec + .mrec { border-top: 1px solid rgba(255,255,255,.07); border-radius: 0; }
.inline-place-results .mrec:active { background: rgba(217,255,87,.08); }
.location-pin-icon { width: 25px; height: 29px; display: block; }
.mtcardA .ic:has(.location-pin-icon), .ssic:has(.location-pin-icon) { background: transparent !important; }

/* Review: make route choice and the full-screen map action unmistakable. */
#mropts { flex-direction: column; gap: 9px; overflow: visible; padding-bottom: 13px; }
.mroute-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mroute-head div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.mroute-head b { color: var(--ink); font-size: 15px; }
.mroute-head small { color: #92979d; font-size: 11px; }
.mroute-head > span { flex: none; padding: 5px 8px; border-radius: 999px; background: rgba(217,255,87,.12); color: var(--accent); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.mroute-scroll { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; overflow: visible; padding: 1px; }
.mroute-scroll::-webkit-scrollbar { display: none; }
#mropts .mroute-scroll .mropt { position:relative;overflow:hidden;min-width:0;padding:13px 9px 11px;border:1px solid #4b4e55;border-radius:13px;background:#303237;color:var(--ink);text-align:left;font-family:inherit;box-shadow:none; }
#mropts .mroute-scroll .mropt::before { content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--route-col);opacity:.48; }
#mropts .mroute-scroll .mropt.on { border-color:var(--route-col);background:linear-gradient(145deg,color-mix(in srgb,var(--route-col) 18%,#303237),#303237);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--route-col) 30%,transparent); }
#mropts .mropt .rt { color:#a7acb2;font-size:9.5px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap; }
#mropts .mropt.on .rt { color:var(--route-col); }
#mropts .mropt .rdur { margin-top:5px;font-size:15px;font-weight:900;white-space:nowrap;letter-spacing:-.02em; }
#mropts .mropt .ri { margin-top:2px;color:#9ba0a6;font-size:9.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
#mropts .mropt.on .ri { color:#c8cdca; }
#mropts .mroute-scroll .mropt:only-child { grid-column:1/-1; }
.rmapwrap { border-radius: 18px; box-shadow: 0 14px 32px rgba(0,0,0,.23); }
.rmaphint {
  z-index: 800;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: rgba(217,255,87,.72);
  background: rgba(24,31,27,.94);
  color: var(--accent);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 7px 20px rgba(0,0,0,.38);
}
.r25dbtn { z-index: 800; }
.rmaphint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rmaphint:active { transform: scale(.97); }

/* A real navigation glyph replaces the platform-dependent map emoji. */
.maps-send-icon { width: 21px; height: 21px; fill: currentColor; stroke: currentColor; stroke-width: .8; stroke-linejoin: round; }
.mnav .mnext.wide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  animation: finalGlow 2.4s ease-in-out infinite;
}
.mnav .mnext.wide .maps-send-icon { flex: none; }
.mnav .mnext.wide .final-arrow, .ngmap .final-arrow { display: inline-block; animation: finalArrow 1.6s ease-in-out infinite; }
.ngmap {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  border-radius: 12px;
  padding: 13px 10px;
  background: linear-gradient(120deg,#37d67a,#2fb968);
  color: #04121a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}
.mnearest.live { display: flex; align-items: center; gap: 7px; color: var(--accent2); }
.mnearest.live > span { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 0 4px rgba(91,232,177,.12); animation: liveDistancePulse 1.8s ease-in-out infinite; }
@keyframes liveDistancePulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes finalGlow { 0%,100% { box-shadow: 0 5px 20px rgba(217,255,87,.17); } 50% { box-shadow: 0 7px 28px rgba(217,255,87,.42); } }
@keyframes finalArrow { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.mnav .mnext {
  flex: 1;
  width: 100%;
  min-height: 54px;
  padding: 13px 18px;
  color: #08110d;
  background: var(--accent);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 15px 15px 15px 5px;
  box-shadow: none;
  letter-spacing: -.01em;
}
.mnav .mprev {
  flex: none;
  width: 54px;
  min-height: 54px;
  padding: 0;
  border-color: #4b4e55;
  border-radius: 15px 15px 15px 5px;
}
.mrange-fill { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.mrange input::-webkit-slider-thumb, .mslider::-webkit-slider-thumb {
  background: var(--accent);
  border-color: #0a1013;
  box-shadow: 0 0 0 5px rgba(217,255,87,.1);
}

/* Keep compact phones usable: prioritize the actions over decoration. */
@media (max-height: 700px) {
  .mhome { gap: 8px; padding-top: 8px; }
  .homeintro { margin-bottom: 3px; }
  .homeintro h2 { font-size: 23px; }
  .homeintro p { display: none; }
  .hcard.hero { min-height: 132px; padding: 15px; }
  .hcard.hero::before { top: 13px; left: 15px; }
  .hmini { min-height: 66px; padding: 10px 12px; }
  .hic-radar, .hic-drive, .hic-nav { width: 42px; height: 42px; }
  .home-tools .hmini, .home-tools .homehistory { min-height: 105px; padding: 10px; }
  .home-trust { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .mnav .mnext.wide, .mnav .mnext.wide .final-arrow, .ngmap .final-arrow { animation: none !important; }
  .mnearest.live > span { animation: none !important; }
}
/* Current conditions at selected trip places, separate from arrival forecasts. */
.place-weather{margin-top:10px;color:#bce9dc;font-size:13px;font-weight:650;line-height:1.4}
.mtcardA .mtwx[data-weather-key]{font-size:12px;max-width:115px;white-space:normal;text-align:center}
#swup.swup{z-index:2147483647;top:calc(12px + env(safe-area-inset-top,0px));bottom:auto;isolation:isolate}
#swup.swup .go:disabled{opacity:.7;cursor:wait}
#mcomp{background:radial-gradient(ellipse at 10% 0%,#233c39 0,transparent 45%),#1c1e20}
.mcomp-top .mcomp-ttl{font-size:13px}.mcomp-top button{min-height:44px}
.mcomp-body{max-width:600px;width:100%;box-sizing:border-box;margin:auto;gap:18px}
.comp-trip{padding:18px;border-radius:20px;background:#2b3033;border:1px solid #454e50}
.comp-trip-head{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#eff5f2;font-size:15px;font-weight:750}
.comp-trip-head b{color:#d9ff57;font-size:24px}.comp-total-track{height:9px;background:#181e20;border-radius:20px;overflow:hidden;margin:14px 0 18px}
.comp-total-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#3fe1bd,#d9ff57);transition:width .5s}
.comp-metrics{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.comp-metrics span{font-size:11px;color:#b4c3bf}.comp-metrics b{display:block;font-size:19px;color:#f5f7f3;font-variant-numeric:tabular-nums;margin-bottom:3px}
.comp-timeline-title{color:#dbe8e3;font-size:12px;font-weight:800;letter-spacing:.07em}.comp-timeline-title span{display:block;color:#98aaa4;font-size:11px;font-weight:500;letter-spacing:0;margin-top:4px}
#mcomp-focus{text-align:left;padding:24px;background:linear-gradient(135deg,#254841,#26302f);border-color:#4b8070}
#mcomp-focus .nextdist{font-size:60px;line-height:1.2;margin:8px 0}.mcomp-loc{letter-spacing:.02em;text-transform:none;line-height:1.5}
