.tooltip {
  position: relative;
  display: inline-block;
}
.floating-tooltip {
  position: fixed;
  background: rgba(31, 41, 55, 0.9); /* gray-800 */
  color: white;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out;
  white-space: nowrap;
  z-index: 9999;
}

.tooltip:hover::after {
  opacity: 1;
}

[id^="nav"] {
  scroll-margin-top: 260px;
}

.container {
  overflow: visible; /* or scroll */
  scroll-margin-top: 260px;
}

#filtersPanel {
  color: black !important;
}

#filtersPanel button {
  color: black !important;
}

#filtersPanel input {
  color: black !important;
}

#searchInput {
  color: black !important;
}

body.modal-open {
  overflow: hidden;
}

/* Modal container — fills the whole screen, centered */
#eventModalContainer {
  position: fixed;
  inset: 0;
  /* display: flex; */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  overflow: hidden; /* prevent double scroll here */
}

/* Inner scroll area — scrolls within the modal only */
#eventModalContainer .modal-content {
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
}

/* 1️⃣ Default: header behaves normally */
header {
  position: sticky;
  top: 0;
  z-index: 40;
}

/* 2️⃣ When filters are open — limit height and make header scrollable */
header.filters-open {
  position: fixed; /* So it overlays the page */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* Fill viewport */
  overflow-y: auto; /* Allow inner scroll */
  z-index: 9999; /* Make sure it's on top */
}

/* Optional: prevent background scroll when filters open */
body.no-scroll {
  overflow: hidden;
}
