/* Stop Detail — Figma node 2536:277 (402 × 874; content runs to ~932, so the screen scrolls) */

.sd__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0 20px 24px;
}
.sd__col > * { flex-shrink: 0; width: 100%; }
.sd__spacer { height: 105.354px; }   /* status bar 45.354 − 10 + header 70 (hero top in Figma) */

/* ---------- header: 60px block whose 80px bar overflows to the hero top; clipped there ---------- */
.sd-header {
  flex-shrink: 0;
  height: 70px;
  overflow: hidden;
  background: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- hero card (2536:316): 362 × 196.88, painting cropped from its left edge ---------- */
.sd-hero {
  position: relative;
  height: 196.88px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.sd-hero__art { position: absolute; inset: -57px 0 -23.12px 0; overflow: hidden; pointer-events: none; }
.sd-hero__art img {
  position: absolute;
  left: 0;
  top: -31.06%;
  width: 219.91%;
  height: 162.42%;
  max-width: none;
}

/* ---------- content column (grid row 2: 16 gap + 16 margin + 16 padding) ---------- */
.sd-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 615.5px;   /* Figma grid row 2 -> content grid ends at 932.35 */
  margin-top: 16px;
  padding-top: 32px;
}
.sd-info__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.sd-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 3.5px 2px 4.5px;
  border: 2px solid var(--red);
  border-radius: 12px;
  background: #fbf9f8;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: var(--red);
  text-align: center;
}
.sd-info__title {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  color: var(--dark);
  white-space: nowrap;
}
.sd-info__kind {
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--grey);
}
.sd-info__desc {
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 28px;
  color: var(--grey);
}

/* ---------- amenities bento grid ---------- */
.sd-amenities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 94px;
  gap: 12px;
  margin-bottom: 32px;
}
.sd-tile {
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px;   /* Figma p-13 includes the 1px inside stroke: tiles render 88px tall */
  border: 1px solid rgba(224, 191, 188, 0.3);
  border-radius: 4px;
  background: #fff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}
.sd-tile__icon { display: block; height: 22px; }
.sd-tile__label {
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: var(--grey);
  text-align: center;
  white-space: nowrap;
}
.sd-tile__value {
  font-size: 14px;
  line-height: 20px;
  color: var(--dark);
  text-align: center;
  white-space: nowrap;
}

/* ---------- story preview card ---------- */
.sd-story {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 16px;   /* Figma p-17 includes the 1px stroke: card renders 106px tall */
  border: 1px solid #e0bfbc;
  border-radius: 8px;
  background: #fff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}
.sd-story__text { display: flex; flex-direction: column; gap: 4px; }
.sd-story__title {
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  color: var(--dark);
  white-space: nowrap;
}
.sd-story__sub {
  width: 258px;
  font-size: 14px;
  line-height: 20px;
  color: var(--grey);
}
.sd-play {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin: -6px -8px -6px 0;
  padding: 6px 8px 6px 0;
  border-radius: 9999px;
}
.sd-play__icon {
  position: relative;
  width: 26.667px;
  height: 26.667px;
  flex-shrink: 0;
  transition: transform 150ms;
}
.sd-play:hover .sd-play__icon { transform: scale(1.06); }
.sd-play:active .sd-play__icon { transform: scale(0.94); }
.sd-play:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sd-play__time {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.7px;
  color: var(--red);
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* pause glyph: two bars in the same 26.667 red circle (Material pause_circle proportions) */
.sd-play__pause {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--red);
}
.sd-play__pause::before, .sd-play__pause::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 2.667px;
  height: 10.667px;
  background: #fff;
}
.sd-play__pause::before { left: 9.333px; }
.sd-play__pause::after { left: 14.667px; }
.sd-play.is-playing .sd-play__glyph { visibility: hidden; }
.sd-play.is-playing .sd-play__pause { display: block; }

/* ---------- Add Stop to Route ---------- */
.sd-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  border-radius: 18px;
  background: var(--red);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.7px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  transition: background-color 150ms, transform 150ms;
}
.sd-cta:hover { background: #7a011f; }
.sd-cta:active { transform: scale(0.99); }
.sd-cta:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sd-cta__label--on { display: none; }
.sd-cta.is-on { background: #6a011b; }
.sd-cta.is-on:hover { background: #5c0117; }
.sd-cta.is-on .sd-cta__label--off { display: none; }
.sd-cta.is-on .sd-cta__label--on { display: inline; }

/* lift the toast clear of the CTA when scrolled to the end */
.phone { --toast-bottom: 132px; }

/* other stops (?stop=) use a full-bleed photo or a crop of the route map */
.sd-hero--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sd-hero--unavailable { height: 44px; box-shadow: none; }
.sd-hero__map { position: absolute; inset: 0; background-size: 760px auto; }
.sd-story__text.tap:hover .sd-story__title { color: var(--red); }
.sd-hero__stamp { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #f5f3f1; }
.sd-hero__stamp .stamp { width: 150px; height: 150px; }
