/* ==========================================================================
   SEEYOUSOON — DRIVE GUIDE (js/core/drive-guide.js): the turn-by-turn banner over a driver's map, its buttons, the car's
   arrow and the time left in the sheet. One look in both themes: the banner is the brand's deep violet with white
   words, as Google's is its green in day and night, so the arrow reads at a glance in the sun and in the dark.
   The arrows never mirror in a right-to-left page: right is right on the road.
   ========================================================================== */

.guide-wrap { position: relative; }
.guide-wrap[hidden] { display: none; }
/* under the screen's header, where its «Navigera» is a button in a row (WF2: the map runs under the header) */
.guide-wrap.guide-after { position: relative; z-index: 20; padding: 4px 16px 0; }

.guide {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, #5b21b6, #4c1d95);
  color: #fff;
  box-shadow: 0 10px 30px rgba(10, 4, 30, 0.45);
  border: 1px solid rgba(196, 181, 253, 0.35);
}
.guide-main { display: flex; align-items: center; gap: 10px; padding: 8px 12px; position: relative; }
.guide-arrow { flex: none; width: 52px; height: 52px; color: #fff; }
.guide-arrow svg { width: 52px; height: 52px; display: block; }
[dir="rtl"] .guide-arrow svg, [dir="rtl"] .guide-then-arrow svg, [dir="rtl"] .guide-lane svg { transform: none; }
.guide-exit {
  position: absolute; inset-inline-start: 50px; top: 4px;
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  background: #fff; color: #4c1d95; font: 800 14px/22px system-ui, sans-serif; text-align: center;
}
.guide-exit[hidden] { display: none; }
.guide-text { min-width: 0; flex: 1; }
.guide-dist { margin: 0; font: 800 26px/1.1 system-ui, sans-serif; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.guide-dist[hidden] { display: none; }
.guide-line { margin: 1px 0 0; font: 700 18px/1.25 system-ui, sans-serif; overflow-wrap: anywhere; }

.guide-lanes { display: flex; justify-content: center; gap: 4px; padding: 4px 12px; background: rgba(20, 8, 50, 0.35); }
.guide-lanes[hidden] { display: none; }
.guide-lane { width: 26px; height: 26px; color: rgba(255, 255, 255, 0.38); }
.guide-lane.is-on { color: #fff; }
.guide-lane svg { width: 26px; height: 26px; display: block; }

.guide-then { display: flex; align-items: center; gap: 8px; padding: 5px 12px; background: rgba(20, 8, 50, 0.45); font: 600 15px/1.3 system-ui, sans-serif; }
.guide-then[hidden] { display: none; }
.guide-then-word { opacity: 0.85; }
.guide-then-arrow { flex: none; width: 24px; height: 24px; }
.guide-then-arrow svg { width: 24px; height: 24px; display: block; }
.guide-then-line { min-width: 0; overflow-wrap: anywhere; }

.guide-status { margin: 0; padding: 6px 14px 8px; font: 600 15px/1.3 system-ui, sans-serif; background: rgba(20, 8, 50, 0.45); }
.guide-status[hidden] { display: none; }

/* the buttons in a column at the map's side under the banner, so the middle of the map stays open */
.guide-tools { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.guide-tools .guide-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 22px;
  background: rgba(15, 12, 30, 0.88); color: #fff; border: 1px solid rgba(168, 85, 247, 0.35);
  font: 700 15px/1 system-ui, sans-serif; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.guide-tools .guide-btn[hidden] { display: none; }
.guide-tools .guide-btn svg { width: 20px; height: 20px; flex: none; }
.guide-tools .guide-btn-round { width: 44px; padding: 0; justify-content: center; }
.guide-tools .guide-btn:active { transform: scale(0.96); }

html[data-apple-theme="light"] .guide-tools .guide-btn { background: rgba(255, 255, 255, 0.96); color: #2e1065; border-color: rgba(109, 40, 217, 0.3); box-shadow: 0 6px 18px rgba(46, 16, 101, 0.18); }
html[data-apple-theme="light"] .guide { box-shadow: 0 10px 26px rgba(46, 16, 101, 0.28); }

/* the time and distance left, in the ride's sheet under its handle */
.guide-left { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 0 0 8px; font: 700 17px/1.3 system-ui, sans-serif; color: #e9d5ff; font-variant-numeric: tabular-nums; }
.guide-left[hidden] { display: none; }
.guide-left-min { color: #34d399; font-size: 19px; }
.guide-left-at { color: #cbd5e1; font-weight: 600; }
html[data-apple-theme="light"] .guide-left { color: #2e1065; }
html[data-apple-theme="light"] .guide-left-min { color: #047857; }
html[data-apple-theme="light"] .guide-left-at { color: #475569; }

/* the car: an arrow that turns with it, lying on the map */
.guide-car { width: 40px; height: 40px; }
.guide-car svg { width: 40px; height: 40px; display: block; }
.guide-car-halo { fill: rgba(255, 255, 255, 0.92); stroke: rgba(76, 29, 149, 0.35); stroke-width: 1.5; }
.guide-car-arrow { fill: #6d28d9; }
/* while the guide draws the car, the screen's own dot of him is not drawn twice */
html[data-guiding] [data-purpose="driver-marker"], html[data-guiding] [data-purpose="car-live-marker"] { visibility: hidden; }
