html, body { height: 100%; margin: 0; font-family: "Google Sans", Arial, sans-serif; }

#info{
  position: absolute;
  top: 0;
  left: 0;
  width: 340px;         /* panel width */
  height: 100vh;
  background: white;
  padding: 12px 12px 16px 12px;
  overflow-y: auto;
  z-index: 2;           /* keep above map */
  box-shadow: 2px 0 10px rgba(0,0,0,0.15);
}

#map{
  position: absolute;
  top: 0;
  left: 340px;          /* same as #info width */
  right: 0;
  bottom: 0;
  z-index: 1;
}

#legend{
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;           /* above map */
  background: rgba(255,255,255,0.95);
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.15);
}

/* Make chart visible and not “collapse” */
#chart{
  width: 100%;
  min-height: 240px;
  margin-top: 8px;
}

/* Make the C3 SVG responsive */
#chart svg{
  width: 100% !important;
}
