/* Селектор громад суперюзера — ОДИН стиль для лендингу (/) і мапи (/map/).
   До 12.11.2026 лендинг мав власну копію, і значки ЄДРА / НГО / Т/С з'явились
   лише на мапі. Розмітку малює /assets/gromada_selector.js. */
#gromada-selector {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center; z-index: 9999;
}
#gromada-selector-card {
  background: white; border-radius: 12px; padding: 28px 28px 20px;
  width: fit-content; min-width: 320px; max-width: 92vw;
  max-height: 90vh;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: flex; flex-direction: column;
}
#gromada-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
#gromada-selector-card h2 {
  margin: 0 0 20px; font-size: 18px; color: #1e4d2b; font-family: 'Rubik', sans-serif;
}
.gromada-option {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left; padding: 12px 16px;
  margin-bottom: 8px; border: 1.5px solid #d4e8da; border-radius: 8px;
  background: white; cursor: pointer; font-size: 14px; font-family: 'Rubik', sans-serif;
  color: #222; transition: background 0.15s, border-color 0.15s;
}
.gromada-option:hover { background: #f0f9f3; border-color: #1e4d2b; }
.gromada-option-info { flex: 1; }
.gromada-option strong { display: block; font-size: 15px; color: #1e4d2b; white-space: nowrap; }
.gromada-option span { color: #888; font-size: 12px; white-space: nowrap; }
.gromada-dot {
  flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%;
}
.gromada-dot.has-data    { background: #27ae60; }
.gromada-dot.no-data     { background: #ccc; }
/* Значок наявності даних про оренду (₴) — повторює мову кнопки Договорів */
.gromada-lease {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; line-height: 1;
}
.gromada-lease.has-lease { background: #1e4d2b; color: #fff; }
.gromada-lease.no-lease  { background: transparent; color: #ccc; border: 1px solid #e0e0e0; }
.gromada-age-badge {
  flex-shrink: 0; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600; color: #fff !important;
  white-space: nowrap; align-self: center;
}
/* Лічильник користувачів громади (лише суперюзер):
   зелений — підключені, бурштиновий — запрошення (ще не зайшли), сірий — деактивовані */
.gromada-users { flex-shrink: 0; display: inline-flex; gap: 3px; align-self: center; }
.gromada-users .u-pill {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; line-height: 1; color: #fff;
}
.gromada-users .u-active  { background: #27ae60; }
.gromada-users .u-invited { background: #e0a800; }
.gromada-users .u-deact   { background: #c0392b; }
.gromada-users .u-empty   { background: #e0e0e0; color: #999; }
/* Повнота даних громади (лише суперюзер): ЄДРА / НГО / Торги й суди.
   Зелений — є, бурштиновий — в процесі (НГО: чекаємо відповідей ДЗК), сірий контур — немає */
.gromada-status { flex-shrink: 0; display: inline-flex; gap: 3px; align-self: center; }
.gromada-status .s-chip {
  height: 18px; padding: 0 6px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; line-height: 1; letter-spacing: 0.3px;
  border: 1px solid transparent; color: #fff;
}
.gromada-status .s-yes  { background: #1e4d2b; }
.gromada-status .s-wip  { background: #e0a800; }
.gromada-status .s-no   { background: transparent; color: #bbb; border-color: #e0e0e0; }
#gromada-legend {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  margin: -10px 0 14px; font-size: 11px; color: #777; font-family: 'Rubik', sans-serif;
}
#gromada-legend .gromada-status { gap: 4px; align-items: center; }
