/* =========================================================
   Nepal Trip Holiday – Cab service (/cabs)
   Uses the design tokens from main.css (--navy, --red, --yellow …)
   Night-drive hero with speedometer showcase & quick trip planner · road band ·
   showroom fleet cards with taxi number plates · boarding-pass route tickets ·
   "how it works" road that fills while scrolling · dashboard "why us" · CTA ·
   booking popup (ticket side panel + live fare estimate + WhatsApp hand-off)
   ========================================================= */
.page-cabs { --line: #e6ebf3; --stage: #f3f6fb; --asphalt: #1b2230; --ac: var(--red); --ac2: #ff6b4a; background: #fff; }

/* accent themes (Admin → Cabs → Accent colour) */
.cb-accent-red    { --ac: #dc1420; --ac2: #ff6b4a; }
.cb-accent-blue   { --ac: #1f6fe0; --ac2: #4fb0ff; }
.cb-accent-green  { --ac: #14915a; --ac2: #56cc8a; }
.cb-accent-orange { --ac: #e2680f; --ac2: #ffbf3f; }
.cb-accent-purple { --ac: #7b3fe4; --ac2: #c08bff; }
.cb-accent-teal   { --ac: #0b8f8f; --ac2: #4fd1c5; }
.cb-accent-maroon { --ac: #9b1c31; --ac2: #e0566d; }
.cb-accent-navy   { --ac: #0b2a5c; --ac2: #3a6fc4; }

.cb-h2 { font-size: 42px; font-weight: 900; line-height: 1.15; color: var(--navy); }
.cb-h2 span { font-family: var(--script); font-weight: 400; color: var(--red); }
.cb-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.cb-head p { color: var(--muted); font-size: 17px; margin-top: 10px; }
.cb-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
@keyframes cbPulse { 70% { box-shadow: 0 0 0 8px rgba(31, 191, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 191, 107, 0); } }
@keyframes cbFloat { 50% { translate: 0 -10px; } }

.cb-btn-outline {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 50px; font-weight: 700; font-size: 15px;
  color: var(--navy); border: 2px solid var(--navy); background: transparent; transition: all .3s var(--ease); cursor: pointer;
}
.cb-btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.cb-btn-wa {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 50px; font-weight: 700; font-size: 15px;
  color: #fff; background: #1fae54; box-shadow: 0 10px 22px rgba(31, 174, 84, .3); transition: transform .3s var(--ease), background .3s;
}
.cb-btn-wa:hover { background: #178f44; transform: translateY(-2px); }
.cb-btn-wa i { font-size: 19px; }
.cb-btn-ghost {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 50px; font-weight: 700; font-size: 15px;
  color: #fff; border: 2px solid rgba(255, 255, 255, .5); transition: all .3s var(--ease);
}
.cb-btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* =========================================================
   HERO – night drive
   ========================================================= */
.cb-hero {
  position: relative; overflow: hidden; color: #fff; padding: 50px 0 0;
  background:
    radial-gradient(900px 520px at 78% 28%, rgba(52, 104, 214, .55) 0%, transparent 62%),
    radial-gradient(600px 400px at 10% 90%, rgba(220, 20, 32, .18) 0%, transparent 70%),
    linear-gradient(180deg, #05142f 0%, #0b2a5c 72%, #0e3169 100%);
}
.cb-stars {
  position: absolute; inset: 0 0 40% 0; pointer-events: none; opacity: .75;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 27% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 71% 8%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 86% 36%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 14%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 5% 55%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 64%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 64% 58%, #fff 50%, transparent 51%);
  animation: cbTwinkle 5s ease-in-out infinite alternate;
}
@keyframes cbTwinkle { to { opacity: .35; } }
.cb-peaks { position: absolute; left: 0; right: 0; bottom: 62px; width: 100%; height: 230px; pointer-events: none; }
.cb-peaks-back { fill: rgba(255, 255, 255, .06); }
.cb-peaks-snow { fill: rgba(255, 255, 255, .22); }
.cb-peaks-front { fill: #0a2553; }

.cb-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center; padding-bottom: 120px; }
.cb-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .7); margin-bottom: 20px; }
.cb-crumb a:hover { color: var(--yellow); }
.cb-crumb i { font-size: 11px; }
.cb-kicker {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 40px; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
}
.cb-kicker i { color: var(--yellow); }
.cb-title { font-size: 62px; font-weight: 900; line-height: 1.05; margin: 18px 0 14px; }
.cb-script { display: block; font-family: var(--script); font-weight: 400; font-size: 72px; color: var(--yellow); transform: rotate(-3deg); transform-origin: left; margin-top: 4px; }
.cb-lead { font-size: 18px; line-height: 1.65; color: #c9d6ee; max-width: 560px; }

.cb-trust { margin-top: 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; max-width: 680px; }
.cb-trust li { display: flex; align-items: center; gap: 10px; }
.cb-trust-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 15px; }
.cb-trust b { display: block; font-size: 13.5px; line-height: 1.25; }
.cb-trust small { display: block; font-size: 12px; color: #9fb2d6; line-height: 1.3; }

/* speedometer showcase */
.cb-hero-art { position: relative; height: 520px; display: grid; place-items: center; }
.cb-gauge { position: relative; width: min(440px, 100%); aspect-ratio: 1; }
.cb-gauge-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cb-gauge-track, .cb-gauge-fill { fill: none; stroke-width: 10; stroke-linecap: round; transform: rotate(135deg); transform-origin: 200px 200px; }
.cb-gauge-track { stroke: rgba(255, 255, 255, .1); stroke-dasharray: 75 100; }
.cb-gauge-fill { stroke: var(--yellow); stroke-dasharray: 0 100; filter: drop-shadow(0 0 8px rgba(255, 210, 28, .6)); animation: cbFill 2.2s .3s var(--ease) forwards; }
@keyframes cbFill { to { stroke-dasharray: 56 100; } }
.cb-tick { stroke: rgba(255, 255, 255, .28); stroke-width: 2; stroke-linecap: round; }
.cb-tick-major { stroke: rgba(255, 255, 255, .7); stroke-width: 3; }
.cb-gauge-disc {
  position: absolute; inset: 15%; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #ffffff 0%, #f1f5fc 60%, #dfe7f5 100%);
  box-shadow: 0 34px 70px rgba(0, 0, 0, .5), inset 0 -18px 40px rgba(11, 42, 92, .12), 0 0 0 10px rgba(255, 255, 255, .06);
}
.cb-hero-car { position: relative; z-index: 1; width: 92%; mix-blend-mode: multiply; filter: brightness(1.06) contrast(1.04); animation: cbDriveIn 1.4s var(--ease) both, cbIdle 3.2s 1.4s ease-in-out infinite; }
@keyframes cbDriveIn { from { transform: translateX(-60%) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cbIdle { 50% { transform: translateY(-3px); } }
.cb-hero-car-icon { font-size: 110px; color: var(--navy); }
.cb-gauge-floor { position: absolute; left: 18%; right: 18%; bottom: 20%; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 42, 92, .35), transparent); }
.cb-needle { position: absolute; inset: 0; transform: rotate(-135deg); animation: cbNeedle 2.2s .3s var(--ease) forwards; pointer-events: none; }
.cb-needle::before {
  /* sits on the ring (r = 182 of 200 → 4.5% in from the edge) */
  content: ""; position: absolute; left: 50%; top: 4.5%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: var(--red); border: 4px solid #fff; box-shadow: 0 0 0 6px rgba(220, 20, 32, .3), 0 0 20px rgba(220, 20, 32, .8);
}
@keyframes cbNeedle { to { transform: rotate(66.6deg); } }

.cb-float {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .96); color: var(--navy); font-weight: 700; font-size: 13.5px; box-shadow: 0 16px 34px rgba(0, 0, 0, .3); white-space: nowrap;
}
.cb-float > i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 15px; }
.cb-float span b { display: block; font-size: 14.5px; }
.cb-float-a { left: -8px; bottom: 70px; animation: cbFloat 6s ease-in-out infinite; }
.cb-float-a span { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.cb-float-b { right: 0; top: 40px; animation: cbFloat 5s 1s ease-in-out infinite; }
.cb-float-c { right: 10px; bottom: 30px; font-size: 12.5px; animation: cbFloat 7s .5s ease-in-out infinite; }
.cb-live { width: 9px; height: 9px; border-radius: 50%; background: #1fbf6b; box-shadow: 0 0 0 0 rgba(31, 191, 107, .6); animation: cbPulse 2s infinite; }

/* road band */
.cb-road { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: var(--asphalt); border-top: 3px solid #2c3446; z-index: 1; overflow: hidden; }
.cb-road::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: rgba(255, 255, 255, .25); }
.cb-road-line {
  position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 38px, transparent 38px 76px); animation: cbLane .9s linear infinite;
}
@keyframes cbLane { to { background-position: -76px 0; } }
.cb-road-car { position: absolute; top: 9px; left: 0; font-size: 26px; color: #fff; filter: drop-shadow(14px 0 10px rgba(255, 210, 28, .55)); animation: cbCruise 16s linear infinite; }
@keyframes cbCruise { from { transform: translateX(-60px); } to { transform: translateX(calc(100vw + 60px)); } }

/* =========================================================
   FLEET
   ========================================================= */
.cb-fleet { padding: 90px 0 80px; scroll-margin-top: 80px; }
.cb-filter { position: relative; z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; }
.cb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 40px; font-size: 14.5px; font-weight: 600;
  color: var(--navy); background: var(--bg); border: 1.5px solid transparent; transition: all .25s;
}
.cb-chip b { font-size: 12px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; background: #fff; }
.cb-chip:hover { border-color: var(--navy); }
.cb-chip.is-active { background: var(--navy); color: #fff; }
.cb-chip.is-active b { background: var(--red); color: #fff; }
/* group-size picker: pill button + styled list (a grid of tiles on phones) */
.cb-seats { position: relative; z-index: 20; }
.cb-seats-btn {
  display: inline-flex; align-items: center; gap: 10px; min-width: 215px; padding: 11px 16px; border-radius: 40px;
  border: 1.5px solid #dde4ef; background: #fff; font: 600 14.5px var(--font); color: var(--navy); cursor: pointer;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.cb-seats-btn > i:first-child { color: var(--red); }
.cb-seats-btn span { flex: 1; text-align: left; white-space: nowrap; }
.cb-seats-caret { font-size: 12px; transition: transform .3s var(--ease); }
.cb-seats-btn:hover, .cb-seats.is-open .cb-seats-btn { border-color: var(--navy); }
.cb-seats-btn:focus-visible { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 42, 92, .14); }
.cb-seats.is-open .cb-seats-caret { transform: rotate(180deg); }
/* a size is chosen → the pill turns navy, like the active type chip */
.cb-seats.has-value .cb-seats-btn { background: var(--navy); border-color: var(--navy); color: #fff; }
.cb-seats.has-value .cb-seats-btn > i:first-child { color: #ffd21c; }

.cb-seats-list {
  position: absolute; top: calc(100% + 10px); right: 0; width: 270px; max-height: min(400px, 70vh); overflow-y: auto;
  margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid #e3e9f2; border-radius: 16px;
  box-shadow: 0 22px 48px rgba(11, 42, 92, .18), 0 4px 12px rgba(11, 42, 92, .06);
  scrollbar-width: thin; scrollbar-color: #c3cddc transparent;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top right;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
}
.cb-seats.is-open .cb-seats-list { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.cb-seats-list li {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer;
  color: var(--navy); outline: 0; transition: background .18s, color .18s;
}
.cb-seats-ico {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg); color: var(--red); font-size: 15px; transition: background .18s, color .18s;
}
.cb-seats-txt { flex: 1; display: flex; align-items: baseline; gap: 6px; }
.cb-seats-txt b { font-size: 15.5px; font-weight: 800; }
.cb-seats-txt small { font-size: 13.5px; color: var(--muted); }
.cb-seats-list em {
  flex: none; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg); font: 700 12px var(--font); font-style: normal; color: var(--navy);
}
.cb-seats-list li:hover, .cb-seats-list li:focus-visible { background: #f2f5fa; }
.cb-seats-list li:focus-visible { box-shadow: inset 0 0 0 2px rgba(11, 42, 92, .25); }
.cb-seats-list li[aria-selected="true"] { background: var(--navy); color: #fff; }
.cb-seats-list li[aria-selected="true"] .cb-seats-ico { background: var(--red); color: #fff; }
.cb-seats-list li[aria-selected="true"] small { color: rgba(255, 255, 255, .7); }
.cb-seats-list li[aria-selected="true"] em { background: rgba(255, 255, 255, .16); color: #fff; }
/* no vehicle of the chosen type seats that many */
.cb-seats-list li.is-empty:not([aria-selected="true"]) { opacity: .45; }
@media (prefers-reduced-motion: reduce) {
  .cb-seats-list, .cb-seats.is-open .cb-seats-list, .cb-seats-caret { transition: none; }
}
.cb-count { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.cb-count span:first-child { font-weight: 800; color: var(--navy); }
.cb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cb-grid[hidden] { display: none; }
.cb-card.is-hidden { display: none; }

.cb-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.cb-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(11, 42, 92, .16); }
.cb-card-stage {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse 70% 55% at 50% 78%, color-mix(in srgb, var(--ac) 16%, #fff) 0%, var(--stage) 70%);
}
.cb-card-stage::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--ac) 7%, #fff)); pointer-events: none;
}
/* the photos come on white: multiply blends the white into the stage; the small lift turns off-white (#f2f2f2) backgrounds white too */
.cb-card-stage img { position: relative; z-index: 1; width: 74%; height: 70%; margin-top: 14px; object-fit: contain; mix-blend-mode: multiply; filter: brightness(1.06) contrast(1.04); transition: transform .7s var(--ease); }
.cb-card:hover .cb-card-stage img { transform: translateX(14px) scale(1.04); }
.cb-card-noimg { position: relative; z-index: 1; font-size: 80px; color: color-mix(in srgb, var(--ac) 60%, #fff); }
.cb-card-floor { position: absolute; left: 20%; right: 20%; bottom: 11%; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 42, 92, .28), transparent); }
.cb-card-lines { position: absolute; left: 6%; top: 42%; z-index: 2; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.cb-card-lines i { display: block; height: 3px; width: 46px; border-radius: 3px; background: var(--ac); opacity: 0; transform: translateX(30px); transition: all .5s var(--ease); }
.cb-card-lines i:nth-child(2) { width: 70px; transition-delay: .06s; }
.cb-card-lines i:nth-child(3) { width: 34px; transition-delay: .12s; }
.cb-card:hover .cb-card-lines i { opacity: .55; transform: translateX(-10px); }
.cb-card-cat {
  position: absolute; left: 16px; top: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 30px;
  background: #fff; font-size: 12.5px; font-weight: 700; color: var(--navy); box-shadow: var(--shadow-sm);
}
.cb-card-cat i { color: var(--ac); }
.cb-card-badge {
  position: absolute; right: 14px; top: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 8px;
  background: var(--ac); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  transform: rotate(3deg); box-shadow: 0 8px 18px color-mix(in srgb, var(--ac) 40%, transparent);
}
/* yellow commercial number plate */
.cb-plate {
  position: absolute; right: 14px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px;
  background: var(--yellow); color: #111; border: 2px solid #111; border-radius: 6px; font: 800 12.5px/1.3 'Roboto Mono', ui-monospace, Consolas, monospace;
  letter-spacing: .08em; white-space: nowrap; box-shadow: 0 6px 12px rgba(0, 0, 0, .15);
}
.cb-plate i { font-style: normal; font-size: 8.5px; letter-spacing: 0; padding: 2px 3px; border-radius: 3px; background: #1f4fb8; color: #fff; }

.cb-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.cb-card-body h3 { font-size: 22px; font-weight: 900; color: var(--navy); line-height: 1.2; }
.cb-card-model { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cb-card-tag { font-size: 14.5px; color: var(--text); margin-top: 10px; line-height: 1.55; }
.cb-specs { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px; margin: 14px 0 12px; }
.cb-specs li {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; background: var(--bg);
  font-size: 13px; font-weight: 700; color: var(--navy); white-space: nowrap;
}
.cb-specs i { color: var(--ac); font-size: 12px; }
.cb-specs small { font-weight: 500; color: var(--muted); }
.cb-feats { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 14px; }
.cb-feats li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.cb-feats i { color: #1e9c4a; font-size: 11px; }
.cb-feats-more { color: var(--ac) !important; font-weight: 700; cursor: help; }
.cb-prices { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; margin-top: auto; border-top: 1px dashed #d9e0ec; }
.cb-price { flex: 1 1 0; min-width: 90px; padding: 9px 10px; border-radius: 12px; background: var(--bg); }
.cb-price b { display: block; font-size: 17px; font-weight: 900; color: var(--navy); line-height: 1.1; }
.cb-price small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.cb-price-main { background: color-mix(in srgb, var(--ac) 9%, #fff); }
.cb-price-main b { color: var(--ac); font-size: 21px; }
.cb-card-small { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.cb-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.cb-card-nepal { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #138a43; }
.cb-book { border-radius: 40px; padding: 11px 20px; margin-left: auto; }
.cb-book:hover i { transform: translateX(4px); }
.cb-book i { transition: transform .3s var(--ease); }

.cb-empty { text-align: center; padding: 50px 20px; border: 2px dashed #dde4ef; border-radius: 24px; }
.cb-empty > i { font-size: 44px; color: var(--red); margin-bottom: 14px; }
.cb-empty h3 { font-size: 22px; color: var(--navy); }
.cb-empty p { color: var(--muted); margin: 6px 0 18px; }
.cb-fare-note { display: flex; gap: 8px; justify-content: center; align-items: baseline; margin-top: 26px; font-size: 13.5px; color: var(--muted); text-align: center; }
.cb-fare-note i { color: var(--navy); }

/* =========================================================
   ROUTES – boarding-pass tickets
   ========================================================= */
.cb-routes { padding: 90px 0; background: #f4f7fc; scroll-margin-top: 80px; }
.cb-tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cb-ticket {
  --notch: #f4f7fc;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 180px; background: #fff; border-radius: 20px;
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cb-ticket:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
/* the two half-circle notches of the perforation */
.cb-ticket::before, .cb-ticket::after {
  content: ""; position: absolute; right: 180px; width: 26px; height: 26px; margin-right: -13px; border-radius: 50%; background: var(--notch); z-index: 2;
}
.cb-ticket::before { top: -13px; }
.cb-ticket::after { bottom: -13px; }
.cb-ticket-main { padding: 18px 26px 20px; min-width: 0; }
.cb-ticket-top { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cb-ticket-top i { color: var(--red); }
.cb-ticket-flag { color: var(--red); letter-spacing: .06em; }
.cb-ticket-codes { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 10px 0 12px; }
.cb-ticket-codes b { display: block; font-size: 36px; font-weight: 900; line-height: 1; color: var(--navy); letter-spacing: .04em; }
.cb-ticket-codes small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.cb-ticket-to { text-align: right; }
.cb-ticket-to small { margin-left: auto; }
.cb-ticket-path { position: relative; height: 26px; }
.cb-ticket-path span { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed #c9d2e3; }
.cb-ticket-path span::before, .cb-ticket-path span::after { content: ""; position: absolute; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.cb-ticket-path span::before { left: -2px; }
.cb-ticket-path span::after { right: -2px; background: var(--red); }
.cb-ticket-path i { position: absolute; top: 50%; left: 8%; transform: translateY(-58%); font-size: 20px; color: var(--red); background: #fff; padding: 0 6px; transition: left 1.2s var(--ease); }
.cb-ticket:hover .cb-ticket-path i { left: calc(92% - 30px); }
.cb-ticket-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-ticket-meta li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 30px; background: var(--bg); font-size: 13px; font-weight: 700; color: var(--navy); }
.cb-ticket-meta i { color: var(--red); font-size: 12px; }
.cb-ticket-note { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.cb-ticket-stub {
  position: relative; overflow: hidden; border-radius: 0 20px 20px 0; border-left: 2px dashed #d3dbea;
  background: linear-gradient(160deg, #123a7a, var(--navy)); color: #fff;
}
.cb-ticket.is-nepal .cb-ticket-stub { background: linear-gradient(160deg, #b8121c, #7d0b12); }
.cb-ticket-stub img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; transition: transform .8s var(--ease), opacity .4s; }
.cb-ticket:hover .cb-ticket-stub img { transform: scale(1.08); opacity: .5; }
.cb-ticket-stub-body { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 18px; }
.cb-ticket-from small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.cb-ticket-from b { font-size: 24px; font-weight: 900; line-height: 1.1; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.cb-ticket-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 30px;
  background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 14.5px; transition: transform .3s var(--ease), box-shadow .3s;
}
.cb-ticket-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, .25); }

/* =========================================================
   HOW IT WORKS – the road
   ========================================================= */
.cb-steps { padding: 90px 0; background: #fff; overflow: hidden; }
.cb-journey { --p: 0; position: relative; }
.cb-journey-road {
  position: absolute; top: 32px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 14px; border-radius: 10px; background: var(--asphalt);
}
.cb-journey-road::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 6px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .6) 0 16px, transparent 16px 30px);
}
.cb-journey-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); border-radius: 10px; background: linear-gradient(90deg, var(--red), var(--yellow)); opacity: .9; }
.cb-journey-car {
  position: absolute; top: -30px; left: calc(var(--p) * 100%); transform: translateX(-50%); font-size: 30px; color: var(--red);
  filter: drop-shadow(0 6px 6px rgba(11, 42, 92, .25)); transition: left .15s linear;
}
.cb-journey-stops { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 24px; list-style: none; }
.cb-stop { text-align: center; padding: 0 6px; }
.cb-stop-pin { position: relative; width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; border: 5px solid #fff; box-shadow: var(--shadow-md); }
.cb-stop-pin em {
  position: absolute; right: -6px; top: -6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 13px; font-weight: 900; background: var(--navy); color: #fff; border: 3px solid #fff;
}
.cb-stop h3 { font-size: 19px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.cb-stop p { font-size: 14.5px; color: var(--muted); line-height: 1.6; max-width: 280px; margin: 0 auto; }

/* =========================================================
   WHY US – dashboard
   ========================================================= */
.cb-why { position: relative; padding: 90px 0; background: linear-gradient(180deg, #0b2a5c, #06193a); color: #fff; overflow: hidden; }
.cb-why::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 120px, rgba(255, 255, 255, .025) 120px 122px);
}
.cb-why .cb-h2 { color: #fff; }
.cb-why .cb-h2 span { color: var(--yellow); }
.cb-why .cb-head p { color: #b5c4e2; }
.cb-why .cb-eyebrow { color: var(--yellow); }
.cb-why-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cb-why-card {
  position: relative; padding: 26px 24px 24px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(4px); transition: transform .4s var(--ease), background .4s, border-color .4s; overflow: hidden;
}
.cb-why-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .1); border-color: rgba(255, 210, 28, .45); }
.cb-why-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 23px; margin-bottom: 18px; }
.cb-why-num { position: absolute; right: 18px; top: 10px; font-size: 64px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .14); }
.cb-why-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.cb-why-card p { font-size: 14.5px; line-height: 1.65; color: #c3d0ea; }

/* =========================================================
   CTA
   ========================================================= */
.cb-cta { padding: 80px 0 90px; }
.cb-cta-card { position: relative; border-radius: 30px; overflow: hidden; min-height: 360px; display: flex; align-items: center; background: var(--navy); box-shadow: var(--shadow-lg); }
.cb-cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cb-cta-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6, 25, 58, .94) 0%, rgba(6, 25, 58, .75) 50%, rgba(6, 25, 58, .2) 100%); }
.cb-cta-body { position: relative; z-index: 2; padding: 50px 56px; max-width: 680px; color: #fff; }
.cb-cta-body .cb-eyebrow { color: var(--yellow); }
.cb-cta-body h2 { font-size: 40px; font-weight: 900; line-height: 1.15; }
.cb-cta-body h2 span { font-family: var(--script); font-weight: 400; color: var(--yellow); }
.cb-cta-body p { font-size: 17px; color: #d2dcf0; margin: 12px 0 26px; }
.cb-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cb-cta-actions .btn-red { border: 0; }

/* =========================================================
   BOOKING POPUP
   ========================================================= */
body.cbm-open { overflow: hidden; }
body.cbm-open .float-contact { display: none; }
.cbm { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.cbm::-webkit-scrollbar, .cbm-cars-row::-webkit-scrollbar { display: none; }
.cbm-backdrop { position: fixed; inset: 0; background: rgba(6, 25, 58, .75); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s ease; }
.cbm-box {
  position: relative; width: 100%; max-width: 820px; margin: auto; display: grid; grid-template-columns: 250px minmax(0, 1fr);
  background: #fff; border-radius: 20px; overflow: hidden; overflow: clip; box-shadow: 0 30px 80px rgba(6, 25, 58, .5);
  opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .3s ease, transform .4s var(--ease);
}
.cbm.is-open .cbm-backdrop { opacity: 1; }
.cbm.is-open .cbm-box { opacity: 1; transform: none; }
.cbm-close {
  position: absolute; top: 10px; right: 10px; z-index: 5; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--navy);
  font-size: 15px; display: grid; place-items: center; transition: background .25s, color .25s, transform .25s;
}
.cbm-close:hover, .cbm-close:focus-visible { background: var(--red); color: #fff; transform: rotate(90deg); }

/* ticket side */
.cbm-side {
  position: relative; padding: 16px 16px; color: #fff;
  background: radial-gradient(400px 300px at 20% 10%, rgba(52, 104, 214, .55), transparent 70%), linear-gradient(170deg, #0e3169, #06193a);
}
/* perforated edge */
.cbm-side::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: -7px; width: 14px;
  background: radial-gradient(circle at 7px 7px, #fff 5px, transparent 5.5px) 0 0 / 14px 18px repeat-y;
}
.cbm-side-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.cbm-car { position: relative; margin: 8px 0; aspect-ratio: 16 / 9; border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff, #e3eaf6); }
.cbm-car img { position: relative; z-index: 1; width: 86%; max-height: 82%; object-fit: contain; mix-blend-mode: multiply; filter: brightness(1.06) contrast(1.04); }
.cbm-car img.is-swap { animation: cbSwap .6s var(--ease); }
@keyframes cbSwap { from { transform: translateX(-40%); opacity: 0; } }
.cbm-car-floor { position: absolute; left: 18%; right: 18%; bottom: 14%; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 42, 92, .3), transparent); }
.cbm-side h3 { font-size: 17px; font-weight: 900; line-height: 1.2; }
.cbm-specs { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 10px; }
.cbm-specs li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); font-size: 11.5px; font-weight: 600; }
.cbm-specs i { color: var(--yellow); }
.cbm-route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.cbm-route i { color: var(--yellow); }
.cbm-route small { flex-basis: 100%; font-weight: 500; font-size: 11.5px; color: #b5c4e2; }
.cbm-fare { padding: 10px 13px; border-radius: 14px; background: var(--yellow); color: var(--navy); box-shadow: 0 12px 26px rgba(0, 0, 0, .25); }
.cbm-fare small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.cbm-fare b { display: block; font-size: 23px; font-weight: 900; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cbm-fare em { display: block; font-style: normal; font-size: 12px; opacity: .8; margin-top: 2px; }
.cbm-fare.is-bump { animation: cbBump .45s var(--ease); }
@keyframes cbBump { 40% { transform: scale(1.05); } }
.cbm-fare-hint { font-size: 12px; color: #b5c4e2; line-height: 1.45; }
.cbm-note { font-size: 11px; color: #93a6cc; line-height: 1.45; margin-top: 8px; padding-top: 7px; border-top: 1px dashed rgba(255, 255, 255, .18); }

/* form */
.cbm-main { position: relative; padding: 14px 20px 16px; min-width: 0; }
.cbm-head { padding-right: 38px; margin-bottom: 6px; }
.cbm-head h2 { font-size: 19px; font-weight: 900; color: var(--navy); line-height: 1.2; }
.cbm-head p { font-size: 13px; color: var(--muted); }
.cbm-form fieldset { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.cbm-form legend { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cbm-cars-row { display: flex; gap: 8px; overflow-x: auto; padding: 3px 2px 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
/* arrows over the ends of the vehicle row (cabs.js shows one only when there are more cars that way) */
.cbm-cars-wrap { position: relative; }
.cbm-cars-nav {
  position: absolute; top: 50%; z-index: 2; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; color: var(--navy); background: #fff; cursor: pointer;
  border: 1px solid #dfe6f1; box-shadow: 0 6px 16px rgba(11, 42, 92, .18); transition: background .25s, color .25s, transform .25s;
}
.cbm-cars-nav[hidden] { display: none; }
.cbm-cars-prev { left: -8px; }
.cbm-cars-next { right: -8px; }
.cbm-cars-nav:hover, .cbm-cars-nav:focus-visible { background: var(--red); color: #fff; border-color: var(--red); transform: scale(1.08); }
.cbm-cars-nav:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
/* position: relative keeps each hidden radio inside its own card - otherwise the radios of the far-right cars sit
   outside the popup and focusing one scrolls the whole popup sideways */
.cbm-car-opt { position: relative; flex: 0 0 96px; scroll-snap-align: start; cursor: pointer; }
.cbm-car-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cbm-car-opt > span {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; padding: 4px 5px 5px; border-radius: 12px;
  border: 2px solid #e3e9f3; background: var(--stage); transition: all .25s;
}
.cbm-car-opt img { width: 100%; height: 32px; object-fit: contain; mix-blend-mode: multiply; filter: brightness(1.06) contrast(1.04); }
.cbm-car-opt b { font-size: 11.5px; color: var(--navy); line-height: 1.2; margin-top: 2px; }
.cbm-car-opt small { font-size: 10.5px; color: var(--muted); }
.cbm-car-opt:hover > span { border-color: #b9c6dc; }
.cbm-car-opt input:checked + span { border-color: var(--red); background: #fff5f5; box-shadow: 0 8px 18px rgba(220, 20, 32, .15); }
.cbm-car-opt input:checked + span::after {
  content: "\f00c"; font: 900 11px "Font Awesome 6 Free"; position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff;
}
.cbm-car-opt input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.cbm-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.cbm-seg input { position: absolute; opacity: 0; pointer-events: none; }
.cbm-seg span {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 30px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  color: var(--navy); background: var(--bg); border: 1.5px solid transparent; transition: all .2s;
}
.cbm-seg span i { color: var(--red); font-size: 12px; }
.cbm-seg input:checked + span { background: var(--navy); color: #fff; }
.cbm-seg input:checked + span i { color: var(--yellow); }
.cbm-seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.cbm-trip-hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.cbm-trip-hint:empty { display: none; }
.cbm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; }
.cbm-wide { grid-column: 1 / -1; }
/* drop / return fields come and go with the trip type: the notes box fills whatever is left of the last row */
.cbm-grid:has([data-drop-field][hidden]):not(:has([data-return-field][hidden])) .cbm-notes,
.cbm-grid:has([data-return-field][hidden]):not(:has([data-drop-field][hidden])) .cbm-notes { grid-column: auto; }
.cbm-grid:has([data-drop-field][hidden]):has([data-return-field][hidden]) .cbm-notes { grid-column: span 2; }
.cbm-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cbm-field[hidden] { display: none; }
.cbm-field > span { font-size: 12px; font-weight: 700; color: var(--navy); }
.cbm-field > span i { color: var(--red); font-style: normal; }
.cbm-field > span small { font-weight: 400; color: var(--muted); }
.cbm-field input, .cbm-field textarea {
  width: 100%; font: 400 14px/1.4 var(--font); color: var(--navy); background: #f7f9fc; border: 1.5px solid #dde4ef; border-radius: 9px; padding: 6px 10px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.cbm-field textarea { resize: none; height: 34px; min-height: 0; }
.cbm-field input:focus, .cbm-field textarea:focus { outline: 0; background: #fff; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 42, 92, .12); }
.cbm-field.invalid input, .cbm-field.invalid textarea { border-color: var(--red); background: #fff6f6; }
.cbm-warn { display: flex; gap: 8px; align-items: baseline; margin: 10px 0 0; padding: 8px 11px; border-radius: 10px; background: #fff4e5; color: #9a4b00; font-size: 12.5px; }
.cbm-warn[hidden] { display: none; }
.cbm-warn button { color: var(--red); font-weight: 700; text-decoration: underline; padding: 0; }
.cbm-send { width: 100%; justify-content: center; margin-top: 18px; padding: 10px 18px; font-size: 15px; border-radius: 12px; border: 0; }
.cbm-send i { transition: transform .3s var(--ease); }
.cbm-send:hover i { transform: translateX(5px); }
.cbm-form.is-loading { pointer-events: none; }
.cbm-form.is-loading .cbm-send { opacity: .75; cursor: progress; }
.cbm-form.is-loading .cbm-send i { animation: cbGo .6s linear infinite; }
@keyframes cbGo { 50% { transform: translateX(6px); } }
.cbm-msg { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; text-align: center; color: var(--red); }
.cbm-msg:empty { display: none; }

/* success */
.cbm-done { text-align: center; padding: 20px 8px 8px; }
.cbm-done[hidden] { display: none; }
.cbm-done-art { position: relative; height: 110px; max-width: 360px; margin: 0 auto 18px; overflow: hidden; }
.cbm-done-road { position: absolute; left: 0; right: 0; bottom: 18px; height: 12px; border-radius: 8px; background: var(--asphalt); }
.cbm-done-road::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: repeating-linear-gradient(90deg, var(--yellow) 0 18px, transparent 18px 34px); animation: cbLane .5s linear infinite; }
.cbm-done-art > i { position: absolute; bottom: 26px; left: 0; font-size: 44px; color: var(--red); animation: cbAway 2.4s var(--ease) forwards; }
@keyframes cbAway { 0% { transform: translateX(-60px); } 55% { transform: translateX(150px); } 100% { transform: translateX(150px); } }
.cbm-done-check {
  position: absolute; left: 50%; top: 0; width: 60px; height: 60px; margin-left: -30px; border-radius: 50%; display: grid; place-items: center;
  background: #1fbf6b; color: #fff; font-size: 26px; box-shadow: 0 10px 24px rgba(31, 191, 107, .4); transform: scale(0); animation: cbPop .5s 1.1s var(--ease) forwards;
}
@keyframes cbPop { 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.cbm-done-ref { display: inline-block; padding: 7px 16px; border-radius: 8px; background: var(--yellow); color: #111; border: 2px solid #111; font: 800 15px ui-monospace, Consolas, monospace; letter-spacing: .1em; }
.cbm-done h2 { font-size: 22px; font-weight: 900; color: var(--navy); margin: 12px 0 6px; }
.cbm-done p { color: var(--text); font-size: 14px; max-width: 460px; margin: 0 auto 20px; }
.cbm-done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cbm-done-actions [hidden] { display: none; }
.cbm-again { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--muted); }
.cbm-again:hover { color: var(--red); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199px) {
  .cb-title { font-size: 52px; }
  .cb-script { font-size: 60px; }
  .cb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .cb-hero-grid { grid-template-columns: 1fr; padding-bottom: 100px; }
  .cb-hero-art { height: 420px; }
  .cb-gauge { width: min(360px, 90%); }
  .cb-trust { max-width: none; }
  .cb-tickets { grid-template-columns: 1fr; }
  .cb-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cbm-box { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .cbm-grid { grid-template-columns: 1fr 1fr; }
  .cbm-grid .cbm-field.cbm-notes { grid-column: 1 / -1 !important; }
  .cbm-side { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 14px 54px 14px 16px; }
  .cbm-side::after { top: auto; left: 0; right: 0; bottom: -7px; width: auto; height: 14px; background: radial-gradient(circle at 7px 7px, #fff 5px, transparent 5.5px) 0 0 / 18px 14px repeat-x; }
  .cbm-side-kicker, .cbm-fare-hint, .cbm-note { grid-column: 1 / -1; }
  .cbm-car { grid-row: 2 / span 2; margin: 6px 0; }
  .cbm-side h3 { font-size: 16px; }
  .cbm-specs { margin: 4px 0 0; }
  .cbm-route, .cbm-fare { grid-column: 1 / -1; margin: 8px 0 0; }
  .cbm-note { display: none; }
  .cbm-close { background: rgba(255, 255, 255, .15); color: #fff; }
}
@media (max-width: 767px) {
  .cb-hero { padding-top: 34px; }
  .cb-title { font-size: 40px; }
  .cb-script { font-size: 46px; }
  .cb-lead { font-size: 16px; }
  .cb-hero-art { height: 330px; }
  .cb-float-a { left: 0; bottom: 20px; }
  .cb-float-b { top: 10px; }
  .cb-float-c { display: none; }
  .cb-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb-h2 { font-size: 32px; }
  .cb-head { margin-bottom: 30px; }
  .cb-head p { font-size: 15.5px; }
  .cb-fleet, .cb-routes, .cb-steps, .cb-why { padding: 64px 0; }
  .cb-filter { flex-direction: column; align-items: stretch; }
  .cb-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
  .cb-chip { flex-shrink: 0; }
  /* phone: full-width button, options become a 3-column grid of big tap targets */
  .cb-seats-btn { width: 100%; padding: 13px 18px; }
  .cb-seats-list {
    left: 0; right: 0; width: auto; max-height: none; overflow: visible; padding: 10px;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; transform-origin: top center;
  }
  .cb-seats-list li {
    flex-direction: column; justify-content: center; gap: 4px; padding: 12px 4px 10px; text-align: center;
    border: 1.5px solid #e3e9f2; border-radius: 12px;
  }
  .cb-seats-list li[aria-selected="true"] { border-color: var(--navy); }
  .cb-seats-ico { width: 34px; height: 34px; font-size: 14px; }
  .cb-seats-txt { flex-direction: column; align-items: center; gap: 0; }
  .cb-seats-txt b { font-size: 17px; line-height: 1.15; }
  .cb-seats-txt small { font-size: 11.5px; }
  .cb-seats-list em { height: 19px; font-size: 11px; margin-top: 2px; }
  .cb-grid { grid-template-columns: 1fr; gap: 22px; }
  .cb-ticket { grid-template-columns: minmax(0, 1fr) 128px; }
  .cb-ticket::before, .cb-ticket::after { right: 128px; }
  .cb-ticket-main { padding: 16px 18px; }
  .cb-ticket-codes b { font-size: 28px; }
  .cb-ticket-codes small { max-width: 90px; }
  .cb-ticket-stub-body { padding: 14px 12px; }
  .cb-ticket-from b { font-size: 19px; }
  /* the road runs down the left edge */
  .cb-journey-road { top: 0; bottom: 0; left: 32px; right: auto; width: 14px; height: auto; }
  .cb-journey-road::before { left: 6px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .6) 0 16px, transparent 16px 30px); }
  .cb-journey-fill { width: auto; right: 0; height: calc(var(--p) * 100%); bottom: auto; background: linear-gradient(180deg, var(--red), var(--yellow)); }
  .cb-journey-car { top: calc(var(--p) * 100%); left: 50%; transform: translate(-50%, -50%) rotate(90deg); font-size: 24px; transition: top .15s linear; }
  .cb-journey-stops { grid-template-columns: 1fr; gap: 30px; }
  .cb-stop { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 4px 18px; text-align: left; padding: 0; }
  .cb-stop-pin { grid-row: span 2; margin: 0; }
  .cb-stop p { margin: 0; }
  .cb-why-grid { grid-template-columns: 1fr; }
  .cb-cta-body { padding: 36px 24px; }
  .cb-cta-body h2 { font-size: 30px; }
  .cb-cta-card::before { background: linear-gradient(180deg, rgba(6, 25, 58, .92), rgba(6, 25, 58, .78)); }
  .cbm { padding: 0; align-items: flex-end; overflow-x: hidden; }
  .cbm-box { border-radius: 22px 22px 0 0; margin: auto 0 0; width: 100%; max-width: 100%; }
  /* simple header strip: car name, route and fare only (picture, specs and hints hidden) */
  .cbm-side { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 14px 54px 16px 16px; }
  .cbm-side-kicker, .cbm-car, .cbm-specs, .cbm-fare-hint, .cbm-note { display: none; }
  .cbm-side h3 { font-size: 16px; margin: 0; }
  .cbm-route, .cbm-fare { flex-basis: 100%; margin: 0; }
  .cbm-fare { display: flex; align-items: baseline; gap: 8px; padding: 8px 12px; box-shadow: none; }
  .cbm-fare[hidden], .cbm-route[hidden] { display: none; }
  .cbm-fare b { font-size: 19px; }
  .cbm-fare em { margin: 0 0 0 auto; }
  .cbm-main { padding: 14px 16px 20px; }
  .cbm-head h2 { font-size: 19px; }
  .cbm-head p { display: none; }
  /* minmax(0, 1fr) keeps date / time fields inside the screen; text fields take the full row, date + time share one */
  .cbm-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .cbm-grid .cbm-field:has(> input[type="text"], > input[type="tel"], > input[type="email"], > textarea) { grid-column: 1 / -1; }
  /* no return date (one way, local …) → passengers takes the whole row instead of half */
  .cbm-grid:has([data-return-field][hidden]) .cbm-field:has(> input[name="passengers"]) { grid-column: 1 / -1; }
  .cbm-field input, .cbm-field textarea { font-size: 16px; min-height: 44px; min-width: 0; max-width: 100%; }   /* 16px: no zoom on iOS */
  .cbm-field textarea { height: 56px; }
  .cbm-field input[type="date"], .cbm-field input[type="time"] { -webkit-appearance: none; appearance: none; display: block; text-align: left; }
  .cbm-field input::-webkit-date-and-time-value { text-align: left; }
  .cbm-send { min-height: 48px; }
}
@media (max-width: 420px) {
  .cb-specs { grid-template-columns: repeat(2, auto); }
}

@media (prefers-reduced-motion: reduce) {
  .cb-stars, .cb-road-line, .cb-road-car, .cb-hero-car, .cb-float, .cb-live, .cbm-done-road::before { animation: none !important; }
  .cb-gauge-fill { animation: none; stroke-dasharray: 56 100; }
  .cb-needle { animation: none; transform: rotate(66.6deg); }
  .cb-card, .cb-card-stage img, .cb-ticket, .cb-ticket-path i, .cb-why-card { transition: none; }
  .cbm-done-art > i { animation: none; transform: translateX(150px); }
  .cbm-done-check { animation: none; transform: none; }
}
