.nexarob-country-map {
  position: relative;
  width: 100%;
  min-height: 280px;
  --nexarob-pin-size-base: 24px;
  --nexarob-pin-size: var(--nexarob-pin-size-base);
  --nexarob-map-ratio: 1920 / 900;
  --nexarob-modal-z: 2147483000;
  --nexarob-map-bg-image: none;
}

.nexarob-country-map,
.nexarob-country-map * {
  box-sizing: border-box;
}

.nexarob-country-map .nexarob-map-surface,
.nexarob-country-map .elementor-element-09884d1,
.nexarob-country-map [data-id="09884d1"],
.nexarob-country-map > .elementor-section:first-of-type {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: var(--nexarob-map-ratio) !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
  isolation: isolate !important;
  border-radius: 24px !important;
  background: #f8fbff !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 100% 100% !important;
  box-shadow: inset 0 0 0 1px rgba(15, 91, 190, .08), 0 22px 70px rgba(15, 23, 42, .07) !important;
}

.nexarob-country-map .nexarob-map-surface::before,
.nexarob-country-map .elementor-element-09884d1::before,
.nexarob-country-map [data-id="09884d1"]::before,
.nexarob-country-map > .elementor-section:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: var(--nexarob-map-bg-image);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
}

.nexarob-country-map .elementor-background-overlay,
.nexarob-country-map .nexarob-map-surface > .elementor-background-overlay,
.nexarob-country-map [data-id="09884d1"] > .elementor-background-overlay {
  display: none !important;
  background: none !important;
  background-image: none !important;
}

.nexarob-country-map .nexarob-map-surface > *,
.nexarob-country-map .elementor-element-09884d1 > *,
.nexarob-country-map [data-id="09884d1"] > *,
.nexarob-country-map > .elementor-section:first-of-type > * {
  position: relative;
  z-index: 1;
}

.nexarob-country-map [data-id="09884d1"] .elementor-container,
.nexarob-country-map .nexarob-map-surface .elementor-container,
.nexarob-country-map [data-id="09884d1"] .elementor-column,
.nexarob-country-map .nexarob-map-surface .elementor-column,
.nexarob-country-map [data-id="09884d1"] .elementor-widget-wrap,
.nexarob-country-map .nexarob-map-surface .elementor-widget-wrap,
.nexarob-country-map [data-id="09884d1"] .elementor-widget,
.nexarob-country-map .nexarob-map-surface .elementor-widget,
.nexarob-country-map [data-id="09884d1"] .elementor-widget-container,
.nexarob-country-map .nexarob-map-surface .elementor-widget-container {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-width: none !important;
  position: static !important;
}

.nexarob-country-map .witr_modal_box {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: visible !important;
  transform: none !important;
  z-index: 30 !important;
  line-height: 0;
}

.nexarob-country-map .witr_modal_box:hover,
.nexarob-country-map .witr_modal_box:focus-within {
  z-index: 90 !important;
}

.nexarob-country-map .witr_modal_menu {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: var(--nexarob-pin-size, 24px) !important;
  min-width: var(--nexarob-pin-size, 24px) !important;
  height: calc(var(--nexarob-pin-size, 24px) * 1.38) !important;
  transform: translate(-50%, -100%) !important;
  transform-origin: 50% 100%;
  z-index: 20;
  line-height: 0;
}

.nexarob-country-map .witr_modal_menu img {
  display: block !important;
  width: var(--nexarob-pin-size, 24px) !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: contain;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
  filter: drop-shadow(0 5px 7px rgba(15, 23, 42, .28));
}

.nexarob-country-map.nexarob-pin-animation-on .witr_modal_menu:hover img,
.nexarob-country-map.nexarob-pin-animation-on .nexarob-country-list-button:hover {
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 8px 10px rgba(15, 23, 42, .28));
}

.nexarob-country-map.nexarob-pin-animation-off .witr_modal_menu:hover img {
  transform: none;
  opacity: .94;
}

.nexarob-country-map.nexarob-pin-style-tech .witr_modal_menu img {
  filter: drop-shadow(0 6px 11px rgba(34, 211, 238, .22));
}

