/**
 * FSF Map Overlay Guard
 * ID: FSF-LOCUX-PHASE2-MAP-SCROLL-GUARD-OVERLAY
 *
 * Strategy: Overlay-based event interception
 * - Transparent overlay sits above map container
 * - Active state: blocks map interaction, allows page scroll
 * - Inactive state: overlay hidden, map fully interactive
 */

.fsf-map-overlay-guard {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.01); /* Nearly invisible */
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  
  /* Block all pointer events when active */
  pointer-events: auto;
  
  /* Visible by default */
  opacity: 1;
  visibility: visible;
}

/* Active state (blocking) */
.fsf-map-overlay-guard.fsf-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Inactive state (map interactive) */
.fsf-map-overlay-guard.fsf-inactive {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Optional: Hint text on hover (desktop only) */
.fsf-map-overlay-guard.fsf-active::before {
  content: 'Tap to interact with map';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Show hint on hover (desktop) or touch (mobile) */
.fsf-map-overlay-guard.fsf-active:hover::before {
  opacity: 1;
}

/* Hide hint when inactive */
.fsf-map-overlay-guard.fsf-inactive::before {
  display: none;
}
