/* ==========================================================================
   OnePayCab — Components
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 26px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-12);
  border: 1px solid transparent;
  transition: all var(--t-fast) ease;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}
.btn svg { flex: none; }
.btn:disabled,
.btn.is-disabled { opacity: 0.55; pointer-events: none; }

.btn-primary {
  background: var(--brand);
  border-color: var(--brand-darken);
  color: var(--brand-ink);
}
.btn-primary:hover { background: var(--brand-darken); color: var(--brand-ink); }

.btn-lg { padding: 16px 32px; font-size: var(--fs-md); }
.btn-sm { padding: 8px 18px; font-size: var(--fs-sm); line-height: 22px; }
.btn-block { width: 100%; }

.btn-black { background: var(--neutral-1000); color: #fff; }
.btn-black:hover { background: var(--brand); color: var(--brand-ink); }

.btn-gray {
  background: var(--neutral-100);
  border-color: var(--border-color);
  color: var(--neutral-1000);
  padding: 8px 18px;
  line-height: 22px;
}
.btn-gray:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--neutral-1000);
}
.btn-outline:hover { background: var(--neutral-100); border-color: var(--neutral-300); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--neutral-1000); }

.btn-tint {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand-deep);
}
.btn-tint:hover { background: var(--brand); color: var(--brand-ink); }

.btn-ghost {
  background: transparent;
  color: var(--neutral-1000);
  padding: 11px 18px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: var(--brand); }
.header:not(.header--transparent) .btn-ghost:hover { background: var(--neutral-100); color: var(--link-hover); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(0.94); }

.btn-book {
  width: 100%;
  border-radius: var(--radius-8);
  padding: 15px;
  background: var(--brand);
  border-color: var(--brand-darken);
  color: var(--brand-ink);
  font-size: var(--fs-md);
}
.btn-book:hover { background: var(--brand-darken); }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--neutral-200);
  color: var(--neutral-1000);
}
.btn-icon:hover { background: var(--brand); color: var(--brand-ink); }
.btn-icon:disabled { opacity: 0.4; }

.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: var(--brand-ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-black.btn-loading::after,
.btn-danger.btn-loading::after { border-color: rgba(255,255,255,.35); border-top-color: #fff; }

@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   2. Badges / labels / pills
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
  font-weight: 700;
  background: var(--neutral-100);
  color: var(--neutral-900);
  white-space: nowrap;
}
.badge-brand   { background: var(--brand-tint); color: var(--brand-deep); }
.badge-success { background: #e2f8ec; color: #147a45; }
.badge-warning { background: #fff5d6; color: #8a6800; }
.badge-danger  { background: #ffe6e6; color: #a32020; }
.badge-info    { background: #e3f0ff; color: #14538a; }
.badge-neutral { background: var(--neutral-100); color: var(--neutral-700); }

.badge-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   3. Forms
   -------------------------------------------------------------------------- */

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: 700;
  color: var(--neutral-1000);
  margin-bottom: 8px;
}
.form-label .req { color: var(--danger); }

.form-control {
  width: 100%;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-8);
  background: var(--bg-card);
  padding: 12px 15px;
  font-size: var(--fs-md);
  line-height: 24px;
  font-weight: 500;
  color: var(--neutral-800);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.form-control::placeholder { color: var(--neutral-500); }
.form-control:hover { border-color: var(--neutral-300); }
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(87, 204, 42, 0.16);
}
textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control {
  appearance: none;
  background-image: url("../icons/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(252, 114, 114, 0.18); }

.field-error {
  display: none;
  margin-top: 6px;
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
  font-weight: 600;
  color: #c2342f;
}
.field-error.is-shown { display: block; }

.form-hint { margin-top: 6px; font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--neutral-500); }

.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); line-height: var(--lh-sm); }
.form-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }

.input-group { position: relative; }
.input-group .form-control { padding-left: 44px; }
.input-group .input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neutral-400);
  pointer-events: none;
}

.field-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: var(--neutral-100);
  color: var(--neutral-600);
}
.field-clear.is-shown { display: grid; }
.field-clear:hover { background: var(--neutral-200); color: var(--neutral-1000); }

/* --------------------------------------------------------------------------
   4. Autocomplete
   -------------------------------------------------------------------------- */

.autocomplete { position: relative; }

.autocomplete-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
  margin: 0;
  list-style: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-12);
  background: var(--neutral-0);
  box-shadow: var(--shadow-card);
  display: none;
}
.autocomplete-list.is-open { display: block; animation: fadeInUp 0.18s var(--ease-out) both; }

