.bus-marketplace {
  --bus-navy: #0a1833;
  --bus-navy-soft: #14284a;
  --bus-blue: #246bfd;
  --bus-blue-dark: #1557d7;
  --bus-red: #df3b49;
  --bus-green: #0b9d70;
  --bus-ink: #182033;
  --bus-muted: #667085;
  --bus-line: #e5e9f1;
  --bus-surface: #ffffff;
  --bus-page: #f4f7fb;
  --bus-radius: 18px;
  --bus-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color: var(--bus-ink);
  background: var(--bus-page);
  min-height: 100vh;
  padding-bottom: 72px;
}

.bus-hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 88px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 15%, rgba(50, 116, 255, 0.36), transparent 28%),
    radial-gradient(circle at 12% 115%, rgba(28, 196, 147, 0.14), transparent 34%),
    linear-gradient(135deg, #07152e 0%, #10264a 54%, #0c1b37 100%);
}

/* Décor : taxi-brousse sur la RN, bordée de baobabs. Illustration vectorielle
   locale (aucun asset externe), masquée à gauche pour préserver le titre. */
.bus-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.9;
  background: url("../transport/images/hero-baobab.svg") no-repeat right bottom / cover;
  mask-image: linear-gradient(to right, transparent 12%, rgba(0, 0, 0, 0.45) 40%, #000 68%);
}

.bus-hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to right, #000, transparent 75%);
}

.bus-hero .container {
  z-index: 1;
}

.bus-hero__eyebrow,
.bus-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9db9f5;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.bus-hero__pulse {
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: #3dd6a7;
  box-shadow: 0 0 0 5px rgba(61, 214, 167, 0.12);
}

.bus-marketplace .bus-hero h1 {
  max-width: 760px;
  margin: 16px 0 18px;
  color: #fff !important;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.bus-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}

.bus-hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 600;
}

.bus-hero__trust i {
  color: #5ce0b7;
  font-size: 1.15rem;
}

.bus-popular-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 36px;
}

.bus-popular-routes__label {
  margin-right: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.bus-popular-routes a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--bus-ease-out);
}

.bus-popular-routes a:active {
  transform: scale(0.97);
}

.bus-search-shell {
  position: relative;
  z-index: 2;
  margin-top: -44px;
}

.bus-filter-card,
.bus-results-header,
.trip-card,
.bus-empty-state {
  border-radius: var(--bus-radius) !important;
  background: var(--bus-surface);
  box-shadow: 0 14px 42px rgba(22, 34, 56, 0.08) !important;
}

.filter-sidebar {
  position: sticky;
  top: 96px;
}

.bus-filter-card .card-body {
  padding: 26px;
}

.bus-filter-heading {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 23px;
}

.bus-filter-heading__icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: var(--bus-blue);
  background: #eef4ff;
  font-size: 1.3rem;
}

.bus-filter-heading .bus-kicker,
.bus-partner-banner .bus-kicker {
  color: var(--bus-blue);
}

.bus-filter-heading h2 {
  margin: 2px 0 0;
  color: var(--bus-ink);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.bus-filter-loading {
  display: none;
  gap: 9px;
  align-items: center;
  margin: -4px 0 15px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--bus-blue-dark);
  background: #eef4ff;
  font-size: 0.78rem;
  font-weight: 700;
}

.htmx-request .bus-filter-loading {
  display: flex;
}

.htmx-request #bus-results {
  opacity: 0.52;
  transition: opacity 180ms ease;
}

.bus-route-picker {
  position: relative;
  padding: 15px;
  border: 1px solid var(--bus-line);
  border-radius: 15px;
  background: #fbfcfe;
}

.bus-field label {
  display: block;
  margin-bottom: 7px;
  color: #4b5568;
  font-size: 0.77rem;
  font-weight: 750;
}

.bus-field small {
  color: #98a2b3;
  font-size: 0.7rem;
}

.bus-select-wrap,
.bus-input-wrap {
  position: relative;
}

.bus-field__icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  color: #8791a5;
  font-size: 1rem;
  pointer-events: none;
  transform: translateY(-50%);
}

.bus-field__icon--origin {
  color: var(--bus-green);
}

.bus-field__icon--destination {
  color: var(--bus-red);
}

