/* Layout */
html, body { height: 100%; margin: 0; font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif; }
#app { display: grid; grid-template-columns: 1fr 380px; height: 100%; }
#map { width: 100%; height: 100%; }
#panel { padding: 12px; overflow: auto; border-left: 1px solid #ddd; background: #fafafa; }

.section { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px dashed #ddd; }
.filter-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
button { padding: 6px 10px; border: 1px solid #ccc; background: #fff; cursor: pointer; border-radius: 8px; }
button.secondary { background: #f3f3f3; }
button:hover { background: #f0f0f0; }
small#status { display: block; margin-top: 6px; color: #555; }

/* Markers */
.pin { width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #111; border: 2px solid rgba(0,0,0,0.2); box-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.pin-green { background: #a6f3b1; }
.pin-yellow { background: #ffe680; }
.pin span { transform: translateY(-1px); }

/* Popups */
.leaflet-popup-content { font-size: 13px; }
.badge.wind { background:#a6f3b1; padding:2px 6px; border-radius:999px; font-size:10px; font-weight:800; }
.badge.solar { background:#ffe680; padding:2px 6px; border-radius:999px; font-size:10px; font-weight:800; }

/* Progress */
#progress { position:absolute; left:10px; top:10px; background:#fff; border:1px solid #ddd; border-radius:8px; padding:6px; box-shadow:0 1px 3px rgba(0,0,0,.2); z-index:999; }
.bar { height:6px; width:240px; background:#eee; border-radius:4px; }
.bar > div { height:6px; width:0%; background:#7bb661; border-radius:4px; transition: width .2s; }

/* County list */
.county-list { max-height: 140px; overflow: auto; border: 1px solid #e6e6e6; padding: 6px; border-radius: 6px; background: #fff; }
.county-list label { display:block; font-size:12px; }

/* Legend & counters */
.legend { display:flex; gap:8px; align-items:center; }
.legend .pin { width: 18px; height: 18px; border-radius: 9px; font-size: 10px; }
#perCounty .row { display:flex; justify-content: space-between; font-size: 12px; padding: 2px 0; border-bottom: 1px dotted #eee; }
#perCounty .row .county { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#perCounty .row .count { color:#333; }