.autocomplete-list li { border-radius: var(--radius-8); }
.autocomplete-list .ac-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border-radius: var(--radius-8);
  cursor: pointer;
  transition: background var(--t-fast) ease;
}
.autocomplete-list .ac-option:hover,
.autocomplete-list .ac-option.is-active { background: var(--brand-tint); }
.autocomplete-list .ac-option svg { flex: none; margin-top: 3px; color: var(--brand-deep); }
.autocomplete-list .ac-name { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--neutral-1000); }
.autocomplete-list .ac-meta { display: block; font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--neutral-500); }

.ac-status {
  padding: 12px;
  font-size: var(--fs-sm);
  color: var(--neutral-500);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ac-status .spinner { width: 15px; height: 15px; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--neutral-200);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: none;
}

/* --------------------------------------------------------------------------
   5. Vehicle card — proportions follow the reference card system
   -------------------------------------------------------------------------- */

.card-vehicle {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-12);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.25s var(--ease-out);
}
.card-vehicle:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }

.card-vehicle .card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #fff;
}
.card-vehicle .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.card-vehicle:hover .card-image img { transform: scale(1.06); }

.card-vehicle .card-label {
  position: absolute;
  top: 22px;
  left: 25px;
  z-index: 3;
  padding: 5px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--brand-deep);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.card-vehicle .card-info {
  position: relative;
  margin-top: -40px;
  padding: 38px 30px 30px;
  background: var(--bg-card);
  border-radius: var(--radius-12);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.card-vehicle .card-rating {
  position: absolute;
  top: -14px;
  left: 30px;
  right: 30px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-vehicle .card-rating .pill-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 18px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--brand-ink);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: 700;
}
.card-vehicle .card-rating .pill-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 14px;
  border-radius: var(--radius-8);
  background: var(--neutral-0);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: 500;
  color: var(--neutral-1000);
}

.card-vehicle .card-title { margin-bottom: 6px; }
.card-vehicle .card-title a { color: var(--neutral-1000); }
.card-vehicle .card-title a:hover { color: var(--link-hover); }

.card-vehicle .card-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--neutral-500);
  font-size: var(--fs-md);
  font-weight: 500;
  margin-bottom: 22px;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  padding-top: 24px;
  margin-bottom: 20px;
  border-top: 1px solid var(--border-color);
}
.card-specs li {
  width: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  font-size: var(--fs-md);
  line-height: 22px;
  font-weight: 500;
  color: var(--neutral-1000);
  list-style: none;
}
.card-specs li svg { flex: none; color: var(--brand-deep); }

.card-vehicle .card-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.card-price { display: flex; align-items: flex-end; gap: 6px; }
.card-price .from { color: var(--neutral-500); font-size: var(--fs-md); font-weight: 500; }
.card-price .value { font-size: var(--fs-h6); line-height: var(--lh-h6); font-weight: 700; color: var(--neutral-1000); }
.card-price .unit { color: var(--neutral-500); font-size: var(--fs-sm); font-weight: 600; }

/* --------------------------------------------------------------------------
   6. Feature / step / stat cards
   -------------------------------------------------------------------------- */

.card-step { text-align: center; margin-bottom: 40px; }
.card-step .step-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand-deep);
  position: relative;
  transition: all var(--t-base) var(--ease-out);
}
.card-step:hover .step-icon { background: var(--brand); transform: translateY(-4px); }
.card-step .step-index {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-deep);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.card-step h6, .card-step .heading-6 { margin-bottom: 8px; }
.card-step p { color: var(--neutral-500); font-size: var(--fs-md); line-height: var(--lh-md); }

.card-feature {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-16);
  padding: 28px;
  background: var(--bg-card);
  height: 100%;
  transition: all 0.25s var(--ease-out);
}
.card-feature > p { margin-bottom: 16px; }
.card-feature > .btn:last-child { margin-top: auto; align-self: flex-start; }
.card-feature:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.card-feature .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-12);
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand-deep);
  margin-bottom: 18px;
}
.card-feature h6, .card-feature .heading-6 { margin-bottom: 10px; }
.card-feature p { color: var(--neutral-500); font-size: var(--fs-md); line-height: var(--lh-md); }

