.ttt-booking-journey {
  --ttt-journey-border: #c9d4dc;
  --ttt-journey-ink: #17212b;
  --ttt-journey-muted: #546676;
  --ttt-journey-panel: #f7fafb;
  --ttt-journey-rail: #c9d4dc;
  --ttt-journey-green: #226b45;
  --ttt-journey-green-soft: #eef8f1;
  --ttt-journey-blue: #16456a;
  --ttt-journey-blue-soft: #edf5fb;
  --ttt-journey-copper: #a35317;
  --ttt-journey-copper-soft: #fff3e9;
  --ttt-journey-focus: #005fcc;
  color: var(--ttt-journey-ink);
}

.ttt-booking-journey *,
.ttt-booking-journey *::before,
.ttt-booking-journey *::after {
  box-sizing: border-box;
}

.ttt-booking-journey__intro {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  max-width: 62rem;
}

.ttt-booking-journey__intro h2,
.ttt-booking-journey__intro h3 {
  color: var(--ttt-journey-ink);
  font-size: clamp(1.35rem, 1.12rem + 0.85vw, 2rem);
  line-height: 1.15;
  margin: 0;
}

.ttt-booking-journey__intro p,
.ttt-booking-journey__note,
.ttt-booking-journey__empty,
.ttt-booking-journey__meta {
  color: var(--ttt-journey-muted);
  margin: 0;
}

.ttt-booking-journey__progress {
  --ttt-journey-station-size: 1.45rem;
  display: grid;
  gap: 0.55rem;
  margin: 1.45rem 0 1.25rem;
  position: relative;
}

.ttt-booking-journey__progress-summary {
  display: none;
  margin: 0;
  color: var(--ttt-journey-blue);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.25;
}

