/*
 * vc-transport-map.css
 * Animowana mapa transportu (Toronto/NY → Warszawa) — krok "05 Transport morski"
 * na proces_importu_kroki.html. Port z Claude Design "Mapa Transportu.dc.html".
 */

@keyframes vcTmPulseRing {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(2.8); opacity: 0; }
}
@keyframes vcTmMapReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes vcTmLogoPulse {
  0%   { opacity: 0.08; letter-spacing: 0.28em; }
  45%  { opacity: 0.72; letter-spacing: 0.38em; }
  55%  { opacity: 0.72; letter-spacing: 0.38em; }
  100% { opacity: 0.08; letter-spacing: 0.28em; }
}
@keyframes vcTmLogoGlow {
  0%, 100% { filter: blur(0px) drop-shadow(0 0 0px rgba(200,169,110,0)); }
  50%       { filter: blur(0px) drop-shadow(0 0 10px rgba(200,169,110,0.55)); }
}
@keyframes vcTmLabelUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Full-bleed band — rozciąga panel poza max-width:1000px kontenera .pd-inner */
.vc-tm-band {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-top: clamp(28px, 4vw, 44px);
  padding: 0 clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
}

.vc-tm-root {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  background: #050505;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(200,169,110,0.16);
  font-family: 'Inter', sans-serif;
}
.vc-tm-canvas {
  display: block;
  width: 100%;
  height: auto;
  animation: vcTmMapReveal 1.4s ease both;
}
.vc-tm-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Marker rings */
.vc-tm-marker { position: absolute; transform: translate(-50%, -50%); }
.vc-tm-marker__rings {
  position: absolute;
  inset: 0;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
}
.vc-tm-marker__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200,169,110,0.6);
  animation: vcTmPulseRing 2.4s ease-out infinite;
  transform-origin: center;
  width: 28px;
  height: 28px;
  margin: -14px;
}
.vc-tm-marker__ring:nth-child(1) { animation-delay: 0s; }
.vc-tm-marker__ring:nth-child(2) { animation-delay: 0.7s; }
.vc-tm-marker__ring:nth-child(3) { animation-delay: 1.4s; }
.vc-tm-marker__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, #ffe599 0%, var(--vc-gold-warm, #c8a96e) 60%, #a07840 100%);
  box-shadow: 0 0 12px rgba(200,169,110,0.9), 0 0 28px rgba(200,169,110,0.4);
  position: relative; z-index: 2;
}
.vc-tm-marker__label-box { position: absolute; white-space: nowrap; }

/* city labels */
.vc-tm-city-label { color: #fff; line-height: 1.2; }
.vc-tm-city-label__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: clamp(14px, 1.4vw, 20px);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--vc-gold-warm, #c8a96e); text-shadow: 0 0 20px rgba(200,169,110,0.5);
  display: flex; align-items: center; gap: 6px;
}
.vc-tm-city-label__sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400; font-size: clamp(9px, 0.85vw, 12px);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); display: block; margin-top: 2px;
}

/* VAN-CAR logo over the Atlantic */
.vc-tm-logo {
  position: absolute; left: 58%; top: 44%;
  transform: translate(-50%,-50%);
  opacity: 0; transition: opacity 0.8s; pointer-events: none;
}
.vc-tm-logo img {
  width: clamp(100px,10vw,160px); height: auto; display: block;
  animation: vcTmLogoPulse 3.8s ease-in-out 1.2s infinite;
  filter: drop-shadow(0 0 16px rgba(200,169,110,0.5));
  opacity: 0.08;
}

/* mid-arc label */
.vc-tm-arc-label {
  position: absolute; left: 58.3%; top: 35%; transform: translate(-50%,0);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(9px, 0.75vw, 11px);
  font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); text-align: center; line-height: 1.5;
  opacity: 0;
}
.vc-tm-arc-label.is-visible {
  animation: vcTmLabelUp 0.8s ease both;
}

/* vignette */
.vc-tm-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 60%, rgba(5,5,5,0.85) 100%);
}

@media (max-width: 640px) {
  .vc-tm-root { border-radius: 10px; }
  /* Panel 1440:660 robi się bardzo płaski na wąskich ekranach — duże logo
     i etykieta łuku zaczynają nachodzić na markery miast, więc na mobile
     upraszczamy: mniejsze logo, bez podpisu łuku, tylko jeden marker USA
     (Toronto/Kanada znika — Warszawa i USA wystarczą do czytelnej trasy). */
  .vc-tm-logo img { width: 46px; }
  .vc-tm-arc-label { display: none; }
  #tmToronto { display: none; }
}
