/* Rwanda Map Styles */

/* Map container styles */
.chart-container {
  position: relative;
  width: 100%;
  min-height: 500px;
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Loading indicator */
.map-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 100;
  font-size: 16px;
  color: #666;
}

.map-loading i {
  margin-right: 10px;
  font-size: 20px;
}

/* Map controls */
.map-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background-color: white;
  border-radius: 4px;
  padding: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.map-controls .btn {
  margin: 0 2px;
}

/* Map legend */
.map-legend {
  position: absolute;
  bottom: 30px;
  right: 10px;
  z-index: 1000;
  background-color: white;
  border-radius: 4px;
  padding: 10px;
  min-width: 150px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  font-size: 12px;
}

.map-legend h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
}

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

.map-legend-color {
  width: 15px;
  height: 15px;
  border-radius: 2px;
  margin-right: 8px;
}

/* Map tooltip */
.map-tooltip {
  position: absolute;
  background-color: white;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12px;
  pointer-events: none;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  max-width: 200px;
}

.map-tooltip h5 {
  margin: 0 0 5px 0;
  font-size: 13px;
  font-weight: 600;
}

.map-tooltip p {
  margin: 0;
  line-height: 1.4;
}

/* Simulation button styling */
#simulate-map-btn {
  background-color: #ff9800;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

#simulate-map-btn:hover {
  background-color: #f57c00;
}

#simulate-map-btn:active {
  background-color: #ef6c00;
}

/* Enhance Plotly components */
.js-plotly-plot .plotly {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.js-plotly-plot .modebar {
  top: 0px !important;
  right: 0px !important;
}

/* Fix for mapbox maps */
.mapboxgl-canvas {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  height: 100% !important;
}

.mapboxgl-canvas-container {
  width: 100%;
  height: 100%;
}