body { margin: 0; }
#map { height: 100vh; }

#controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.2;
  max-width: 320px;
}

/* Keep inputs readable */
#controls input { width: 160px; }
#controls label { margin-right: 8px; }
#controls .dates-col label {
  display: inline-block;
  width: 3.5em;
}

/* Flex layout for the new structure */
#controls .controls-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

#controls .dates-col {
  display: flex;
  flex-direction: column;
}

#controls #applyBtn {
  align-self: stretch;
  height: auto;
}

#controls .actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

#controls button {
  height: 28px;   /* small shared height (the stretched Apply overrides this) */
  padding: 0 10px;
}

/* status below the three buttons */
#controls #status {
  color: #444;
  margin-top: 6px;
  min-height: 1em;
}
