/* OnScene: Enroute. Phone first: one column, large tap targets for gloves and a moving cab. */
.enroute-page{--module-color:#2e8b57;--module-color-dark:#1f6b42}
.enroute-top-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 12px;padding:12px 16px;background:var(--nav);color:#fff}
.enroute-top-bar span{color:var(--nav-text);font-size:.85rem}
.enroute-main{max-width:640px;margin:0 auto;padding:14px 16px 40px}
.enroute-card{border-top:5px solid var(--module-color);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}
.enroute-card h1{font-size:1.35rem;margin-bottom:10px}
.enroute-card h2{font-size:1.05rem;margin-bottom:6px}
.enroute-card label{display:grid;gap:6px;margin-bottom:12px;font-weight:800}
.enroute-card input,.enroute-card select{width:100%;min-height:48px;padding:10px 12px;border:2px solid var(--border);border-radius:8px;background:#fff;font-size:1rem}
.enroute-card input:focus,.enroute-card select:focus{border-color:var(--module-color);outline:3px solid rgba(46,139,87,.2)}
.enroute-big{min-height:56px;font-size:1.05rem}
.enroute-page .button-primary{color:#fff}
.enroute-page .text-button{min-height:44px;padding:8px 0;border:0;background:transparent;color:var(--module-color-dark);font-weight:800;cursor:pointer}
.enroute-page .muted{color:var(--muted)}
.enroute-status{min-height:1.4em;margin:10px 0}

.enroute-progress{display:flex;gap:4px;margin:0 0 14px;padding:0;list-style:none;counter-reset:step}
.enroute-progress li{flex:1;padding:8px 2px 6px;border-bottom:4px solid var(--border);color:var(--muted);font-size:.72rem;font-weight:800;text-align:center;counter-increment:step}
.enroute-progress li::before{content:counter(step) ". "}
.enroute-progress li.is-done{border-color:var(--module-color-dark);color:var(--text)}
.enroute-progress li.is-current{border-color:var(--module-color);color:var(--text)}

.enroute-list{display:grid;gap:8px;margin:12px 0}
.enroute-option{display:grid;grid-template-columns:1fr auto;gap:4px 10px;width:100%;min-height:56px;padding:12px 14px;border:2px solid var(--border);border-radius:10px;background:#fff;color:var(--text);text-align:left;cursor:pointer;font:inherit}
.enroute-option:hover,.enroute-option:focus-visible{border-color:var(--module-color)}
.enroute-option.is-selected{border-color:var(--module-color);background:#eef8f2}
.enroute-option strong{font-size:1.02rem}
.enroute-option small{grid-column:1;color:var(--muted)}
.enroute-option .enroute-distance{grid-row:1/3;grid-column:2;align-self:center;font-weight:900;white-space:nowrap}
.enroute-group-title{margin:14px 0 0;font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}

.enroute-checklist .enroute-option{grid-template-columns:auto 1fr;align-items:center}
.enroute-checklist input[type=checkbox]{width:26px;min-height:26px;height:26px;margin:0}
.enroute-checklist .enroute-option small{grid-column:2}

.enroute-subcard{margin:12px 0;padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-muted)}
.enroute-subcard[hidden]{display:none}
.enroute-row{display:grid;grid-template-columns:1fr 90px;gap:10px}
.enroute-person{position:relative}
.enroute-person .enroute-remove{position:absolute;top:8px;right:10px}
.enroute-nav{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:16px}
.enroute-eta{max-width:200px;margin-top:16px}
.enroute-badge{display:inline-block;padding:2px 8px;border-radius:999px;background:var(--os-info-bg);color:#0a4fb4;font-size:.75rem;font-weight:800}
.enroute-page .message-success{border:1px solid #9cc9b1;background:#eef8f2;color:#145232}

/* The honeypot is off screen, not display:none, so simple bots still fill it. */
.enroute-hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

@media(max-width:420px){
    .enroute-progress li{font-size:0;padding:6px 0}
    .enroute-progress li::before{content:counter(step);font-size:.8rem}
}
.enroute-checklist .enroute-option{margin-bottom:0}
.enroute-person{padding-top:46px}
