/* Container & Layout */
.ushp-container {
  max-width: 100%;
  position: relative;
  display: block;
}
.ushp-header { margin: 0 0 8px; font-size: 1.25rem; }

/* Main area with optional side legend */
.ushp-main {
  display: block;
}
.ushp-main.ushp-side-legend {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  align-items: start;
}

/* Map */
.ushp-map-wrap {
  position: relative;
  width: 100%;
}
.ushp-map-wrap svg { width: 100%; height: auto; display: block; }
.ushp-map-wrap .ushp-label-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
}

/* Tooltip */
.ushp-container .ushp-tooltip {
  position: absolute;
  display: none;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 5;
  pointer-events: none;
}

/* Legend */
.ushp-legend { display: grid; gap: 4px; align-items: center; }
.ushp-legend-bar { height: 16px; border-radius: 4px; }
.ushp-legend-scale { display: flex; justify-content: space-between; font-size: 12px; color: #333; }

/* Top states */
.ushp-top-wrap { margin-top: 10px; }
.ushp-top-title { margin: 0 0 4px; font-size: 1rem; }
.ushp-top-list { margin: 0; padding-left: 18px; }

/* Admin preview */
.ushp-preview { background: #fff; padding: 12px; border: 1px solid #e5e5e5; border-radius: 6px; }
