/* 1. Header zelf */
.elementor-location-header { overflow: visible; }

/* Tab shape row: purely decorative, must not intercept mouse events.
 * pointer-events is NOT inherited, so we need * to cover all Elementor
 * wrapper children (e-con-inner, elementor-widget-container, etc.). */
.elementor-location-header .elementor-element-f69a021,
.elementor-location-header .elementor-element-f69a021 * {
  pointer-events: none !important;
}

/* 0) VERWIJDER stacking contexts op de nav-wrappers (cruciaal) */
.elementor-24 [data-id="af9b82f"],
.elementor-24 [data-id="729c670"],
#ekit-megamenu-standaard,
#ekit-megamenu-standaard .elementskit-menu-container {

  position: relative;
  z-index: auto !important;
  transform: none !important;
  overflow: visible !important;
}

/* 3) MEGAMENU-PANEL */
#menu-item-119 > .elementskit-megamenu-panel {
  position: absolute;
  z-index: 20 !important;
}

@media (min-width: 2000px) {
  .elementor-24 [data-id="95d5182"].header-curve::after {

    -webkit-mask-size: 120% 100%;
    mask-size: 120% 100%;
    -webkit-mask-position: left bottom;
    mask-position: left bottom;
  }
}


@media (min-width: 2400px) {
  .elementor-24 [data-id="95d5182"].header-curve::after {

    -webkit-mask-size: 160% 100%;
    mask-size: 160% 100%;
    -webkit-mask-position: left bottom;
    mask-position: left bottom;
  }
}

/* === MEGA MENU: intent delay + fade-in (desktop only) ===
 *
 * The panel's built-in transition only covers `transform`, which is already
 * overridden to `none`, so there was effectively zero animation.
 * We add opacity + visibility transitions here.
 *
 * Hide  : fade out over 150 ms (no delay), then flip visibility hidden.
 * Show  : wait 200 ms (intent filter — brief hover does nothing),
 *         flip visibility visible, then fade in over 300 ms.
 */
@media (min-width: 1200px) {
  .elementor-location-header .elementskit-megamenu-has > .elementskit-megamenu-panel {
    transition: opacity 150ms ease 0ms, visibility 0ms linear 150ms !important;
  }

  .elementor-location-header .ekit-nav-dropdown-hover .elementskit-megamenu-has:hover > .elementskit-megamenu-panel {
    transition: opacity 150ms ease 100ms, visibility 0ms linear 100ms !important;
  }
}

/* Neutralise the Elementor global kit accent-colour background on nav ::before
 * pseudo-elements inside the mega menu panel. The kit sets
 * background-color: var(--e-global-color-accent) on all
 * .elementor-nav-menu--main:not(.e--pointer-framed) .elementor-item::before
 * which produces a green box on the icon boxes in the mega menu. */
/* .elementskit-megamenu-panel .elementor-nav-menu--main .elementor-item::before,
.elementskit-megamenu-panel .elementor-nav-menu--main .elementor-item::after {
  background-color: transparent !important;
} */


/* Prevent visible line between mega menu and top bar */
.elementor-element-39b6860,
.elementor-element-1437d6b1,
.elementor-element-4b1b515d,
.elementor-element-25de8f9a {
  top: -1px
}

/* overrule elementskit z-index, to have sane stacking contexts */
.elementskit-navbar-nav-default .elementskit-megamenu-panel {
  z-index: 10 !important;
}