* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Khand', sans-serif;
  background: #0b1020;
  color: #f4f4f8;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #20263a;
  background: #111526;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-left {
  display: flex;      
  align-items: center; 
  gap: 0.5rem;         
}


.header-center {
  flex: 1 1 auto;
  text-align: center;
}

.header h1 {
  margin: 0;
  font-size: 1.4rem;
}

.header-left .header-icon {
  width: 60px;
  height: 50px;
}

.subtitle {
  margin: 0;
  font-size: 1.1rem;
  color: #9ba4c4;
}

.map-wrapper {
  flex: 1 1 auto;
  min-height: 0;
}

#map {
  width: 100%;
  height: 100%;
}
/* Intro overlay */

.info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 20, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.info-overlay.hidden {
  display: none;
}

.info-content {
  max-width: 520px;
  width: 90%;
  background: #14192a;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #20263a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  font-size: 1.2rem;
}

.info-content h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.7rem;
}

.info-content p {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Info overlay links */
.info-content a {
  color: #4fd1c5;          
  text-decoration: underline; 
}

.info-content a:hover {
  color: #34d399;          
}


.info-content ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.2rem;
}

.info-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #b9c0e0;
}

.info-close-btn {
  margin-top: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #3c4a7a;
  background: #222842;
  color: #f4f4f8;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.info-close-btn:hover {
  background: #2d3553;
}

/* "i" info button under layers control */

.leaflet-control-info {
  background: #0df3c5;
  border-radius: 999px;
  width: 35px;
  height: 35px;
  line-height: 28px;
  text-align: center;
  color: #0e0e0e;
  border: 1px solid #20263a;
  font-size: 20px;
  font-weight: 650;
  cursor: pointer;
}

.leaflet-control-info:hover {
  background: #1c2237;
  color: #fefefe;
}



.map-legend {
  background: #14192a;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  font-family: 'Khand', sans-serif;
}

.map-legend h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.map-legend .legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.2rem;
}

.map-legend .legend-circle {
  display: inline-block;
  border-radius: 50%;
}

.leaflet-bottom.leaflet-left .leaflet-control-scale {
  margin-left: 0.55rem;
  margin-bottom: 5px;
}