

@media only screen and (min-width: 960px) {
  .px-lg-6 {
    padding-right: 2.6rem !important;
    padding-left: 2.6rem !important;
  }
}

@media only screen and (min-width: 1200px) {
  .px-lg-6 {
    padding-right: 8rem !important;
    padding-left: 8rem !important;
  }
}

/* Never apply desktop px-lg-6 padding below lg — was causing mobile horizontal scroll */
@media (max-width: 991.98px) {
  .px-lg-6 {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
}

/*
  Trips safe zone — compact booking shell (~Alibaba-width cards).
  Desktop cap ~64rem so cards stay narrow with clear side margins.
*/
.page-safezone {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .page-safezone {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 992px) {
  .page-safezone {
    max-width: 64rem !important;
    width: 100% !important;
    padding-inline: 1rem;
  }
}

@media (min-width: 1400px) {
  .page-safezone {
    max-width: 64rem !important;
    width: 100% !important;
  }
}

.page-bottom-shell {
  background: transparent;
  border-top: none;
  padding-block: 1.25rem 1.25rem;
}

.page-footer-in-safezone {
  margin-top: 1.25rem;
  width: 100%;
  max-width: 100%;
}

.page-footer-in-safezone > footer {
  padding-inline: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.page-footer-in-safezone > footer > div {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}






.direction-text {
  font-family: font-bold, "tahoma", sans-serif;
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: normal;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 0;
  text-align: right;
}

/* Only at large screens — do not set base 8rem (overflows phones) */
@media (min-width: 992px) {
  .px-lg-6 {
    padding-right: 2.6rem;
    padding-left: 2.6rem;
  }
}

@media (min-width: 1200px) {
  .px-lg-6 {
    padding-right: 8rem;
    padding-left: 8rem;
  }
}

.timeline_container {
  align-items: center;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-width: none;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* Search bar — centered, no nested-row overflow */
.searchbar {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.searchbar-form {
  width: 100%;
  max-width: 100%;
}

.searchbar-body {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1.25rem 1.5rem !important;
}

.searchbar-body > .row {
  width: 100%;
  max-width: 100%;
  margin-inline: 0 !important;
  justify-content: center;
}

.searchbar-field-label {
  display: block;
  margin-inline-start: 0.75rem;
  margin-bottom: 0.25rem;
  color: #6f6b7d;
}

.searchbar-submit {
  width: 100%;
}

.trips-page-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

.trips-page-shell .landing-hero {
  padding-top: 5.5rem !important;
  padding-bottom: 1.5rem !important;
}

@media (min-width: 992px) {
  .trips-page-shell .landing-hero {
    padding-top: 7.5rem !important;
  }
}

.trips-page-shell .landing-hero > .container {
  max-width: 100%;
  box-sizing: border-box;
  padding-top: 10px;
  padding-bottom: 0;
}

@media (max-width: 767.98px) {
  .trips-page-shell .landing-hero {
    padding-inline: 0 !important;
  }

  .trips-page-shell .landing-hero > .container {
    padding-inline: 1rem !important;
    margin-inline: auto;
  }

  .searchbar-body {
    padding: 0.9rem !important;
  }

  .searchbar-body > .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0.5rem;
  }

  .searchbar .inputcel {
    padding-inline: 0 !important;
  }

  .searchbar-field-label {
    margin-inline-start: 0.35rem;
    text-align: start;
  }

  .page-safezone {
    padding-inline: 1rem;
    margin-inline: auto;
  }
}

.timelineday {
  align-items: stretch;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  justify-content: center;
  margin: 0 6px;
  padding: 0 4px;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  width: 88px;
}

.daytext {
  display: block;
  text-align: right;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  unicode-bidi: isolate;
  font-size: 12px;
}

.daypriceconainer {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-top: -6px;
  position: relative;
  width: 100%;
}

.dayprice {
  align-items: center;
  color: #333;
  display: flex;
  font-family: font-bold, "tahoma", sans-serif;
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: normal;
  letter-spacing: 0;
  height: 2rem;
  line-height: 1.5;
  opacity: 1;
  text-align: right;
  transition: all .4s;
  white-space: nowrap;
}

.oredring-title {
  font-family: font-bold, "tahoma", sans-serif;
  font-weight: normal;
  letter-spacing: 0;
}


.dropdown-item {
  font-size: 1rem !important;
  line-height: unset !important;
  cursor: pointer;
}

.origin, .destination, .starttimeselector {
  font-size: 1rem !important;
}

.selected-dayspan {
  background: var(--brand-ink, #000);
  border-radius: 4px 4px 0 0;
  bottom: -8px;
  height: 4px;
  left: 0;
  opacity: 1;
  position: absolute;
  right: 0;
  transition: opacity .2s linear;
}


.dropdown-menu {
  /* Popper needs inset/transform — do not force inset:unset */
  transition: ease-out 300ms all;
}

.searchbar .input-container {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.searchbar .dropdown-menu.origin_location,
.searchbar .dropdown-menu.destination_location {
  width: 100%;
  min-width: 100% !important;
  max-width: 100%;
  max-height: min(42dvh, 280px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 1080;
  border-radius: 0.85rem;
  padding: 0.35rem 0;
  box-shadow:
    0 0.5rem 1.25rem rgba(47, 43, 61, 0.12),
    0 0.125rem 0.35rem rgba(47, 43, 61, 0.06);
}

@media (min-width: 768px) {
  .searchbar .dropdown-menu.origin_location,
  .searchbar .dropdown-menu.destination_location {
    width: max(100%, 22rem);
    min-width: max(100%, 22rem) !important;
    max-width: min(26rem, 42vw);
    max-height: min(40dvh, 18rem) !important;
  }
}

.locationicon {
  position: unset !important;
  display: unset !important;
}

.inputcel {
  padding: 0;
  padding: 0 0.25rem !important;
}

.od-pair-col {
  position: relative;
}

.od-pair {
  position: relative;
  align-items: flex-end;
}

/* Clear center gutter so swap sits between مبدأ / مقصد */
.searchbar .od-pair {
  --od-swap-gutter: 1rem;
}

.searchbar .od-pair > .inputcel:first-child {
  padding-inline-end: calc(var(--od-swap-gutter) / 2) !important;
}

.searchbar .od-pair > .inputcel:last-of-type {
  padding-inline-start: calc(var(--od-swap-gutter) / 2) !important;
}

/* Quiet field-chrome control — matches form-control border/radius, not a CTA.
   Positioned against .od-pair-col (button is a sibling of .od-pair, not inside .row). */
.searchbar .od-pair-col > .od-swap-btn,
.searchbar .od-swap-btn,
.od-swap-btn {
  --od-swap-size: 1.85rem;
  position: absolute !important;
  left: 50%;
  bottom: 0.35rem;
  margin: 0 !important;
  transform: translateX(-50%);
  z-index: 5;
  width: var(--od-swap-size) !important;
  max-width: var(--od-swap-size) !important;
  height: var(--od-swap-size) !important;
  flex: 0 0 var(--od-swap-size) !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid var(--bs-border-color, #d9dee3);
  background: #fff;
  color: var(--bs-secondary-color, #8592a3);
  box-shadow:
    0 0 0 2px #fff,
    0 1px 2px rgba(47, 43, 61, 0.06);
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.searchbar .od-swap-btn:hover,
.searchbar .od-swap-btn:focus-visible,
.od-swap-btn:hover,
.od-swap-btn:focus-visible {
  color: var(--bs-primary);
  border-color: color-mix(in srgb, var(--bs-primary) 45%, var(--bs-border-color, #d9dee3));
  background: color-mix(in srgb, var(--bs-primary) 8%, #fff);
  outline: none;
  box-shadow:
    0 0 0 2px #fff,
    0 2px 6px color-mix(in srgb, var(--bs-primary) 18%, transparent);
}

.od-swap-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--bs-primary) 45%, transparent);
  outline-offset: 2px;
}

.od-swap-btn:active {
  transform: translateX(-50%) scale(0.94);
}

.od-swap-btn.is-swapping .ti {
  animation: od-swap-spin 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.od-swap-btn .ti {
  font-size: 1rem;
  margin: 0;
  line-height: 1;
}

@keyframes od-swap-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(180deg); }
}

@media (prefers-reduced-motion: reduce) {
  .od-swap-btn,
  .od-swap-btn .ti {
    transition: none;
    animation: none !important;
  }
}

@media (min-width: 768px) {
  .searchbar .od-pair {
    --od-swap-gutter: 1rem;
  }
}

:root, [data-bs-theme=light] {
  --bs-border-radius: 1.0rem !important;
}

.card-header {
  border-radius: var(--bs-border-radius);
}


.input-icons i {
  position: absolute;
}

.input-icons {
  width: 100%;
  margin-bottom: 10px;
}

.icon {
  padding: 10px;
  min-width: 40px;
}

.input-container {
  position: relative;
  display: flex;
}

.input-container i {
    position: absolute;
    top: 50%;
    left: 2px;
    transform: translateY(-50%); /* Center icon vertically */
}

.input-container input {
    width: 100%;
    border: 1px solid #ccc;
}

/* ── Clean trip cards (timeline + left action column) ── */
.trip-card {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border: 1px solid #e7e7ec;
  border-radius: 1rem;
  background: #fff;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 10px 22px rgba(0, 0, 0, 0.1),
    0 22px 44px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 0;
}

/* In RTL: body (first) sits on the right; action (last) on the left */
.trip-card-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem 1rem;
}

.trip-card-divider {
  flex: 0 0 auto;
  width: 0;
  align-self: stretch;
  margin-block: 0.75rem;
  border-inline-start: 1.5px dashed #d9dee3;
}

.trip-card-action {
  flex: 0 0 9.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 0.85rem;
  text-align: center;
}

.trip-card-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0;
}

.trip-card-provider {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 4.25rem;
  max-width: 5.5rem;
}

.trip-card-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.trip-card-provider-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  max-width: 100%;
  min-width: 0;
}

.trip-card-provider-name {
  font-size: 0.75rem;
  line-height: 1.3;
  color: #8592a3;
  text-align: center;
  font-family: font-regular, "tahoma", sans-serif;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-card-route {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 0.9fr) minmax(0, 1fr);
  align-items: start;
  column-gap: 0.65rem;
  padding-bottom: 1.1rem; /* room for duration under mid car */
}

.trip-card-endpoint {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.trip-card-endpoint--start {
  text-align: start;
  align-items: flex-start;
}

.trip-card-endpoint--end {
  text-align: end;
  align-items: flex-end;
}

.trip-card-time-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.trip-card-time {
  font-size: 1.55rem;
  font-weight: normal;
  line-height: 1.3;
  letter-spacing: 0;
  color: #2f2b3d;
  font-variant-numeric: tabular-nums;
  font-family: font-bold, "tahoma", sans-serif;
}

.trip-card-place {
  display: block;
  max-width: 100%;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #8592a3;
  font-family: font-regular, "tahoma", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-card-rail {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 7.5rem;
  max-width: 11rem;
  width: 100%;
  padding-top: 0.45rem;
  color: #c5c3ce;
}

.trip-card-rail-track {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  min-height: 1.1rem;
}

.trip-card-rail-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.trip-card-rail-dot--solid {
  background: #c5c3ce;
  border: none;
}

.trip-card-rail-dot--hollow {
  background: #fff;
  border: 1.5px solid #c5c3ce;
}

.trip-card-rail-line {
  flex: 1 1 auto;
  height: 0;
  min-width: 1.1rem;
  border-top: 1.5px dashed #d0d4db;
}

.trip-card-rail-mid {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  padding-inline: 0.2rem;
  margin-top: -0.15rem;
}

.trip-card-rail-icon {
  font-size: 1.15rem;
  line-height: 1;
  color: var(--brand-ink, #000);
}

.trip-card-rail-duration {
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.68rem;
  line-height: 1.2;
  color: #8592a3;
  font-family: font-regular, "tahoma", sans-serif;
}

.trip-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.4rem 0.45rem;
  min-width: 0;
  color: #6f6b7d;
  font-size: 0.8rem;
  font-family: font-regular, "tahoma", sans-serif;
}

.trip-card-car {
  display: inline-flex;
  align-items: center;
  max-width: 12rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid #e4e4ea;
  border-radius: 999px;
  color: #5d596c;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-card-capacity {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid #e4e4ea;
  border-radius: 999px;
  color: #5d596c;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.trip-card-capacity .ti {
  font-size: 0.9rem;
  color: #8592a3;
}

.trip-card-type {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border: 1px solid #e4e4ea;
  border-radius: 999px;
  color: #5d596c;
  font-size: 0.75rem;
  line-height: 1.2;
}

.trip-card-type--private {
  background: #ffffff;
  border-color: #e4e4ea;
  color: #e31c23;
  font-family: font-bold, "tahoma", sans-serif;
  font-size: 0.8rem;
  padding: 0.32rem 0.8rem;
  letter-spacing: 0;
}

.trip-card-vip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.65rem;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  background: #f3f3f3;
  color: #3d3d3d;
  font-size: 0.75rem;
  font-family: font-bold, "tahoma", sans-serif;
  line-height: 1.2;
  white-space: nowrap;
}

.trip-card-vip--inline {
  margin-inline-start: 0.35rem;
  font-size: 0.72rem;
}

.trip-card-prices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  line-height: 1.2;
}

.trip-card-orgprice {
  font-size: 0.7rem;
  color: #a8aaae;
  text-decoration: line-through;
}

.trip-card-price {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 1.05rem;
  font-family: font-bold, "tahoma", sans-serif;
  color: #2f2b3d;
}

.trip-card-price .toman {
  display: inline-flex;
  color: #8592a3;
}

.trip-card-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  white-space: nowrap;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  font-size: 0.85rem;
}

.trip-card-action-note {
  font-size: 0.75rem;
  color: var(--brand-ink, #000);
  font-family: font-regular, "tahoma", sans-serif;
  line-height: 1.2;
}

.trip-card .nextday-badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.45rem;
}

@media (max-width: 575.98px) {
  .trip-card {
    flex-direction: column;
  }

  .trip-card-divider {
    width: auto;
    height: 0;
    margin-block: 0;
    margin-inline: 0.85rem;
    border-inline-start: none;
    border-top: 1.5px dashed #d9dee3;
  }

  .trip-card-action {
    flex-basis: auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.85rem 0.9rem;
    gap: 0.5rem 0.75rem;
  }

  .trip-card-prices {
    align-items: flex-start;
  }

  .trip-card-book {
    width: auto;
    min-width: 7.5rem;
  }

  .trip-card-action-note {
    width: 100%;
    text-align: start;
    order: 3;
  }

  .trip-card-body {
    padding: 0.85rem 0.85rem 0.75rem;
  }

  .trip-card-main {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .trip-card-provider {
    flex-direction: row;
    max-width: none;
    width: 100%;
    justify-content: flex-start;
    gap: 0.55rem;
  }

  .trip-card-provider-meta {
    align-items: flex-start;
  }

  .trip-card-provider-name {
    text-align: start;
    white-space: normal;
  }

  .trip-card-route {
    width: 100%;
    column-gap: 0.4rem;
  }

  .trip-card-time {
    font-size: 1.3rem;
  }

  .trip-card-place {
    font-size: 0.72rem;
  }
}

/* Trip card: start/end HH:mm share one baseline; mid icon always dead-center */
.direction-container {
  width: 100%;
}

.direction-container .startendtime,
.direction-container .direction {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 0.5rem;
  width: 100%;
}

.direction-container .startendtime {
  position: relative;
  align-items: center;
  min-height: 1.9rem;
}

.direction-container .direction {
  align-items: start;
}

.direction-container .route-time-start,
.direction-container .directionval:first-child {
  justify-self: start;
  text-align: start;
}

.direction-container .route-time-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 1.9rem;
  /* keep start column clear of absolutely-centered mid */
  z-index: 1;
}

/* Always center the taxi connector in the time row */
.direction-container .route-time-mid {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  height: 1.7rem;
  white-space: nowrap;
  line-height: 1;
  font-size: 0.85rem;
  color: #a5a3ae;
  padding-inline: 0.25rem;
  pointer-events: none;
}

.direction-container .route-time-mid > span {
  display: block;
  line-height: 1;
  font-size: inherit;
}

.direction-container .route-time-mid .fa-taxiSide {
  display: block;
  height: 1.05em;
  width: auto;
  flex: 0 0 auto;
  margin: 0 !important; /* override Index.cshtml side margins */
}

.direction-container .route-time-end,
.direction-container .directionval:last-child {
  justify-self: end;
  text-align: end;
}

.direction-container .directionval {
  display: block;
  width: 100%;
  max-width: 100%;
  font-family: font-regular, "tahoma", sans-serif;
  font-size: 0.8rem !important;
  font-weight: normal;
  letter-spacing: 0;
  line-height: 1.5 !important;
  color: #6f6b7d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}

@media (max-width: 575.98px) {
  .direction-container .directionval {
    font-size: 0.72rem !important;
  }

  .direction-container .startendtime,
  .direction-container .direction {
    column-gap: 0.35rem;
  }
}

/* Time stays end-aligned; badge floats to its left without shifting the mid */
.direction-container .route-time-end {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  min-height: 1.9rem;
  line-height: 1.1;
  z-index: 1;
}

.direction-container .route-time-end-main {
  display: inline-flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.25rem;
}

.direction-container .route-time-value {
  font-family: font-bold, "tahoma", sans-serif;
  font-size: 1.7rem;
  font-weight: normal;
  letter-spacing: 0;
  line-height: 1.3;
  color: #000;
  font-variant-numeric: tabular-nums;
}

.direction-container .route-time-approx {
  font-size: 0.5rem;
  line-height: 1;
  padding-bottom: 0.3em;
}

.direction-container .nextday-badge {
  position: absolute;
  /* physical left of arrival HH:mm (arrival sits in the left column in RTL) */
  right: 100%;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.direction-container .nextday-spacer {
  display: none;
}

.nextday-badge {
  font-family: font-demi-bold, "tahoma", sans-serif;
  font-size: 0.65rem;
  font-weight: normal;
  letter-spacing: 0;
  line-height: 1.4;
  padding-top: 0.15rem !important;
  padding-bottom: 0.15rem !important;
  padding-left: 0.45rem !important;
  padding-right: 0.45rem !important;
  margin: 0;
  white-space: nowrap;
  width: auto !important;
}

/* Sticky filter sidebar — column stretches with trip list; cards stick inside it */
.trips-results > .page-safezone > .row {
  align-items: stretch;
}

.trips-sidebar {
  /* must stretch to full row height so sticky has room to travel */
  align-self: stretch !important;
  overflow: visible;
}

.trips-sidebar-sticky {
  position: sticky;
  top: 5rem; /* below fixed front navbar */
  z-index: 30;
  max-height: calc(100vh - 5.75rem);
  overflow-x: hidden;
  overflow-y: auto;
  /* Keep drop shadows inside the scrollport (overflow-y:auto clips them) */
  padding: 0.9rem 0.85rem 1.75rem;
  margin-inline: -0.85rem;
  margin-block: -0.35rem 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.trips-sidebar-sticky > .card + .card {
  margin-top: 0.65rem;
}

@media (max-width: 767.98px) {
  .trips-sidebar-sticky {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* SEO bridge — in-flow only (not sticky) */
.trips-sticky-bridge {
  position: static;
  z-index: auto;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.trips-sticky-bridge-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(133, 146, 163, 0.28);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--box-shadow-lift, 0 10px 24px rgba(0, 0, 0, 0.1));
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.trips-sticky-bridge-inner:hover {
  transform: translateY(-1px);
  border-color: rgba(133, 146, 163, 0.45);
  box-shadow: var(--box-shadow-lift, 0 12px 28px rgba(0, 0, 0, 0.12));
  color: inherit;
}

/* Fixed 2-row stack: top = label + CTA, bottom = route — same height every route */
.trips-sticky-bridge-text {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1.85rem auto;
  align-items: center;
  column-gap: 6px;
  row-gap: 6px;
  min-width: 0;
  width: 100%;
  min-height: calc(1.85rem + 6px + 1.35rem);
  text-align: start;
}

.trips-sticky-bridge-label {
  grid-column: 1;
  grid-row: 1;
  font-size: 0.75rem;
  color: var(--brand-ink, #000);
  font-family: font-bold, "tahoma", sans-serif;
  letter-spacing: 0;
  line-height: 1.2;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trips-sticky-bridge-cta {
  grid-column: 2;
  grid-row: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-family: font-regular, "tahoma", sans-serif;
  line-height: 1;
  color: #fff;
  background: #8592a3; /* secondary */
  padding: 0.4rem 0.75rem;
  margin: 0;
  border-radius: 999px;
  white-space: nowrap;
  box-sizing: border-box;
  height: 1.85rem;
  max-width: none;
}

.trips-sticky-bridge-route {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.95rem;
  color: #5d596c;
  font-family: font-bold, "tahoma", sans-serif;
  letter-spacing: 0;
  line-height: 1.35;
  height: 1.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.trips-sticky-bridge-inner:hover .trips-sticky-bridge-cta {
  background: #788397;
}

.trips-sticky-bridge-cta .ti {
  font-size: 0.95rem;
  line-height: 1;
  margin: 0;
}

@media (max-width: 575.98px) {
  .trips-sticky-bridge-inner {
    padding: 0.7rem 0.9rem;
  }

  .trips-sticky-bridge-text {
    grid-template-rows: 1.75rem auto;
    min-height: calc(1.75rem + 6px + 1.25rem);
  }

  .trips-sticky-bridge-cta {
    font-size: 0.68rem;
    padding: 0.35rem 0.65rem;
    height: 1.75rem;
  }

  .trips-sticky-bridge-route {
    font-size: 0.875rem;
    height: 1.25rem;
    line-height: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trips-sticky-bridge-inner {
    transition: none;
  }
  .trips-sticky-bridge-inner:hover {
    transform: none;
  }
}

/* Desktop: searchbar + results share the same compact shell */
@media (min-width: 992px) {
  .trips-page-shell .landing-hero > .container.px-lg-6 {
    max-width: 64rem !important;
    width: 100% !important;
    padding-inline: 1rem !important;
    margin-inline: auto;
  }

  .trips-page-shell .trips-results > .page-safezone,
  .trips-page-shell .page-bottom-shell > .page-safezone {
    max-width: 64rem !important;
    width: 100% !important;
    padding-inline: 1rem;
    margin-inline: auto;
  }
}

.trips-container {
  min-height: 70vh;
  contain: layout;
}

.trip-card {
  content-visibility: auto;
  contain-intrinsic-size: 180px;
}

.sk-chase {
  --sk-size: 40px;
  width: var(--sk-size);
  height: var(--sk-size);
  position: relative;
  animation: sk-chase 2.5s infinite linear both;
}
.sk-chase-dot {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  animation: sk-chase-dot 2s infinite ease-in-out both;
}
.sk-chase-dot:before {
  content: "";
  display: block;
  width: 25%;
  height: 25%;
  background-color: var(--brand-ink, #000);
  border-radius: 100%;
  animation: sk-chase-dot-before 2s infinite ease-in-out both;
}
.sk-chase-dot:nth-child(1) { animation-delay: -1.1s; }
.sk-chase-dot:nth-child(2) { animation-delay: -1s; }
.sk-chase-dot:nth-child(3) { animation-delay: -0.9s; }
.sk-chase-dot:nth-child(4) { animation-delay: -0.8s; }
.sk-chase-dot:nth-child(5) { animation-delay: -0.7s; }
.sk-chase-dot:nth-child(6) { animation-delay: -0.6s; }
.sk-chase-dot:nth-child(1):before { animation-delay: -1.1s; }
.sk-chase-dot:nth-child(2):before { animation-delay: -1s; }
.sk-chase-dot:nth-child(3):before { animation-delay: -0.9s; }
.sk-chase-dot:nth-child(4):before { animation-delay: -0.8s; }
.sk-chase-dot:nth-child(5):before { animation-delay: -0.7s; }
.sk-chase-dot:nth-child(6):before { animation-delay: -0.6s; }
@keyframes sk-chase { 100% { transform: rotate(360deg); } }
@keyframes sk-chase-dot { 80%, 100% { transform: rotate(360deg); } }
@keyframes sk-chase-dot-before {
  50% { transform: scale(0.4); }
  100%, 0% { transform: scale(1); }
}

.trips-page-shell {
  background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%) !important;
  background-attachment: fixed;
  min-height: 100vh;
  animation: none;
}

.trips-page-shell .landing-hero,
.trips-page-shell .trips-results,
.trips-page-shell .page-bottom-shell {
  background: transparent !important;
  background-image: none !important;
}