.bus-field .form-select,
.bus-field .form-control {
  min-height: 46px;
  border: 1px solid #dfe4ec;
  border-radius: 11px;
  color: var(--bus-ink);
  background-color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.bus-select-wrap .form-select,
.bus-input-wrap .form-control {
  padding-left: 39px;
}

.bus-field .form-select:focus,
.bus-field .form-control:focus {
  border-color: rgba(36, 107, 253, 0.7);
  box-shadow: 0 0 0 3px rgba(36, 107, 253, 0.1);
}

.bus-field .form-select.is-invalid {
  border-color: var(--bus-red);
  background-image: none;
  box-shadow: 0 0 0 3px rgba(223, 59, 73, 0.08);
}

.bus-route-divider {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  gap: 9px;
  align-items: center;
  margin: 8px 0 7px;
}

.bus-route-divider::before,
.bus-route-divider::after {
  border-top: 1px dashed #dce2ec;
  content: "";
}

.bus-swap-button {
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid #d9e0ea;
  border-radius: 9px;
  color: var(--bus-blue);
  background: #fff;
  box-shadow: 0 4px 12px rgba(22, 34, 56, 0.09);
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms var(--bus-ease-out);
}

.bus-swap-button i {
  font-size: 1rem;
}

.bus-swap-button:focus-visible {
  outline: 3px solid rgba(36, 107, 253, 0.18);
  outline-offset: 2px;
}

.bus-swap-button:active {
  transform: scale(0.95);
}

.bus-route-error {
  display: none;
  gap: 6px;
  align-items: center;
  margin-top: 9px;
  color: #c92f3d;
  font-size: 0.75rem;
  font-weight: 650;
}

.bus-route-error.is-visible {
  display: flex;
}

.bus-passenger-counter {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 6px;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
  background: #fff;
}

.bus-passenger-counter button {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--bus-blue);
  background: #eef4ff;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms var(--bus-ease-out);
}

.bus-passenger-counter button:active {
  transform: scale(0.94);
}

.bus-passenger-counter > div {
  display: flex;
  flex: 1 1 auto;
  align-items: baseline;
  justify-content: center;
}

.bus-passenger-counter input {
  width: 26px;
  padding: 0;
  border: 0;
  color: var(--bus-ink);
  background: transparent;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  appearance: textfield;
}

.bus-passenger-counter input:focus {
  outline: none;
}

