body, html {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  background: #111; /* fondo negro */
  color: #eee;
}

#header {
  background: linear-gradient(90deg, #DF4142, #F8805C);
  color: white;
  text-align: center;
}

#map {
  height: 100%;
  width: 100%;
}

.info {
  margin-top: 60px;
  margin-bottom: 10px;
  font-size: 1.15rem;
  text-align: center;
  padding-left: 18px;
  padding-right: 18px;
  color: #fff;
  font-weight: 600;
}

.btn-inscribite,
.btn-vuelta {
  display: inline-block;
  background: #df4142;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: px;
  padding: 12px 28px;
  margin: 8px 4px;
  font-size: 1.1em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(223,65,66,0.15);
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-inscribite:hover,
.btn-vuelta:hover {
  background: #b92b2c;
  box-shadow: 0 4px 16px rgba(223,65,66,0.25);
}

.btn-volver {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1001;
  background: #222;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background 0.2s;
  border: none;
  display: inline-block;
}

.btn-volver:hover,
.btn-volver:focus {
  background: #444;
  color: #fff;
}

/* Opcional: resaltar el botón activo */
.btn-vuelta.active {
  background: #F8805C;
  color: #fff;
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 18px 0 0 0;
}

.control-button {
  padding: 10px 18px;
  font-size: 1rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.2s, color 0.2s;
  color: white;
  margin: 0 0.2rem;
}

.control-button--km {
  background-color: #df4142;
}

.control-button--water {
  background-color: #2196F3;
}

.control-button--arrow {
  background-color: #F8805C;
}

.control-button--paramedico {
  background: #E91E63;
  color: #fff;
  border: none;
}

.control-button--paramedico:hover,
.control-button--paramedico:focus {
  background: #c2185b;
  color: #fff;
}

.km-marker {
  background: #df4142;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  font-family: Arial, sans-serif;
  gap: 2px;
}

.km-text {
  font-size: 12px;
}

.arrow-marker {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.arrow-marker svg {
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}

.arrow-marker .arrow-path {
  stroke: #F8805C;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.paramedico-marker {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 2px 5px rgba(233,30,99,0.15);
}

.water-marker {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 2px 5px rgba(33,150,243,0.15);
}

.largada-marker {
  width: 70px;
  height: 46px;
  border-radius: 18px;
  background: #4CAF50;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(76,175,80,0.18);
  line-height: 1.1;
  padding: 0 4px;
}

.largada-marker span {
  display: block;
  line-height: 1.1;
}

.largada-svg-marker {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 2px 8px rgba(76,175,80,0.18);
}

@media (max-width: 600px) {
  .info {
    margin-top: 54px;
    font-size: 1rem;
    padding-left: 8px;
    padding-right: 8px;
    text-align: center;
  }
  .btn-inscribite {
    padding: 10px 20px;
    font-size: 1rem;
  }
  .arrow-marker {
    width: 20px;
    height: 20px;
  }
  .btn-volver {
    top: 8px;
    left: 8px;
    padding: 8px 12px;
    font-size: 0.95rem;
  }
  .button-container {
    gap: 8px;
    margin-top: 10px;
  }
  .control-button {
    padding: 8px 10px;
    font-size: 0.95rem;
    min-width: 120px;
    margin-bottom: 6px;
  }
}