.stat-item { text-align: center; padding: 10px; }
.stat-item .stat-value {
  font-size: 52px;
  line-height: 62px;
  font-weight: 700;
  color: var(--neutral-1000);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.stat-item .stat-value .suffix { color: var(--brand-darken); }
.stat-item .stat-label { color: var(--neutral-500); font-size: var(--fs-md); font-weight: 600; }
.stats-on-dark .stat-item .stat-value { color: #fff; }
.stats-on-dark .stat-item .stat-label { color: rgba(255, 255, 255, 0.7); }

/* Route / city chips */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--neutral-0);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: 600;
  color: var(--neutral-800);
  transition: all var(--t-fast) ease;
  cursor: pointer;
}
.chip:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-deep); }
.chip.is-active {
  background: var(--brand);
  border-color: var(--brand-darken);
  color: var(--brand-ink);
}

/* --------------------------------------------------------------------------
   7. Testimonials / reviews
   -------------------------------------------------------------------------- */

.card-testimonial {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-16);
  padding: 30px;
  background: var(--bg-card);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s var(--ease-out);
}
.card-testimonial:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.card-testimonial .stars { display: flex; gap: 3px; color: var(--warning); }
.card-testimonial blockquote {
  font-size: var(--fs-md);
  line-height: 27px;
  font-weight: 500;
  color: var(--neutral-700);
  flex: 1 1 auto;
}
.card-testimonial .author { display: flex; align-items: center; gap: 12px; }
.card-testimonial .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: var(--fs-lg);
  flex: none;
}
.card-testimonial .author-name { font-weight: 700; color: var(--neutral-1000); font-size: var(--fs-md); }
.card-testimonial .author-meta { font-size: var(--fs-sm); color: var(--neutral-500); }

/* --------------------------------------------------------------------------
   8. Carousel (vanilla)
   -------------------------------------------------------------------------- */

.carousel { position: relative; }
.carousel-viewport { overflow: hidden; cursor: grab; }
.carousel.is-dragging .carousel-viewport { cursor: grabbing; }
.carousel-track {
  display: flex;
  will-change: transform;
  transition: transform 0.55s var(--ease-out);
}
.carousel.is-dragging .carousel-track { transition: none; }
.carousel-slide { flex: none; padding-inline: 12px; }

.carousel-nav { display: flex; align-items: center; gap: 10px; }

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neutral-300);
  transition: all var(--t-fast) ease;
}
.carousel-dots button.is-active { background: var(--brand-darken); width: 26px; border-radius: var(--radius-pill); }

/* Logo / route ticker */
.ticker { overflow: hidden; }
.ticker-track { display: flex; gap: 14px; width: max-content; animation: tickerScroll 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   9. Tabs / accordion
   -------------------------------------------------------------------------- */

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 28px;
}
.tabs button {
  padding: 12px 20px;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--neutral-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--t-fast) ease;
}
.tabs button:hover { color: var(--neutral-1000); }
.tabs button.is-active { color: var(--neutral-1000); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeInUp 0.35s var(--ease-out) both; }

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-12);
  background: var(--bg-card);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow var(--t-fast) ease;
}
.accordion-item.is-open { box-shadow: var(--shadow-card); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  text-align: left;
  font-size: var(--fs-lg);
  line-height: var(--lh-lg);
  font-weight: 700;
  color: var(--neutral-1000);
}
.accordion-trigger .acc-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--neutral-100);
  display: grid;
  place-items: center;
  position: relative;
  transition: all var(--t-fast) ease;
}
.accordion-trigger .acc-icon::before,
.accordion-trigger .acc-icon::after {
  content: "";
  position: absolute;
  background: var(--neutral-1000);
  transition: transform var(--t-fast) ease;
}
.accordion-trigger .acc-icon::before { width: 12px; height: 2px; }
.accordion-trigger .acc-icon::after { width: 2px; height: 12px; }
.accordion-item.is-open .acc-icon { background: var(--brand); }
.accordion-item.is-open .acc-icon::after { transform: scaleY(0); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}
.accordion-panel .accordion-body {
  padding: 0 24px 22px;
  color: var(--neutral-600);
  font-size: var(--fs-md);
  line-height: 27px;
}

/* --------------------------------------------------------------------------
   10. Fare summary
   -------------------------------------------------------------------------- */

