/* Single event/coach map toggle. Depends on event-map.js + Leaflet CSS (loaded dynamically). */

/* Map wrapper */
#event_map_wrap {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transform: scaleY(0.98);
  transform-origin: top;
  transition:
    max-height 0.45s ease,
    height 0.45s ease,
    opacity 0.35s ease,
    transform 0.45s ease,
    margin-top 0.45s ease,
    margin-bottom 0.45s ease;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 25px;
}

/* Map wrapper — open state */
#event_map_wrap.is-open {
  max-height: 250px;
  height: 250px;
  opacity: 1;
  overflow: hidden;
  transform: scaleY(1);
  margin-top: -20px;
  margin-bottom: 10px;
}

/* Toggle button */
#toggle_map_btn {
  cursor: pointer;
}

/* Constrain the Elementor HTML widget to its column */
.elementor-widget-html:has(#event_map_wrap) {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Leaflet override: matching border-radius on leaflet-container */
#event_map_wrap.leaflet-container {
  border-radius: 25px;
}

/* Hide reCAPTCHA badge */
.grecaptcha-badge { visibility: hidden; }
