.journey,
.journey__nav {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.journey__track {
  --journey-cards: 1;
  --journey-gap: 16px;
  position: relative;
  display: flex;
  gap: var(--journey-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: 8px;
}
.journey__track::-webkit-scrollbar { display: none; }
.journey__track .journey__slide {
  flex: 0 0 calc((100% - (var(--journey-cards) - 1) * var(--journey-gap)) / var(--journey-cards));
  display: block;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-radius: 8px;
}
.journey__comparison {
  position: relative;
  align-self: start;
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  background: var(--sage-100);
  isolation: isolate;
  user-select: none;
}
.journey__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.journey__image--before { clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }
.journey__badge {
  position: absolute;
  bottom: 1rem;
  z-index: 1;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  background: rgba(15, 42, 31, 0.82);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  pointer-events: none;
}
.journey__badge--before { left: 1rem; }
.journey__badge--after { right: 1rem; }
.journey__divider {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--reveal);
  width: 2px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 2px rgba(15, 42, 31, 0.35);
  pointer-events: none;
}
.journey__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--bronze-text);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 42, 31, 0.18);
}
.journey__handle::after {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: var(--bronze-text);
}
.journey__range {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.journey__range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 0; height: 0; }
.journey__range::-moz-range-thumb { width: 0; height: 0; border: 0; }
.journey__comparison:has(.journey__range:focus-visible) .journey__handle {
  outline: 3px solid var(--forest-800);
  outline-offset: 4px;
}
.journey__nav { display: block; }
.journey__tabs { display: flex; justify-content: center; gap: 2px; padding: 0; }
.journey__dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.journey__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--forest-500); opacity: 0.35; }
.journey__dot.is-active::before { background: var(--forest-900); opacity: 1; }
.journey__dot:focus-visible { outline: 2px solid var(--forest-800); outline-offset: -4px; border-radius: 50%; }
.journey .rotator__arrow { display: grid; place-items: center; z-index: 4; top: 50%; transform: translateY(-50%); }
.journey .rotator__arrow--prev { left: -0.75rem; }
.journey .rotator__arrow--next { right: -0.75rem; }

@media (min-width: 600px) {
  .journey__track { --journey-cards: 2; }
}
@media (min-width: 900px) {
  .journey__track { --journey-cards: 4; --journey-gap: 20px; }
  .journey .rotator__arrow, .journey__nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .journey__track { scroll-behavior: auto; }
}
