/* ======================================================
   MCP PHASE 1 — HEATMAP UX (UM Directory SsTmz)
   - Hide profile cards/grid
   - Show map
   - Bottom-sheet preview card
====================================================== */

/* Hide the member cards/grid when heatmap is active */
body.mcp-heatmap-active .um-members-wrapper,
body.mcp-heatmap-active .um-members,
body.mcp-heatmap-active .um-members-list,
body.mcp-heatmap-active .um-members-grid,
body.mcp-heatmap-active .um-directory .um-members {
  display: none !important;
}

/* Keep the map visible */
body.mcp-heatmap-active .um-directory-map,
body.mcp-heatmap-active .um-user-locations-map,
body.mcp-heatmap-active .um-directory .um-user-locations-map {
  display: block !important;
}

/* Bottom sheet container */
#mcp-heatmap-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  display: none;
  padding: 10px 12px 12px;
  pointer-events: none; /* allow map interaction except on the card */
}

#mcp-heatmap-sheet.mcp-show {
  display: block;
}

/* The card */
#mcp-heatmap-sheet .mcp-card {
  pointer-events: auto;
  margin: 0 auto;
  width: min(720px, 100%);
  background: rgba(18, 18, 18, 0.96);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  overflow: hidden;
}

/* Header row */
#mcp-heatmap-sheet .mcp-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px 10px;
}

/* Avatar */
#mcp-heatmap-sheet .mcp-ava {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 54px;
  background: rgba(255,255,255,.08);
}
#mcp-heatmap-sheet .mcp-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title/meta */
#mcp-heatmap-sheet .mcp-info {
  flex: 1;
  min-width: 0;
}
#mcp-heatmap-sheet .mcp-name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#mcp-heatmap-sheet .mcp-meta {
  font-size: 13px;
  opacity: 0.9;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Close button */
#mcp-heatmap-sheet .mcp-close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
}

/* Actions */
#mcp-heatmap-sheet .mcp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 12px 12px;
}

#mcp-heatmap-sheet .mcp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 13px;
  border: 0;
  cursor: pointer;
  color: #fff !important;
  background: rgba(255,255,255,0.14);
}

#mcp-heatmap-sheet .mcp-btn.mcp-primary {
  background: rgba(43,124,255,1);
}

#mcp-heatmap-sheet .mcp-btn.mcp-danger {
  background: rgba(255,255,255,0.10);
}
