@media (max-width: 767px) {
  body.yz-booking-site.page-booking-schedule .yz-booking-mobile-nav,
  body.yz-booking-site.page-booking-schedule[class] .yz-booking-mobile-nav,
  .page-booking-schedule .yz-booking-mobile-nav {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .page-booking-schedule .yz-schedule-main,
  body.page-booking-schedule {
    padding-bottom: 64px !important;
    background: #f1f4f7 !important;
  }

  .page-booking-schedule .yz-schedule-day-body {
    gap: 12px !important;
    width: calc(100% - 10px) !important;
    margin: 0 auto !important;
    max-width: none !important;
    padding: 20px 0 18px !important;
  }

  .page-booking-schedule .yz-schedule-ticket-card {
    grid-template-columns: 78px minmax(0, 1fr) 78px !important;
    grid-template-rows: 28px 76px auto auto !important;
    min-height: 184px !important;
    padding: 13px 14px 12px !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 18px rgba(28, 62, 99, 0.08) !important;
  }

  .page-booking-schedule .yz-schedule-trip-type {
    height: 22px !important;
    min-width: 44px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
  }

  .page-booking-schedule .yz-schedule-arrive-date {
    max-width: 84px !important;
    height: 22px !important;
    padding: 0 7px !important;
    font-size: 11px !important;
    line-height: 22px !important;
  }

  .page-booking-schedule .yz-schedule-ticket-time strong {
    font-size: 22px !important;
    line-height: 1.1 !important;
  }

  .page-booking-schedule .yz-schedule-ticket-time small {
    margin-top: 4px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  .page-booking-schedule .yz-schedule-ticket-mid {
    height: 48px !important;
  }

  .page-booking-schedule .yz-schedule-ticket-mid span {
    height: 22px !important;
    min-width: 52px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }

  .page-booking-schedule .yz-schedule-ticket-info {
    padding-top: 12px !important;
  }

  .page-booking-schedule .yz-schedule-ticket-info b {
    font-size: 19px !important;
  }

  .page-booking-schedule .yz-schedule-ticket-info em {
    margin-top: 7px !important;
    font-size: 23px !important;
  }

  .page-booking-schedule .yz-schedule-day-cta {
    width: 88px !important;
    height: 40px !important;
    font-size: 13px !important;
    box-shadow: 0 8px 14px rgba(255, 105, 52, 0.26) !important;
  }

  .page-booking-schedule .yz-schedule-ticket-scenic {
    margin-top: 11px !important;
    padding: 9px 11px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  body.page-booking-schedule .yz-schedule-ticket-card {
    display: grid !important;
    grid-template-columns: 86px minmax(0, 1fr) 86px !important;
    grid-template-rows: 28px 70px auto auto auto !important;
    grid-template-areas:
      "type . arrive"
      "start mid end"
      "info info cta"
      "info info cta"
      "scenic scenic scenic" !important;
    column-gap: 8px !important;
    row-gap: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 10px 14px 12px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }

  body.page-booking-schedule .yz-schedule-trip-type {
    grid-area: type !important;
    align-self: start !important;
    justify-self: start !important;
    width: auto !important;
    min-width: 48px !important;
    height: 22px !important;
    margin: 0 !important;
    line-height: 22px !important;
  }

  body.page-booking-schedule .yz-schedule-arrive-date {
    grid-area: arrive !important;
    align-self: start !important;
    justify-self: end !important;
    width: auto !important;
    max-width: 86px !important;
    height: 22px !important;
    margin: 0 !important;
    line-height: 22px !important;
    text-align: center !important;
  }

  body.page-booking-schedule .yz-schedule-route-cell {
    grid-area: start !important;
  }

  body.page-booking-schedule .yz-schedule-duration-cell {
    grid-area: end !important;
  }

  body.page-booking-schedule .yz-schedule-ticket-time {
    position: static !important;
    align-self: center !important;
    justify-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    height: 64px !important;
    margin: 0 !important;
    text-align: center !important;
    transform: none !important;
  }

  body.page-booking-schedule .yz-schedule-ticket-card > .yz-schedule-route-cell,
  body.page-booking-schedule .yz-schedule-ticket-card > .yz-schedule-ticket-time:first-of-type {
    grid-column: 1 !important;
    grid-row: 2 !important;
    grid-area: start !important;
  }

  body.page-booking-schedule .yz-schedule-ticket-card > .yz-schedule-ticket-mid {
    grid-column: 2 !important;
    grid-row: 2 !important;
    grid-area: mid !important;
  }

  body.page-booking-schedule .yz-schedule-ticket-card > .yz-schedule-duration-cell,
  body.page-booking-schedule .yz-schedule-ticket-card > .yz-schedule-ticket-time:last-of-type {
    grid-column: 3 !important;
    grid-row: 2 !important;
    grid-area: end !important;
  }

  body.page-booking-schedule .yz-schedule-ticket-time strong {
    display: block !important;
    font-size: 24px !important;
    line-height: 28px !important;
  }

  body.page-booking-schedule .yz-schedule-ticket-time small {
    display: block !important;
    margin-top: 4px !important;
    font-size: 13px !important;
    line-height: 16px !important;
    white-space: normal !important;
  }

  body.page-booking-schedule .yz-schedule-ticket-mid {
    grid-area: mid !important;
    align-self: center !important;
    justify-self: stretch !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 0 8px !important;
  }

  body.page-booking-schedule .yz-schedule-ticket-mid::before,
  body.page-booking-schedule .yz-schedule-ticket-mid::after {
    top: 50% !important;
  }

  body.page-booking-schedule .yz-schedule-ticket-info {
    grid-area: info !important;
    align-self: start !important;
    min-width: 0 !important;
    padding-top: 9px !important;
    border-top: 1px dashed #dfe5ed !important;
  }

  body.page-booking-schedule .yz-schedule-day-cta {
    grid-area: cta !important;
    align-self: center !important;
    justify-self: end !important;
    width: 88px !important;
    height: 40px !important;
    margin: 10px 0 0 !important;
    line-height: 40px !important;
    border-radius: 999px !important;
  }

  body.page-booking-schedule .yz-schedule-ticket-scenic {
    grid-area: scenic !important;
    width: 100% !important;
    margin: 10px 0 0 !important;
    box-sizing: border-box !important;
  }

  body.page-booking-schedule .yz-schedule-ticket-scenic span::before {
    content: "●" !important;
    display: inline-block !important;
    margin-right: 4px !important;
    color: #ff6334 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    transform: translateY(-1px) !important;
  }
}

@media (max-width: 767px) {
  /* Final mobile parity pass: reference cards sit 15px from each edge on 393px screens. */
  body.page-booking-schedule .yz-booking-section,
  body.page-booking-schedule .yz-schedule-results-shell,
  body.page-booking-schedule .yz-schedule-results-main {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.page-booking-schedule .yz-schedule-day-body {
    width: calc(100vw - 30px) !important;
    max-width: 363px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 14px !important;
    padding-top: 20px !important;
    transform: translateX(-10px) !important;
  }

  body.page-booking-schedule .yz-schedule-ticket-card {
    width: 100% !important;
    min-height: 258px !important;
    padding: 12px 14px 14px !important;
    grid-template-columns: 88px minmax(0, 1fr) 88px !important;
    grid-template-rows: 28px 74px 54px auto !important;
    column-gap: 8px !important;
  }

  body.page-booking-schedule .yz-schedule-ticket-info {
    padding-top: 12px !important;
  }

  body.page-booking-schedule .yz-schedule-ticket-scenic {
    margin-top: 12px !important;
    padding: 10px 11px !important;
    line-height: 1.55 !important;
  }
}
