/* taxi.infinityrising.net — booking page. Brand tokens come from shared/ir.css;
   --t-color is the fleet's own color (set from its JSON). */
:root { --t-color: #0f766e; --t-ink: #ffffff; }

/* Sales page */
.s-actions { margin-top: 20px; flex: 0 0 auto; }
.s-actions > * { flex: 0 0 auto; }
.s-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 680px) { .s-grid { grid-template-columns: 1fr; } }
.s-grid .ir-card p { margin: 0; color: var(--ir-muted); }
.s-how { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Fleet header */
.t-head { background: var(--t-color); color: var(--t-ink); }
.t-head-in { display: flex; align-items: center; gap: 14px; padding-block: 16px; }
.t-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #fff; flex: 0 0 auto; }
.t-head-txt { flex: 1 1 auto; min-width: 0; }
.t-head h1 { margin: 0; font-size: clamp(20px, 4.4vw, 28px); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.t-head p { margin: 2px 0 0; opacity: .92; font-size: 15px; }
.t-head-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; }
.t-lang { flex: 0 0 auto; text-decoration: none; display: inline-block; border: 1px solid rgba(255,255,255,.55); background: transparent; color: inherit;
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.t-demo { margin: 0; padding: 8px 16px; text-align: center; font-size: 14px; background: var(--ir-warn-bg); color: var(--ir-warn); }

/* Layout: map on top (phone), map beside the form (desktop) */
.t-layout { max-width: 1120px; display: grid; grid-template-columns: 1fr; gap: 0 20px; padding-top: 16px; }
@media (min-width: 900px) {
  .t-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .t-map-col { position: sticky; top: 16px; margin-top: 16px; }
}
.t-form { min-width: 0; }
.t-map { height: 46vh; min-height: 280px; max-height: 560px; border-radius: var(--ir-radius);
  border: 1px solid var(--ir-line); overflow: hidden; background: var(--ir-line); z-index: 0; }
@media (min-width: 900px) { .t-map { height: calc(100vh - 140px); max-height: 720px; } }
.t-map-hint { margin: 8px 2px 0; }
.t-route { display: flex; gap: 16px; margin: 6px 2px 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Points A / B */
.t-pt { position: relative; margin-bottom: 14px; }
.t-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font-size: 12px; font-weight: 800; color: #fff; vertical-align: -5px; }
.t-dot.a { background: #15803d; }
.t-dot.b { background: #b91c1c; }
.t-search { display: flex; gap: 8px; }
.t-search .ir-input { flex: 1 1 auto; min-width: 0; }
.t-icon-btn { flex: 0 0 48px; height: 48px; border-radius: 10px; border: 1px solid var(--ir-line);
  background: var(--ir-surface); color: var(--ir-ink); display: grid; place-items: center; cursor: pointer; }
.t-icon-btn:focus-visible, .t-chips button:focus-visible, .t-veh label:focus-within { outline: 2px solid var(--ir-brand); outline-offset: 2px; }
.t-sugg { position: absolute; left: 0; right: 56px; top: 100%; z-index: 20; list-style: none; margin: 4px 0 0; padding: 4px;
  background: var(--ir-surface); border: 1px solid var(--ir-line); border-radius: 10px; box-shadow: var(--ir-shadow);
  max-height: 260px; overflow: auto; }
.t-sugg li { padding: 10px 10px; border-radius: 8px; cursor: pointer; font-size: 15px; line-height: 1.3; }
.t-sugg li small { display: block; color: var(--ir-muted); font-size: 13px; }
.t-sugg li:hover, .t-sugg li[aria-selected="true"] { background: var(--ir-bg); }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t-chips button { font: inherit; font-size: 13px; border: 1px solid var(--ir-line); background: var(--ir-bg); color: var(--ir-ink);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; }

/* When */
.t-seg { display: inline-flex; border: 1px solid var(--ir-line); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.t-seg label { position: relative; padding: 10px 18px; cursor: pointer; font-weight: 600; }
.t-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.t-seg label:has(input:checked) { background: var(--ir-ink); color: var(--ir-surface); }
.t-seg label:has(input:focus-visible) { outline: 2px solid var(--ir-brand); outline-offset: -2px; }

/* Vehicles */
.t-veh { display: grid; gap: 8px; }
.t-veh label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--ir-line);
  border-radius: 12px; cursor: pointer; background: var(--ir-bg); }
.t-veh label:has(input:checked) { border-color: var(--t-color); box-shadow: inset 0 0 0 1px var(--t-color); background: var(--ir-surface); }
.t-veh input { accent-color: var(--t-color); width: 18px; height: 18px; flex: 0 0 auto; }
.t-veh .v-name { font-weight: 700; }
.t-veh .v-seats { color: var(--ir-muted); font-size: 13px; display: block; }
.t-veh .v-txt { flex: 1 1 auto; min-width: 0; }
.t-veh .v-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-veh label.too-small { opacity: .5; }
.t-gap { margin-top: 12px; }

/* Quote */
.t-quote-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.t-quote-top span { font-weight: 600; }
.t-quote-top strong { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.t-break { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; color: var(--ir-muted); }
.t-break li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.t-quote .ir-btn { margin-top: 12px; }
.t-credit { text-align: center; font-size: 13px; padding: 8px 16px 40px; margin: 0; }
.t-credit a { color: var(--ir-muted); }

/* Confirmation */
#done { padding-top: 24px; }
.t-done { max-width: 620px; margin: 16px auto; }
.t-code-lbl { margin: 0; color: var(--ir-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.t-code { margin: 2px 0 12px; font-size: 32px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--t-color); }
.t-sum { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 16px 0;
  padding: 14px; background: var(--ir-bg); border-radius: 10px; }
.t-sum dt { color: var(--ir-muted); font-size: 14px; }
.t-sum dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.t-done-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.t-link { background: none; border: 0; padding: 0; margin-top: 12px; font: inherit; color: var(--ir-brand); text-decoration: underline; cursor: pointer; }

/* Map markers */
.t-pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.t-pin span { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: 13px; font-family: var(--ir-font); }
.t-pin.a { background: #15803d; }
.t-pin.b { background: #b91c1c; }

/* Printable QR poster (car window / stand) */
#poster { min-height: 100vh; display: grid; place-items: center; background: #fff; color: #111; padding: 24px 16px; }
.p-sheet { text-align: center; max-width: 520px; width: 100%; border: 3px solid var(--t-color); border-radius: 24px; padding: 32px 24px; }
.p-logo { width: 90px; height: 90px; object-fit: contain; }
.p-sheet h1 { margin: 8px 0 4px; font-size: 30px; }
.p-big { font-size: 22px; font-weight: 700; margin: 0 0 16px; }
.p-qr { width: 300px; max-width: 100%; margin: 0 auto; }
.p-qr svg { display: block; width: 100%; height: auto; }
.p-unit { font-size: 20px; font-weight: 700; margin: 12px 0 0; }
.p-url { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; color: #444; margin: 8px 0 16px; overflow-wrap: anywhere; }
@media print { #poster { min-height: 0; padding: 0; } .p-sheet { border-width: 4px; } }

/* Book button in the fleet's color; the confirmation's WhatsApp button is the big one */
.ir-btn.t-book { background: var(--t-color); color: var(--t-ink); }
.ir-btn.t-big { font-size: 18px; padding: 16px 18px; margin: 4px 0 12px; }
.t-trip-box { margin: 0 0 8px; }

/* Rider's trip page */
.t-trip { max-width: 680px; padding-top: 16px; padding-bottom: 40px; }
.t-steps { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.t-steps li { padding: 10px 8px 8px; border-top: 4px solid var(--ir-line); font-size: 13px; font-weight: 600; color: var(--ir-muted); line-height: 1.25; }
.t-steps li.past { border-top-color: var(--t-color); color: var(--ir-ink); }
.t-steps li.on { border-top-color: var(--t-color); color: var(--t-color); font-weight: 800; }
.t-steps li.bad { grid-column: 1 / -1; border-top-color: var(--ir-bad); color: var(--ir-bad); }
.t-driver h2 { margin: 2px 0 10px; font-size: 24px; }
.t-dinfo { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 14px; }
.t-dinfo span { font-weight: 700; font-size: 17px; }
.t-dinfo small { display: block; font-size: 12px; color: var(--ir-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.t-map.t-map-sm { height: 260px; min-height: 0; margin: 16px 0 0; }
