/* Passenger app, after Sam's Aruba Transit App designs: illustrated beach
   header, cream page, rounded white cards, dark teal actions, line badges. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ar-paper); color: var(--ar-ink); font-family: var(--ar-font); -webkit-font-smoothing: antialiased; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 32px; }
h1, h2, h3, .display { font-family: ui-rounded, 'Nunito', 'Arial Rounded MT Bold', var(--ar-font); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ar-teal); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero */
.hero { position: relative; height: 230px; overflow: hidden; }
.hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-text { position: relative; padding: 46px 22px 0; }
.hero-text p { margin: 0; font-size: 1.15rem; font-weight: 700; }
.hero-text h1 { margin: 2px 0 0; font-size: 2.1rem; line-height: 1.05; max-width: 11ch; }
.hero--small { height: auto; min-height: 150px; padding-bottom: 28px; }
.hero--small .hero-text { padding: 76px 22px 0; }
.hero--small h1 { font-size: 1.7rem; max-width: 15ch; }
.hero .back { position: absolute; top: 18px; left: 14px; z-index: 1; }

/* Cards and sections */
.card { background: var(--ar-surface); border-radius: 24px; box-shadow: 0 8px 24px #102d3114; padding: 18px; }
.planner { margin: -56px 14px 0; position: relative; }
.section { margin: 26px 18px 0; }
.section h2 { font-size: 1.15rem; margin: 0 0 12px; }
.muted { color: var(--ar-muted); }

/* Planner fields */
.places { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.places-fields { display: grid; gap: 10px; }
.place { position: relative; display: block; background: #f1f4f2; border-radius: 16px; padding: 8px 14px 8px 42px; }
.place::before { content: ''; position: absolute; left: 16px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; }
.place--from::before { border: 3px solid var(--ar-teal); width: 8px; height: 8px; margin-top: -7px; }
.place--to::before { background: var(--ar-coral); }
.place span { display: block; font-size: .8rem; color: var(--ar-muted); }
.place select { width: 100%; border: 0; background: transparent; font-size: 1.08rem; font-weight: 700; padding: 0; appearance: none; }
.swap { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ar-line); background: var(--ar-surface); color: var(--ar-teal); font-size: 1.3rem; }
.when-row { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--ar-line); background: var(--ar-surface); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .92rem; }
.chip[aria-pressed='true'], .chip--sun { background: #fff0c4; border-color: #fff0c4; }
.chip--solid[aria-pressed='true'] { background: var(--ar-ink); border-color: var(--ar-ink); color: #fff; }
.options { display: grid; gap: 10px; margin-bottom: 14px; }
.options label { display: grid; gap: 4px; font-size: .85rem; color: var(--ar-muted); }
.options input, .options select { border: 1.5px solid var(--ar-line); border-radius: 12px; padding: 10px 12px; background: var(--ar-surface); color: var(--ar-ink); }
.primary { width: 100%; border: 0; border-radius: 16px; background: var(--ar-teal); color: #fff; font-weight: 800; font-size: 1.1rem; padding: 16px; }
.primary:disabled { opacity: .55; }
.secondary { border: 1.5px solid var(--ar-line); border-radius: 16px; background: var(--ar-surface); font-weight: 800; padding: 14px 18px; }
.places-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.places-chips .chip { background: #dff2f6; border-color: #dff2f6; white-space: nowrap; }

/* Line badge */
.line { display: inline-flex; align-items: center; gap: 4px; border-radius: 8px; padding: 3px 8px; font-weight: 800; font-size: .88rem; background: var(--ar-sun); color: var(--ar-ink); white-space: nowrap; }
.line svg { width: 14px; height: 14px; }
.line--coral { background: var(--ar-coral); }
.line--sky { background: var(--ar-sky); }
.line--mint { background: #7fd3b4; }
.line--lilac { background: #c7b8f0; }

/* Stop rows (nearby and stop board) */
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; border: 0; background: var(--ar-surface); border-radius: 18px; padding: 14px; box-shadow: 0 4px 14px #102d310d; }
.row strong { display: block; font-size: 1.02rem; }
.row small { display: block; color: var(--ar-muted); font-size: .86rem; }
.row .count { font-weight: 800; color: var(--ar-ink); white-space: nowrap; }
.row .count.live { color: var(--ar-teal); }
.row .count.live::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2f9d6a; margin-right: 6px; vertical-align: 2px; }
.row.is-cancelled strong, .row.is-cancelled .count { text-decoration: line-through; color: var(--ar-muted); }
.row.is-cancelled small { color: #9c2b0e; font-weight: 700; }

/* Results */
.topbar { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin: 18px 14px 0; }
.back { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ar-surface); box-shadow: 0 4px 14px #102d3114; font-size: 1.2rem; }
.topbar .card { padding: 10px 16px; border-radius: 18px; }
.topbar small { display: block; color: var(--ar-muted); font-size: .82rem; }
.topbar strong { font-size: 1.05rem; }
.option { display: block; width: 100%; text-align: left; border: 2px solid transparent; margin-bottom: 12px; }
.option--best { border-color: var(--ar-sun); }
.option-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.badge { display: inline-block; background: #fff0c4; border-radius: 8px; padding: 3px 8px; font-weight: 800; font-size: .8rem; }
.times { display: flex; justify-content: space-between; align-items: baseline; }
.times strong { font-size: 1.45rem; font-family: ui-rounded, 'Nunito', var(--ar-font); }
.times span { font-weight: 800; color: var(--ar-teal); }
.strip { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0; font-size: .86rem; color: var(--ar-muted); }
.strip .wait { background: #fff0c4; border-radius: 8px; padding: 3px 7px; color: var(--ar-ink); font-weight: 700; }
.option p { margin: 0; font-size: .9rem; color: var(--ar-muted); }
.option p b { color: var(--ar-ink); }
.note { background: #dff2f6; border-radius: 16px; padding: 12px 14px; font-size: .92rem; margin-top: 4px; }
.note--warn { background: #fff0c4; }
.note--bad { background: #ffe0d4; }

/* Trip detail */
.overview { margin: 14px; border-radius: 24px; overflow: hidden; background: #f3ead2; }
.overview svg { display: block; width: 100%; height: 190px; }
.status-card { margin: -34px 14px 0; position: relative; }
.status-head { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.status-head .line { font-size: 1.1rem; padding: 10px; border-radius: 14px; }
.status-head small { color: var(--ar-muted); }
.status-head h2 { margin: 2px 0 0; font-size: 1.45rem; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.pill { border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .86rem; background: #f1f4f2; }
.pill--good { background: #dff2eb; color: #1f6b4a; }
.pill--warn { background: #fff0c4; }
.pill--bad { background: #ffe0d4; color: #9c2b0e; }
.timeline { list-style: none; margin: 0; padding: 0; }
.leg-head { display: flex; gap: 8px; align-items: center; margin: 8px 0; color: var(--ar-muted); font-weight: 700; font-size: .9rem; }
.stop { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; padding: 6px 0; }
.stop .dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--ar-teal); margin-top: 4px; }
.stop.last .dot { background: var(--ar-coral); border-color: var(--ar-coral); }
.stop strong { display: block; }
.stop small { color: var(--ar-muted); }
.stop time { font-weight: 800; }
.transfer { background: #fff0c4; border-radius: 14px; padding: 10px 12px; margin: 8px 0; font-weight: 700; }
.transfer small { display: block; font-weight: 500; color: var(--ar-muted); }
.actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 16px 14px 0; }
.empty { text-align: center; padding: 28px 18px; color: var(--ar-muted); }

.icon { width: 1.05em; height: 1.05em; vertical-align: -0.17em; flex: none; }
.chip .icon, .primary .icon { margin: 0 .35em; }
.swap .icon { width: 22px; height: 22px; }
.strip .wait, .strip .walk { display: inline-flex; align-items: center; gap: 4px; }
.transfer .icon { margin-right: 6px; }
