/* Versione INTERATTIVA. Filosofia: menos es más.
   No bordi sui pannelli. No hint "pasa el mouse...".
   Diagonal indicator come nella versione statica per puntare al #1. */

* { font-family: Arial, sans-serif; }
html, body { background: #fff; margin: 0; padding: 0; color: #222; }
body { overflow-x: auto; }

#stage {
  position: relative;
  width: 1500px;
  height: 720px;
  margin: 0 auto;
}

#title {
  position: absolute;
  top: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
#title h1 {
  font-size: 26px;
  font-weight: 300;
  color: #777;
  margin: 0;
  white-space: nowrap;
}
#title h1 b { font-weight: 800; color: #444; }

/* Controles — solo il select, niente label */
#controls {
  position: absolute;
  top: 90px; left: 30px;
  z-index: 10;
}
#continentSelect {
  width: 240px;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #888;
  background: #f9f9f9;
  cursor: pointer;
}

/* Lista top 10 a sinistra sotto il select */
#coastersList {
  position: absolute;
  top: 155px; left: 30px;
  width: 250px;
  font-size: 13px;
  color: #777;
}
#coastersList h2 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  color: #aaa;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.list-item {
  margin-bottom: 6px;
  cursor: pointer;
  padding: 3px 5px;
  transition: color 0.1s;
}
.list-item:hover { color: #b3502a; }
.list-item.hl    { color: #b3502a; }
.ranked-item { display: flex; align-items: baseline; }
.rank {
  width: 26px;
  font-weight: 700;
  text-align: right;
  margin-right: 8px;
  color: #b3502a;
}
.name { flex: 1; word-wrap: break-word; }

/* Mappa centrale */
#myMap {
  position: absolute;
  top: 90px; left: 300px;
  width: 850px; height: 580px;
}

/* Diagonal indicator: linea che parte dal #1 (Formula Rossa) sulla mappa.
   Posizione e rotazione FISSE — calibrate a mano, non si toccano da JS.
   Visibilità invece sì: solo per "World" + se non si sta facendo hover su un
   altro marker. */
#indicator {
  position: absolute;
  display: block;
  z-index: 5;
  font-size: 14px;
  color: #444;
  white-space: nowrap;
  border-bottom: 1.5px solid #333;
  padding: 0 6px 2px;
  pointer-events: none;
  background: rgba(255,255,255,0);
  transform-origin: bottom right;
  width: 288px;
  left: 843.315px;
  top: 175.968px;
  transform: rotate(-28deg);
}

/* Detail panel a destra. Niente bordo. Niente sfondo. */
#info-panel {
  position: absolute;
  top: 130px; right: 30px;
  width: 280px;
  background: transparent;
  padding: 0;
  border: none;
}
.ip-name {
  font-size: 22px; font-weight: 700; color: #b3502a;
  margin-bottom: 4px; min-height: 26px;
  line-height: 1.15;
}
.ip-park {
  font-size: 14px; color: #444;
  margin-bottom: 2px;
  min-height: 18px;
}
.ip-loc {
  font-size: 12px; color: #888;
  margin-bottom: 22px;
  min-height: 16px;
  font-style: italic;
}

.ip-bar-frame {
  width: 100%; height: 18px;
  background: #f0e8e5;
  position: relative;
  overflow: hidden;
}
.ip-bar {
  height: 100%; width: 0%;
  background: linear-gradient(to right, #fdcab5, #e34a33, #67001f);
  transition: width 0.18s ease-out;
}
.ip-bar-tick {
  position: absolute; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.5);
}
.ip-bar-axis {
  display: flex; justify-content: space-between;
  font-size: 10px; color: #888;
  font-family: monospace;
  margin-top: 3px;
  margin-bottom: 14px;
}
.ip-speed {
  font-size: 26px; font-weight: 700;
  color: #b3502a;
  text-align: left;
  min-height: 30px;
}
