html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f4f8;
}

#map {
  position: fixed;
  inset: 0;
}

.group-marker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
  font: inherit;
  pointer-events: none;
  white-space: nowrap;
}

.group-marker-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #6a3d9a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.group-marker-label {
  color: #4b2e83;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.05;
  text-shadow:
    -1px -1px 0 #ffffff,
    1px -1px 0 #ffffff,
    -1px 1px 0 #ffffff,
    1px 1px 0 #ffffff,
    0 1px 3px rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

.maplibregl-ctrl-top-right {
  top: 10px;
  right: 10px;
}

.maplibregl-ctrl-scale {
  border-color: #222;
  color: #222;
  background: rgba(255, 255, 255, 0.78);
}

.maplibregl-ctrl-attrib {
  font-size: 11px;
}

.maplibregl-popup {
  max-width: min(310px, calc(100vw - 28px));
}

.maplibregl-popup-content {
  padding: 13px;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.popup-group {
  min-width: 205px;
  color: #202124;
}

.popup-group-emblem {
  display: block;
  width: 72px;
  max-height: 72px;
  object-fit: contain;
  margin: 0 auto 9px;
}

.popup-title {
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.popup-address {
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 12.5px;
  line-height: 1.35;
}

.popup-link a {
  color: #4b2e83;
  font-size: 12.5px;
  font-weight: 750;
  text-decoration: none;
}

.popup-link a:hover {
  text-decoration: underline;
}
