/* =========================================================
   Block: Markets Hero IL
   File: blocks/il-markets-hero/style.css
   ========================================================= */

.il-markets-hero-section,
.il-markets-hero-editor {
  position: relative;
  width: 100%;
  max-width: none !important;
  min-height: var(--mh-il-min-height, 760px);
  overflow: hidden;
  isolation: isolate;
  background: var(--mh-il-bg, #1a301a);
  color: var(--mh-il-heading-color, #ffffff);
  border-style: none !important;
}

.il-markets-hero-section::before,
.il-markets-hero-editor::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 42%, var(--mh-il-map-glow, rgba(38, 173, 33, 0.32)), transparent 34rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 42%);
  opacity: var(--mh-il-section-decorations-opacity, 1);
}

.il-markets-hero-section {
  margin: 0;
}

.il-markets-hero-section *,
.il-markets-hero-section *::before,
.il-markets-hero-section *::after,
.il-markets-hero-editor *,
.il-markets-hero-editor *::before,
.il-markets-hero-editor *::after {
  box-sizing: border-box;
}


/* =========================================================
   Slider structure
   ========================================================= */

.il-markets-hero-slider {
  --mh-il-current-slide-x: 0%;
}

.il-markets-hero-slider__track {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: var(--mh-il-min-height, 760px);
  display: grid;
  overflow: hidden;
}

.il-markets-hero-slide {
  position: relative;
  grid-area: 1 / 1;
  width: 100%;
  min-height: var(--mh-il-min-height, 760px);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(var(--mh-il-slider-motion-distance, 24px));
  transition:
    opacity var(--mh-il-slider-transition, 550ms) ease,
    visibility var(--mh-il-slider-transition, 550ms) ease,
    transform var(--mh-il-slider-transition, 550ms) ease;
}

.il-markets-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
}

.il-markets-hero-slide.is-leaving {
  opacity: 0;
  visibility: visible;
  transform: translateX(calc(var(--mh-il-slider-motion-distance, 24px) * -1));
  z-index: 1;
}

.il-markets-hero-slide.is-map {
  background: var(--mh-il-bg, #1a301a);
}

.il-markets-hero-slide.is-standard {
  background: var(--mh-il-standard-bg, var(--mh-il-bg, #1a301a));
}

.il-markets-hero-section.has-single-slide .il-markets-hero-slide,
.il-markets-hero-editor .il-markets-hero-slide {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}


/* =========================================================
   Standard slide background
   ========================================================= */

.il-markets-hero__standard-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background:
    var(--mh-il-standard-bg-image, none),
    var(--mh-il-standard-bg, #1a301a);
  background-position: var(--mh-il-standard-bg-position, center center);
  background-size: var(--mh-il-standard-bg-size, cover);
  background-repeat: no-repeat;
}

@media (max-width: 767px) {
  .il-markets-hero__standard-bg {
    background:
      var(--mh-il-standard-mobile-bg-image, var(--mh-il-standard-bg-image, none)),
      var(--mh-il-standard-bg, #1a301a);
    background-position: var(--mh-il-standard-mobile-bg-position, var(--mh-il-standard-bg-position, center center));
    background-size: var(--mh-il-standard-mobile-bg-size, var(--mh-il-standard-bg-size, cover));
    background-repeat: no-repeat;
  }
}

.il-markets-hero__standard-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 40%, var(--mh-il-map-glow, rgba(38, 173, 33, 0.32)), transparent 36rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 42%);
  opacity: calc(0.88 * var(--mh-il-slide-decorations-opacity, 1));
}

.il-markets-hero__standard-bg-overlay {
  display: var(--mh-il-slide-overlay-display, block);
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      var(--mh-il-standard-overlay, rgba(26, 48, 26, 0.42)) 0%,
      rgba(26, 48, 26, 0.26) 48%,
      rgba(26, 48, 26, 0.06) 100%
    ),
    radial-gradient(circle at 28% 50%, rgba(26, 48, 26, 0.22), transparent 36rem);
  opacity: var(--mh-il-slide-overlay-opacity, 1);
}


/* =========================================================
   Map layer
   ========================================================= */

.il-markets-hero__map-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 32rem),
    var(--mh-il-map-bg, #f0f0f0);
}