.fare-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-16);
  background: var(--bg-card);
  overflow: hidden;
}
.fare-card .fare-head {
  padding: 20px 24px;
  background: var(--brand-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.fare-card .fare-head h6, .fare-card .fare-head .heading-6 { color: #fff; margin: 0; }
.fare-card .fare-body { padding: 20px 24px; }

.fare-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  font-size: var(--fs-md);
  line-height: 24px;
}
.fare-row .label { color: var(--neutral-600); font-weight: 500; }
.fare-row .value { color: var(--neutral-1000); font-weight: 700; text-align: right; }
.fare-row.is-muted .value { font-weight: 600; color: var(--neutral-700); }
.fare-row.is-divider { border-top: 1px dashed var(--border-color); margin-top: 8px; padding-top: 16px; }
.fare-row.is-total {
  border-top: 1px solid var(--border-color);
  margin-top: 10px;
  padding-top: 16px;
  font-size: var(--fs-xl);
}
.fare-row.is-total .label { color: var(--neutral-1000); font-weight: 700; }
.fare-row.is-total .value { font-size: 28px; line-height: 36px; color: var(--brand-deep); }

.fare-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-8);
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-size: var(--fs-sm);
  line-height: 21px;
  font-weight: 600;
}

.minimum-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
  font-weight: 700;
  color: #8a6800;
  background: #fff5d6;
  border-radius: var(--radius-pill);
  padding: 3px 12px;
}

/* --------------------------------------------------------------------------
   11. Booking flow
   -------------------------------------------------------------------------- */

.flow-steps {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.flow-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 0;
  min-width: 150px;
}
.flow-steps .num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--neutral-100);
  color: var(--neutral-500);
  font-weight: 700;
  flex: none;
  transition: all var(--t-base) ease;
}
.flow-steps .txt { font-size: var(--fs-sm); font-weight: 700; color: var(--neutral-500); }
.flow-steps li.is-active .num { background: var(--brand); color: var(--brand-ink); }
.flow-steps li.is-active .txt { color: var(--neutral-1000); }
.flow-steps li.is-done .num { background: var(--brand-deep); color: #fff; }
.flow-steps li.is-done .txt { color: var(--neutral-800); }
.flow-steps li::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  background: var(--neutral-200);
  margin-left: 6px;
  min-width: 16px;
}
.flow-steps li:last-child::after { display: none; }

.booking-panel {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-16);
  background: var(--bg-card);
  padding: 30px;
}
.booking-panel + .booking-panel { margin-top: 24px; }
.booking-panel h5, .booking-panel .heading-5 { margin-bottom: 6px; }
.booking-panel .panel-sub { color: var(--neutral-500); font-size: var(--fs-md); margin-bottom: 24px; }

.vehicle-option {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-12);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--t-fast) ease;
  margin-bottom: 14px;
  width: 100%;
  text-align: left;
}
.vehicle-option:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.vehicle-option.is-selected { border-color: var(--brand); background: var(--brand-tint); }
.vehicle-option img {
  width: 116px;
  height: 78px;
  object-fit: cover;
  border-radius: var(--radius-8);
  flex: none;
  background: #fff;
}
.vehicle-option .vo-body { flex: 1 1 auto; min-width: 0; }
.vehicle-option .vo-name { font-size: var(--fs-lg); font-weight: 700; color: var(--neutral-1000); }
.vehicle-option .vo-meta { font-size: var(--fs-sm); color: var(--neutral-500); }
.vehicle-option .vo-price { text-align: right; flex: none; }
.vehicle-option .vo-price .amount { font-size: var(--fs-h6); font-weight: 700; color: var(--brand-deep); }
.vehicle-option .vo-price .per { font-size: var(--fs-xs); color: var(--neutral-500); }

.sticky-aside { position: sticky; top: 100px; }

/* --------------------------------------------------------------------------
   12. States: loading / empty / error
   -------------------------------------------------------------------------- */

.state-box {
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-12);
  background: var(--neutral-0);
  color: var(--neutral-500);
}
.state-box .state-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: var(--neutral-100);
  color: var(--neutral-500);
}
.state-box.is-error { border-color: #f3c9c9; background: #fff7f7; color: #a32020; }
.state-box.is-error .state-icon { background: #ffe6e6; color: #a32020; }
.state-box h6, .state-box .heading-6 { margin-bottom: 6px; }
.state-box .btn { margin-top: 16px; }

.state-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--neutral-500);
}

.skeleton {
  border-radius: var(--radius-12);
  background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-200) 37%, var(--neutral-100) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}
