:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --brand:#2563eb;   /* azul cole */
  --brand2:#16a34a;  /* verde alegre */
  --border:#e5e7eb;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:linear-gradient(135deg, var(--bg), #eef2ff);
}

.header{
  background: linear-gradient(90deg, var(--brand), #60a5fa);
  color:#fff;
  padding:14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.brand{display:flex; gap:12px; align-items:center;}
.logo{
  width:42px;height:42px;border-radius:12px;
  background:rgba(255,255,255,.18);
  display:flex; align-items:center; justify-content:center;
  font-size:22px;
}
.title{font-weight:800; font-size:18px; line-height:1.1}
.subtitle{font-size:13px; opacity:.9}

.layout{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:14px;
  padding:14px;
}
@media (max-width: 980px){
  .layout{grid-template-columns:1fr}
  .mapWrap{height:60vh}
}

.panel{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
}

h2{margin:0 0 6px}
.hint{margin:0 0 12px; color:var(--muted); font-size:13px}

.lbl{display:block; margin:10px 0 6px; font-weight:700; font-size:13px}
.inp{
  width:100%;
  padding:10px 10px;
  border:1px solid var(--border);
  border-radius:12px;
  outline:none;
}
.inp:focus{border-color:#93c5fd; box-shadow:0 0 0 3px rgba(147,197,253,.35)}

.results{
  margin-top:6px;
  border:1px solid var(--border);
  border-radius:12px;
  max-height:220px;
  overflow-y:auto;   /* ← IMPORTANTE */
  overflow-x:hidden;
  display:none;
}

}
.results .item{
  padding:10px;
  cursor:pointer;
  background:#fff;
  border-bottom:1px solid var(--border);
}
.results .item:last-child{border-bottom:none}
.results .item:hover{background:#f3f4f6}
.results .small{color:var(--muted); font-size:12px}

.selected{
  margin-top:10px;
  padding:10px;
  border:1px dashed #c7d2fe;
  border-radius:12px;
  background:#eef2ff;
}
.selectedMun{margin-top:4px; font-weight:800}

.btn{
  width:100%;
  margin-top:10px;
  padding:11px 12px;
  border:none;
  border-radius:12px;
  background: linear-gradient(90deg, var(--brand2), #86efac);
  color:#064e3b;
  font-weight:900;
  cursor:pointer;
}
.btn:disabled{opacity:.6; cursor:not-allowed}

.status{
  margin-top:10px;
  font-size:13px;
  color:var(--muted);
  min-height:18px;
}

.sep{border:none; border-top:1px solid var(--border); margin:14px 0}

.listTitle{font-weight:900; margin-bottom:8px}
.pinList{display:flex; flex-direction:column; gap:8px}
.pinCard{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px;
  background:#fff;
}
.pinCard .name{font-weight:900}
.pinCard .mun{color:var(--muted); font-size:13px}

.mapWrap{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
}
#map{width:100%; height: calc(100vh - 110px); min-height:520px;}

/* Add-ons */
.rowBtns{
  display:flex;
  gap:10px;
  margin-top:10px;
}
.rowBtns > button{flex:1}

.btnOutline{
  width:100%;
  padding:11px 12px;
  border:1px solid #c7d2fe;
  border-radius:12px;
  background:#fff;
  color:#1f2937;
  font-weight:900;
  cursor:pointer;
}
.btnOutline:hover{background:#f3f4f6}

.adminBox{
  border:1px dashed #d1d5db;
  border-radius:12px;
  padding:10px;
  background:#fafafa;
}
.adminBox summary{
  cursor:pointer;
  padding:4px 0;
}
.adminDanger{
  border-color:#fecaca;
}
.delBtn{
  margin-top:8px;
  width:100%;
  padding:9px 10px;
  border:none;
  border-radius:10px;
  background:#fee2e2;
  color:#7f1d1d;
  font-weight:900;
  cursor:pointer;
}
.delBtn:hover{filter:brightness(0.98)}
