/* Trip option card, shared by the planner (/plan) and the map's tracking sheet (/map). */
:root {
  --card: #fff; --ink: #14202e; --muted: #5d6b7a; --line: #dde3ea; --accent: #2f6fd1;
  --on_time: #1e9e4a; --late: #f2c200; --early: #d62828; --missing: #111; --scheduled: #8a96a3;
}
.card { background: var(--card); border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.trip { padding: 14px; cursor: pointer; border-left: 6px solid var(--scheduled); color: var(--ink);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.trip.on_time { border-left-color: var(--on_time); }
.trip.late { border-left-color: var(--late); }
.trip.early { border-left-color: var(--early); }
.trip.missing { border-left-color: var(--missing); }
.trip .row1 { display: flex; align-items: baseline; gap: 8px; }
.trip .times { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.trip .times .arrow { color: var(--muted); font-weight: 400; margin: 0 2px; }
.trip .dur { margin-left: auto; color: var(--muted); font-size: 14px; white-space: nowrap; }
.trip .sched { font-size: 13px; color: var(--muted); margin-top: 1px; }
.trip .sched s { text-decoration-thickness: 1px; }
.trip .row2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 14px; }
.trip .chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 12px;
  font-size: 13px; font-weight: 600; background: #eef1f5; color: var(--muted); }
.trip .chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.trip .chip.on_time { background: #e3f4e9; color: #157a38; }
.trip .chip.late { background: #fff5cc; color: #7a5d00; }
.trip .chip.early { background: #fde3e3; color: #a51d1d; }
.trip .chip.missing { background: #222; color: #fff; }
.trip .chip.live .dot { animation: tc-pulse 1.6s infinite; }
@keyframes tc-pulse { 50% { opacity: .25; } }
.trip .countdown { font-weight: 600; }
.trip .muted { color: var(--muted); }
.trip .go { margin-left: auto; color: var(--accent); font-weight: 600; white-space: nowrap; }
.trip .board { font-size: 13px; color: var(--muted); margin-top: 6px; }
.trip .detail { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; cursor: default; }
.trip .detail[hidden] { display: none; }
.trip .tl { list-style: none; margin: 0; padding: 0; }
.trip .tl li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: start; font-size: 14px; padding: 3px 0; position: relative; }
.trip .tl li::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.trip .tl li:first-child::before { top: 50%; }
.trip .tl li:last-child::before { bottom: 50%; }
.trip .tl .node { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); background: #fff; margin: 5px 0 0 3px; position: relative; z-index: 1; }
.trip .tl li.end .node { background: var(--accent); }
.trip .tl li.end { font-weight: 600; }
.trip .tl .t { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.trip .leg-head { font-size: 13px; font-weight: 600; color: var(--muted); margin: 2px 0 4px; }
.trip .xfer { margin: 8px 0; padding: 8px 10px; background: #eef4ff; border-radius: 8px; font-size: 14px; color: #1d4a8f; }
