/**
 * ASEAN Data Center Heat Map Styles
 * Responsive styles for the interactive map and charts
 */

/* Map container styles */
.map-container {
  position: relative;
  width: 100%;
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#asean-datacenter-map {
  width: 100%;
  height: 500px;
  z-index: 1;
}

/* Chart container styles */
.chart-container {
  position: relative;
  width: 100%;
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  padding: 1rem;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

table th {
  background-color: #f5f5f5;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem;
  border-bottom: 2px solid #ddd;
}

table td {
  padding: 0.75rem;
  border-bottom: 1px solid #ddd;
}

table tr:hover {
  background-color: #f9f9f9;
}

/* Legend styles */
.map-legend {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.4);
  z-index: 1000;
  font-size: 12px;
}

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

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 8px;
}

/* Responsive styles */
@media (max-width: 768px) {
  #asean-datacenter-map {
    height: 400px;
  }
  
  table {
    font-size: 0.8rem;
  }
  
  table th, table td {
    padding: 0.5rem;
  }
  
  .chart-container {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  #asean-datacenter-map {
    height: 350px;
  }
  
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.7rem;
  }
  
  .map-legend {
    bottom: 10px;
    right: 10px;
    padding: 5px;
    font-size: 10px;
  }
  
  .legend-color {
    width: 15px;
    height: 15px;
  }
}