.analytics-summary {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.analytics-summary h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.analytics-summary p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #555;
}

.charts-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.chart-section {
  flex: 1 1 45%;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.chart-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #444;
}

#map {
  width: 100%;
  height: 400px;
  border-radius: 8px;
}

/* Responsive layout for small screens */
@media (max-width: 768px) {
  .charts-container {
    flex-direction: column;
  }
  .chart-section {
    width: 100%;
  }
}

/* === PIE CHART SIZING === */
.pie-section .chart-wrapper {
  width: 250px;
  height: 250px;
  margin: 0 auto;
  position: relative;
}

.pie-section canvas {
  width: 100% !important;
  height: 100% !important;
}

/* === CHOROPLETH LEGEND === */
.info.legend {
  background: white;
  padding: 10px;
  font-size: 0.9rem;
  line-height: 18px;
  color: #333;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.info.legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin-right: 8px;
  opacity: 0.7;
}