.skeleton-card { height: 430px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Toasts */
.toast-stack {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: var(--z-toast);
  display: grid;
  gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-12);
  background: var(--neutral-1000);
  color: #fff;
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: 600;
  box-shadow: var(--shadow-card);
  animation: toastIn 0.3s var(--ease-out) both;
}
.toast.is-success { background: #12703f; }
.toast.is-error { background: #8e1f1f; }
.toast button { color: inherit; opacity: 0.7; margin-left: auto; }
.toast button:hover { opacity: 1; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   13. Tables
   -------------------------------------------------------------------------- */

.table-wrap {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-12);
  background: var(--bg-card);
  overflow-x: auto;
}
.table {
  min-width: 720px;
  font-size: var(--fs-sm);
}
.table th,
.table td { padding: 14px 18px; text-align: left; vertical-align: middle; white-space: nowrap; }
.table thead th {
  background: var(--neutral-100);
  color: var(--neutral-700);
  font-weight: 700;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-color);
}
.table tbody tr { border-bottom: 1px solid var(--neutral-100); }
.table tbody tr:last-child { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfc; }
.table td.strong { font-weight: 700; color: var(--neutral-1000); white-space: normal; }

.pagination { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination button {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-8);
  border: 1px solid var(--border-color);
  background: var(--neutral-0);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--neutral-700);
  transition: all var(--t-fast) ease;
}
.pagination button:hover:not(:disabled) { border-color: var(--brand); color: var(--neutral-1000); }
.pagination button.is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pagination button:disabled { opacity: 0.45; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   14. Banners / CTA
   -------------------------------------------------------------------------- */

.banner-split {
  position: relative;
  border-radius: var(--radius-16);
  padding: 40px 40px 0;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
}
.banner-split .banner-info { flex: 1 1 52%; padding-bottom: 46px; }
.banner-split .banner-info h5, .banner-split .banner-info .heading-5 { margin-bottom: 12px; }
.banner-split .banner-info p { color: var(--neutral-700); margin-bottom: 20px; }
.banner-split .banner-image { flex: 1 1 48%; align-self: stretch; display: flex; align-items: flex-end; }
/* The fleet photos are shot on white, so they sit in their own white card
   rather than being pasted flat onto the banner colour. */
.banner-split .banner-image img {
  border-radius: var(--radius-12) var(--radius-12) 0 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 0;
  box-shadow: 0 -6px 26px rgba(0, 0, 0, 0.08);
  background: #fff;
  width: 100%;
}

.cta-strip {
  border-radius: var(--radius-16);
  background:
    radial-gradient(700px 320px at 85% 10%, rgba(87, 204, 42, 0.28), transparent 70%),
    linear-gradient(120deg, #04351d, #021409);
  color: #fff;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.cta-strip h3 { color: #fff; margin-bottom: 12px; }
.cta-strip p { color: rgba(255, 255, 255, 0.78); }

.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form .form-control { flex: 1 1 240px; }

/* Map embed */
.map-embed {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-16);
  overflow: hidden;
  min-height: 380px;
  background: var(--neutral-100);
}
.map-embed iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Rich text (terms / privacy) */
.rich-text h2, .rich-text h3, .rich-text h4, .rich-text h5 { margin: 34px 0 12px; }
.rich-text h2:first-child { margin-top: 0; }
.rich-text h2:first-child, .rich-text h3:first-child { margin-top: 0; }
.rich-text p { margin-bottom: 16px; color: var(--neutral-600); font-size: var(--fs-md); line-height: 28px; }
.rich-text ul, .rich-text ol { margin: 0 0 18px 20px; color: var(--neutral-600); }
.rich-text li { margin-bottom: 9px; line-height: 27px; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text strong { color: var(--neutral-1000); }

/* Auth layout */
.auth-card {
  max-width: 480px;
  margin-inline: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-16);
  background: var(--bg-card);
  padding: 36px;
  box-shadow: var(--shadow-panel);
}
.auth-card .auth-logo { height: 40px; width: auto; margin: 0 auto 22px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--neutral-400);
  font-size: var(--fs-sm);
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--border-color); }

/* --------------------------------------------------------------------------
   15. Admin shell
   -------------------------------------------------------------------------- */

.admin-body { background: var(--neutral-100); }

.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 264px;
  flex: none;
  background: var(--brand-deep);
  color: #fff;
  padding: 22px 18px;
  position: fixed;
  inset: 0 auto 0 0;
  overflow-y: auto;
  z-index: 40;
  transition: transform var(--t-base) var(--ease-inout);
}
.admin-sidebar .admin-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 0 8px; }
.admin-sidebar .admin-logo img { height: 28px; width: auto; }
.admin-nav { list-style: none; display: grid; gap: 4px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-8);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--t-fast) ease;
}
.admin-nav a:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.admin-nav a.is-active { background: var(--brand); color: var(--brand-ink); }
.admin-nav .nav-group-label {
  padding: 16px 14px 6px;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
}

