* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

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

/* Custom popup styling */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.leaflet-popup-content {
  margin: 12px 16px;
  line-height: 1.4;
}

.station-popup h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.station-popup p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.wall-popup h3 {
  margin: 0 0 6px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.wall-popup p {
  margin: 0;
  color: #666;
  font-size: 13px;
}

/* Legend styling */
.legend {
  padding: 12px 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  line-height: 1.6;
}

.legend h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.legend-item:last-child {
  margin-bottom: 0;
}

.legend-symbol {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-line {
  width: 30px;
  height: 4px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Loading spinner */
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-size: 14px;
  color: #666;
}

/* Layer control styling */
.leaflet-control-layers {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .legend {
    font-size: 12px;
  }

  .legend h4 {
    font-size: 13px;
  }

  .station-popup h4,
  .wall-popup h3 {
    font-size: 14px;
  }
}
