/* ==========================================================================
   MVM Routes plugin — route map + elevation styles
   ========================================================================== */

.mvm-route--error {
  background: #FCE9E9; color: #8A1F1F;
  border: 1px solid #F2C2C2;
  padding: 1rem 1.25rem; border-radius: 10px;
}

.leaflet-container {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Elevation chart container has fixed height handled by canvas */
.mvm-route__elev-canvas { background: transparent; }

/* Marker on the map showing the elevation hover position */
.mvm-route__hover-marker {
  width: 14px; height: 14px;
  background: #D4A341;
  border: 3px solid #1B2A4E;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(212,163,65,.3);
}

/* Mile / km markers along the route */
.mvm-route__mile-marker {
  background: #fff;
  color: #1B2A4E;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  width: 22px;
  height: 22px;
  border: 2px solid #1B2A4E;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.mvm-route__mile-marker span { display: block; }

/* Direction-of-travel arrows along the polyline */
.mvm-route__arrow {
  pointer-events: none;
}
.mvm-route__arrow-inner {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid #D4A341;
  filter: drop-shadow(0 0 1px #1B2A4E) drop-shadow(0 0 1px #1B2A4E);
  margin: 3px 2px;
  transform-origin: 50% 50%;
}

/* Fullscreen control button */
.mvm-route__fs-ctrl a.mvm-route__fs-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #1B2A4E;
  background: #fff;
  text-decoration: none;
}
.mvm-route__fs-ctrl a.mvm-route__fs-btn:hover {
  background: #f4f4f4;
  color: #1B2A4E;
}

/* When the map is fullscreen, fill the viewport */
.mvm-route__map:fullscreen,
.mvm-route__map:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  background: #fff;
}