.admin-main { flex: 1 1 auto; margin-left: 264px; min-width: 0; }

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--neutral-0);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-topbar h1 { font-size: var(--fs-h6); line-height: var(--lh-h6); }
.admin-content { padding: 26px; }

.admin-card {
  background: var(--neutral-0);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-12);
  padding: 22px;
}
.admin-card + .admin-card { margin-top: 20px; }
.admin-card .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.kpi {
  background: var(--neutral-0);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-12);
  padding: 20px;
  height: 100%;
}
.kpi .kpi-label { font-size: var(--fs-sm); color: var(--neutral-500); font-weight: 600; }
.kpi .kpi-value { font-size: 34px; line-height: 44px; font-weight: 700; color: var(--neutral-1000); }
.kpi .kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-8);
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand-deep);
  margin-bottom: 12px;
}

.admin-toggle { display: none; }
.admin-overlay { display: none; }

/* --------------------------------------------------------------------------
   16. Fine-tuning that depends on two components meeting
   -------------------------------------------------------------------------- */

/* Clear button inside the compact search panel sits clear of the divider */
.search-item .field-clear {
  right: 26px;
  top: auto;
  bottom: 4px;
  transform: none;
  width: 20px;
  height: 20px;
}
.search-item.no-divider .field-clear { right: 4px; }

/* The panel's autocomplete list should escape the field row */
.search-item .autocomplete-list { left: 18px; right: 18px; }

/* Category cards on the home page reuse the vehicle card, as links */
a.card-vehicle { flex-direction: column; }
a.card-vehicle .card-info { display: block; }
a.card-vehicle .card-foot { display: flex; }

/* Buttons used as cards keep the card's own padding and alignment */
button.card-feature { text-align: left; font: inherit; color: inherit; cursor: pointer; }

.chip-grid.justify-center { justify-content: center; }

/* Two inputs sharing one search-panel cell (date + time), as the reference does */
.field-pair {
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-pair .search-input { min-width: 0; }
.field-pair .search-input { font-size: 15px; }
.field-pair .search-input[type="date"] { flex: 1 1 56%; }
.field-pair .search-input[type="time"] { flex: 1 1 44%; }

/* Marquee edges fade instead of cutting off mid-chip */
.ticker {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

/* --------------------------------------------------------------------------
   17. Inline search panel
   The hero panel is a full-width five-column row with hairline dividers.
   Inside a page column there is far less room, so the same fields reflow
   into an auto-fitting grid of boxed inputs.
   -------------------------------------------------------------------------- */

.search-panel--inline .search-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: stretch;
  padding: 16px;
}
.search-panel--inline .search-item {
  width: auto;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-8);
  background: var(--neutral-0);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.search-panel--inline .search-item::before { display: none; }
.search-panel--inline .search-item:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(87, 204, 42, 0.16);
}
.search-panel--inline .search-item--submit {
  grid-column: 1 / -1;
  border: 0;
  padding: 4px 0 0;
  justify-content: center;
}
.search-panel--inline .search-item--submit:focus-within { box-shadow: none; }
.search-panel--inline .search-item .field-clear { right: 10px; bottom: 10px; }
.search-panel--inline .search-item .autocomplete-list { left: 0; right: 0; }

/* Contact cards: the email is long, so the value sits a step below h6 and is
   allowed to wrap at sensible points rather than mid-word. */
.card-feature.contact-card > p { margin-bottom: 0; }
.card-feature.contact-card > p:last-child { margin-top: 6px; }

.contact-value {
  display: block;
  margin-bottom: 4px;
  font-size: var(--fs-lg);
  line-height: 26px;
  font-weight: 700;
  color: var(--neutral-1000);
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Fare summary refinements: long place names wrap, and itemised charges are
   indented under their "Additional charges" subtotal. */
.fare-row.is-wrap { align-items: flex-start; }
.fare-row.is-wrap .value {
  white-space: normal;
  text-align: right;
  font-weight: 600;
  max-width: 62%;
  overflow-wrap: anywhere;
}
.fare-row.is-sub { padding-top: 4px; padding-bottom: 4px; }
.fare-row.is-sub .label { padding-left: 14px; position: relative; }
.fare-row.is-sub .label::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 5px;
  height: 1px;
  background: var(--neutral-300);
}
.fare-row.is-sub .value { font-weight: 600; color: var(--neutral-700); }

/* Native select inside the search panel */
.search-select {
  appearance: none;
  background-image: url("../icons/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 22px;
  cursor: pointer;
}
