body {
  margin: auto;
  padding: 0;
  overflow: hidden;
}

#logo {
 position: fixed;
 max-height: 50px;
 max-width: 50%;
 top: 10px;
 z-index: 1000;
 left: 60px;
 background: rgba(255,255,255,0.8);
 border-radius: 4px;
 padding: 2px;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-icons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: white;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
}

.map-icons i {
  font-size: 24px;
  color: #333;
  cursor: pointer;
  transition: color 0.2s;
  width: 30px;
  text-align: center;
}

.map-icons i:hover {
  color: #007bff;
}

#nav-info-panel {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 10px;
}

@media (max-width: 576px) {
    #logo { left: 10px; max-height: 40px; }
    .map-icons { top: 60px; right: 10px; }
    .leaflet-control-zoom { display: none; }
}

.elevation-hover-marker {
    background-color: #dc3545;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
    width: 14px !important;
    height: 14px !important;
    margin-left: -7px !important;
    margin-top: -7px !important;
}


.location-active {
    color: #0d6efd !important;
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% { transform: scale(1); text-shadow: 0 0 0 rgba(13, 110, 253, 0.7); }
    50% { transform: scale(1.2); text-shadow: 0 0 10px rgba(13, 110, 253, 0); }
    100% { transform: scale(1); text-shadow: 0 0 0 rgba(13, 110, 253, 0); }
}

.user-location-marker {
    background-color: #0d6efd;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    width: 16px !important;
    height: 16px !important;
    margin-left: -8px !important;
    margin-top: -8px !important;
}

.user-location-circle {
    border: 1px solid #0d6efd;
    background-color: rgba(13, 110, 253, 0.2);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.weather-marker-container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    padding: 2px;
    font-family: Arial, sans-serif;
    font-size: 10px;
    width: 50px !important;
    height: auto !important;
    margin-left: -25px !important;
    margin-top: -25px !important;
}
.weather-marker-container img {
    width: 30px;
    height: 30px;
    display: block;
    margin: 0 auto;
}
.weather-temp {
    font-weight: bold;
    color: #333;
}

/* Odhad povrchu trasy (ORS) – prémiový panel, zapína sa ENABLE_SURFACE_ANALYSIS v route.js */
.route-surface-card {
  padding: 10px 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}
.route-surface-title {
  font-size: 0.85rem;
  color: #343a40;
}
.route-surface-bar {
  display: flex;
  width: 100%;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  background: #dee2e6;
}
.route-surface-seg {
  min-width: 2px;
  height: 100%;
  transition: filter 0.15s ease;
}
.route-surface-seg:hover {
  filter: brightness(1.08);
}
.route-surface-seg--paved {
  background: #6c757d;
}
.route-surface-seg--gravel {
  background: #8d6e63;
}
.route-surface-seg--dirt {
  background: #5d4037;
}
.route-surface-seg--natural {
  background: #2e7d32;
}
.route-surface-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  align-items: center;
}
.route-surface-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #495057;
}
.route-surface-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.route-surface-swatch.route-surface-seg--paved {
  background: #6c757d;
}
.route-surface-swatch.route-surface-seg--gravel {
  background: #8d6e63;
}
.route-surface-swatch.route-surface-seg--dirt {
  background: #5d4037;
}
.route-surface-swatch.route-surface-seg--natural {
  background: #2e7d32;
}
.route-surface-legend-pct {
  font-weight: 600;
  color: #212529;
  margin-left: 2px;
}
.route-surface-legend-text {
  max-width: 160px;
  line-height: 1.2;
}

/* Tooltip pri hoveri na farebný segment trasy (route.js) */
.route-seg-gradient-tooltip {
  position: fixed;
  z-index: 10050;
  max-width: 280px;
  padding: 8px 11px;
  font-size: 12px;
  line-height: 1.4;
  color: #fff;
  background: rgba(22, 26, 34, 0.93);
  border-radius: 7px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.route-seg-leaflet-popup .leaflet-popup-content-wrapper {
  border-radius: 8px;
}
.route-seg-leaflet-popup .leaflet-popup-content {
  margin: 10px 12px;
  min-width: 200px;
}