/* Background Declaration Image */
body.background-declaration {
  position: relative;
}

body.background-declaration::before {
  content: '';
  background-image: url('/assets/Declaration_of_Independence-William_Stone_Engraving-High-Resolution-NationalArchives.jpg');
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: -1;
}

/* Map Page Styles */
.spirit-map-page main {
  background: transparent;
}

/* Map Section */
.map-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

.map-container {
  margin-bottom: 2rem;
}

.map-legend {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #000;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-legend h3 {
  color: var(--clr-primary);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.map-legend p {
  margin-bottom: 1rem;
  color: #555;
}

.legend-actions {
  margin-top: 1rem;
}

.submit-location-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--clr-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.submit-location-btn:hover {
  background-color: var(--clr-link);
}

/* Statistics Section */
.stats-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #000;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stats-section h2 {
  text-align: center;
  color: var(--clr-accent);
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-box {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #000;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  color: #000;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
  line-height: 1;
  display: block;
  color: #000;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: normal;
  color: #000;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .map-section {
    margin: 1rem auto;
    padding: 0.75rem;
  }

  .map-legend {
    padding: 1rem;
  }

  .stats-section .stats-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .stats-section .stat-box {
    width: 100% !important;
    margin: 0 auto 1rem auto !important;
  }

  #map {
    height: 360px;
  }

  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }

  .stats-section {
    margin: 1.5rem auto;
    padding: 1.25rem 0.75rem;
  }
}
