.tc-book-hero .tc-platform-map {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 625px;
  min-width: 0;
  margin: 0 0 0 auto;
  color: #edf4ff;
  font-family: Onest, Arial, sans-serif;
}
.tc-platform-map::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -5% -2% 0;
  pointer-events: none;
  background: radial-gradient(circle, #c7d9ff40 .7px, transparent 1px) 50% 50% / 18px 18px;
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 76%);
}
.tc-map-stage { position: relative; perspective: 950px; margin-block: 10px 18px; }
.tc-map-stage::before {
  content: ""; position: absolute; inset: 74% 11% -5%; pointer-events: none;
  background: radial-gradient(ellipse, #071126a8, transparent 69%);
}
.tc-map-float, .tc-map-surface { position: relative; transform-style: preserve-3d; pointer-events: none; }
.tc-map-surface {
  --tilt-x: 0deg; --tilt-y: 0deg;
  transform: rotateX(calc(8deg + var(--tilt-x))) rotateY(calc(-4deg + var(--tilt-y)));
}
.tc-map-surface::before, .tc-map-surface::after {
  content: ""; position: absolute; inset: 0; border-radius: 28px; pointer-events: none;
}
.tc-map-surface::before {
  transform: translate3d(0,6px,-15px);
  border: 1px solid #658bc378;
  background: linear-gradient(155deg,#314a71,#213655 65%,#395582);
  box-shadow: 1px 12px 24px #08152b57;
}
.tc-map-surface::after {
  transform: translateZ(-5px);
  border: 1px solid #9ebbe07a;
  background: radial-gradient(ellipse at 50% 53%,#44639a55,transparent 58%),
              radial-gradient(circle,#cbdff72d .75px,transparent 1px) 50% 50% / 18px 18px,
              linear-gradient(145deg,#2f486c,#243a5d 47%,#1d314f 88%);
  box-shadow: inset 0 1px #e9f5ff33, inset -1px -1px #96b9fb39;
}
.tc-map-drawing { display: block; width: 100%; height: auto; overflow: visible; transform: translateZ(4px); }
.tc-map-compact .tc-map-surface { transform: rotateX(4deg) rotateY(-1deg); }
.tc-map-compact .tc-map-surface::before, .tc-map-compact .tc-map-surface::after { border-radius: 20px; }
.tc-map-guides { fill:none; stroke:#a9c7f6; stroke-width:1; opacity:.15; }
.tc-map-route { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tc-map-glow { stroke: var(--line); stroke-width: 9; opacity: .08; }
.tc-map-track { stroke: var(--line); stroke-width: 2.3; opacity: .82; }
.tc-map-pulse { stroke: #fff; stroke-width: 3.2; stroke-dasharray: .055 1; opacity: 0; }
.tc-map-stop, .tc-map-hub { cursor: pointer; outline: none; touch-action: manipulation; pointer-events: auto; }
.tc-map-hit { fill: transparent; }
.tc-stop-base { fill: #111e35; stroke: var(--line); stroke-opacity: .30; stroke-width: 1.5; }
.tc-stop-face { fill: url(#tc-stop-enamel); stroke: var(--line); stroke-width: 1.6; }
.tc-stop-shine { fill: none; stroke: white; opacity: .30; stroke-width: .9; pointer-events: none; }
.tc-stop-icon { fill: none; stroke: var(--line); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.tc-stop-name {
  fill: #eff5ff; font: 580 17px/1 Onest, Arial, sans-serif;
  letter-spacing: -.025em; paint-order: stroke fill; stroke: #203458; stroke-width: 3px; stroke-linejoin: round;
}
.tc-map-compact .tc-stop-name { font-size: 15.5px; }
.tc-map-stop.tc-quiet .tc-stop-name { fill: #bdcce3; }
.tc-map-stop.tc-quiet .tc-stop-face { stroke-opacity: .65; }
.tc-map-route.tc-quiet { opacity: .38; }
.tc-map-stop.tc-chosen .tc-stop-face { fill: var(--line); }
.tc-map-stop.tc-chosen .tc-stop-icon { stroke: #15223b; }
.tc-map-stop:focus-visible .tc-stop-face, .tc-map-hub:focus-visible .tc-hub-ring {
  stroke: white; stroke-width: 3.5px;
}
.tc-hub-ring { fill: #cedfff12; stroke: #c4d7ff66; stroke-width: 1; }
.tc-hub-shadow { fill: url(#tc-core-halo); pointer-events:none; }
.tc-hub-base { fill: #567ba8; stroke: #aac8ed; stroke-width: .9; }
.tc-hub-face { fill: url(#tc-core-enamel); stroke: #f5faff; stroke-width: 1.2; }
.tc-hub-word { fill: #142541; font: 700 20px/1 Onest, Arial, sans-serif; letter-spacing: -.05em; }
.tc-map-compact .tc-hub-word { font-size: 15.5px; }
.tc-platform-map figcaption {
  display: flex; align-items: baseline; justify-content: center; gap: 9px;
  width: 96%; min-height: 3em; margin: 3px auto 0; padding: 0 6px;
  color: #cbd8ed; font: 450 .83rem/1.45 Onest, Arial, sans-serif; text-align: start;
}
.tc-platform-map figcaption::before {
  content: ""; flex: 0 0 12px; height: 2px;
  align-self: flex-start; margin-top: .68em; background: var(--map-accent,#b6c8e5);
}
@media (max-width: 768px){
  .tc-book-hero .tc-platform-map { max-width: 490px; margin: 18px auto 0; }
}
@media (hover: none), (pointer: coarse) {
  .tc-map-stage { perspective: none; }
  .tc-map-float, .tc-map-surface { transform-style: flat; }
  .tc-platform-map .tc-map-surface { transform: none; isolation: isolate; }
  .tc-map-surface::before { transform: translateY(5px); z-index: -2; }
  .tc-map-surface::after { transform: none; z-index: -1; }
  .tc-map-drawing { transform: none; }
}
@media (prefers-reduced-motion: no-preference){
  .tc-map-route,.tc-stop-face,.tc-stop-icon { transition: opacity .18s, fill .18s, stroke .18s; }
  .tc-map-float { animation: tc-map-hover 7s ease-in-out infinite; }
  .tc-map-surface { transition: transform .24s ease-out; }
  .tc-platform-map:focus-within .tc-map-float, .tc-platform-map.tc-map-hold .tc-map-float,
  .tc-platform-map.tc-map-away .tc-map-float { animation-play-state: paused; }
  @keyframes tc-map-hover {
    0%,8%,94%,100% { transform: translateY(1px) rotateZ(-.35deg); }
    45%,54% { transform: translateY(-5px) rotateZ(.25deg); }
  }
}
@media (prefers-reduced-motion: reduce){
  .tc-platform-map .tc-map-surface { transform: none; }
}
