/* Mappa referenti di tutela territoriale — colori distintivi per provincia
   (categoriali, non il verde istituzionale) più il verde del sito per lo
   stato "selezionato". */
:root {
  --prov-no: #0C71C3; /* stesso blu istituzionale del sito, per Novara (sede) */
  --prov-bi: #b0563a; /* terracotta */
  --prov-vb: #3d6c8b; /* blu, richiama i laghi del Verbano-Cusio-Ossola */
  --prov-vc: #c99a2e; /* oro/ocra, richiama le risaie del vercellese */
}

#mappaReferenti {
  height: 600px;
  border-radius: 4px;
  overflow: hidden;
  background: #dfe4e4;
}

.mr-scheda {
  min-height: 280px;
}

.mr-scheda .placeholder-vuoto {
  border: 1px dashed var(--bs-border-color);
  border-radius: 4px;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--bs-gray-secondary);
}

.mr-scheda .placeholder-vuoto svg {
  opacity: .5;
}

.mr-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
}

.mr-ruolo {
  padding: .75rem 0;
  border-top: 1px solid var(--bs-border-color);
}
.mr-ruolo:first-child { border-top: 0; padding-top: 0; }

.mr-ruolo-label {
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bs-gray-secondary);
  margin-bottom: .3rem;
}

.mr-legend-item {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .4rem;
  border-radius: 4px;
}
.mr-legend-item:hover {
  background: var(--bs-gray-100, #f5f5f5);
}
.mr-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex: 0 0 auto;
  border: 1px solid rgba(0,0,0,.15);
}

.mr-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1200;
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 4px;
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.35);
  max-height: 340px;
  overflow: auto;
  display: none;
  margin-top: 2px;
}
.mr-suggest.open { display: block; }
.mr-suggest li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .7rem;
  cursor: pointer;
  font-size: .9rem;
  border-bottom: 1px solid var(--bs-gray-200, #eee);
}
.mr-suggest li:last-child { border-bottom: 0; }
.mr-suggest li.active,
.mr-suggest li:hover { background: var(--bs-gray-100, #f5f5f5); }
.mr-suggest .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.mr-suggest .prov { margin-left: auto; font-size: .72rem; color: var(--bs-gray-secondary); }

.mr-search-wrapper { position: relative; }
