body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f8fafc;
    color: #1f2933;
} 

header {
  padding: 1rem 1.5rem;
  background: #2f4f4f;
  color: white;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
}

/* Two-column layout on larger screens */
@media (min-width: 900px) {
  .layout {
    grid-template-columns: 1.2fr 1fr;
    height: calc(100vh - 110px);
  }
}

section {
  display: flex;
  flex-direction: column;
}

section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
#map-container{
    background-color: blueviolet;
    min-height: 400px;
}
#chart-container {
    background-color: aquamarine;
}

.tabs {
  margin-bottom: 1rem;
}

.tab-button {
  padding: 0.5rem 1rem;
  border: none;
  background: #e5e7eb;
  cursor: pointer;
  margin-right: 0.25rem;
}

.tab-button.active {
  background: #2563eb;
  color: white;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}


table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

thead {
  background-color: #0f172a;
  color: #ffffff;
}

thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

tbody tr:hover {
  background-color: #eef2ff;
}

td {
  padding: 0.75rem 1rem;
  vertical-align: top;
}

#map {
    height: 100%;
}

.temp-marker {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: white;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}


.temp-legend {
  background: white;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.2;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  border-radius: 6px;
  width: 180px;
}

.legend-title {
  font-weight: bold;
  margin-bottom: 6px;
  text-align: center;
}

.legend-gradient {
  height: 14px;
  width: 100%;
  background: linear-gradient(
    to right,
    #313695,
    #4575b4,
    #74add1,
    #fdae61,
    #f46d43,
    #a50026
  );
  border-radius: 4px;
  margin-bottom: 4px;
}

.legend-labels {
  display: flex;
  justify-content: space-between;
}

.temp-cluster-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  text-align: center;
  position: relative;
}

.temp-cluster-value {
  font-size: 14px;
  line-height: 1.2;
}

.temp-cluster-count {
  font-size: 10px;
  opacity: 0.85;
}
.temp-marker,
.temp-cluster-wrapper {
  border: 1px solid rgba(255,255,255,0.6);
}