.nexarob-country-map .modal {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: var(--nexarob-modal-z) !important;
  background: rgba(15, 23, 42, .44);
  padding: 18px;
  align-items: center;
  justify-content: center;
  line-height: 1.45;
}

.nexarob-country-map .modal.show {
  display: flex !important;
}

.nexarob-country-map .modal[aria-hidden="true"] {
  display: none !important;
}

html.nexarob-modal-open,
body.nexarob-modal-open {
  overflow: hidden;
}

.nexarob-country-map .witr_modal_text {
  width: min(340px, calc(100vw - 32px));
  max-width: 340px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 0;
  background: #ffffff;
  color: #0f172a;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .25);
  padding: 18px 20px;
  position: relative;
  line-height: 1.45;
  font-size: 15px;
}

.nexarob-country-map.nexarob-modal-style-dark .modal {
  background: rgba(2, 6, 23, .62);
}

.nexarob-country-map.nexarob-modal-style-dark .witr_modal_text {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(34, 211, 238, .30);
  box-shadow: 0 24px 70px rgba(2, 6, 23, .55);
}

.nexarob-country-map.nexarob-modal-style-dark .witr_modal_text a {
  color: #67e8f9;
}

.nexarob-country-map.nexarob-modal-style-glass .modal {
  background: rgba(15, 23, 42, .32);
  backdrop-filter: blur(8px);
}

.nexarob-country-map.nexarob-modal-style-glass .witr_modal_text {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px);
}

