/* Passenger app — screen-specific styles on top of base.css */
#view { display: flex; flex-direction: column; }
#view > .page { flex: 1; display: flex; flex-direction: column; min-height: 100%; }

/* home */
.search { background: var(--card); border-radius: var(--r-card); padding: 6px 16px; box-shadow: var(--shadow-lg); }
.search .srow { display: flex; align-items: center; gap: 12px; padding: 11px 0; min-height: 56px; width: 100%; text-align: left; }
.search .srow + .srow { border-top: 1px solid var(--line-soft); }
.search .srow .ico { color: var(--sky); }
.search .srow .v { font: 700 14px var(--font); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search .srow .v.ph { color: var(--placeholder); }
.search .srow .chev { color: var(--muted-2); }
.citycard { display: flex; align-items: center; gap: 13px; background: var(--card); border-radius: 16px; padding: 13px 15px; box-shadow: var(--shadow); border: 1.5px solid transparent; width: 100%; text-align: left; }
.citycard.on { border-color: var(--accent); }
.citycard .badge { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font: 800 13px var(--font); color: #fff; flex: none; }
.citycard b { display: block; font: 700 14.5px var(--font); } .citycard span { font: 500 12px var(--font); color: var(--muted); }
.routecard { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 12px 15px; box-shadow: var(--shadow); border: 1.5px solid transparent; width: 100%; text-align: left; }
.routecard.on { border-color: var(--accent); }
.routecard b { display: block; font: 700 13.5px var(--font); } .routecard span { font: 500 11.5px var(--font); color: var(--muted); }
.routecard .from { font: 700 12.5px var(--font); color: var(--accent); white-space: nowrap; }

/* results */
.classes { display: flex; gap: 8px; }
.classcard { flex: 1; border-radius: var(--r-tile); padding: 11px 6px 10px; text-align: center; background: #f9fbfc; border: 1.5px solid var(--line); min-height: 44px; }
.classcard.on { background: #f0f8ff; border-color: var(--accent); }
.classcard .car { width: 32px; height: 32px; margin: 0 auto; color: var(--muted-2); }
.classcard.on .car { color: var(--accent); }
.classcard b { display: block; font: 800 12.5px var(--font); margin-top: 6px; }
.classcard .seats { font: 500 10.5px var(--font); color: var(--muted); margin-top: 2px; }
.classcard .from { font: 700 11px var(--font); color: var(--accent); margin-top: 4px; }
.classcard.soldout { opacity: .55; }
.classcard .from.none { color: var(--muted-2); }
.listing { background: var(--card); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); border: 1.5px solid transparent; }
.listing .photo { height: 118px; display: flex; align-items: center; justify-content: center; position: relative; }
.listing .photo .car { width: 76px; height: 76px; }
.listing .rating { position: absolute; top: 10px; left: 10px; background: #fff; color: var(--ink); font: 700 11px var(--font); padding: 4px 9px; border-radius: 99px; display: flex; align-items: center; gap: 4px; }
.listing .ph { position: absolute; bottom: 9px; right: 10px; font: 600 10px var(--font); color: var(--muted); letter-spacing: .04em; }
.listing .body { padding: 13px 15px; }
.listing .name { font: 800 15.5px var(--font); }
.listing .spec { font: 500 11.5px var(--font); color: var(--muted); margin-top: 3px; }
.listing .tags { display: flex; gap: 6px; margin-top: 10px; overflow: hidden; }
.listing .foot { display: flex; align-items: center; gap: 10px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line-soft); font: 500 11px var(--font); color: var(--muted); }
.star { width: 12px; height: 12px; fill: var(--warn); }
.stickybar { position: sticky; top: 0; z-index: 5; background: var(--card); }

/* detail */
.hero-photo { height: 250px; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-photo .car { width: 120px; height: 120px; }
.hero-photo .back { position: absolute; top: calc(12px + var(--safe-t)); left: 14px; background: #fff; }
.hero-photo .count { position: absolute; bottom: 12px; right: 14px; background: rgba(11,26,42,.72); color: #fff; font: 600 10.5px var(--font); padding: 5px 10px; border-radius: 99px; letter-spacing: .04em; }
.title { font: 800 19px var(--font); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rating-inline { display: flex; align-items: center; gap: 4px; flex: none; white-space: nowrap; font: 700 13px var(--font); }
.models { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 4px; }
.models::-webkit-scrollbar { display: none; }
.model { flex: none; width: 150px; background: var(--card); border-radius: var(--r-tile); padding: 11px 12px; box-shadow: var(--shadow); }
.model .car { width: 34px; height: 34px; color: var(--accent); }
.model b { display: block; font: 700 12.5px var(--font); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model span { font: 500 10.5px var(--font); color: var(--muted); display: block; margin-top: 2px; }
.fleet-ico { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(45deg, #12D0C8, #0A63D6); display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.window { display: flex; align-items: center; gap: 6px; font: 800 13px var(--font); color: var(--deep); }
.window .ico { color: var(--sky); }

/* booking */
.cal { background: var(--card); border-radius: var(--r-card); padding: 16px; box-shadow: var(--shadow); }
.cal .nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal .nav b { font: 800 14.5px var(--font); }
.cal .nav .btns { display: flex; gap: 8px; }
.cal .nav .btns button { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.cal .nav .btns button:disabled { opacity: .3; }
.cal .dow, .cal .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { font: 600 10.5px var(--font); color: var(--muted-2); text-align: center; margin-bottom: 6px; }
.cal .d { height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font: 600 12.5px var(--font); color: var(--text-2); }
.cal .d.in { background: #dff2fd; color: var(--deep); }
.cal .d.edge { background: var(--deep); color: #fff; }
.cal .d.off { color: var(--placeholder); pointer-events: none; }
.cal .d.today:not(.edge) { box-shadow: inset 0 0 0 1.5px var(--line); }
.breakdown .ln { display: flex; justify-content: space-between; font: 500 12.5px var(--font); color: var(--muted); }
.breakdown .ln + .ln { margin-top: 8px; }
.breakdown .tot { display: flex; justify-content: space-between; font: 800 15px var(--font); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }

/* trips */
.tripcard { background: var(--card); border-radius: var(--r-card); padding: 14px 16px; box-shadow: var(--shadow); width: 100%; text-align: left; }
.tripcard .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tripcard .name { font: 800 14.5px var(--font); margin-top: 8px; }
.tripcard .meta { font: 500 11.5px var(--font); color: var(--muted); margin-top: 2px; }
.steps { display: flex; gap: 0; }
.steps .s { flex: 1; text-align: center; position: relative; }
.steps .s::before { content: ''; position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: var(--line); }
.steps .s:first-child::before { left: 50%; } .steps .s:last-child::before { right: 50%; }
.steps .s i { position: relative; display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--line); margin: 0 auto; border: 3px solid var(--card); box-sizing: border-box; }
.steps .s.done i { background: var(--teal); } .steps .s.now i { background: var(--deep); box-shadow: 0 0 0 3px var(--tint); }
.steps .s span { display: block; font: 700 9.5px var(--font); color: var(--muted-2); margin-top: 6px; }
.steps .s.done span, .steps .s.now span { color: var(--text); }
.steps.cancelled .s::before, .steps.cancelled .s i { background: #fdecec; }
.person { display: flex; align-items: center; gap: 11px; }
.person .av { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 13px var(--font); flex: none; }
.callbtn { width: 40px; height: 40px; border-radius: 50%; background: var(--tint-ok-2); color: var(--ok); display: flex; align-items: center; justify-content: center; }

/* ---------- payment sheet ---------- */
.paysheet-bg { position: fixed; inset: 0; z-index: 45; background: rgba(11,26,42,.5); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s; }
.paysheet { width: 100%; max-width: 480px; background: var(--card); border-radius: 22px 22px 0 0; padding: 0 20px calc(14px + var(--safe-b)); max-height: 88dvh; display: flex; flex-direction: column; animation: up .22s cubic-bezier(.2,.8,.2,1); }
.paysheet .grab { width: 38px; height: 4px; border-radius: 99px; background: var(--line); margin: 10px auto 4px; }
.ps-head { display: flex; align-items: center; gap: 10px; padding: 8px 0 12px; } .ps-head b { font: 800 16px var(--font); }
.ps-amount { margin-left: auto; font: 800 16px var(--font); color: var(--accent); }
.ps-body { overflow-y: auto; flex: 1 1 auto; min-height: 60px; }
.ps-foot { flex: none; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line-soft); }
.ps-label { font: 700 10.5px var(--font); color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 8px; }
.ps-opt { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 8px; font: 600 13px var(--font); cursor: pointer; min-height: 56px; }
.ps-opt:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.ps-opt input { accent-color: var(--deep); } .ps-opt b { display: block; font-weight: 700; } .ps-opt small { display: block; font: 500 11px var(--font); color: var(--muted); }
.ps-brand { font: 800 10.5px var(--font); background: var(--ink); color: #fff; border-radius: 6px; padding: 4px 7px; }
.ps-exp { margin-left: auto; color: var(--muted); font: 700 12px var(--font); white-space: nowrap; }
.ps-err { color: var(--danger); font: 600 12px var(--font); text-align: center; min-height: 16px; margin-top: 8px; }
.ps-note { font: 500 11px/1.5 var(--font); color: var(--muted); text-align: center; margin: 8px 0 0; }
.ch-logo { width: 34px; height: 34px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; font: 800 17px var(--font); }
.ch-logo svg { width: 22px; height: 22px; } .ch-logo .ico { color: #fff; }
.ch-logo.big { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto; } .ch-logo.big svg { width: 32px; height: 32px; }
.gw-pay { text-align: center; padding: 8px 0 4px; }
.gw-amount { font: 800 22px var(--font); margin: 10px 0 2px; letter-spacing: -.02em; }
.gw-qr { width: 210px; height: 210px; display: block; margin: 12px auto 4px; background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft); }
.gw-hint { font: 500 12.5px var(--font); color: var(--muted); margin: 8px 0 12px; padding: 0 12px; }
.gw-wait { display: flex; align-items: center; justify-content: center; gap: 8px; font: 600 12px var(--font); color: var(--muted); margin-top: 14px; }
.btn-spin { display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 99px; animation: spin .8s linear infinite; }
.btn-spin.dark { border-color: var(--line); border-top-color: var(--accent); margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
