/* ============================================================
   NEXT ROUTE — Driving Mode
   One instruction, one distance, one horizon. Everything on this
   screen is addressed to a person whose hands are on the wheel.
   ============================================================ */

.map {
  position: relative;
  overflow: hidden;
  background: var(--void);
  min-width: 0;
}
.map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---- Next maneuver ----------------------------------------- */

.turn {
  position: absolute;
  top: var(--gap-l);
  left: var(--gap-xl);
  display: flex;
  align-items: center;
  gap: var(--gap-m);
  background: var(--scrim-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px 24px 16px 18px;
}
.turn-arrow { font-size: 46px; color: var(--signal); line-height: 1; }
.turn-dist {
  font-size: var(--size-hero);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--track-tight);
  line-height: 1;
}
.turn-dist small { font-size: 18px; color: var(--muted); margin-left: 4px; font-weight: var(--weight-med); }
.turn-road { font-size: 19px; font-weight: var(--weight-bold); margin-top: 6px; }

.then {
  position: absolute;
  top: 136px;
  left: var(--gap-xl);
  background: var(--scrim);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: var(--size-body);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.then em { font-style: normal; color: var(--signal); font-size: 18px; }

/* ---- Proximity band ----------------------------------------
   Fires at 2.0 mi. The only pre-announcement of the handoff —
   Parked Mode arrives on its own, it is never a button. */

.proximity {
  position: absolute;
  top: var(--gap-l);
  right: var(--gap-xl);
  background: var(--signal);
  color: var(--on-signal);
  border-radius: var(--radius-card);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--target-min);
}
.proximity i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--on-signal); display: block; flex: none;
}
.proximity b { font-size: 20px; font-weight: var(--weight-heavy); letter-spacing: 0.02em; font-variant-numeric: var(--numerals); }
.proximity > span { font-size: var(--size-sub); font-weight: var(--weight-bold); opacity: 0.72; }

/* ---- Off-road telemetry ------------------------------------
   Appears only once pavement ends. Ambient telemetry while you
   are still on tarmac is noise, and noise is what we're avoiding. */

.telemetry {
  position: absolute;
  left: var(--gap-xl);
  right: var(--gap-xl);
  bottom: var(--gap-l);
  background: var(--scrim-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tel-head { display: flex; align-items: center; justify-content: space-between; }
.tel-items { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap-s); }
.tel b {
  display: block;
  font-size: var(--size-data-m);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--track-tight);
  margin-top: 4px;
  font-variant-numeric: var(--numerals);
}
.tel b small { font-size: 12px; color: var(--muted); margin-left: 3px; font-weight: var(--weight-med); }

/* ---- Driving side rail -------------------------------------- */

.arrive {
  font-size: 38px;
  font-weight: var(--weight-heavy);
  letter-spacing: var(--track-tight);
  margin-top: var(--gap-xs);
  font-variant-numeric: var(--numerals);
}
.arrive small { font-size: 15px; color: var(--muted); margin-left: 4px; font-weight: var(--weight-med); }
.arrive-sub { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* The number that separates this from every other nav app while
   the wheels are still turning: not when you arrive, but how much
   daylight is left when you do. */
.daylight-preview .fill { background: var(--warn); }
.daylight-preview .dp-time {
  font-size: 30px;
  font-weight: var(--weight-heavy);
  letter-spacing: var(--track-tight);
  margin: var(--gap-xs) 0 10px;
  font-variant-numeric: var(--numerals);
}
.daylight-preview .dp-time small { font-size: 14px; color: var(--muted); margin-left: 4px; font-weight: var(--weight-med); }
.dp-sub { font-size: 12px; color: var(--muted); margin-top: 8px; }

.offline { display: flex; align-items: center; gap: 9px; margin-top: 8px; font-size: var(--size-body); font-weight: var(--weight-bold); }
/* Green: the download already happened. This is the one thing on
   the drive screen you'd otherwise have to go check for yourself. */
.offline i { width: 8px; height: 8px; border-radius: 50%; background: var(--go); display: block; }
.offline span { color: var(--muted); font-weight: var(--weight-med); }
