.transport-brand { display: flex; align-items: center; gap: .85rem; }
.transport-service { color: #a41230; background: #fae9ed; border-radius: 8px; padding: .4rem .75rem; font-size: .8rem; font-weight: 700; }

body[data-kagie-page="transport-assist"]:not([data-transport-role$="_admin"]) {
  color: #151722;
  background: #f6f7fa;
}
body[data-kagie-page="transport-assist"]:not([data-transport-role$="_admin"])::before,
body[data-kagie-page="transport-assist"]:not([data-transport-role$="_admin"])::after { display: none; }
body[data-kagie-page="transport-assist"]:not([data-transport-role$="_admin"]) .transport-page { width: min(1170px, 100%); gap: 1.2rem; }
body[data-kagie-page="transport-assist"]:not([data-transport-role$="_admin"]) .hero-panel {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}
body[data-kagie-page="transport-assist"]:not([data-transport-role$="_admin"]) .transport-topbar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .65rem 1rem; }
body[data-kagie-page="transport-assist"]:not([data-transport-role$="_admin"]) .top-copy { display: contents; }
body[data-kagie-page="transport-assist"]:not([data-transport-role$="_admin"]) .top-actions { grid-area: 1 / 2; justify-content: flex-end; gap: .4rem; }
body[data-kagie-page="transport-assist"]:not([data-transport-role$="_admin"]) #modeEyebrow { display: none; }
body[data-kagie-page="transport-assist"]:not([data-transport-role$="_admin"]) #pageTitle { grid-column: 1 / -1; margin: clamp(1rem, 4vw, 2.65rem) 0 0; font-size: clamp(1.85rem, 5vw, 3rem); line-height: 1.12; }
body[data-kagie-page="transport-assist"]:not([data-transport-role$="_admin"]) #pageCopy { grid-column: 1 / -1; color: #555b6e; font-size: clamp(.9rem, 2vw, 1rem); }
body[data-kagie-page="transport-assist"]:has(#transportBooking:not([hidden]):not([data-step="search"])) :is(#pageTitle, #pageCopy) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.tb {
  --tb-ink: #151722;
  --tb-muted: #535a6b;
  --tb-line: #e3e5ec;
  --tb-soft: #f2f3f7;
  --tb-accent: #c61336;
  --tb-accent-soft: #fff0f2;
  display: grid;
  gap: 1rem;
  color: var(--tb-ink);
}
.tb[hidden], .tb [hidden] { display: none !important; }
.tb h2, .tb h3, .tb p { margin: 0; }
.tb :is(form, fieldset, .tb-stack) { display: grid; gap: .9rem; min-width: 0; }
.tb fieldset { border: 1px solid #dce4f0; border-radius: 12px; padding: .9rem; margin: 0; }
.tb legend { font-weight: 700; padding-inline: .25rem; }
.tb :is(input, select, textarea) { width: 100%; min-width: 0; min-height: 44px; padding: .6rem; font: inherit; color: inherit; border: 1px solid #b8c4d7; border-radius: 8px; background: white; }
.tb label { display: grid; gap: .35rem; font-weight: 650; }
.tb label:has(input[type="checkbox"]) { display: flex; align-items: center; }
.tb input[type="checkbox"] { width: 1.1rem; min-height: auto; }
.tb-grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); }
.tb-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.tb-heading { justify-content: space-between; }
.tb-heading h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); line-height: 1.2; }
#transportBooking { min-width: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.tb button { min-height: 44px; cursor: pointer; }
.tb .primary-btn { background: var(--tb-accent); border-color: var(--tb-accent); color: white; border-radius: 10px; box-shadow: none; }
.tb .primary-btn:hover:not(:disabled) { background: #a9102d; }
.tb .secondary-btn { background: white; border: 1px solid var(--tb-line); color: var(--tb-ink); box-shadow: none; }
.tb button:disabled { cursor: default; opacity: .6; }
.tb :focus-visible { outline: 3px solid #214f92; outline-offset: 2px; }
.tb-flow { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; padding: .65rem 0; margin: 0; border-block: 1px solid var(--tb-line); font-size: .85rem; color: var(--tb-muted); }
.tb-flow li { display: flex; gap: .4rem; align-items: center; }
.tb-flow li > span { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border: 1px solid var(--tb-line); border-radius: 50%; font-size: .75rem; }
.tb-flow [aria-current="step"] { font-weight: 800; color: var(--tb-accent); }
.tb-flow [aria-current="step"] > span { background: var(--tb-accent); border-color: var(--tb-accent); color: white; }
.tb-flow [data-complete] > span { background: #e3f5ec; border-color: #e3f5ec; color: #11613f; }
.tb .tb-search { padding: clamp(.8rem, 3vw, 1.4rem); border: 1px solid var(--tb-line); border-radius: 16px; background: white; box-shadow: 0 8px 24px #1720330d; }
.tb .tb-trip-type { border: 0; padding: 0; }
.tb-trip-type legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tb-segment { display: inline-flex; justify-self: start; gap: .2rem; padding: .2rem; border-radius: 12px; background: var(--tb-soft); }
.tb .tb-segment label { display: block; position: relative; cursor: pointer; }
.tb .tb-segment input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; }
.tb-segment span { display: grid; place-items: center; min-height: 44px; padding: 0 1rem; border-radius: 9px; }
.tb-segment input:checked + span { color: var(--tb-accent); background: white; box-shadow: 0 1px 5px #17203324; }
.tb-segment input:focus-visible + span { outline: 3px solid #214f92; outline-offset: -2px; }
.tb-search-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; }
.tb-route { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: .5rem; align-items: center; flex: 4 1 320px; min-width: 0; }
.tb-swap { border: 1px solid var(--tb-line); border-radius: 50%; background: white; color: var(--tb-ink); font: inherit; font-size: 1.35rem; }
.tb .tb-search-field { display: grid; align-content: center; gap: 1px; min-width: 0; min-height: 62px; padding: .5rem .75rem; background: var(--tb-soft); border-radius: 11px; }
.tb-search-field > span { font-size: .78rem; color: var(--tb-muted); }
#transportBooking .tb-search-field input {
  border: 0;
  border-radius: 3px;
  padding: .1rem 0;
  min-height: 24px;
  background-color: transparent;
  color: var(--tb-ink);
}
.tb .tb-date { flex: 1 1 145px; }
.tb-passengers { position: relative; flex: 1 1 136px; min-width: 0; }
.tb-passengers summary { height: 100%; list-style: none; cursor: pointer; }
.tb-passengers summary::-webkit-details-marker { display: none; }
.tb-passengers summary strong { padding-inline-end: .8rem; }
.tb-passengers summary::after { content: "⌄"; position: absolute; inset-inline-end: .65rem; inset-block-start: 1.45rem; }
.tb-passengers > div { position: absolute; z-index: 2; inset-inline-end: 0; top: calc(100% + .4rem); display: grid; gap: .65rem; padding: .85rem; width: 12rem; max-width: calc(100vw - 3rem); background: white; border: 1px solid var(--tb-line); border-radius: 12px; box-shadow: 0 8px 24px #1720331f; }
.tb-search-submit { justify-content: center; gap: .75rem; }
.tb-query { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; background: white; border: 1px solid var(--tb-line); border-radius: 12px; padding: .85rem 1rem; }
.tb-query p { margin-top: .25rem; color: var(--tb-muted); }
.tb .tb-compare { grid-template-columns: minmax(12rem, 23%) minmax(0, 1fr); align-items: start; }
.tb-filters { border: 1px solid var(--tb-line); border-radius: 12px; padding: .85rem; background: white; }
.tb-filters summary { cursor: pointer; font-weight: 700; }
.tb-filters .tb-grid { grid-template-columns: minmax(0, 1fr); gap: .7rem; font-size: .82rem; }
.tb-filters :is(.tb-grid, .tb-actions) { margin-top: .85rem; }
.tb-results-toolbar { display: flex; justify-content: flex-end; }
.tb .tb-results-toolbar label { display: flex; align-items: center; gap: .65rem; font-size: .85rem; }
.tb-results-toolbar select { width: auto; }
.tb .tb-result-group { border: 0; padding: 0; }
.tb-result-group legend { padding: 0; margin-bottom: .5rem; }
.tb-card { border: 1px solid #dce4f0; border-radius: 14px; padding: .9rem; display: grid; gap: .5rem; min-width: 0; overflow-wrap: anywhere; }
.tb-card label { display: flex; gap: .6rem; align-items: flex-start; }
.tb-card input[type="radio"] { width: 1.1rem; min-height: 1.1rem; }
.tb-result-group .tb-card { background: white; }
.tb-result-group .tb-card:has(input:checked) { border-color: var(--tb-accent); box-shadow: 0 0 0 1px var(--tb-accent); }
.tb-result-group label { flex-wrap: wrap; align-items: center; cursor: pointer; }
.tb-result-group label strong { margin-inline-start: auto; color: var(--tb-ink); font-size: 1rem; }
.tb-result-meta { color: var(--tb-muted); font-size: .9rem; }
.tb-recommendations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.tb-recommendation { display: grid; gap: .22rem; padding: .75rem; border: 1px solid var(--tb-line); border-radius: 12px; background: white; overflow-wrap: anywhere; }
.tb-recommendation small { color: #12603e; font-weight: 800; }
.tb-recommendation[data-accent="time"] small { color: #754a09; }
.tb-recommendation span { color: var(--tb-muted); font-size: .82rem; }
.tb-timeline { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .7rem; align-items: center; border-block: 1px solid var(--tb-line); padding-block: .6rem; }
.tb-terminal { display: grid; gap: .1rem; }
.tb-terminal:last-child { text-align: end; }
.tb-terminal small { color: var(--tb-muted); }
.tb-terminal time { font-size: clamp(1.2rem, 4vw, 1.65rem); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tb-terminal span { font-size: .84rem; }
.tb-duration { color: var(--tb-muted); font-size: .8rem; white-space: nowrap; }
.tb-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 32%); gap: 1rem; align-items: start; }
.tb-summary { display: grid; min-width: 0; gap: .8rem; padding: 1rem; border: 1px solid var(--tb-line); border-radius: 14px; background: white; overflow-wrap: anywhere; }
.tb-summary .tb-fare { padding-top: .75rem; border-top: 1px solid var(--tb-line); }
.tb-summary .tb-fare-total { background: var(--tb-accent-soft); color: var(--tb-accent); padding: .65rem; }
.tb-summary dt.tb-fare-total { border-radius: 8px 0 0 8px; margin-inline-end: -1rem; }
.tb-summary dd.tb-fare-total { border-radius: 0 8px 8px 0; }
.tb [data-form="hold"] fieldset, .tb .tb-columns :is(.tb-card, fieldset) { background: white; }
.tb-category { background: var(--tb-accent-soft); color: var(--tb-accent); padding: .2rem .45rem; border-radius: 999px; font-size: .75rem; }
.tb-step-actions { justify-content: space-between; }
.tb .tb-payment p { color: var(--tb-muted); }
.tb .tb-payment .primary-btn { width: 100%; justify-content: center; }
.tb .tb-hold-notice { padding: .7rem .9rem; background: #fff3d6; color: #674300; border-radius: 10px; font-weight: 700; }
.tb-status { min-height: 1.3em; color: #42577a; }
.tb-status:empty { position: absolute; min-height: 0; }
.tb-status[role="alert"] { color: #9c1322; }
.tb .tb-fallback { margin-top: .35rem; }
.tb-fallback a { color: var(--tb-accent); text-decoration: underline; text-underline-offset: .15em; font-weight: 650; }
.tb-operators { scroll-margin-block-start: 1rem; }
.tb-operators h2 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
.tb-operators h2 + p { margin-top: .25rem; color: var(--tb-muted); }
.tb-operator-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.75rem), 1fr)); gap: .6rem; list-style: none; margin: 0; padding: 0; }
.tb-operator-links a { display: grid; gap: .2rem; min-height: 100%; padding: .7rem; border: 1px solid var(--tb-line); border-radius: 10px; text-decoration: none; color: var(--tb-ink); }
.tb-operator-links a:hover { border-color: var(--tb-accent); background: var(--tb-accent-soft); }
.tb-operator-links span { color: var(--tb-muted); font-size: .86rem; }
.tb-demo { background: #fff1d2; color: #694400; border-radius: 8px; padding: .65rem; }
.tb-seats { display: grid; grid-template-columns: repeat(var(--columns), minmax(44px, 1fr)); gap: .4rem; max-width: 34rem; }
.tb-seat-scroll { overflow-x: auto; max-width: 100%; padding: .25rem; }
.tb-seats button { border: 1px solid #acbcd5; border-radius: 8px; background: #f4f8ff; color: #172033; font: inherit; }
.tb-seats button[aria-pressed="true"] { background: #991120; color: white; }
.tb-seats button:disabled { background: #e2e6ec; text-decoration: line-through; }
.tb-links { padding-block: .5rem; }
.tb-help:not([open]) { display: none; }
.tb-help {
  box-sizing: border-box;
  width: min(36rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  overflow: auto;
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid #dce4f0;
  border-radius: 16px;
  background: white;
  box-shadow: 0 18px 60px #1720333d;
}
.tb-help::backdrop { background: #121a2b99; }
.tb-help header { justify-content: space-between; }
.tb-help h2 { font-size: clamp(1.1rem, 4vw, 1.4rem); }
.tb-help-answer:not(:empty) { padding: 1rem; border-radius: 10px; background: #f4f8ff; }
.tb-help [aria-pressed="true"] { border-color: #991120; color: #991120; }
.tb-fare { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 0; }
.tb-fare dd { text-align: right; margin: 0; }
.tb-fare-total { font-weight: 800; }
.tb .tb-fare-choices { margin-block: .35rem; }
.tb .tb-fare-choice { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .55rem; padding: .6rem .75rem; border: 1px solid var(--tb-line); border-radius: 9px; cursor: pointer; }
.tb-fare-choice:has(input:checked) { border-color: var(--tb-accent); background: var(--tb-accent-soft); }
.tb-fare-choice > span { display: grid; gap: .2rem; }
.tb-fare-choice small { color: var(--tb-muted); font-weight: 450; }
.tb-seat-key { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: 0; list-style: none; }
.tb-seat-key li { display: inline-flex; align-items: center; gap: .35rem; }
.tb-seat-key li::before { content: ""; width: .8rem; height: .8rem; border: 1px solid #acbcd5; border-radius: 3px; background: #f4f8ff; }
.tb-seat-key .selected::before { background: #991120; }
.tb-seat-key .reserved::before, .tb-seats [data-availability="reserved"] { background: #e2e6ec; }
.tb-seat-key .unavailable::before, .tb-seats [data-availability="unavailable"] {
  background: repeating-linear-gradient(135deg, #f4f7fb 0 4px, #cbd5e3 4px 6px);
}

@media (max-width: 680px) {
  .tb-columns, .tb .tb-compare { grid-template-columns: minmax(0, 1fr); }
  .tb-filters .tb-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr)); }
  body[data-kagie-page="transport-assist"]:not([data-transport-role$="_admin"]) .transport-topbar { grid-template-columns: minmax(0, 1fr); }
  body[data-kagie-page="transport-assist"]:not([data-transport-role$="_admin"]) .top-actions { grid-area: 2 / 1; justify-content: flex-start; }
}

@media (max-width: 480px) {
  .tb-route { grid-template-columns: minmax(0, 1fr) 44px; flex-basis: 100%; }
  .tb-route label { grid-column: 1; }
  .tb-swap { grid-area: 1 / 2 / span 2 / 3; }
  .tb-swap span { display: inline-block; transform: rotate(90deg); }
  .tb-search-submit { flex-basis: 100%; min-height: 52px; }
  .tb-passengers[open] { flex-basis: 100%; }
  .tb-passengers[open] summary { height: auto; }
  .tb-passengers > div { position: static; margin-top: .35rem; width: 100%; max-width: none; box-shadow: none; }
  .tb-flow { column-gap: .75rem; }
}
