:root{
  --bg:#f5f8fc;
  --surface:#ffffff;
  --surface-soft:#f8fbff;
  --line:#d8e4f0;
  --line-strong:#c8d7e7;
  --text:#10233d;
  --muted:#66788f;
  --muted-soft:#8aa0b8;
  --brand:#c24848;
  --brand-dark:#a83535;
  --brand-soft:#f8eaec;
  --brand-soft-strong:#f2d5da;
  --sky:#1f8aea;
  --sky-soft:#edf6ff;
  --gold:#f2cd67;
  --mint:#1a6b4a;
  --mint-soft:#e5f3ee;
  --shadow:0 22px 48px rgba(16,35,61,.12);
  --shadow-soft:0 12px 26px rgba(16,35,61,.08);
  --radius-xl:32px;
  --radius-lg:24px;
  --radius-md:18px;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  min-height:100vh;
  font-family:Inter,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(194,72,72,.14), transparent 28%),
    radial-gradient(circle at top right, rgba(31,138,234,.16), transparent 24%),
    linear-gradient(180deg, #f9fbff 0%, #eef4fb 48%, #f7f0ea 100%);
}

body::before{
  content:"";
  position:fixed;
  inset:0 0 auto;
  height:260px;
  background:
    linear-gradient(135deg, rgba(219,15,22,.94), rgba(31,138,234,.88)),
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0));
  clip-path:polygon(0 0,100% 0,100% 82%,0 100%);
  z-index:-2;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at 12% 22%, rgba(242,205,103,.22), transparent 14%),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.18), transparent 12%),
    radial-gradient(circle at 75% 55%, rgba(194,72,72,.10), transparent 16%);
  z-index:-1;
  pointer-events:none;
}

.transport-page{
  width:min(1180px,100%);
  margin:0 auto;
  padding:24px 14px 120px;
  display:grid;
  gap:18px;
}

.hero-panel,
.results-panel,
.tickets-panel,
.access-panel{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.8);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.hero-panel{
  padding:18px;
  display:grid;
  gap:18px;
}

.transport-topbar{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  flex-wrap:wrap;
}

.top-copy{
  max-width:680px;
}

.eyebrow,
.section-kicker{
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--brand);
}

.transport-topbar h1{
  margin:10px 0 8px;
  font-size:clamp(2rem,4vw,3.6rem);
  line-height:.98;
  letter-spacing:-.06em;
}

.transport-topbar p,
.booking-head p,
.panel-head p,
.operator-head p,
.modal-head p,
.summary-meta,
.ticket-copy,
.route-subcopy,
.route-helper,
.empty-state p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
}

.top-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.ghost-btn,
.soft-btn,
.primary-btn,
.secondary-btn,
.secondary-link,
.search-btn,
.ticket-tab,
.trip-btn,
.quick-chip,
.nav-btn{
  font:800 14px Inter,Arial,sans-serif;
  border:none;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.ghost-btn,
.soft-btn,
.secondary-btn,
.secondary-link{
  min-height:46px;
  padding:0 16px;
  border-radius:16px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  color:var(--text);
  border:1px solid rgba(255,255,255,.82);
  box-shadow:var(--shadow-soft);
}

.ghost-btn:hover,
.soft-btn:hover,
.secondary-btn:hover,
.secondary-link:hover,
.primary-btn:hover,
.search-btn:hover,
.trip-btn:hover,
.ticket-tab:hover,
.quick-chip:hover,
.nav-btn:hover{
  transform:translateY(-2px);
}

.bottom-nav{
  position:fixed;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  width:min(430px, calc(100% - 24px));
  background:rgba(255,255,255,.94);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  display:flex;
  justify-content:space-between;
  gap:6px;
  padding:8px;
  z-index:120;
}

.bottom-nav-item{
  flex:1;
  min-width:0;
  min-height:52px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  border-radius:18px;
  text-decoration:none;
  color:var(--muted);
  font:800 10px Inter,Arial,sans-serif;
  letter-spacing:.04em;
  text-transform:uppercase;
  transition:all .18s ease;
}

.bottom-nav-item:hover{
  transform:translateY(-2px);
  background:rgba(16,35,61,.04);
  color:var(--text);
}

.bottom-nav-item.active{
  background:linear-gradient(135deg, #db0f16, #f39a38);
  color:#ffffff;
  box-shadow:0 10px 20px rgba(219,15,22,.18);
}

.bottom-nav-kicker{
  font-size:9px;
  opacity:.72;
  letter-spacing:.08em;
}

.search-panel{
  display:grid;
  gap:18px;
  padding:26px;
  border-radius:var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88)),
    linear-gradient(135deg, rgba(194,72,72,.08), rgba(31,138,234,.06));
  border:1px solid rgba(229,194,196,.72);
  box-shadow:var(--shadow-soft);
}

