/* Ride Detail — Figma node 2467:3890 (402 × 3239) */

.rd__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.rd__col > * { flex-shrink: 0; }
.rd__spacer { height: 95.354px; }   /* status bar 45.354 − 10 + header 60 */
.rd__tail { height: 30px; }         /* frame background below the footer */

/* ---------- header: 60px block, its 80px bar overflows behind the hero ---------- */
.rd-header {
  flex-shrink: 0;
  height: 60px;
  overflow: hidden;
  background: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- hero (mask group 2568:101: 402 × 226 window, image 402 × 281 at −50) ---------- */
.rd-hero {
  position: relative;
  width: 100%;
  height: 226px;
  overflow: hidden;
}
.rd-hero img {
  position: absolute;
  left: 0;
  top: -50px;
  width: 402px;
  height: 281px;
  max-width: none;
  object-fit: cover;
}

/* ---------- route details ---------- */
.rd-details {
  display: flex;
  flex-direction: column;
  gap: 4.5px;
  width: 100%;
  padding: 24px 20px;
}
.rd-details__eyebrow {
  font-weight: 700;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8b2e34;
  white-space: nowrap;
}
.rd-details__title { font-weight: 700; font-size: 30px; line-height: 36px; color: var(--ink); }
.rd-details__stats {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 11.5px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  white-space: nowrap;
}
.rd-details__stats i { display: block; width: 4px; height: 4px; border-radius: 9999px; background: #d1d5db; }
.rd-details__desc { padding-top: 19.5px; font-size: 16px; line-height: 28px; color: var(--grey); }

/* ---------- map card (mask group 2568:426: 358 × 252 window, radius 16) ---------- */
.rd-map { position: relative; width: 358px; height: 252px; }
.rd-map__window {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: var(--border-soft);
  isolation: isolate;
}
.rd-map__window:focus-visible { outline-offset: 3px; }
/* "image 5" box: 359.213 × 567.413 at (−1, −105.144) relative to the window */
.rd-map__imgbox {
  position: absolute;
  left: -1px;
  top: -105.144px;
  width: 359.213px;
  height: 567.413px;
  overflow: hidden;
  pointer-events: none;
}
.rd-map__imgbox img {
  position: absolute;
  left: 0;
  top: -12.46%;
  width: 100%;
  height: 112.49%;
  max-width: none;
  transition: transform 400ms ease;
  transform-origin: 70% 40%;
}
.rd-map__window:hover .rd-map__imgbox img { transform: scale(1.02); }
.rd-pin { position: absolute; width: 17.871px; height: 17.871px; }
.rd-pin img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rd-pin__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: var(--red);
}
.rd-map__label {
  position: absolute;
  width: 70.592px;
  height: 25.02px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 10px;
  line-height: 14px;
  color: var(--dark);
}
.rd-map__label--3 { height: 37.53px; }

.rd-map__open {
  position: absolute;
  left: 116px;           /* 138 on the frame − 22 card inset */
  top: 190.646px;        /* 816 on the frame − 625.354 card top */
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 14px 8px 20px;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  font-size: 12px;
  line-height: 20px;
  color: #1f2937;
  text-align: center;
  white-space: nowrap;
  transition: transform 150ms, box-shadow 150ms;
}
.rd-map__open:hover { transform: translateY(-1px); box-shadow: 0 12px 18px -4px rgba(0, 0, 0, 0.14), 0 5px 8px -4px rgba(0, 0, 0, 0.12); }
.rd-map__open:active { transform: translateY(0); background: #f9fafb; }
.rd-map__open:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.rd-map__open-icon { display: flex; align-items: center; justify-content: center; width: 16px; height: 15.86px; }
.rd-map__open-icon img { transform: rotate(-90deg); transition: transform 150ms; }
.rd-map__open:hover .rd-map__open-icon img { transform: rotate(-90deg) translateY(1px); }

/* ---------- shared section ---------- */
.rd-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 48px 20px 0;
}
.rd-section__title { font-weight: 700; font-size: 24px; line-height: 32px; color: var(--ink); }

/* ---------- the journey ---------- */
.rd-journey { min-height: 440px; }
.rd-journey__text { font-size: 16px; line-height: 28px; color: #374151; }

/* ---------- key stops ---------- */
.rd-stops { background: #fff; }
.rd-stops__list { display: flex; flex-direction: column; gap: 40px; }
.rd-stop {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  text-align: left;
  border-radius: 12px;
  transition: transform 150ms;
}
.rd-stop:active { transform: scale(0.99); }
.rd-stop__photo {
  position: relative;
  display: block;
  height: 192.38px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--border-soft);
  isolation: isolate;
}
.rd-stop__crop { position: absolute; inset: 0; transition: transform 350ms ease; }
.rd-stop:hover .rd-stop__crop { transform: scale(1.03); }
.rd-stop__img { position: absolute; max-width: none; object-fit: cover; }
.rd-stop__img--crazy { left: 0; top: -39.85px; width: 362px; height: 241px; }
.rd-stop__img--badlands { left: -14px; top: -26.61px; width: 385px; height: 256px; }
.rd-stop__place-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rd-stop__text { display: flex; flex-direction: column; gap: 8px; }
.rd-stop__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-weight: 600;
  white-space: nowrap;
}
.rd-stop__title { font-size: 20px; line-height: 28px; color: var(--ink); transition: color 150ms; }
.rd-stop__mile { font-size: 12px; line-height: 16px; text-transform: uppercase; color: #8b2e34; }
.rd-stop__desc { display: block; font-size: 16px; line-height: 28px; color: #4b5563; }
.rd-stop:hover .rd-stop__title { color: #8b2e34; }
/* Stop 2 uses the Figma "Dark" / "Grey" styles instead of the Tailwind greys */
.rd-stop--chatku .rd-stop__title { color: var(--dark); }
.rd-stop--chatku .rd-stop__desc { color: var(--grey); }
.rd-stop--chatku:hover .rd-stop__title { color: #8b2e34; }

/* ---------- experience the culture (fixed 402 in Figma; the card overflows its 198px row) ---------- */
.rd-culture { padding-bottom: 22px; }   /* card ends 22px above the footer, as in the frame */
.rd-culture__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 21px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: #fff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}
.rd-culture__title { font-weight: 700; font-size: 18px; line-height: 28px; color: var(--ink); }
.rd-culture__text { font-size: 16px; line-height: 28px; color: #4b5563; }

/* ---------- footer "BottomStickyCTA": in normal flow at the end of the frame, as in Figma ---------- */
.rd-cta {
  width: 100%;
  height: 113px;
  padding: 16px 16px 40px;   /* 1px border + 16 = Figma's 17 */
  border-top: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rd-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 0;
  border-radius: 12px;
  background: #8b2e34;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  transition: background-color 150ms, color 150ms, box-shadow 150ms, transform 120ms;
}
.rd-cta__btn:hover { background: #7a272d; }
.rd-cta__btn:active { transform: scale(0.99); }
.rd-cta__btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.rd-cta__label--on { display: none; }
.rd-cta__btn.is-on {
  background: #fff;
  color: #8b2e34;
  box-shadow: inset 0 0 0 1.5px #8b2e34, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.rd-cta__btn.is-on:hover { background: #fbf4f4; }
.rd-cta__btn.is-on .rd-cta__label--off { display: none; }
.rd-cta__btn.is-on .rd-cta__label--on { display: inline; }

/* lift the toast clear of the CTA button
   (button sits 70–126px above the bottom when scrolled to the end) */
.phone { --toast-bottom: 138px; }