.ttt-booking-journey__route {
  height: 2.35rem;
  inset: 0 0 auto;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.ttt-booking-journey__route::before,
.ttt-booking-journey__route span {
  border-radius: 999px;
  content: "";
  height: 0.32rem;
  left: var(--ttt-journey-route-start, 12.5%);
  position: absolute;
  top: 1rem;
}

.ttt-booking-journey__route::before {
  width: var(--ttt-journey-route-length, 75%);
  background: var(--ttt-journey-rail);
}

.ttt-booking-journey__route span {
  width: var(--ttt-journey-route-complete, 0%);
  background: linear-gradient(90deg, var(--ttt-journey-green), var(--ttt-journey-copper));
}

.ttt-booking-journey__trolley {
  background: #ffffff;
  border: 1px solid var(--ttt-journey-border);
  border-radius: 999px;
  color: var(--ttt-journey-blue);
  fill: #f8fcff;
  height: 2rem;
  left: var(--ttt-journey-station-position, 12.5%);
  padding: 0.22rem;
  position: absolute;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  top: -1.65rem;
  transform: translateX(-50%);
  transition: left 220ms ease;
  width: 3rem;
  z-index: 3;
}

.ttt-booking-journey__steps {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  position: relative;
  padding: 0;
  z-index: 1;
}

.ttt-booking-journey__steps li {
  align-items: start;
  color: var(--ttt-journey-muted);
  display: grid;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 0.48rem;
  justify-items: center;
  min-width: 0;
  padding: 0;
  text-align: center;
}

.ttt-booking-journey__station {
  width: var(--ttt-journey-station-size);
  height: var(--ttt-journey-station-size);
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 0.45rem;
  background: #ffffff;
  box-shadow: 0 0 0 4px #ffffff;
  color: var(--ttt-journey-muted);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.ttt-booking-journey__step-label {
  min-width: 0;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}

.ttt-booking-journey__state-text {
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

.ttt-booking-journey__steps li[data-journey-state='complete'] .ttt-booking-journey__station {
  border-color: var(--ttt-journey-green);
  background: var(--ttt-journey-green);
  color: #ffffff;
}

.ttt-booking-journey__steps li[data-journey-state='complete'] {
  color: var(--ttt-journey-green);
}

.ttt-booking-journey__steps li[data-journey-state='current'] .ttt-booking-journey__station {
  border-color: var(--ttt-journey-blue);
  background: var(--ttt-journey-blue);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--ttt-journey-blue-soft), 0 0 0 7px #ffffff;
}

.ttt-booking-journey__steps li[data-journey-state='current'] {
  color: var(--ttt-journey-blue);
  font-weight: 900;
}

.ttt-booking-journey__layout {
  align-items: start;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr);
}

.ttt-booking-journey__workspace {
  align-items: start;
  display: grid;
  gap: 1.35rem;
  grid-template-areas: "date controls itinerary";
  grid-template-columns: minmax(20rem, 1fr) minmax(21rem, 1.05fr) minmax(18rem, 0.86fr);
}

.ttt-booking-journey--single .ttt-booking-journey__decision--date {
  grid-area: date;
}

.ttt-booking-journey--single .ttt-booking-journey__main--decisions {
  grid-area: controls;
}

.ttt-booking-journey--single .ttt-booking-journey__itinerary {
  grid-area: itinerary;
}

.ttt-booking-journey__main,
.ttt-booking-journey__itinerary,
.ttt-booking-journey__decision,
.ttt-booking-journey__preview,
.ttt-booking-journey__mobile-summary {
  border: 1px solid var(--ttt-journey-border);
  border-radius: 8px;
  background: #ffffff;
}

.ttt-booking-journey__main,
.ttt-booking-journey__itinerary {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.ttt-booking-journey__decision {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.ttt-booking-journey--single .ttt-booking-journey__decision--date,
.ttt-booking-journey--single .ttt-booking-journey__main--decisions,
.ttt-booking-journey--single .ttt-booking-journey__itinerary {
  box-shadow: 0 14px 34px rgba(23, 33, 43, 0.07);
}

.ttt-booking-journey--single .ttt-booking-journey__main--decisions .ttt-booking-journey__decision {
  border: 0;
  background: transparent;
  padding: 0;
}

.ttt-booking-journey--single .ttt-booking-journey__main--decisions .ttt-booking-journey__decision + .ttt-booking-journey__decision {
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 33, 43, 0.12);
}

.ttt-booking-journey__decision h3,
.ttt-booking-journey__decision h4,
.ttt-booking-journey__itinerary h3,
.ttt-booking-journey__itinerary h4 {
  margin: 0;
}

.ttt-booking-journey__preview {
  background: var(--ttt-journey-copper-soft);
  border-color: #dfb68d;
  color: #5d2a07;
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
}

.ttt-booking-journey__preview strong {
  display: block;
}

.ttt-booking-journey__upcoming {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
}

.ttt-booking-journey__option,
.ttt-booking-journey__departure,
.ttt-booking-journey__guest-row {
  border: 1px solid rgba(201, 212, 220, 0.85);
  border-radius: 6px;
  background: #ffffff;
}

.ttt-booking-journey__option,
.ttt-booking-journey__departure {
  color: var(--ttt-journey-ink);
  cursor: pointer;
  display: grid;
  gap: 0.28rem;
  min-height: 5rem;
  padding: 0.8rem;
  border-left-width: 4px;
  border-left-color: #006b70;
  text-align: left;
  width: 100%;
}

.ttt-booking-journey__option[aria-pressed='true'],
.ttt-booking-journey__departure[aria-pressed='true'] {
  background: var(--ttt-journey-green-soft);
  border-color: var(--ttt-journey-green);
  box-shadow: inset 0 -3px 0 var(--ttt-journey-green);
}

.ttt-booking-journey__option:focus-visible,
.ttt-booking-journey__departure:focus-visible,
.ttt-booking-journey__quantity button:focus-visible,
.ttt-booking-journey__toggle:focus-visible,
.ttt-booking-journey__mobile-summary button:focus-visible {
  outline: 3px solid var(--ttt-journey-focus);
  outline-offset: 2px;
}

.ttt-booking-journey__option strong,
.ttt-booking-journey__departure strong {
  font-size: 1rem;
}

.ttt-booking-journey__option span,
.ttt-booking-journey__departure span {
  color: var(--ttt-journey-muted);
}

.ttt-booking-journey__option-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ttt-booking-journey__toggle {
  align-self: start;
  background: #ffffff;
  border: 1px solid var(--ttt-journey-blue);
  border-radius: 6px;
  color: var(--ttt-journey-blue);
  cursor: pointer;
  font-weight: 700;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
}

.ttt-booking-journey__guest-list {
  display: grid;
  gap: 0.7rem;
}

.ttt-booking-journey__guest-row {
  align-items: center;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.75rem;
}

.ttt-booking-journey--single .ttt-booking-journey__guest-row {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  padding-right: 0;
  padding-left: 0;
}

.ttt-booking-journey__guest-row span {
  display: block;
}

.ttt-booking-journey__quantity {
  align-items: center;
  display: inline-grid;
  gap: 0.4rem;
  grid-template-columns: 2.5rem minmax(2.2rem, auto) 2.5rem;
}

.ttt-booking-journey__quantity button {
  background: #ffffff;
  border: 1px solid var(--ttt-journey-border);
  border-radius: 999px;
  color: var(--ttt-journey-ink);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  height: 2.5rem;
  line-height: 1;
  width: 2.5rem;
}

.ttt-booking-journey__quantity button:disabled {
  color: #8793a0;
  cursor: not-allowed;
}

.ttt-booking-journey__quantity output {
  font-weight: 800;
  min-width: 2.2rem;
  text-align: center;
}

.ttt-booking-journey__itinerary {
  position: sticky;
  top: 1rem;
}

.ttt-booking-journey__itinerary dl {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.ttt-booking-journey__itinerary dl > div {
  display: grid;
  gap: 0.2rem;
}

.ttt-booking-journey__itinerary dt {
  color: var(--ttt-journey-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ttt-booking-journey__itinerary dd {
  display: grid;
  gap: 0.28rem;
  margin: 0;
}

.ttt-booking-journey__price-status {
  color: var(--ttt-journey-ink);
  font-size: 1.05rem;
}

.ttt-booking-journey__itinerary .ttt-booking-journey__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ttt-booking-journey__itinerary .ttt-booking-journey__actions .ttt-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ttt-booking-journey__itinerary .ttt-booking-journey__actions .ttt-button--secondary {
  border-color: var(--ttt-journey-blue);
  background: #ffffff;
  color: var(--ttt-journey-blue) !important;
}

.ttt-booking-journey__mobile-summary {
  bottom: 0.5rem;
  box-shadow: 0 8px 26px rgba(23, 33, 43, 0.16);
  display: none;
  gap: 0.65rem;
  left: 0.75rem;
  padding: 0.7rem;
  position: sticky;
  right: 0.75rem;
  z-index: 10;
}

@media (max-width: 1180px) {
  .ttt-booking-journey__layout {
    grid-template-columns: 1fr;
  }

  .ttt-booking-journey__workspace {
    grid-template-areas:
      "date controls"
      "itinerary itinerary";
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .ttt-booking-journey__itinerary {
    position: static;
  }
}

@media (max-width: 900px) {
  .ttt-booking-journey__workspace {
    grid-template-areas:
      "date"
      "controls"
      "itinerary";
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .ttt-booking-journey__steps {
    gap: 0;
  }

  .ttt-booking-journey__trolley {
    display: none;
  }

  .ttt-booking-journey__steps li {
    font-size: 0.78rem;
    gap: 0.36rem;
    padding: 0 0.1rem;
    text-align: center;
  }

  .ttt-booking-journey__station {
    --ttt-journey-station-size: 1.28rem;
    border-radius: 0.38rem;
  }

  .ttt-booking-journey__layout,
  .ttt-booking-journey__workspace,
  .ttt-booking-journey__main,
  .ttt-booking-journey__decision,
  .ttt-booking-journey__itinerary {
    gap: 0.85rem;
  }

  .ttt-booking-journey__main,
  .ttt-booking-journey__decision,
  .ttt-booking-journey__itinerary {
    padding: 0.85rem;
  }

  .ttt-booking-journey__guest-row {
    grid-template-columns: 1fr;
  }

  .ttt-booking-journey__itinerary .ttt-booking-journey__actions .ttt-button {
    width: 100%;
  }

  .ttt-booking-journey__quantity {
    justify-self: start;
  }

  .ttt-booking-journey__mobile-summary {
    display: grid;
  }
}

@media (max-width: 520px) {
  .ttt-booking-journey__progress {
    gap: 0.45rem;
    margin-top: 0.45rem;
  }

  .ttt-booking-journey__progress-summary {
    display: block;
  }

  .ttt-booking-journey__route::before,
  .ttt-booking-journey__route span {
    top: 0.73rem;
  }

  .ttt-booking-journey__route {
    height: 1.55rem;
    top: 1.65rem;
  }

  .ttt-booking-journey__steps {
    min-height: 1.65rem;
  }

  .ttt-booking-journey__steps li {
    gap: 0;
  }

  .ttt-booking-journey__station {
    --ttt-journey-station-size: 1.18rem;
    font-size: 0.72rem;
  }

  .ttt-booking-journey__step-label {
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ttt-booking-journey__trolley {
    transition: none;
  }
}

.ttt-booking-journey--dedicated-tour .ttt-booking-journey__workspace {
  grid-template-areas:
    "date controls"
    "itinerary itinerary";
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
}

.ttt-booking-journey--dedicated-tour .ttt-booking-journey__decision--date,
.ttt-booking-journey--dedicated-tour .ttt-booking-journey__main--decisions,
.ttt-booking-journey--dedicated-tour .ttt-booking-journey__itinerary {
  min-width: 0;
}

.ttt-booking-journey--dedicated-tour .ttt-booking-journey__itinerary {
  position: static;
}

@media (max-width: 859px) {
  .ttt-booking-journey--dedicated-tour .ttt-booking-journey__workspace {
    grid-template-areas:
      "date"
      "controls"
      "itinerary";
    grid-template-columns: minmax(0, 1fr);
  }
}
