/* SG UPCOMING EVENTS — TOOLTIP (SAFE, NO GLOBAL OVERFLOW HACKS) */

/* CRITICAL: Keep tooltip template hidden inside cards - MULTIPLE LAYERS */
.sg-event-tooltip[hidden],
.sg-event-card .sg-event-tooltip,
.sg-event-card .sg-event-tooltip[hidden] {
  display: none !important;
}

/* Extra safety: Even if [hidden] attribute is removed somehow */
.sg-event-tooltip {
  position: absolute !important;
  clip: rect(0,0,0,0) !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

/* Portal tooltip that appears on hover */
.sg-upcoming-tooltip-portal {
  position: fixed;
  z-index: 999999;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 10, 30, 0.96);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 18px 55px rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.92);
  pointer-events: none; /* tooltip should not steal hover */
  
  /* Reset any inherited hidden properties */
  clip: auto !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  white-space: normal !important;
}

.sg-upcoming-tooltip-portal .sg-tooltip-title {
  color: #d4af37;
  font-weight: 700;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.sg-upcoming-tooltip-portal .sg-tooltip-body {
  margin: 0;
  line-height: 1.45;
  font-size: 0.98rem;
  color: #d4af37;
}

.sg-upcoming-tooltip-portal .sg-tooltip-body p {
  color: #d4af37;
  margin: 6px 0;
}

.sg-upcoming-tooltip-portal .sg-tooltip-body strong {
  color: #f6e05e;
}

@media (max-width: 900px) {
  /* On touch devices we'll use click-to-toggle, so allow pointer events */
  .sg-upcoming-tooltip-portal {
    pointer-events: auto;
  }
}