.il-markets-hero__map-layer::before {
  content: "";
  display: var(--mh-il-map-grid-display, block);
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--mh-il-map-grid-color, rgba(26, 48, 26, 0.045)) 1px, transparent 1px),
    linear-gradient(90deg, var(--mh-il-map-grid-color, rgba(26, 48, 26, 0.045)) 1px, transparent 1px);
  background-size: var(--mh-il-map-grid-size, 72px) var(--mh-il-map-grid-size, 72px);
  opacity: calc(var(--mh-il-map-grid-opacity, 0.34) * var(--mh-il-slide-decorations-opacity, 1));
}

.il-markets-hero__map-layer::after {
  content: "";
  display: var(--mh-il-map-glow-display, block);
  position: absolute;
  right: -18vw;
  top: 50%;
  z-index: 2;
  width: 58vw;
  height: 58vw;
  min-width: 520px;
  min-height: 520px;
  border-radius: 999px;
  background:
    radial-gradient(circle, var(--mh-il-map-glow, rgba(38, 173, 33, 0.32)), transparent 62%);
  opacity: calc(var(--mh-il-map-glow-opacity, 0.48) * var(--mh-il-slide-decorations-opacity, 1));
  transform: translateY(-50%);
  pointer-events: none;
}

.il-markets-hero__overlay {
  display: var(--mh-il-slide-overlay-display, block);
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      var(--mh-il-overlay, rgba(26, 48, 26, 0.34)) 0%,
      rgba(26, 48, 26, 0.18) 48%,
      rgba(26, 48, 26, 0.04) 100%
    ),
    radial-gradient(circle at 28% 50%, rgba(26, 48, 26, 0.24), transparent 36rem);
  opacity: calc(var(--mh-il-slide-overlay-opacity, 1) * var(--mh-il-map-overlay-opacity, 1));
}


/* =========================================================
   D3 world map wrapper
   ========================================================= */

.il-markets-hero__world-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: var(--mh-il-map-opacity, 1);
  transform:
    translate(var(--mh-il-map-offset-x, 0px), var(--mh-il-map-offset-y, 20px))
    scale(var(--mh-il-map-scale, 1.08));
  transform-origin: center center;
  will-change: transform;
}

/*
   Tryb flyTo:
   - zewnętrzny wrapper mapy NIE może być dodatkowo skalowany CSS-em,
   - animowana jest wyłącznie wewnętrzna grupa SVG .map-viewport w app.js.
*/

.il-markets-hero__world-map.is-fly-to-mode,
.il-markets-hero-section[data-fly-to-active="true"] .il-markets-hero__world-map,
.il-markets-hero-section[data-animation-type="flyTo"] .il-markets-hero__world-map.is-fly-to-mode,
.il-markets-hero-slide[data-animation-type="flyTo"] .il-markets-hero__world-map.is-fly-to-mode {
  transform: none !important;
}

/*
   SVG ma wypełnić pełną wysokość kontenera.
*/

.il-markets-hero__world-map svg,
.il-markets-hero__svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: var(--mh-il-map-max-width, 1480px);
  margin-inline: auto;
  overflow: visible;
  background: var(--mh-il-map-ocean, #f0f0f0);
}

/*
   W trybie flyTo SVG musi mieć pełną szerokość i wysokość warstwy,
   żeby app.js mógł poprawnie liczyć środek widoku.
*/

.il-markets-hero-section[data-fly-to-active="true"] .il-markets-hero__world-map svg,
.il-markets-hero-section[data-fly-to-active="true"] .il-markets-hero__svg,
.il-markets-hero__world-map.is-fly-to-mode svg,
.il-markets-hero__world-map.is-fly-to-mode .il-markets-hero__svg {
  width: 100%;
  height: 100%;
  max-width: none;
  margin-inline: 0;
}

.il-markets-hero__world-map .map-viewport {
  will-change: transform;
}

.il-markets-hero__world-map .countries-layer {
  transform-box: view-box;
  transform-origin: center center;
}


/* =========================================================
   Loading / error
   ========================================================= */

