/* Satellite map legends only. The map grid and dimensions are unchanged. */
.satellite-map-legend {
  position: absolute;
  right: 8px;
  bottom: 24px;
  z-index: 500;
  width: 150px;
  max-width: calc(100% - 64px);
  max-height: calc(100% - 64px);
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--agro-border-soft, #e3ece6);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 5px rgba(15, 43, 26, 0.14);
  color: var(--agro-text-primary, #1a2e22);
  font-family: var(--agro-font-body, 'Segoe UI', sans-serif);
}
.satellite-legend-title {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.satellite-legend-body {
  display: flex;
  gap: 8px;
  height: 120px;
}
.satellite-legend-image {
  display: block;
  flex: 0 0 12px;
  width: 12px;
  height: 100%;
  border-radius: 3px;
}
.satellite-legend-labels {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.satellite-map-legend.is-discrete { width: 180px; }
.satellite-map-legend.is-discrete .satellite-legend-body { height: auto; }
.satellite-map-legend.is-discrete .satellite-legend-image { display: none; }
.satellite-map-legend.is-discrete .satellite-legend-labels { gap: 8px; }
.satellite-legend-category {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}
.satellite-legend-swatch {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