.nexarob-country-map .witr_modal_title h3 {
  margin: 0 34px 10px 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.nexarob-country-map .close {
  position: absolute;
  top: 12px;
  right: 15px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: currentColor;
  opacity: .82;
}

.nexarob-country-map .close:hover,
.nexarob-country-map .close:focus {
  opacity: 1;
  outline: 2px solid rgba(34, 211, 238, .55);
  outline-offset: 3px;
  border-radius: 8px;
}

.nexarob-country-map .witr_modal_menu img:focus {
  outline: 2px solid rgba(34, 211, 238, .65);
  outline-offset: 4px;
  border-radius: 999px;
}

.nexarob-country-map .witr_modal_list span {
  display: block;
  margin: 7px 0;
}

.nexarob-country-map .witr_modal_list a {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.nexarob-country-map .witr_modal_list a:hover,
.nexarob-country-map .witr_modal_list a:focus {
  text-decoration: underline;
}

.nexarob-country-map.nexarob-country-list-off .nexarob-country-list {
  display: none !important;
}

.nexarob-country-map.nexarob-country-list-on .nexarob-country-list {
  display: flex;
}

.nexarob-country-list {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 24px auto 0;
  max-width: 1100px;
}

.nexarob-country-list-button {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #ffffff;
  color: #0f172a;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.nexarob-country-list-button:hover,
.nexarob-country-list-button:focus {
  border-color: rgba(34, 211, 238, .55);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .11);
  outline: none;
}

.nexarob-map-empty {
  border: 1px dashed #94a3b8;
  border-radius: 14px;
  padding: 24px;
  background: #f8fafc;
  color: #334155;
}

@media (max-width: 767px) {
  .nexarob-country-map .nexarob-map-surface,
  .nexarob-country-map .elementor-element-09884d1,
  .nexarob-country-map [data-id="09884d1"],
  .nexarob-country-map > .elementor-section:first-of-type {
    border-radius: 16px !important;
  }

  .nexarob-country-map {
    --nexarob-pin-size: min(var(--nexarob-pin-size-base, 24px), 22px);
  }

  .nexarob-country-map .witr_modal_text {
    width: min(320px, calc(100vw - 24px));
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nexarob-country-map .witr_modal_menu img,
  .nexarob-country-list-button {
    transition: none;
  }
}


.nexarob-country-map.nexarob-map-bg-clean .nexarob-map-surface::before { opacity: 1; }
.nexarob-country-map.nexarob-map-bg-clean .witr_modal_menu img { image-rendering: auto; }

/* NexaRob 2.5, readability mode for dense global maps */
.nexarob-country-map.nexarob-density-balanced .witr_modal_box[data-nexarob-density="secondary"] {
  display: block !important;
}

.nexarob-country-map.nexarob-density-balanced .witr_modal_box[data-nexarob-density="secondary"] .witr_modal_menu {
  display: none !important;
}

.nexarob-country-map.nexarob-density-all .nexarob-region-clusters {
  display: none !important;
}

.nexarob-region-clusters {
  position: absolute;
  inset: 0;
  z-index: 25;
  pointer-events: none;
}

.nexarob-region-cluster {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: #0f172a;
  border: 1px solid rgba(14, 165, 233, .24);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .12);
  backdrop-filter: blur(9px);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.nexarob-region-cluster::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 0 5px rgba(34, 211, 238, .16);
}

.nexarob-country-map.nexarob-map-bg-minimal .nexarob-map-surface::before,
.nexarob-country-map.nexarob-map-bg-clean .nexarob-map-surface::before {
  opacity: 1;
}

@media (max-width: 767px) {
  .nexarob-country-map.nexarob-density-balanced .witr_modal_box[data-nexarob-density="secondary"] {
    display: block !important;
  }

  .nexarob-country-map.nexarob-density-balanced .witr_modal_box[data-nexarob-density="secondary"] .witr_modal_menu {
    display: none !important;
  }
  .nexarob-region-cluster {
    font-size: 11px;
    padding: 5px 8px;
  }
}

/* NexaRob 2.6, atlas background and interactive regional cluster modals */
.nexarob-country-map.nexarob-map-bg-atlas .nexarob-map-surface::before,
.nexarob-country-map.nexarob-map-bg-atlas .elementor-element-09884d1::before,
.nexarob-country-map.nexarob-map-bg-atlas [data-id="09884d1"]::before,
.nexarob-country-map.nexarob-map-bg-atlas > .elementor-section:first-of-type::before {
  opacity: 1;
}

.nexarob-country-map.nexarob-map-bg-atlas .nexarob-map-surface,
.nexarob-country-map.nexarob-map-bg-atlas .elementor-element-09884d1,
.nexarob-country-map.nexarob-map-bg-atlas [data-id="09884d1"],
.nexarob-country-map.nexarob-map-bg-atlas > .elementor-section:first-of-type {
  background: #f7fbff !important;
}

.nexarob-region-clusters {
  pointer-events: none;
}

.nexarob-region-cluster {
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
  border: 1px solid rgba(14, 165, 233, .30);
  text-decoration: none;
  cursor: pointer;
}

.nexarob-region-cluster:hover,
.nexarob-region-cluster:focus {
  transform: translate(-50%, -50%) translateY(-2px);
  border-color: rgba(14, 165, 233, .62);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
  outline: none;
}

.nexarob-cluster-modal .witr_modal_text,
.nexarob-cluster-modal-content {
  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
}

.nexarob-cluster-lead {
  margin: 0 0 14px;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.nexarob-cluster-country-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nexarob-cluster-country {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, .35);
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
}

.nexarob-country-map.nexarob-modal-style-dark .nexarob-cluster-lead {
  color: #cbd5e1;
}

.nexarob-country-map.nexarob-modal-style-dark .nexarob-cluster-country {
  background: rgba(15, 23, 42, .72);
  color: #f8fafc;
  border-color: rgba(34, 211, 238, .22);
}

@media (max-width: 767px) {
  .nexarob-cluster-country-grid {
    gap: 6px;
  }
  .nexarob-cluster-country {
    font-size: 12px;
    min-height: 28px;
    padding: 6px 9px;
  }
}
.nexarob-region-clusters { z-index: 80; }

/* NexaRob 2.7, new worldline background and clickable countries inside cluster modals */
.nexarob-country-map.nexarob-map-bg-worldline .nexarob-map-surface::before,
.nexarob-country-map.nexarob-map-bg-worldline .elementor-element-09884d1::before,
.nexarob-country-map.nexarob-map-bg-worldline [data-id="09884d1"]::before,
.nexarob-country-map.nexarob-map-bg-worldline > .elementor-section:first-of-type::before {
  opacity: 1;
}

.nexarob-country-map.nexarob-map-bg-worldline .nexarob-map-surface,
.nexarob-country-map.nexarob-map-bg-worldline .elementor-element-09884d1,
.nexarob-country-map.nexarob-map-bg-worldline [data-id="09884d1"],
.nexarob-country-map.nexarob-map-bg-worldline > .elementor-section:first-of-type {
  background: #f8fcff !important;
}

.nexarob-cluster-country-grid {
  align-items: flex-start;
}

.nexarob-cluster-country-button,
button.nexarob-cluster-country {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}

.nexarob-cluster-country-button:hover,
.nexarob-cluster-country-button:focus {
  border-color: rgba(14, 165, 233, .62);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .10);
  outline: none;
  transform: translateY(-1px);
}

.nexarob-cluster-country-flag {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-right: 7px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, .18));
}