.bus-passenger-counter span {
  color: var(--bus-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.bus-search-button {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  margin-top: 21px;
  padding: 0 17px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--bus-blue), #1557d7);
  box-shadow: 0 10px 24px rgba(36, 107, 253, 0.22);
  font-size: 0.9rem;
  font-weight: 800;
  transition: box-shadow 160ms ease, transform 160ms var(--bus-ease-out);
}

.bus-search-button:active {
  transform: scale(0.98);
}

.bus-reset-link {
  display: block;
  margin-top: 13px;
  color: var(--bus-muted);
  font-size: 0.78rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.bus-quick-filter {
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid #edf0f4;
}

.bus-quick-filter > button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  color: #4f5c70;
  background: transparent;
  font-size: 0.79rem;
  font-weight: 700;
}

.bus-results-header .card-body {
  padding: 21px 23px;
}

.bus-results-header h2 {
  margin: 0;
  color: var(--bus-ink);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.bus-results-header p {
  margin: 5px 0 0;
  color: var(--bus-muted);
  font-size: 0.82rem;
}

.bus-results-header .form-select {
  flex: 0 0 210px;
  width: 210px;
  max-width: 100%;
  min-height: 40px;
  border-color: var(--bus-line);
  border-radius: 10px;
  color: #485469;
  font-size: 0.78rem;
  font-weight: 650;
  box-shadow: none;
}

.bus-live-status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-left: 8px;
  color: var(--bus-green);
  font-size: 0.72rem;
  font-weight: 700;
}

.bus-live-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.trip-card {
  overflow: hidden;
  margin-bottom: 16px !important;
  border: 1px solid rgba(225, 230, 239, 0.9) !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms var(--bus-ease-out);
}

.trip-card .card-body {
  padding: 0;
}

.trip-card__main {
  padding: 22px;
}

.trip-card__operator {
  display: flex;
  gap: 11px;
  align-items: center;
}

.trip-card__bus-photo {
  display: grid;
  flex: 0 0 64px;
  width: 64px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  color: var(--bus-blue);
  background: #f3f7ff;
  font-size: 1.35rem;
}

.trip-card__bus-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trip-card__bus-photo.is-empty {
  background: linear-gradient(145deg, #f7f9fd, #edf3ff);
}

.trip-card__operator strong,
.trip-card__operator small {
  display: block;
}

.trip-card__operator strong {
  overflow: hidden;
  color: var(--bus-ink);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-card__operator small {
  margin-top: 3px;
  color: var(--bus-muted);
  font-size: 0.7rem;
}

.trip-type-badge {
  display: inline-flex;
  margin-top: 6px;
  padding: 4px 7px;
  border-radius: 6px;
  color: #576277;
  background: #f0f3f7;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trip-card__schedule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.trip-time {
  color: var(--bus-ink);
  font-size: 1.34rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.trip-place {
  overflow: hidden;
  margin-top: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-city {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 800;
}

.trip-place--origin .trip-city {
  color: #1557d7;
  background: #eaf1ff;
}

.trip-place--destination .trip-city {
  color: #c92f40;
  background: #fff0f2;
}

.trip-station {
  color: var(--bus-muted);
}

.trip-date {
  display: block;
  margin-top: 4px;
  color: var(--bus-blue-dark);
  font-size: 0.67rem;
  font-weight: 700;
}

.trip-line {
  position: relative;
  height: 2px;
  background: #dce3ed;
}

.trip-line::before,
.trip-line::after {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--bus-blue);
  border-radius: 50%;
  background: #fff;
  content: "";
  transform: translateY(-50%);
}

.trip-line::before {
  left: -1px;
}

.trip-line::after {
  right: -1px;
  border-color: var(--bus-red);
}

.trip-duration {
  display: block;
  margin-top: 8px;
  color: #8b95a7;
  font-size: 0.65rem;
  font-weight: 650;
  text-align: center;
}

.trip-card__pricing {
  text-align: right;
}

.trip-card__pricing strong {
  display: block;
  color: var(--bus-ink);
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.trip-card__pricing small {
  color: var(--bus-muted);
  font-size: 0.68rem;
}

.trip-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf0f4;
}

.trip-card__meta > span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 7px;
  color: #5d687b;
  background: #f5f7fa;
  font-size: 0.68rem;
  font-weight: 650;
}

.trip-seat-availability {
  margin-left: auto;
  color: var(--bus-green) !important;
  background: #eaf9f3 !important;
}

.trip-seat-availability.is-low {
  color: #c33c47 !important;
  background: #fff0f1 !important;
}

.trip-card__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 22px;
  border-top: 1px solid #edf0f4;
  background: #fbfcfe;
}

.trip-card__actions .btn {
  min-height: 40px;
  padding-right: 14px;
  padding-left: 14px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 750;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms var(--bus-ease-out);
}

.trip-card__actions .btn:active {
  transform: scale(0.97);
}

.trip-card__actions .btn-primary {
  flex: 0 0 auto;
  min-width: 142px;
  border-color: var(--bus-blue);
  background: var(--bus-blue);
}

.trip-card__actions .btn-outline-primary {
  color: var(--bus-blue);
  border-color: #cfdaf0;
}

.trip-card__expand {
  padding: 2px 22px 22px;
}

.trip-gallery {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #edf0f4;
}

.trip-gallery__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.trip-gallery__heading h6 {
  margin: 0;
  color: var(--bus-ink);
  font-size: 0.82rem;
  font-weight: 750;
}

.trip-gallery__heading span {
  color: var(--bus-muted);
  font-size: 0.68rem;
}

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

.trip-gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid #e3e8f0;
  border-radius: 10px;
  background: #f3f6fb;
}

.trip-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-bus {
  position: relative;
  padding-left: 20px;
}

.timeline-bus::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 2px;
  background: var(--bus-line);
  content: "";
}

.timeline-item-bus {
  position: relative;
}

.timeline-marker-bus {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bus-line);
}

.bus-empty-state .card-body {
  padding: 68px 28px;
}

.bus-empty-state__icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 20px;
  color: #73809a;
  background: #eef2f7;
  font-size: 2rem;
}

.bus-empty-state h3 {
  color: var(--bus-ink);
  font-size: 1.18rem;
  font-weight: 800;
}

.bus-empty-state p {
  max-width: 460px;
  margin-right: auto;
  margin-left: auto;
  color: var(--bus-muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.bus-confidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 58px;
}

.bus-confidence-grid article {
  display: flex;
  gap: 14px;
  padding: 22px;
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.bus-confidence-grid article > span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--bus-blue);
  background: #eaf1ff;
  font-size: 1.2rem;
}