.il-markets-hero__map-loading {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(26, 48, 26, 0.64);
  font-family: var(--font-heading, Inter, Arial, sans-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.il-markets-hero__world-map.is-map-ready .il-markets-hero__map-loading {
  display: none;
}

.il-markets-hero__world-map.has-map-error .il-markets-hero__map-loading {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(26, 48, 26, 0.72);
}


/* =========================================================
   D3 country states
   ========================================================= */

.il-markets-hero__world-map .country {
  fill: var(--mh-il-country-neutral, #cccccc);
  stroke: var(--mh-il-country-stroke, #ffffff);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
  opacity: 0.92;
  transition:
    fill 0.34s ease,
    stroke 0.34s ease,
    stroke-width 0.34s ease,
    opacity 0.34s ease,
    filter 0.34s ease;
}

.il-markets-hero__world-map .country.is-market-target {
  opacity: 0.96;
}

.il-markets-hero__world-map .country.is-active,
.il-markets-hero__world-map .country.is-market-revealed {
  fill: var(--mh-il-country-active, #4a8a4a);
  stroke: var(--mh-il-country-stroke, #ffffff);
  opacity: 1;
}

.il-markets-hero__world-map .country.is-market-current {
  fill: var(--mh-il-country-current, #26ad21);
  stroke: var(--mh-il-country-current-stroke, #ffffff);
  stroke-width: 1.45;
  opacity: 1;
  filter: drop-shadow(0 0 12px var(--mh-il-map-glow, rgba(38, 173, 33, 0.32)));
  animation: mhIlCountryPulse 0.76s ease-out;
}

.il-markets-hero__world-map .country-borders {
  fill: none;
  stroke: var(--mh-il-country-stroke, #ffffff);
  stroke-width: 0.55;
  vector-effect: non-scaling-stroke;
  opacity: 0.88;
  pointer-events: none;
}

.il-markets-hero__world-map.is-sequence-complete svg {
  animation: mhIlMapComplete 1.2s ease-out;
}

.il-markets-hero-section[data-animation-type="flyTo"] .il-markets-hero__world-map .country,
.il-markets-hero-slide[data-animation-type="flyTo"] .il-markets-hero__world-map .country {
  transition:
    fill 0.24s ease,
    stroke 0.24s ease,
    stroke-width 0.24s ease,
    opacity 0.24s ease,
    filter 0.24s ease;
}

.il-markets-hero-section[data-animation-type="flyTo"] .il-markets-hero__world-map .country.is-market-current,
.il-markets-hero-slide[data-animation-type="flyTo"] .il-markets-hero__world-map .country.is-market-current {
  filter:
    drop-shadow(0 0 8px var(--mh-il-map-glow, rgba(38, 173, 33, 0.32)))
    drop-shadow(0 0 18px var(--mh-il-map-glow, rgba(38, 173, 33, 0.32)));
}

.il-markets-hero__world-map[data-missing-countries]::after {
  content: "Missing countries in map: " attr(data-missing-countries);
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 9;
  max-width: 360px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(26, 48, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  font-family: var(--font-body, Lato, Arial, sans-serif);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  pointer-events: none;
}


/* =========================================================
   Country label
   ========================================================= */

.il-markets-hero__country-label {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 50%;
  padding-top: var(--mh-il-country-label-padding-top, 9px);
  padding-right: var(--mh-il-country-label-padding-right, 14px);
  padding-bottom: var(--mh-il-country-label-padding-bottom, 9px);
  padding-left: var(--mh-il-country-label-padding-left, 14px);
  color: var(--mh-il-country-label-color, #ffffff);
  background: var(--mh-il-country-label-bg, #4a8a4a);
  border-width: var(--mh-il-country-label-stroke-size, 1px);
  border-style: solid;
  border-color: var(--mh-il-country-label-border, rgba(255, 255, 255, 0.72));
  border-radius: var(--mh-il-country-label-radius, 999px);
  font-family: var(--mh-il-country-label-family, Inter, Arial, sans-serif);
  font-size: var(--mh-il-country-label-size, 13px);
  font-weight: var(--mh-il-country-label-weight, 700);
  line-height: var(--mh-il-country-label-line, 1);
  letter-spacing: var(--mh-il-country-label-spacing, 0.02em);
  text-transform: var(--mh-il-country-label-transform, none);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -145%) scale(0.94);
  box-shadow: var(--mh-il-country-label-shadow, 0 16px 36px rgba(26, 48, 26, 0.22));
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.il-markets-hero__country-label::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 9px;
  height: 9px;
  background: var(--mh-il-country-label-bg, #4a8a4a);
  border-right: var(--mh-il-country-label-stroke-size, 1px) solid var(--mh-il-country-label-border, rgba(255, 255, 255, 0.72));
  border-bottom: var(--mh-il-country-label-stroke-size, 1px) solid var(--mh-il-country-label-border, rgba(255, 255, 255, 0.72));
  transform: translate(-50%, -5px) rotate(45deg);
}

.il-markets-hero__country-label.is-visible {
  opacity: 1;
  transform: translate(-50%, -165%) scale(1);
}

.il-markets-hero-section[data-animation-type="flyTo"] .il-markets-hero__country-label,
.il-markets-hero-slide[data-animation-type="flyTo"] .il-markets-hero__country-label {
  z-index: 9;
  box-shadow:
    0 16px 36px rgba(26, 48, 26, 0.28),
    0 0 0 6px rgba(38, 173, 33, 0.12);
}


/* =========================================================
   Editor preview map
   ========================================================= */

.il-markets-hero__world-map-preview {
  background: var(--mh-il-map-ocean, #f0f0f0);
}

.il-markets-hero__preview-svg {
  width: 100%;
  height: 100%;
  max-width: var(--mh-il-map-max-width, 1480px);
  margin-inline: auto;
  display: block;
  background: var(--mh-il-map-ocean, #f0f0f0);
}

.il-markets-hero__preview-ocean {
  fill: var(--mh-il-map-ocean, #f0f0f0);
}

.il-markets-hero__preview-land {
  fill: var(--mh-il-country-neutral, #cccccc);
  stroke: var(--mh-il-country-stroke, #ffffff);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.il-markets-hero__preview-country circle {
  fill: var(--mh-il-country-neutral, #cccccc);
  stroke: var(--mh-il-country-stroke, #ffffff);
  stroke-width: 1;
}

.il-markets-hero__preview-country text {
  fill: rgba(26, 48, 26, 0.68);
  font-family: var(--font-heading, Inter, Arial, sans-serif);
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}

.il-markets-hero__preview-country.is-active circle,
.il-markets-hero__preview-country.is-market-revealed circle {
  fill: var(--mh-il-country-active, #4a8a4a);
}

.il-markets-hero__preview-country.is-market-current circle {
  fill: var(--mh-il-country-current, #26ad21);
  stroke: var(--mh-il-country-current-stroke, #ffffff);
  stroke-width: 2;
  filter: drop-shadow(0 0 12px var(--mh-il-map-glow, rgba(38, 173, 33, 0.32)));
}

.il-markets-hero__preview-country.is-market-current text {
  fill: #ffffff;
}

.il-markets-hero__world-map-preview.is-preview-fly-to .il-markets-hero__preview-country.is-market-current circle {
  r: 20;
}


/* =========================================================
   Content layout
   ========================================================= */

.il-markets-hero__container {
  position: relative;
  z-index: 6;
  width: min(
    calc(100% - (var(--mh-il-container-padding-x, 48px) * 2)),
    var(--mh-il-container-max-width, 1200px)
  );
  min-height: var(--mh-il-min-height, 760px);
  margin-inline: auto;
  display: flex;
  align-items: var(--mh-il-content-align-y, center);
  justify-content: var(--mh-il-content-align-x, flex-start);
  pointer-events: none;
}

.il-markets-hero-section[style*="--mh-il-container-max-width:none"] .il-markets-hero__container,
.il-markets-hero-editor[style*="--mh-il-container-max-width:none"] .il-markets-hero__container {
  width: calc(100% - (var(--mh-il-container-padding-x, 48px) * 2));
  max-width: none;
}

.il-markets-hero__content {
  width: 100%;
  max-width: var(--mh-il-content-max-width, 720px);
  padding-top: var(--mh-il-content-offset-top, 120px);
  margin-left: var(--mh-il-content-offset-left, 0px);
  text-align: var(--mh-il-text-align, left);
  pointer-events: auto;
}

.il-markets-hero-slide.is-active .il-markets-hero__content {
  animation-name: var(--mh-il-content-enter-animation, mhIlContentEnter);
  animation-duration: var(--mh-il-content-enter-duration, 650ms);
  animation-delay: var(--mh-il-content-enter-delay, 120ms);
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: both;
}

.il-markets-hero-section[data-content-free-position="true"] .il-markets-hero__container,
.il-markets-hero-editor[data-content-free-position="true"] .il-markets-hero__container,
.il-markets-hero-slide[data-content-free-position="true"] .il-markets-hero__container {
  display: block;
}

.il-markets-hero-section[data-content-free-position="true"] .il-markets-hero__content,
.il-markets-hero-editor[data-content-free-position="true"] .il-markets-hero__content,
.il-markets-hero-slide[data-content-free-position="true"] .il-markets-hero__content {
  position: absolute;
  left: var(--mh-il-content-position-x, 0%);
  top: var(--mh-il-content-position-y, 50%);
  margin-left: 0;
  padding-top: 0;
  transform:
    translateX(var(--mh-il-content-translate-x, 0%))
    translateY(var(--mh-il-content-translate-y, -50%));
}


/* =========================================================
   Eyebrow
   ========================================================= */

.il-markets-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--mh-il-eyebrow-line-gap, 10px);
  margin: 0 0 var(--mh-il-eyebrow-margin-bottom, 18px);
  color: var(--mh-il-eyebrow-color, #26ad21);
  font-family: var(--mh-il-eyebrow-family, Inter, Arial, sans-serif);
  font-size: var(--mh-il-eyebrow-size, 13px);
  font-weight: var(--mh-il-eyebrow-weight, 700);
  line-height: var(--mh-il-eyebrow-line, 1);
  letter-spacing: var(--mh-il-eyebrow-spacing, 0.08em);
  text-transform: var(--mh-il-eyebrow-transform, uppercase);
}

.il-markets-hero__eyebrow::before {
  content: "";
  display: var(--mh-il-eyebrow-line-display, block);
  width: var(--mh-il-eyebrow-line-width, 22px);
  height: var(--mh-il-eyebrow-line-thickness, 1px);
  flex: 0 0 var(--mh-il-eyebrow-line-width, 22px);
  background: var(--mh-il-eyebrow-line-color, currentColor);
}


/* =========================================================
   Heading
   ========================================================= */

.il-markets-hero__heading {
  display: block;
  max-width: var(--mh-il-content-max-width, 720px);
  margin: 0 0 var(--mh-il-heading-margin-bottom, 28px);
  color: var(--mh-il-heading-color, #ffffff);
  font-family: var(--mh-il-heading-family, Inter, Arial, sans-serif);
  font-size: var(--mh-il-heading-size, 60px);
  font-weight: var(--mh-il-heading-weight, 700);
  line-height: var(--mh-il-heading-line, 1.1);
  letter-spacing: var(--mh-il-heading-spacing, 0em);
  text-transform: var(--mh-il-heading-transform, none);
}

.il-markets-hero__heading span {
  display: inline;
  white-space: normal;
}

.il-markets-hero__heading-highlight {
  color: var(--mh-il-heading-highlight-color, #26ad21);
}


/* =========================================================
   Description
   ========================================================= */

.il-markets-hero__description {
  max-width: var(--mh-il-description-max-width, 620px);
  margin: 0;
  color: var(--mh-il-description-color, rgba(255, 255, 255, 0.82));
  font-family: var(--mh-il-description-family, Lato, Arial, sans-serif);
  font-size: var(--mh-il-description-size, 16px);
  font-weight: var(--mh-il-description-weight, 400);
  line-height: var(--mh-il-description-line, 1.625);
  letter-spacing: var(--mh-il-description-spacing, 0em);
  text-transform: var(--mh-il-description-transform, none);
}


/* =========================================================
   Button
   ========================================================= */

.il-markets-hero__button {
  width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: var(--mh-il-button-margin-top, 34px);
  padding-top: var(--mh-il-button-padding-top, 18px);
  padding-right: var(--mh-il-button-padding-right, 30px);
  padding-bottom: var(--mh-il-button-padding-bottom, 18px);
  padding-left: var(--mh-il-button-padding-left, 30px);
  color: var(--mh-il-button-color, #ffffff);
  background: var(--mh-il-button-bg, #4a8a4a);
  border-width: var(--mh-il-button-stroke-size, 1px);
  border-style: solid;
  border-color: var(--mh-il-button-stroke, transparent);
  border-radius: var(--mh-il-button-radius, 999px);
  font-family: var(--mh-il-button-family, Lato, Arial, sans-serif);
  font-size: var(--mh-il-button-size, 16px);
  font-weight: var(--mh-il-button-weight, 700);
  line-height: var(--mh-il-button-line, 1);
  letter-spacing: var(--mh-il-button-spacing, 0em);
  text-transform: var(--mh-il-button-transform, none);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--mh-il-button-shadow, none);
  cursor: pointer;
  transition:
    transform 0.24s ease,
    color 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    filter 0.24s ease;
}

.il-markets-hero__button:hover {
  transform: translateY(-2px);
  color: var(--mh-il-button-color-hover, #ffffff);
  background: var(--mh-il-button-bg-hover, #26ad21);
  border-color: var(--mh-il-button-stroke-hover, transparent);
  box-shadow: var(--mh-il-button-shadow, none);
  filter: brightness(1.03);
}

.il-markets-hero__button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.il-markets-hero__button span {
  display: inline-flex;
  transition: transform 0.24s ease;
}

.il-markets-hero__button:hover span {
  transform: translateX(4px);
}


/* =========================================================
   Slider arrows
   ========================================================= */

.il-markets-hero-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 20;
  width: var(--mh-il-slider-arrow-size, 48px);
  height: var(--mh-il-slider-arrow-size, 48px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mh-il-slider-arrow-color, #ffffff);
  background: var(--mh-il-slider-arrow-bg, rgba(26, 48, 26, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-family: var(--mh-il-heading-family, Inter, Arial, sans-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease,
    opacity 0.22s ease;
}

.il-markets-hero-slider__arrow:hover {
  color: var(--mh-il-slider-arrow-color-hover, #ffffff);
  background: var(--mh-il-slider-arrow-bg-hover, rgba(74, 138, 74, 0.92));
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-50%) scale(1.04);
}

.il-markets-hero-slider__arrow:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.il-markets-hero-slider__arrow.is-prev {
  left: var(--mh-il-slider-arrow-side-offset, 28px);
}

.il-markets-hero-slider__arrow.is-next {
  right: var(--mh-il-slider-arrow-side-offset, 28px);
}

.il-markets-hero-section.has-single-slide .il-markets-hero-slider__arrow {
  display: none;
}

.il-markets-hero-slider__arrow span {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}


/* =========================================================
   Slider dots
   ========================================================= */

.il-markets-hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: var(--mh-il-slider-dots-bottom, 28px);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--mh-il-slider-dots-gap, 10px);
  transform: translateX(-50%);
}

.il-markets-hero-slider__dot {
  width: var(--mh-il-slider-dot-size, 10px);
  height: var(--mh-il-slider-dot-size, 10px);
  display: inline-flex;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--mh-il-slider-dot-color, rgba(255, 255, 255, 0.42));
  cursor: pointer;
  transition:
    width 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s ease;
}

.il-markets-hero-slider__dot:hover {
  background: var(--mh-il-slider-dot-color-hover, rgba(255, 255, 255, 0.72));
  transform: scale(1.08);
}

.il-markets-hero-slider__dot.is-active {
  width: var(--mh-il-slider-dot-active-width, 30px);
  background: var(--mh-il-slider-dot-active, #26ad21);
}

.il-markets-hero-slider__dot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.il-markets-hero-section.has-single-slide .il-markets-hero-slider__dots {
  display: none;
}


/* =========================================================
   Editor
   ========================================================= */

.wp-block-agrimpex-il-markets-hero,
.il-markets-hero-editor {
  max-width: none !important;
  width: 100% !important;
}

.il-markets-hero-editor {
  margin: 0;
}

.il-markets-hero-editor .il-markets-hero-slider__track {
  min-height: var(--mh-il-min-height, 760px);
}

.il-markets-hero-editor .il-markets-hero__map-layer,
.il-markets-hero-editor .il-markets-hero__overlay,
.il-markets-hero-editor .il-markets-hero__world-map,
.il-markets-hero-editor .il-markets-hero__standard-bg,
.il-markets-hero-editor svg {
  pointer-events: none;
}

.il-markets-hero-editor [contenteditable="true"] {
  cursor: text;
}

.il-markets-hero-editor [contenteditable="true"]:focus {
  outline: 2px solid rgba(38, 173, 33, 0.55);
  outline-offset: 5px;
}

.il-markets-hero-editor .il-markets-hero__button {
  pointer-events: none;
}

.wp-block-agrimpex-il-markets-hero.is-selected .il-markets-hero-editor,
.wp-block-agrimpex-il-markets-hero.has-child-selected .il-markets-hero-editor {
  outline: 2px solid #007cba;
  outline-offset: -2px;
}

.il-markets-hero__editor-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: 390px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(26, 48, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  font-family: var(--font-body, Lato, Arial, sans-serif);
  font-size: 11px;
  line-height: 1.45;
}

.il-markets-hero-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.il-markets-hero-editor-actions .components-button {
  margin: 0;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .il-markets-hero__container {
    width: min(100% - 36px, var(--mh-il-container-max-width, 1200px));
  }

  .il-markets-hero__heading {
    font-size: clamp(42px, 6vw, var(--mh-il-heading-size, 60px));
  }

  .il-markets-hero__world-map:not(.is-fly-to-mode) {
    transform:
      translate(var(--mh-il-map-offset-x, 0px), var(--mh-il-map-offset-y, 20px))
      scale(max(var(--mh-il-map-scale, 1.08), 1.12));
  }

  .il-markets-hero-slider__arrow.is-prev {
    left: min(var(--mh-il-slider-arrow-side-offset, 28px), 18px);
  }

  .il-markets-hero-slider__arrow.is-next {
    right: min(var(--mh-il-slider-arrow-side-offset, 28px), 18px);
  }
}

@media (max-width: 767px) {
  .il-markets-hero-section,
  .il-markets-hero-editor,
  .il-markets-hero-slider__track,
  .il-markets-hero-slide {
    min-height: var(--mh-il-mobile-min-height, 640px);
  }

  .il-markets-hero__container {
    width: min(
      calc(100% - (var(--mh-il-mobile-container-padding-x, 22px) * 2)),
      100%
    );
    min-height: var(--mh-il-mobile-min-height, 640px);
    justify-content: flex-start;
    align-items: flex-start;
  }

  .il-markets-hero__content {
    max-width: var(--mh-il-mobile-content-max-width, 340px);
    padding-top: var(--mh-il-mobile-content-offset-top, 360px);
    margin-left: var(--mh-il-mobile-content-offset-left, 0px);
    text-align: var(--mh-il-mobile-text-align, left);
  }

  .il-markets-hero-section[data-content-free-position="true"] .il-markets-hero__content,
  .il-markets-hero-editor[data-content-free-position="true"] .il-markets-hero__content,
  .il-markets-hero-slide[data-content-free-position="true"] .il-markets-hero__content {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    padding-top: var(--mh-il-mobile-content-offset-top, 360px);
    margin-left: var(--mh-il-mobile-content-offset-left, 0px);
  }

  .il-markets-hero-slide[data-mobile-content-free-position="true"] .il-markets-hero__container {
    display: block;
  }

  .il-markets-hero-slide[data-mobile-content-free-position="true"] .il-markets-hero__content {
    position: absolute;
    left: var(--mh-il-mobile-content-position-x, 0%);
    top: var(--mh-il-mobile-content-position-y, 50%);
    max-width: var(--mh-il-mobile-content-max-width, 340px);
    margin-left: 0;
    padding-top: 0;
    text-align: var(--mh-il-mobile-text-align, left);
    transform:
      translateX(var(--mh-il-mobile-content-translate-x, 0%))
      translateY(var(--mh-il-mobile-content-translate-y, -50%));
  }

  .il-markets-hero__eyebrow {
    gap: var(--mh-il-mobile-eyebrow-line-gap, 8px);
    margin-bottom: var(--mh-il-mobile-eyebrow-margin-bottom, 14px);
    font-size: var(--mh-il-mobile-eyebrow-size, 12px);
    line-height: var(--mh-il-mobile-eyebrow-line, 1);
  }

  .il-markets-hero__eyebrow::before {
    width: var(--mh-il-mobile-eyebrow-line-width, 18px);
    flex-basis: var(--mh-il-mobile-eyebrow-line-width, 18px);
  }

  .il-markets-hero__heading {
    max-width: 100%;
    margin-bottom: var(--mh-il-mobile-heading-margin-bottom, 18px);
    font-size: var(--mh-il-mobile-heading-size, 42px);
    line-height: var(--mh-il-mobile-heading-line, 1.08);
    letter-spacing: var(--mh-il-heading-spacing, 0em);
  }

  .il-markets-hero__heading span {
    white-space: normal;
  }

  .il-markets-hero__description {
    max-width: var(--mh-il-mobile-description-max-width, 330px);
    font-size: var(--mh-il-mobile-description-size, 15px);
    line-height: var(--mh-il-mobile-description-line, 1.6);
  }

  .il-markets-hero__button {
    width: var(--mh-il-mobile-button-width, 100%);
    margin-top: var(--mh-il-mobile-button-margin-top, 24px);
    padding-top: var(--mh-il-mobile-button-padding-top, 15px);
    padding-right: var(--mh-il-mobile-button-padding-right, 22px);
    padding-bottom: var(--mh-il-mobile-button-padding-bottom, 15px);
    padding-left: var(--mh-il-mobile-button-padding-left, 22px);
    font-size: var(--mh-il-mobile-button-size, 15px);
    white-space: normal;
    text-align: center;
  }

  .il-markets-hero__map-layer::after,
  .il-markets-hero__standard-bg::before {
    right: -48vw;
    width: 90vw;
    height: 90vw;
    min-width: 360px;
    min-height: 360px;
  }

  .il-markets-hero__world-map:not(.is-fly-to-mode) {
    transform:
      translate(
        var(--mh-il-mobile-map-offset-x, 0px),
        var(--mh-il-mobile-map-offset-y, -40px)
      )
      scale(var(--mh-il-mobile-map-scale, 1.45));
  }

  .il-markets-hero__world-map svg,
  .il-markets-hero__svg {
    max-width: var(--mh-il-mobile-map-max-width, 1200px);
  }

  .il-markets-hero__country-label {
    padding-top: var(--mh-il-mobile-country-label-padding-top, 8px);
    padding-right: var(--mh-il-mobile-country-label-padding-right, 12px);
    padding-bottom: var(--mh-il-mobile-country-label-padding-bottom, 8px);
    padding-left: var(--mh-il-mobile-country-label-padding-left, 12px);
    font-size: var(--mh-il-mobile-country-label-size, 12px);
  }

  .il-markets-hero-slider__arrow {
    width: var(--mh-il-mobile-slider-arrow-size, 40px);
    height: var(--mh-il-mobile-slider-arrow-size, 40px);
    top: auto;
    bottom: var(--mh-il-mobile-slider-arrow-bottom, 22px);
    font-size: 28px;
    transform: none;
  }

  .il-markets-hero-slider__arrow:hover {
    transform: scale(1.04);
  }

  .il-markets-hero-slider__arrow.is-prev {
    left: 18px;
  }

  .il-markets-hero-slider__arrow.is-next {
    right: 18px;
  }

  .il-markets-hero-slider__dots {
    bottom: var(--mh-il-mobile-slider-dots-bottom, 20px);
    gap: var(--mh-il-slider-dots-gap, 10px);
  }

  .il-markets-hero-slider__dot {
    width: var(--mh-il-slider-dot-size, 10px);
    height: var(--mh-il-slider-dot-size, 10px);
  }

  .il-markets-hero-slider__dot.is-active {
    width: var(--mh-il-slider-dot-active-width, 30px);
  }

  .il-markets-hero__editor-note,
  .il-markets-hero__world-map[data-missing-countries]::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .il-markets-hero-section,
  .il-markets-hero-editor,
  .il-markets-hero-slider__track,
  .il-markets-hero-slide {
    min-height: var(--mh-il-mobile-min-height, 640px);
  }

  .il-markets-hero__container {
    min-height: var(--mh-il-mobile-min-height, 640px);
  }

  .il-markets-hero__button {
    width: var(--mh-il-mobile-button-width, 100%);
  }

  .il-markets-hero-slider__arrow {
    width: var(--mh-il-mobile-slider-arrow-size, 40px);
    height: var(--mh-il-mobile-slider-arrow-size, 40px);
    font-size: 24px;
  }

  .il-markets-hero-slider__dots {
    bottom: var(--mh-il-mobile-slider-dots-bottom, 20px);
  }
}


/* =========================================================
   Animation
   ========================================================= */

@keyframes mhIlContentEnter {
  from {
    opacity: 0;
    translate: 0 var(--mh-il-content-enter-distance, 24px);
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes mhIlCountryPulse {
  0% {
    opacity: 0.35;
    filter: drop-shadow(0 0 0 rgba(38, 173, 33, 0));
  }

  48% {
    opacity: 1;
    filter: drop-shadow(0 0 16px var(--mh-il-map-glow, rgba(38, 173, 33, 0.32)));
  }

  100% {
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--mh-il-map-glow, rgba(38, 173, 33, 0.32)));
  }
}

@keyframes mhIlMapComplete {
  0% {
    filter: drop-shadow(0 0 0 rgba(38, 173, 33, 0));
  }

  42% {
    filter: drop-shadow(0 0 24px var(--mh-il-map-glow, rgba(38, 173, 33, 0.32)));
  }

  100% {
    filter: drop-shadow(0 0 0 rgba(38, 173, 33, 0));
  }
}

@media (prefers-reduced-motion: reduce) {
  .il-markets-hero-slide,
  .il-markets-hero-slider__arrow,
  .il-markets-hero-slider__dot,
  .il-markets-hero__world-map,
  .il-markets-hero__world-map .map-viewport,
  .il-markets-hero__world-map.is-sequence-complete svg,
  .il-markets-hero__world-map .country.is-market-current,
  .il-markets-hero__content,
  .il-markets-hero__button,
  .il-markets-hero__button span,
  .il-markets-hero__country-label {
    animation: none !important;
    transition: none !important;
  }

  .il-markets-hero-slide {
    transform: none !important;
  }

  .il-markets-hero__button:hover,
  .il-markets-hero-slider__arrow:hover,
  .il-markets-hero-slider__dot:hover {
    transform: none;
  }
}