/* TYC interactive itinerary map (prototype) */
.tyc-im { --im-blue: #BDD6E6; --im-pale: #E3F0F8; --im-ink: #000; --im-top: 0px;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 460px; background: #0b1620;
  font-family: "Stabil Grotesk", sans-serif; color: var(--im-ink); }
.tyc-im__stage { position: sticky; top: var(--im-top); height: calc(100vh - var(--im-top)); height: calc(100svh - var(--im-top)); }
.tyc-im__map { position: absolute; inset: 0; }
.tyc-im__map:not(.maplibregl-map) { background: #0b1620; }
.tyc-im__hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2;
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; pointer-events: none;
  opacity: .9; transition: opacity .4s; }
.tyc-im.is-scrolled .tyc-im__hint { opacity: 0; }

.tyc-im__rail { position: relative; z-index: 2; padding: 32px 32px 40vh; display: flex; flex-direction: column; gap: 18px; }
.tyc-im__card { background: #fff; transition: opacity .35s, transform .35s; opacity: .55; }
.tyc-im__card.is-active { opacity: 1; }
.tyc-im__card--intro { padding: 32px; margin-top: 30vh; }
.tyc-im__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.tyc-im__title { font-size: 30px; line-height: 1.05; font-weight: 700; text-transform: uppercase; margin: 0 0 16px; letter-spacing: .02em; }
.tyc-im__text { font-size: 15px; line-height: 1.6; margin: 0; }
.tyc-im__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #000; margin-top: 22px; padding-top: 16px; }
.tyc-im__stat b { display: block; font-size: 24px; font-weight: 700; }
.tyc-im__note { font-size: 12px; line-height: 1.5; margin: 16px 0 0; color: #444; }
.tyc-im__stat span { display: block; font-size: 10px; line-height: 1.3; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding-right: 8px; }

.tyc-im__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--im-pale); }
.tyc-im__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tyc-im__day { position: absolute; top: 14px; right: 16px; color: #fff; text-align: right; font-weight: 700; text-transform: uppercase; line-height: 1; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.tyc-im__day small { display: block; font-size: 11px; letter-spacing: .14em; }
.tyc-im__day span { font-size: 44px; }
.tyc-im__media h3 { position: absolute; left: 20px; bottom: 14px; margin: 0; color: #fff; font-size: 34px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 1px 14px rgba(0,0,0,.4); }
.tyc-im__body { padding: 22px 24px 24px; }
.tyc-im__link { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #000; text-decoration: none; border-bottom: 2px solid var(--im-blue); padding-bottom: 3px; }
.tyc-im__link:hover { border-color: #000; }

.tyc-im__card--leg { padding: 20px 24px; background: var(--im-pale); }
.tyc-im__leg-title { font-size: 18px; font-weight: 700; text-transform: uppercase; margin: 0 0 12px; }
.tyc-im__chips { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; }
.tyc-im__chips li { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.tyc-im__chips li::before { content: ""; width: 7px; height: 7px; background: #000; }

/* markers */
.tyc-im__pin { position: absolute; width: 14px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; }
.tyc-im__pin-dot { position: absolute; inset: 0; background: var(--im-pale); border: 2px solid #000; transition: transform .3s, background .3s; }
.tyc-im__pin-label { position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 6px); white-space: nowrap;
  background: #fff; color: #000; font: 700 11px/1 "Stabil Grotesk", sans-serif; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 8px; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.tyc-im__pin.is-active .tyc-im__pin-dot { background: var(--im-blue); transform: scale(1.35); }
.tyc-im__pin.is-active .tyc-im__pin-label, .tyc-im__pin:hover .tyc-im__pin-label, .tyc-im__pin:focus-visible .tyc-im__pin-label { opacity: 1; transform: translate(-50%, 0); }
.tyc-im .maplibregl-ctrl-attrib { font-family: inherit; font-size: 10px; }

@media (max-width: 900px) {
  .tyc-im { grid-template-columns: 1fr; }
  .tyc-im__stage { height: 48vh; height: 48svh; z-index: 3; }
  .tyc-im__rail { z-index: 1; padding: 16px 14px 30vh; }
  .tyc-im__card--intro { margin-top: 0; padding: 24px; }
  .tyc-im__title { font-size: 24px; }
  .tyc-im__media h3 { font-size: 26px; }
  .tyc-im__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tyc-im__card, .tyc-im__pin-dot, .tyc-im__pin-label { transition: none; } }
