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

/* Dark background for the whole page */
body {
  background: #0b0f1a;
  font-family: Georgia, serif;
  color: white;
}

/* Header section */
.header {
  text-align: center;
  padding: 20px 20px 12px;
  background: #0b0f1a;
}

/* Page title */
h1 {
  font-size: 32px;
  margin-bottom: 6px;
  color: #F9F871;
}

/* Subtitle text */
.subtitle {
  font-size: 14px;
  color: #a0a8c0;
  margin-bottom: 4px;
}

/* Call to action text */
.cta {
  font-size: 13px;
  color: #73CF99;
  font-style: italic;
  margin-bottom: 8px;
}

/* Legend for category colors */
.legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  color: #a0a8c0;
}

/* Legend dot base style */
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 4px;
}

/* Category colors matching the map markers */
.dot.community { background: #F9F871; }
.dot.park { background: #00A6E1; }
.dot.reserve { background: #A25D6B; }
.dot.sanctuary { background: #F79334; }

/* Map fills remaining screen height */
#map {
  width: 100%;
  height: calc(100vh - 130px);
}

/* Hide mapbox popup arrow */
.mapboxgl-popup-tip {
  display: none !important;
}

/* Make popup background transparent */
.mapboxgl-popup {
  background: transparent !important;
}

/* Popup container styling */
.mapboxgl-popup-content {
  background: white !important;
  color: #111 !important;
  border-radius: 12px !important;
  padding: 0 !important;
  width: 240px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
  border: none !important;
}

/* Popup body padding */
.popup-body {
  padding: 12px 14px;
}

/* Popup location title */
.popup-body h3 {
  font-size: 14px;
  font-weight: bold;
  color: #111;
  margin-bottom: 4px;
}

/* Category tag badge */
.popup-body .category-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 8px;
}

/* Category tag colors matching map markers */
.tag-community { background: #F9F871; color: #111; }
.tag-park { background: #00A6E1; color: white; }
.tag-reserve { background: #A25D6B; color: white; }
.tag-sanctuary { background: #F79334; color: #111; }

/* Popup description text */
.popup-body p {
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 4px;
}

/* Learn more link */
.popup-body .learn-more {
  font-size: 11px;
  color: #00A6E1;
  text-decoration: none;
  display: block;
  margin-top: 6px;
}

.popup-body .learn-more:hover {
  text-decoration: underline;
}

/* Popup close button */
.mapboxgl-popup-close-button {
  color: #333 !important;
  font-size: 16px !important;
}