.nexarob-country-map.nexarob-modal-style-dark .nexarob-cluster-country-button:hover,
.nexarob-country-map.nexarob-modal-style-dark .nexarob-cluster-country-button:focus {
  background: rgba(30, 41, 59, .90);
  border-color: rgba(34, 211, 238, .45);
}


/* NexaRob 2.8, geoline background, hard replacement for old polygon map */
.nexarob-country-map.nexarob-map-bg-geoline .nexarob-map-surface::before,
.nexarob-country-map.nexarob-map-bg-geoline .elementor-element-09884d1::before,
.nexarob-country-map.nexarob-map-bg-geoline [data-id="09884d1"]::before,
.nexarob-country-map.nexarob-map-bg-geoline > .elementor-section:first-of-type::before {
  opacity: 1;
}
.nexarob-country-map.nexarob-map-bg-geoline .nexarob-map-surface,
.nexarob-country-map.nexarob-map-bg-geoline .elementor-element-09884d1,
.nexarob-country-map.nexarob-map-bg-geoline [data-id="09884d1"],
.nexarob-country-map.nexarob-map-bg-geoline > .elementor-section:first-of-type {
  background: #f8fcff !important;
}


/* NexaRob 3.0, cluster country actions: hide only secondary pins, keep their modals usable */
.nexarob-country-map.nexarob-density-balanced .witr_modal_box[data-nexarob-density="secondary"] {
  display: block !important;
}

.nexarob-country-map.nexarob-density-balanced .witr_modal_box[data-nexarob-density="secondary"] .witr_modal_menu {
  display: none !important;
}

.nexarob-country-map.nexarob-density-balanced .witr_modal_box[data-nexarob-density="secondary"] .modal.show {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* NexaRob 3.1, modal layer fix: keep region cluster buttons and other pins behind open country dialogs */
.nexarob-country-map.nexarob-has-open-modal .nexarob-region-clusters {
  z-index: 2 !important;
  pointer-events: none !important;
}

.nexarob-country-map.nexarob-has-open-modal .witr_modal_box {
  z-index: 3 !important;
}

.nexarob-country-map .witr_modal_box.nexarob-modal-parent-open {
  z-index: 1000 !important;
}

.nexarob-country-map .witr_modal_box.nexarob-modal-parent-open .modal.show {
  z-index: var(--nexarob-modal-z) !important;
}

.nexarob-country-map.nexarob-has-open-modal .nexarob-map-surface::after,
.nexarob-country-map.nexarob-has-open-modal .elementor-element-09884d1::after,
.nexarob-country-map.nexarob-has-open-modal [data-id="09884d1"]::after,
.nexarob-country-map.nexarob-has-open-modal > .elementor-section:first-of-type::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 900;
  pointer-events: none;
}

/* NexaRob 3.9, country modal over regional buttons: hide region chips while any modal is open */
.nexarob-country-map.nexarob-has-open-modal .nexarob-region-clusters,
.nexarob-country-map.nexarob-has-open-modal .nexarob-region-cluster {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.nexarob-country-map .modal.show {
  z-index: var(--nexarob-modal-z) !important;
}
