/* APP */
.run-app {
  margin: auto;
  padding: 12px;
}

/* PREMIUM HEADER */
.run-header-premium {
  text-align: center;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d32f2f, #8b0000);
  color: white;
  margin-bottom: 16px;
  box-shadow: 0 6px 14px rgba(120, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.run-title {
  font-size: 24px;
  font-weight: 800;
}
.run-sub {
  opacity: 0.9;
  margin-top: 4px;
}

/* PREMIUM CARD */
.run-card-premium {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  border: 2px solid #f2f2f2;
}

/* MAP CONTAINER */
.run-map-container {
  position: relative;
}

#runMap {
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #d32f2f;
}

/* SHARE BUTTON */
.share-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: white;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  cursor: pointer;
}
/* GOOGLE MAPS BUTTON*/
.gmaps-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: #1a1a1a;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  cursor: pointer;
}
.gmaps-btn:hover {
  background: #f8f8f8;
}

.runner-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 999;
}

.runner-controls button {
  background: #ffffff;
  border: none;
  padding: 8px 12px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}

.runner-controls button:hover {
  transform: scale(1.1);
}

/* Icono corredor estilo navideño */
.runner-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff3b3b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  border: 2px solid white;
  box-shadow: 0 0 8px rgba(255,0,0,0.5);
}



/* STATS */
.run-stats-premium {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  display: none;
}

.stat {
  flex: 1;
  background: #fafafa;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
}

.stat .label {
  font-size: 12px;
  color: #777;
}

.stat .value {
  font-size: 18px;
  color: #b71c1c;
  font-weight: 700;
}

/* ELEVATION SECTION */
.elevation-section {
  margin-top: 20px;
}
.elevation-section h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  #runMap { height: 280px; }
  .run-title { font-size: 20px; }
}

/* 🔥 Ocultar completamente la interfaz de Leaflet Routing Machine */
.leaflet-routing-container,
.leaflet-routing-container * {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Ocultar botones invisibles que agrega LRM */
.leaflet-control-container .leaflet-routing-container-hide {
  display: none !important;
}