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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
  background-attachment: fixed;
  color: #e2e8f0;
  line-height: 1.8;
  padding: 2rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.header {
  text-align: center;
  padding: 2rem 0 3rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-weight: 400;
  letter-spacing: -0.5px;
}

.header p {
  font-size: 1.25rem;
  color: #cbd5e1;
  font-style: italic;
}

.home-button {
  position: absolute;
  top: 2rem;
  left: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

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

.map-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

#map {
  height: 70vh;
  min-height: 500px;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}


    .legend {
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(10px);
      border-radius: 1rem;
      padding: 1.5rem;
      margin-top: 2rem;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .legend h3 {
      color: #22d3ee;
      margin-bottom: 1rem;
      font-size: 1.25rem;
    }

    .legend-items {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1rem;
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      color: #e2e8f0;
      font-size: 1rem;
    }

    .legend-icon {
      width: 25px;
      height: 41px;
      background-size: contain;
      background-repeat: no-repeat;
    }

.back-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: transform 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.back-button:hover {
  transform: scale(1.05);
}

/* Custom popup styling */
.leaflet-popup-content-wrapper {
  background: rgba(15, 23, 42, 0.95);
  color: #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-content {
  margin: 1rem;
  font-family: inherit;
}

.leaflet-popup-content h3 {
  color: #22d3ee;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.leaflet-popup-content p {
  color: #cbd5e1;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.leaflet-popup-content a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  color: white;
  text-decoration: none;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s;
}

.leaflet-popup-content a:hover {
  transform: scale(1.05);
}

.leaflet-popup-tip {
  background: rgba(15, 23, 42, 0.95);
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .legend-items {
    grid-template-columns: 1fr;
  }
}