/* mappamondo.css: the globe of «Proposta E». Colours come from --globo-* on the container or higher (read by the
   script, which copies them into --mm-* on .mappamondo); the fallbacks below match the theme «tramonto». */
.mappamondo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 1px;
  overflow: hidden;
  overflow: clip;
  touch-action: pan-y;
  cursor: grab;
  contain: layout paint;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  color: var(--mm-inchiostro, #1C2333);
  font: inherit;
}
.mappamondo--trascina { cursor: grabbing; }
.mm-tela { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.mm-strato { position: absolute; inset: 0; pointer-events: none; }

/* a place: a 44 px target centred on its dot; the price pill hangs beside it */
.mappamondo .mm-punto {
  -webkit-appearance: none; appearance: none; box-shadow: none; outline: none; text-indent: 0;
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: inherit; font: inherit; cursor: pointer;
  pointer-events: auto; will-change: transform, opacity;
}
.mappamondo .mm-punto--dietro { visibility: hidden; pointer-events: none; }
.mm-pallino {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--mm-punto, #FFFFFF);
  box-shadow: 0 0 0 2.5px var(--mm-rotta, #D9431E), 0 1px 4px rgba(20, 30, 50, .3);
  transition: transform .2s ease-out, background-color .2s ease-out;
}
.mm-punto--senza .mm-pallino { width: 8px; height: 8px; margin: -4px 0 0 -4px; box-shadow: 0 0 0 2px var(--mm-rotta, #D9431E), 0 1px 3px rgba(20, 30, 50, .25); }
.mm-punto:hover .mm-pallino { transform: scale(1.3); }
.mm-punto--scelto { z-index: 2; }
.mm-punto--scelto .mm-pallino {
  background: var(--mm-rotta, #D9431E); transform: scale(1.35);
  box-shadow: 0 0 0 3px var(--mm-punto, #FFFFFF), 0 2px 6px rgba(20, 30, 50, .35);
}
.mm-prezzo {
  position: absolute; left: 50%; top: 50%;
  padding: .22rem .5rem; border-radius: 999px;
  background: var(--mm-pillola, #14324A); color: var(--mm-pillola-testo, #FFD979);
  font-size: .75rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(20, 30, 50, .22);
  transition: opacity .18s ease-out;
}
.mm-prezzo--via { opacity: 0; visibility: hidden; }
.mm-punto--scelto .mm-prezzo { background: var(--mm-rotta, #D9431E); color: #FFFFFF; box-shadow: 0 0 0 2px var(--mm-punto, #FFFFFF), 0 3px 10px rgba(20, 30, 50, .3); }
.mappamondo .mm-punto:focus { outline: none; }
.mappamondo .mm-punto:focus-visible::after {
  content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 3px solid var(--mm-inchiostro, #1C2333);
}

/* the departure: a larger pulsing dot and its name above it */
.mm-partenza { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 3; pointer-events: none; will-change: transform; }
.mm-partenza[hidden], .mm-partenza--dietro { visibility: hidden; }
.mm-partenza-punto {
  position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box;
  background: var(--mm-partenza, #14324A); border: 3px solid var(--mm-carta, #FFFFFF);
  box-shadow: 0 2px 8px rgba(20, 30, 50, .35);
}
.mm-partenza-punto::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  border: 2px solid var(--mm-partenza, #14324A); box-sizing: border-box;
  animation: mm-pulsa 2s cubic-bezier(.2, .6, .35, 1) infinite;
}
@keyframes mm-pulsa { from { transform: scale(1); opacity: .75; } to { transform: scale(3); opacity: 0; } }
.mm-partenza-nome {
  position: absolute; left: 0; top: 0;
  padding: .28rem .6rem; border-radius: 999px; white-space: nowrap;
  background: var(--mm-carta, #FFFFFF); color: var(--mm-inchiostro, #1C2333);
  font-size: .8125rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em;
  box-shadow: 0 3px 10px rgba(20, 30, 50, .2);
}
@media (prefers-reduced-motion: reduce) {
  .mm-partenza-punto::after { animation: none; opacity: 0; }
  .mm-pallino, .mm-prezzo { transition: none; }
}