.bus-confidence-grid strong {
  color: var(--bus-ink);
  font-size: 0.86rem;
}

.bus-confidence-grid p {
  margin: 5px 0 0;
  color: var(--bus-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.bus-partner-banner {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 34px 38px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 25%, rgba(50, 116, 255, 0.34), transparent 28%),
    var(--bus-navy);
}

.bus-partner-banner > div {
  max-width: 700px;
}

.bus-marketplace .bus-partner-banner h2 {
  margin: 7px 0 8px;
  color: #fff !important;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.bus-partner-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
}

.bus-partner-banner > a {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  color: #fff;
  background: var(--bus-blue);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms var(--bus-ease-out);
}

.bus-partner-banner > a:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .bus-popular-routes a:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
  }

  .bus-swap-button:hover {
    border-color: var(--bus-blue);
    color: #fff;
    background: var(--bus-blue);
    transform: scale(1.04);
  }

  .bus-passenger-counter button:hover {
    color: #fff;
    background: var(--bus-blue);
  }

  .bus-search-button:hover {
    box-shadow: 0 14px 28px rgba(36, 107, 253, 0.3);
    transform: translateY(-1px);
  }

  .trip-card:hover {
    border-color: rgba(36, 107, 253, 0.25) !important;
    box-shadow: 0 18px 48px rgba(22, 34, 56, 0.12) !important;
    transform: translateY(-2px);
  }

  .bus-partner-banner > a:hover {
    color: #fff;
    background: var(--bus-blue-dark);
    transform: translateY(-1px);
  }
}

@media (max-width: 1199.98px) {
  .bus-hero {
    padding-top: 54px;
  }
}

@media (max-width: 991.98px) {
  .filter-sidebar {
    position: static;
  }

  .bus-search-shell {
    margin-top: -36px;
  }

  .bus-confidence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .bus-marketplace {
    padding-bottom: 38px;
  }

  .bus-hero {
    padding: 42px 0 64px;
  }

  /* Sur mobile le décor passe derrière le texte : on l'atténue et on le
     fait descendre plutôt que de le zoomer en "cover". */
  .bus-hero::before {
    opacity: 0.55;
    background-position: right bottom;
    background-size: 200% auto;
    mask-image: linear-gradient(to bottom, transparent 10%, #000 65%);
  }

  .bus-hero h1 {
    font-size: 2.45rem;
  }

  .bus-hero__trust {
    gap: 12px 18px;
    margin-top: 22px;
  }

  .bus-popular-routes {
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-right: -12px;
    padding-right: 12px;
    scrollbar-width: none;
  }

  .bus-popular-routes::-webkit-scrollbar {
    display: none;
  }

  .bus-popular-routes a {
    flex: 0 0 auto;
  }

  .bus-filter-card .card-body {
    padding: 21px;
  }

  .bus-results-header .card-body {
    padding: 18px;
  }

  .bus-results-header .d-flex {
    gap: 12px;
    align-items: flex-start !important;
  }

  .bus-results-header .form-select {
    flex-basis: 154px;
    width: 154px;
    max-width: 154px;
  }

  .trip-card__main {
    padding: 19px;
  }

  .trip-card__operator {
    margin-bottom: 20px;
  }

  .trip-card__schedule {
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
  }

  .trip-card__pricing {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 19px;
    padding-top: 15px;
    border-top: 1px solid #edf0f4;
    text-align: left;
  }

  .trip-card__meta {
    align-items: stretch;
  }

  .trip-seat-availability {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .trip-card__actions {
    padding: 13px 19px;
  }

  .trip-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bus-confidence-grid {
    margin-top: 38px;
  }

  .bus-partner-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }
}

@media (max-width: 419.98px) {
  .bus-filter-card .card-body {
    padding: 17px;
  }

  .bus-route-picker {
    padding: 12px;
  }

  .trip-card__schedule {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    gap: 8px;
  }

  .trip-time {
    font-size: 1.15rem;
  }

  .trip-place {
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bus-popular-routes a,
  .bus-swap-button,
  .bus-passenger-counter button,
  .bus-search-button,
  .trip-card,
  .trip-card__actions .btn,
  .bus-partner-banner > a {
    transition-duration: 0.01ms;
  }

  .bus-popular-routes a:hover,
  .bus-swap-button:hover,
  .bus-search-button:hover,
  .trip-card:hover,
  .bus-partner-banner > a:hover {
    transform: none;
  }
}
