#map-wrap {
  position: absolute;
  inset: 0;
}
#map-attrib {
  position: absolute;
  right: 70px;
  bottom: 8px;
  z-index: 5;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 10px;
  line-height: 1.2;
  border-radius: 3px;
  pointer-events: none;
}

.maplibregl-popup {
  z-index: 4000;
}

/* наш прозрачный фон */
.maplibregl-popup-content {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.8) !important;
  border-radius: 16px;
  border: 1px solid rgba(172,229,238,0.9);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.9);
  backdrop-filter: blur(16px);
}

/* полностью убираем «носик» и любые фоны вокруг него */
.maplibregl-popup-tip,
.maplibregl-popup-anchor-top .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  display: none !important;
}

.maplibregl-popup-close-button {
  display: none !important;
}

.maplibregl-popup-close-button:hover {
  color: #ff453a;
}

.maplibregl-popup-content strong {
  font-weight: 600;
}

.maplibregl-popup-content button {
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #0a84ff, #4cd964);
  color: #fff;
  font-weight: 600;
}

.maplibregl-popup-content button + button {
  margin-top: 4px;
  background: rgba(255,59,48,0.9);
}

    * { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
    html, body {
      margin: 0;
      height: 100%;
      background: #000;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      overflow: hidden;
    }
	#map {
	  position: absolute;
	  inset: 0;
	  background: #000;
	}
	.house-label {
	  color: #ffffff;
	  font-size: 11px;
	  font-weight: 600;
	  text-shadow: 0 0 2px #000, 0 0 4px #000;
	}
	
/* одна кнопка-аватар с рамкой */
#loginBtn {
  position: absolute;
  top: 18px;
  left: 8px;
  z-index: 2600;

  width: 54px;
  height: 54px;
  padding: 0;

  border-radius: 20px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;  /* обрезаем фото по форме рамки */

  background-color: #000;  /* фон под фото, если не загрузится */
  cursor: pointer;
  outline: none;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.9);

  display: flex;
  align-items: center;
  justify-content: center;
}

/* текст внутри кнопки не показываем */
#loginLabel {
  display: none;
}

/* loginAvatar теперь не нужен как отдельный слой */
#loginAvatar {
  display: none;
}

/* само фото прямо внутри кнопки */
#loginAvatarImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none; /* включаешь в JS, когда аватар есть */
}

/* подпись имени под кнопкой */
#loginNameLabel {
  position: absolute;
  top: 78px;   /* сразу под кнопкой и над первым пином (public-strip padding-top = 80px) */
  left: 8px;
  z-index: 2600;

  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.85);

  padding: 2px 8px 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);

  pointer-events: none;
}