.booking-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.booking-head h2,
.panel-head h2,
.selected-head h3,
.operator-head h3,
.modal-head h2{
  margin:8px 0 6px;
  font-size:clamp(1.45rem,3vw,2.1rem);
  line-height:1.05;
  letter-spacing:-.04em;
}

.learner-strip{
  display:grid;
  gap:8px;
}

.field-label-inline,
.field-kicker,
.toolbar-label,
.selected-stat span,
.notes-field span,
.quick-select span{
  font-size:12px;
  font-weight:800;
  letter-spacing:.03em;
  color:var(--muted);
}

.select-shell,
.field-shell,
.picker-trigger,
.toolbar-select{
  min-height:78px;
  border-radius:22px;
  background:#f6f6f9;
  border:1px solid transparent;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}

.select-shell,
.field-shell{
  display:flex;
  align-items:center;
  padding:0 18px;
  gap:12px;
}

.select-shell select,
.field-shell select{
  width:100%;
  border:none;
  background:transparent;
  outline:none;
  font:500 1.05rem Inter,Arial,sans-serif;
  color:var(--text);
}

.search-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.search-field{
  display:grid;
  gap:8px;
}

.field-span-all{
  grid-column:1 / -1;
}

.field-icon{
  width:22px;
  height:22px;
  color:var(--brand);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.field-icon.muted{
  color:var(--muted-soft);
}

.field-icon svg,
.btn-icon svg,
.overlay-icon svg{
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.picker-trigger{
  width:100%;
  padding:0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  text-align:left;
}

.picker-copy{
  display:grid;
  gap:4px;
}

.picker-copy strong{
  font-size:1.08rem;
  font-weight:700;
  color:var(--text);
}

.picker-copy small{
  color:var(--muted);
  font-size:13px;
}

.trip-switch,
.ticket-switch{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.trip-btn,
.ticket-tab{
  min-height:54px;
  border-radius:18px;
  background:#fff;
  color:var(--text);
  border:1px solid var(--line);
}

.trip-btn.active,
.ticket-tab.active{
  background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  color:#fff;
  border-color:transparent;
  box-shadow:0 14px 30px rgba(194,72,72,.18);
}

.search-btn{
  min-height:62px;
  border-radius:20px;
  background:linear-gradient(135deg,var(--brand),#ef4860);
  color:#fff;
  box-shadow:0 18px 34px rgba(194,72,72,.16);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-size:1.05rem;
}

.btn-icon{
  width:20px;
  height:20px;
  display:inline-flex;
}

.helper-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  color:var(--muted);
  font-size:12px;
}

.helper-row span{
  position:relative;
  padding-left:16px;
}

.helper-row span::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:7px;
  height:7px;
  margin-top:-3px;
  border-radius:50%;
  background:var(--brand);
}

.page-message{
  min-height:20px;
  font-size:13px;
  font-weight:800;
}

.page-message.ok{
  color:var(--mint);
}

.page-message.err{
  color:var(--brand-dark);
}

.results-panel,
.tickets-panel,
.access-panel{
  padding:24px;
  display:grid;
  gap:18px;
}

.results-summary{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.summary-route{
  font-size:clamp(1.5rem,3vw,2rem);
  font-weight:900;
  line-height:1.05;
  letter-spacing:-.04em;
}

.date-chip-rail{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}

.date-chip{
  min-height:88px;
  padding:12px 10px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
  text-align:center;
  display:grid;
  gap:6px;
}

.date-chip strong{
  font-size:1rem;
  font-weight:900;
}

.date-chip span{
  font-size:13px;
  color:var(--muted);
}

.date-chip.active{
  border-color:var(--brand);
  box-shadow:0 12px 24px rgba(194,72,72,.12);
}

.date-chip.active strong{
  color:var(--brand);
}

.results-layout{
  display:grid;
  grid-template-columns:290px minmax(0,1fr);
  gap:18px;
  align-items:start;
}

.operator-panel{
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:#fff;
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}

.operator-head{
  padding:22px 20px 8px;
}

.operator-list{
  display:grid;
  gap:12px;
  padding:0 16px 18px;
}

.operator-card{
  padding:16px;
  border-radius:20px;
  border:1px solid var(--line);
  background:#fff;
  text-align:left;
  display:grid;
  gap:6px;
}

.operator-card strong{
  font-size:1.02rem;
}

.operator-card span{
  color:var(--muted);
  font-size:13px;
}

.operator-card em{
  font-style:normal;
  color:var(--brand);
  font-weight:800;
}

.operator-card.active{
  border-color:var(--brand);
  background:var(--brand-soft);
}

.results-content{
  display:grid;
  gap:18px;
}

.recommendation-board{
  display:grid;
  gap:14px;
  padding:18px;
  border-radius:var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,243,244,.95), rgba(255,249,249,.92));
  border:1px solid rgba(194,72,72,.14);
}

.recommendation-card{
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  gap:16px;
  align-items:center;
  padding:18px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
}

.recommendation-icon{
  width:48px;
  height:48px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:20px;
  font-weight:900;
  color:#fff;
}

.recommendation-icon.green{background:linear-gradient(135deg,#14b982,#099268)}
.recommendation-icon.gold{background:linear-gradient(135deg,#ffb020,#f08c00)}

.recommendation-title{
  font-size:1.05rem;
  font-weight:900;
}

.recommendation-copy{
  color:var(--muted);
  font-size:14px;
}

.recommendation-meta{
  text-align:right;
  color:var(--muted);
  font-size:13px;
}

.recommendation-price{
  font-size:2rem;
  font-weight:900;
  letter-spacing:-.04em;
}

.results-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.results-count{
  font-size:2rem;
  font-weight:900;
  letter-spacing:-.04em;
}

.toolbar-select{
  min-height:54px;
  padding:0 14px;
  display:flex;
  align-items:center;
  gap:10px;
}

.toolbar-select select{
  border:none;
  background:transparent;
  outline:none;
  font:700 15px Inter,Arial,sans-serif;
  color:var(--text);
}

.route-list,
.ticket-list{
  display:grid;
  gap:16px;
}

.route-card,
.ticket-card,
.selected-ticket{
  border-radius:28px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
}

.route-card{
  padding:18px;
  display:grid;
  gap:16px;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.route-card.active{
  border-color:rgba(194,72,72,.34);
  box-shadow:0 22px 38px rgba(194,72,72,.12);
  background:linear-gradient(180deg,#fff,#fff5f6);
}

.route-card-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  align-items:flex-start;
}

.route-company{
  font-size:1.5rem;
  font-weight:900;
  line-height:1.05;
}

.route-subcopy{
  font-size:14px;
}

.route-side{
  display:grid;
  gap:4px;
  justify-items:end;
  text-align:right;
}

.route-side strong{
  font-size:1.9rem;
  font-weight:900;
  letter-spacing:-.05em;
  color:var(--brand);
}

.route-side span{
  color:var(--muted);
  font-size:13px;
}

.route-time-strip{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:16px;
  align-items:center;
}

.time-block{
  display:grid;
  gap:4px;
}

.time-block strong{
  font-size:1.95rem;
  font-weight:900;
  letter-spacing:-.04em;
}

.time-block span{
  font-size:15px;
  font-weight:700;
}

.time-block small{
  color:var(--muted);
  font-size:13px;
}

.journey-line{
  position:relative;
  height:2px;
  background:#d6dde8;
}

.journey-line::before,
.journey-line::after{
  content:"";
  position:absolute;
  top:50%;
  width:10px;
  height:10px;
  margin-top:-5px;
  border-radius:50%;
  background:#9aa7b7;
}

.journey-line::before{left:0}
.journey-line::after{right:0}

.journey-pill{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

.route-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.meta-chip,
.ticket-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}

.meta-chip.blue{background:var(--sky-soft);color:#0a7fb0}
.meta-chip.green{background:var(--mint-soft);color:var(--mint)}
.meta-chip.red{background:var(--brand-soft);color:var(--brand)}
.meta-chip.neutral{background:#f3f6fb;color:var(--muted)}

.route-actions,
.selected-actions,
.ticket-footer{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}

.route-actions .primary-btn,
.route-actions .secondary-btn{
  min-height:42px;
  padding:0 16px;
  border-radius:16px;
  font-size:13px;
}

.primary-btn,
.secondary-btn,
.secondary-link{
  min-height:50px;
  padding:0 18px;
  border-radius:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.primary-btn{
  background:linear-gradient(135deg,var(--brand),#ef4860);
  color:#fff;
  box-shadow:0 16px 32px rgba(194,72,72,.18);
}

.secondary-btn,
.secondary-link{
  background:#fff;
  color:var(--text);
  border:1px solid var(--line);
}

.selected-ticket{
  padding:22px;
  display:grid;
  gap:18px;
  background:linear-gradient(180deg,#fff,#fff9fa);
  border-color:rgba(194,72,72,.22);
}

.selected-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  flex-wrap:wrap;
}

.selected-head p{
  margin:6px 0 0;
  color:var(--muted);
}

.ticket-chip{
  background:var(--brand-soft);
  color:var(--brand);
}

.selected-journey-strip{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:16px;
  align-items:center;
  padding:18px;
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(237,215,215,.98);
}

.selected-journey-point{
  display:grid;
  gap:4px;
}

.selected-journey-point.align-right{
  text-align:right;
}

.selected-journey-point span{
  font-size:12px;
  font-weight:800;
  color:var(--muted);
  letter-spacing:.03em;
}

.selected-journey-point strong{
  font-size:1.85rem;
  font-weight:900;
  letter-spacing:-.05em;
}

.selected-journey-point small{
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.selected-journey-line{
  position:relative;
  height:2px;
  background:#d6dde8;
}

.selected-journey-line::before,
.selected-journey-line::after{
  content:"";
  position:absolute;
  top:50%;
  width:10px;
  height:10px;
  margin-top:-5px;
  border-radius:50%;
  background:#9aa7b7;
}

.selected-journey-line::before{left:0}
.selected-journey-line::after{right:0}

.selected-journey-pill{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(237,215,215,.98);
  background:#fff7f8;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--brand);
  font-size:12px;
  font-weight:800;
}

.selected-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.selected-stat{
  padding:16px;
  border-radius:22px;
  border:1px solid rgba(237,215,215,.98);
  background:#fff;
  display:grid;
  gap:8px;
}

.selected-stat strong{
  font-size:1.45rem;
  font-weight:900;
}

.notes-field{
  display:grid;
  gap:8px;
}

.notes-field textarea{
  min-height:108px;
  width:100%;
  border-radius:20px;
  border:1px solid var(--line);
  background:#fff;
  padding:16px;
  font:500 15px Inter,Arial,sans-serif;
  color:var(--text);
  outline:none;
  resize:vertical;
}

.selected-ticket.preview-mode .notes-field{
  display:none;
}

.selected-ticket.preview-mode .selected-actions{
  display:none;
}

.tickets-panel .panel-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.tickets-panel .panel-head h2,
.access-panel .panel-head h2{
  margin:8px 0 6px;
  font-size:clamp(1.45rem,3vw,2rem);
  line-height:1.05;
  letter-spacing:-.04em;
}

.ticket-card{
  padding:18px;
  display:grid;
  gap:14px;
}

.ticket-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.ticket-title{
  font-size:1.25rem;
  font-weight:900;
}

.ticket-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.empty-state{
  padding:30px 18px;
  border:1px dashed var(--line-strong);
  border-radius:24px;
  text-align:center;
  background:#fff;
}

.empty-state h3{
  margin:0 0 8px;
  font-size:1.3rem;
  font-weight:900;
}

.access-panel{
  justify-items:start;
}

.modal{
  position:fixed;
  inset:0;
  z-index:60;
  display:grid;
  place-items:center;
  padding:18px;
}

.modal.hidden{
  display:none !important;
}

.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.42);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.modal-card{
  position:relative;
  z-index:1;
  width:min(860px,100%);
  max-height:min(88vh,860px);
  overflow:auto;
  border-radius:32px;
  background:#fff;
  border:1px solid rgba(255,255,255,.8);
  box-shadow:0 32px 80px rgba(15,23,42,.26);
  padding:26px;
}

.date-modal-card{
  display:grid;
  gap:18px;
}

.passenger-modal-card{
  width:min(460px,100%);
  display:grid;
  gap:18px;
}

.modal-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}

.modal-close{
  min-height:42px;
  padding:0 14px;
  border-radius:14px;
  background:#f5f6fa;
  color:var(--text);
  border:1px solid var(--line);
}

.calendar-nav{
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.nav-btn{
  min-height:44px;
  min-width:88px;
  border-radius:16px;
  background:#fff3f4;
  color:var(--brand);
  border:1px solid var(--brand-soft-strong);
}

.calendar-months{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.calendar-month{
  border:1px solid var(--line);
  border-radius:24px;
  padding:18px;
  background:#fff;
}

.month-head{
  display:flex;
  justify-content:center;
  margin-bottom:14px;
  font-size:1.65rem;
  font-weight:900;
  letter-spacing:-.03em;
}

.weekday-row,
.day-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px;
}

.weekday-row span{
  text-align:center;
  font-size:13px;
  font-weight:800;
  color:var(--muted);
}

.calendar-day{
  aspect-ratio:1;
  border-radius:16px;
  background:#fff;
  border:1px solid transparent;
  color:var(--text);
  font:800 15px Inter,Arial,sans-serif;
}

.calendar-day.empty{
  visibility:hidden;
}

.calendar-day:hover{
  background:#fff3f4;
}

.calendar-day.active{
  background:linear-gradient(135deg,var(--brand),#ef4860);
  color:#fff;
  box-shadow:0 12px 24px rgba(194,72,72,.18);
}

.calendar-day.muted{
  color:#c4ccd7;
}

.quick-select{
  display:grid;
  gap:10px;
  padding-top:6px;
  border-top:1px solid var(--line);
}

.quick-chip-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.quick-chip{
  min-height:44px;
  padding:0 16px;
  border-radius:14px;
  background:#f3f4f8;
  color:var(--text);
  border:1px solid transparent;
}

.passenger-list{
  display:grid;
  gap:14px;
}

.passenger-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}

.passenger-row strong{
  display:block;
  font-size:1.05rem;
}

.passenger-row span{
  color:var(--muted);
  font-size:14px;
}

.counter{
  display:flex;
  align-items:center;
  gap:16px;
}

.counter button{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font:800 20px Inter,Arial,sans-serif;
  color:var(--text);
}

.counter span{
  min-width:18px;
  text-align:center;
  font-size:18px;
  font-weight:900;
  color:var(--text);
}

.wide-btn{
  width:100%;
}

.search-overlay{
  position:fixed;
  inset:0;
  z-index:70;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(15,23,42,.45);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.search-overlay.hidden{
  display:none !important;
}

.search-overlay-card{
  width:min(420px,100%);
  border-radius:30px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.9));
  border:1px solid rgba(255,255,255,.85);
  box-shadow:0 30px 70px rgba(15,23,42,.24);
  padding:26px;
  display:grid;
  gap:18px;
  text-align:center;
}

.overlay-icon{
  width:72px;
  height:72px;
  margin:0 auto;
  border-radius:50%;
  background:var(--brand-soft);
  color:var(--brand);
  display:grid;
  place-items:center;
  box-shadow:0 16px 32px rgba(194,72,72,.12);
}

.search-overlay-card h2{
  margin:0;
  font-size:1.9rem;
  font-weight:900;
  letter-spacing:-.04em;
}

.search-overlay-card p{
  margin:-8px 0 0;
  color:var(--muted);
}

.overlay-trip{
  display:grid;
  gap:8px;
  padding:16px;
  border-radius:22px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:800;
}

.overlay-trip span{
  color:var(--text);
}

.overlay-progress{
  height:10px;
  border-radius:999px;
  background:#e4e9f1;
  overflow:hidden;
}

.overlay-progress-bar{
  width:18%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(135deg,var(--brand),#ef4860);
  transition:width 1.2s ease;
}

.overlay-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.overlay-stat{
  padding:16px;
  border-radius:22px;
  border:1px solid var(--line);
  background:#fff;
}

.overlay-stat strong{
  display:block;
  font-size:2rem;
  font-weight:900;
  color:var(--brand);
}

.overlay-stat span{
  font-size:13px;
  color:var(--muted);
}

.hidden{
  display:none !important;
}

@media (max-width:980px){
  .results-layout{
    grid-template-columns:1fr;
  }

  .operator-list{
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  }

  .recommendation-card{
    grid-template-columns:auto 1fr;
  }

  .recommendation-meta,
  .recommendation-price{
    text-align:left;
  }
}

@media (max-width:760px){
  .transport-page{
    padding:14px 10px 24px;
  }

  .hero-panel,
  .results-panel,
  .tickets-panel,
  .access-panel,
  .search-panel,
  .modal-card{
    border-radius:24px;
  }

  .hero-panel,
  .results-panel,
  .tickets-panel,
  .access-panel{
    padding:16px;
  }

  .search-panel{
    padding:18px;
  }

  .search-grid,
  .selected-grid,
  .calendar-months,
  .date-chip-rail,
  .overlay-stats{
    grid-template-columns:1fr;
  }

  .transport-topbar,
  .results-summary,
  .results-toolbar,
  .route-card-head,
  .selected-head,
  .ticket-head,
  .modal-head,
  .route-actions,
  .selected-actions,
  .ticket-footer{
    flex-direction:column;
    align-items:stretch;
  }

  .top-actions,
  .trip-switch,
  .ticket-switch{
    width:100%;
  }

  .recommendation-card{
    grid-template-columns:1fr;
  }

  .selected-journey-strip{
    grid-template-columns:1fr;
    gap:12px;
  }

  .selected-journey-line{
    height:50px;
    width:2px;
    margin:0 auto;
  }

  .selected-journey-line::before,
  .selected-journey-line::after{
    left:50%;
    margin-left:-5px;
  }

  .selected-journey-line::before{
    top:0;
    margin-top:0;
  }

  .selected-journey-line::after{
    top:auto;
    bottom:0;
    margin-top:0;
  }

  .route-time-strip{
    grid-template-columns:1fr;
    gap:12px;
  }

  .journey-line{
    height:50px;
    width:2px;
    margin:0 auto;
  }

  .journey-line::before,
  .journey-line::after{
    left:50%;
    margin-left:-5px;
  }

  .journey-line::before{
    top:0;
    margin-top:0;
  }

  .journey-line::after{
    top:auto;
    bottom:0;
    margin-top:0;
  }

  .journey-pill{
    left:50%;
    top:50%;
  }

  .time-block,
  .route-side,
  .selected-journey-point,
  .selected-journey-point.align-right{
    text-align:left;
    justify-items:start;
  }

  .operator-list{
    grid-template-columns:1fr;
  }
}

/* 2026-04-10 transport refresh */
body{
  background:
    linear-gradient(rgba(255,249,250,.84), rgba(255,249,250,.96)),
    url('https://images.unsplash.com/photo-1519003722824-194d4455a60c?auto=format&fit=crop&w=1600&q=80') center top/cover no-repeat fixed,
    #f3f3f5;
}

body::before,
body::after{
  display:none;
}

.transport-page{
  width:min(1320px,100%);
  padding:18px 14px 42px;
}

.hero-panel{
  background:transparent;
  border:none;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  padding:0;
}

.transport-topbar{
  position:relative;
  justify-content:center;
  text-align:center;
  padding:28px 16px 8px;
}

.top-copy{
  max-width:760px;
  margin:0 auto;
}

.top-actions{
  position:absolute;
  right:0;
  top:0;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  color:var(--brand);
}

.transport-topbar h1{
  margin:14px 0 10px;
  font-size:clamp(2.4rem,5vw,3.8rem);
  line-height:1;
  letter-spacing:-.06em;
}

.transport-topbar p{
  max-width:700px;
  margin:0 auto;
  font-size:15px;
}

.ghost-btn{
  min-height:44px;
  border-radius:14px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(230,232,238,.92);
}

.search-panel{
  max-width:840px;
  margin:0 auto;
  padding:28px;
  background:rgba(255,255,255,.94);
  border:1px solid #dff1ec;
  border-radius:28px;
  box-shadow:0 14px 34px rgba(0,0,0,.10);
}

.booking-head{
  display:none;
}

.learner-strip{
  margin-bottom:4px;
}

.trip-switch{
  width:min(280px,100%);
  gap:0;
  padding:4px;
  background:#eef3f3;
  border-radius:16px;
}

.trip-btn{
  min-height:46px;
  border-radius:12px;
  background:transparent;
  color:#697283;
  border:none;
  box-shadow:none;
}

.trip-btn.active{
  background:#fff;
  color:var(--brand);
  box-shadow:0 1px 2px rgba(0,0,0,.08);
}

.select-shell,
.field-shell,
.picker-trigger,
.toolbar-select{
  min-height:80px;
  background:#f4f4f6;
  border:1px solid #ebeef2;
  box-shadow:none;
}

.field-label-inline,
.field-kicker,
.toolbar-label{
  font-size:13px;
  color:#616977;
}

.picker-copy strong,
.select-shell select,
.field-shell select{
  font-size:18px;
  color:#434b59;
}

.picker-copy small{
  font-size:13px;
}

.search-btn{
  min-height:58px;
  margin-top:8px;
  border-radius:16px;
  background:linear-gradient(135deg,var(--brand),#ef1f43);
}

.helper-row{
  justify-content:center;
  padding-top:4px;
}

.results-panel{
  padding:0 0 28px;
  background:rgba(255,255,255,.96);
  overflow:hidden;
}

.results-summary{
  padding:24px 28px 18px;
  background:#fff;
  border-bottom:1px solid #eceef2;
}

.date-chip-rail{
  padding:18px 28px 0;
}

.date-chip{
  min-height:84px;
  border-radius:8px;
}

.results-layout{
  grid-template-columns:320px minmax(0,1fr);
  gap:26px;
  padding:12px 28px 0;
}

.operator-panel,
.route-card,
.ticket-card,
.selected-ticket{
  box-shadow:0 4px 16px rgba(0,0,0,.05);
}

.operator-card,
.route-card,
.ticket-card{
  border-radius:18px;
}

.recommendation-board{
  border-radius:22px;
  background:#fff8fa;
  border:1px solid #ffe2e6;
}

.recommendation-card{
  border-radius:18px;
}

.route-company{
  font-size:1.3rem;
}

.route-side strong,
.recommendation-price{
  color:var(--brand);
}

.selected-ticket.preview-mode .notes-field,
.selected-ticket.preview-mode .selected-actions{
  display:none;
}

.ticket-chip{
  background:#eef3f3;
  color:#55606e;
}

.search-overlay-card{
  width:min(500px,100%);
}

.search-overlay-card h2{
  color:var(--text);
}

@media (max-width:980px){
  .top-actions{
    position:static;
    justify-content:center;
    width:100%;
  }

  .results-layout{
    grid-template-columns:1fr;
  }
}

@media (max-width:760px){
  .transport-page{
    padding:12px 10px 28px;
  }

  .transport-topbar{
    padding:18px 10px 6px;
  }

  .transport-topbar h1{
    font-size:2.25rem;
  }

  .search-panel,
  .results-panel,
  .tickets-panel,
  .access-panel{
    border-radius:22px;
  }

  .search-panel{
    padding:18px;
  }

  .date-chip-rail,
  .results-layout,
  .results-summary{
    padding-left:16px;
    padding-right:16px;
  }
}

.transport-cart-panel{
  margin-top:18px;
  padding:18px;
  border-radius:26px;
  border:1px solid rgba(244,205,214,.96);
  background:
    radial-gradient(circle at top left, rgba(230,31,61,.08), transparent 30%),
    linear-gradient(180deg,#fffafb 0%,#fff3f6 100%);
  box-shadow:0 18px 36px rgba(230,31,61,.12);
}

.transport-detail-layout{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(280px,.82fr);
  gap:16px;
  align-items:start;
}

.transport-detail-card,
.transport-side-card{
  background:#fff;
  border:1px solid rgba(245,214,220,.98);
  border-radius:20px;
  box-shadow:0 12px 26px rgba(230,31,61,.06);
  overflow:hidden;
}

.transport-detail-head,
.transport-side-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:15px 16px;
  border-bottom:1px solid rgba(245,214,220,.98);
  background:linear-gradient(90deg,#fff8f9 0%,#fff1f4 100%);
}

.transport-detail-head h4,
.transport-side-head{
  margin:0;
  font-size:1rem;
  font-weight:800;
}

.transport-detail-head p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:.9rem;
}

.transport-head-count{
  color:var(--muted);
  font-size:.85rem;
  font-weight:700;
  white-space:nowrap;
}

.transport-head-count strong{
  color:var(--text);
  font-size:1rem;
}

.transport-detail-body,
.transport-side-card{
  padding:0;
}

.transport-passenger-list{
  display:grid;
  gap:12px;
  padding:14px;
}

.transport-passenger-card{
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(245,213,219,.98);
  background:linear-gradient(180deg,#fffdfd 0%,#fff7f9 100%);
  box-shadow:0 10px 22px rgba(230,31,61,.05);
  display:grid;
  gap:16px;
}

.transport-passenger-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.transport-passenger-head-main{
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.transport-user-badge{
  width:30px;
  height:30px;
  border-radius:50%;
  border:1px solid rgba(255,214,221,.98);
  background:#fff1f4;
  color:var(--brand);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.9rem;
  flex-shrink:0;
}

.transport-passenger-copy{
  display:grid;
  gap:4px;
}

.transport-passenger-head strong{
  display:block;
  font-size:.98rem;
}

.transport-passenger-head span{
  color:var(--muted);
  font-size:.85rem;
}

.passenger-type-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,212,219,.98);
  background:#fff2f5;
  color:var(--brand);
  font-size:.72rem;
  font-weight:800;
  white-space:nowrap;
}

.transport-passenger-grid{
  display:grid;
  gap:12px;
}

.transport-passenger-grid.three{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.transport-passenger-grid.two{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.transport-student-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.passenger-field{
  display:grid;
  gap:6px;
}

.passenger-field-full{
  grid-column:1 / -1;
}

.passenger-field span{
  font-size:.8rem;
  font-weight:700;
  color:var(--text);
}

.required-label::after{
  content:" *";
  color:var(--brand);
}

.passenger-field input,
.passenger-field select{
  width:100%;
  min-height:46px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid rgba(241,217,222,.98);
  background:#fff6f7;
  color:var(--text);
  font:inherit;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.passenger-field input:focus,
.passenger-field select:focus{
  border-color:rgba(230,31,61,.42);
  box-shadow:0 0 0 3px rgba(230,31,61,.10);
  background:#fffafb;
}

.transport-phone-shell{
  display:flex;
  align-items:center;
  min-height:46px;
  border-radius:12px;
  border:1px solid rgba(241,217,222,.98);
  background:#fff6f7;
  overflow:hidden;
}

.transport-phone-prefix{
  padding:0 12px;
  border-right:1px solid rgba(232,207,213,.96);
  color:#3a2f34;
  font-size:.82rem;
  font-weight:800;
  white-space:nowrap;
}

.transport-phone-shell input{
  min-height:44px;
  border:0;
  background:transparent;
  box-shadow:none;
}

.passenger-hint,
.passenger-switch-copy{
  font-size:.74rem;
  line-height:1.45;
  color:var(--muted);
}

.passenger-toggle-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.passenger-choice{
  min-height:36px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid rgba(240,207,214,.98);
  background:#fff;
  color:#7d6c72;
  font:700 .84rem Inter,Arial,sans-serif;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.passenger-choice.active{
  background:linear-gradient(135deg,var(--brand),#c91530);
  color:#fff;
  border-color:rgba(230,31,61,.98);
  box-shadow:0 12px 24px rgba(230,31,61,.18);
}

.passenger-choice:hover{
  transform:translateY(-1px);
}

.passenger-choice:focus-visible,
.passenger-switch input:focus-visible + .passenger-switch-slider{
  outline:none;
  box-shadow:0 0 0 3px rgba(201,13,18,.14);
}

.passenger-field-switch{
  align-content:start;
}

.passenger-switch-row{
  min-height:44px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(241,217,222,.98);
  background:#fff6f7;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.passenger-switch{
  position:relative;
  width:50px;
  height:28px;
  flex-shrink:0;
}

.passenger-switch input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
  z-index:2;
}

.passenger-switch-slider{
  position:absolute;
  inset:0;
  border-radius:999px;
  background:#e3d4d8;
  transition:background .18s ease;
}

.passenger-switch-slider::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.12);
  transition:transform .18s ease;
}

.passenger-switch input:checked + .passenger-switch-slider{
  background:linear-gradient(135deg,var(--brand),#c91530);
}

.passenger-switch input:checked + .passenger-switch-slider::after{
  transform:translateX(22px);
}

.transport-inline-actions{
  padding:0 14px 14px;
}

.transport-detail-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px;
  border-top:1px solid rgba(245,214,220,.98);
}

.transport-detail-footer .primary-btn,
.transport-detail-footer .secondary-btn,
.transport-inline-actions .secondary-btn{
  min-height:42px;
}

.transport-detail-footer .primary-btn{
  min-width:210px;
}

.transport-cart-message{
  min-height:22px;
  padding:0 14px;
  font-size:.9rem;
  color:var(--muted);
}

.transport-cart-message.ok{
  color:#0b8c58;
}

.transport-cart-message.err{
  color:#c90000;
}

.transport-detail-side{
  display:grid;
  gap:14px;
}

.transport-summary-box,
.transport-tips{
  padding:14px;
}

.transport-summary-box{
  background:linear-gradient(180deg,#fffdfd 0%,#fff7f8 100%);
}

.transport-operator-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.transport-operator-row strong{
  display:block;
  font-size:.98rem;
}

.transport-operator-row span{
  color:var(--muted);
  font-size:.8rem;
}

.transport-route-grid{
  display:grid;
  grid-template-columns:1fr 76px 1fr;
  gap:10px;
  align-items:center;
  margin-bottom:12px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(242,215,220,.98);
  background:linear-gradient(180deg,#fffefe 0%,#fff7f8 100%);
}

.transport-route-grid > div{
  display:grid;
  gap:4px;
  text-align:center;
}

.transport-route-grid span{
  color:#8a91a0;
  font-size:.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.transport-route-grid strong{
  font-size:1rem;
  line-height:1.2;
}

.transport-route-grid small{
  color:var(--muted);
  font-size:.78rem;
  line-height:1.45;
}

.transport-route-arrow{
  color:var(--brand);
  align-items:center !important;
}

.transport-route-arrow span{
  color:var(--brand);
  font-size:1.15rem;
}

.transport-mini-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(242,215,220,.98);
  background:#fff;
  margin-bottom:10px;
}

.transport-mini-row strong{
  display:block;
  font-size:.92rem;
}

.transport-mini-row small{
  color:var(--muted);
  font-size:.8rem;
}

.transport-price-row{
  border-color:rgba(244,197,207,.98);
  background:linear-gradient(180deg,#fffafa 0%,#fff1f3 100%);
  margin-bottom:0;
}

.transport-price{
  color:var(--brand);
  font-size:1.3rem;
  font-weight:900;
}

.transport-tips{
  display:grid;
  gap:12px;
  background:linear-gradient(180deg,#fffdfd 0%,#fff8f9 100%);
}

.transport-tip{
  display:grid;
  gap:4px;
}

.transport-tip strong{
  font-size:.9rem;
}

.transport-tip span{
  color:var(--muted);
  font-size:.82rem;
  line-height:1.5;
}

@media (max-width:980px){
  .transport-detail-layout{
    grid-template-columns:1fr;
  }
}

@media (max-width:760px){
  .transport-cart-panel{
    padding:12px;
  }

  .transport-detail-head,
  .transport-detail-footer,
  .transport-operator-row,
  .transport-mini-row{
    flex-direction:column;
    align-items:stretch;
  }

  .transport-passenger-grid,
  .transport-student-grid,
  .transport-route-grid{
    grid-template-columns:1fr;
  }

  .transport-detail-footer .primary-btn,
  .transport-detail-footer .secondary-btn,
  .transport-inline-actions .secondary-btn{
    width:100%;
  }

  .transport-page{
    padding-bottom:104px;
  }

  .bottom-nav{
    width:calc(100% - 20px);
    bottom:10px;
  }

  .bottom-nav-item{
    min-height:48px;
    font-size:9px;
  }
}
