/* Interactive Geographic Presence map (from Annual Report 2025) */
.irov1-geo-map {
  --geo-green: #162f29;
  --geo-yellow: #fcb44a;
  --geo-yellow-100: #fff8ed;
  --geo-gray-400: #404041;
  --geo-western: #f7e8cf;
  --geo-central: #fcb44a;
  --geo-eastern: #a5a8aa;
  --geo-northern: #1f6d64;
  position: relative;
  width: 100%;
  background: var(--geo-green);
  padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 72px);
  margin: 36px 0 40px;
  overflow: hidden;
}

.irov1-geo-map__inner {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

.irov1-geo-map__legend {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  padding: 8px 0 24px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.irov1-geo-map__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.irov1-geo-map__legend-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.irov1-geo-map__legend-ico--plant {
  background: var(--geo-yellow);
  padding: 4px;
}

.irov1-geo-map__legend-ico img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.irov1-geo-map__legend-ico--export img {
  width: 32px;
  height: 32px;
}

/* Body: stacked by default (map first), side-by-side on desktop */
.irov1-geo-map__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.irov1-geo-map__stage {
  position: relative;
  width: 100%;
  max-width: 880px;
  line-height: 0;
  flex: 1 1 auto;
  min-width: 0;
  order: 1;
}

.irov1-geo-map__chart-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  flex-shrink: 0;
  order: 2;
}

.irov1-geo-map__img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.irov1-geo-map__marker {
  position: absolute;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
}

.irov1-geo-map__marker.is-active {
  z-index: 50;
}

.irov1-geo-map__marker-ping {
  position: absolute;
  inset: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  opacity: 0.75;
  pointer-events: none;
  display: none;
}

.irov1-geo-map__marker.is-active .irov1-geo-map__marker-ping {
  display: block;
  animation: irov1-geo-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.irov1-geo-map__marker.is-active .irov1-geo-map__marker-ping--delay {
  opacity: 0.5;
  animation-delay: 0.4s;
}

.irov1-geo-map__marker-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.irov1-geo-map__marker--plant .irov1-geo-map__marker-dot {
  background: var(--geo-yellow);
}

.irov1-geo-map__marker--export .irov1-geo-map__marker-dot {
  background: transparent;
}

.irov1-geo-map__marker-dot img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.irov1-geo-map__marker.is-active .irov1-geo-map__marker-dot {
  transform: scale(1.08);
}

/* Tooltips */
.irov1-geo-map__tip {
  position: absolute;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.35s ease, visibility 0.25s;
  width: max-content;
  max-width: min(224px, 70vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Stage uses line-height:0 for image gap — reset so tip text doesn't collapse */
  line-height: normal;
  font-size: 12px;
  text-align: left;
}

.irov1-geo-map__marker.is-active .irov1-geo-map__tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.irov1-geo-map__tip--above {
  bottom: calc(100% + 8px);
}

.irov1-geo-map__tip--below {
  top: calc(100% + 8px);
}

.irov1-geo-map__tip--center {
  left: 50%;
  transform: translateX(-50%) translateY(12px);
}

.irov1-geo-map__marker.is-active .irov1-geo-map__tip--center {
  transform: translateX(-50%) translateY(0);
}

.irov1-geo-map__tip--left {
  left: 0;
}

.irov1-geo-map__tip--right {
  right: 0;
}

.irov1-geo-map__tip-arrow {
  width: 12px;
  height: 12px;
  margin: 0 auto;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.irov1-geo-map__tip--above .irov1-geo-map__tip-arrow {
  margin-top: -6px;
  order: 2;
}

.irov1-geo-map__tip--below .irov1-geo-map__tip-arrow {
  margin-bottom: -6px;
}

.irov1-geo-map__tip--export .irov1-geo-map__tip-arrow {
  background: var(--geo-yellow-100);
}

.irov1-geo-map__tip-card {
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.irov1-geo-map__tip--export .irov1-geo-map__tip-card {
  background: var(--geo-yellow-100);
  padding: 12px;
  width: 192px;
  max-width: 100%;
}

.irov1-geo-map__tip--export .irov1-geo-map__tip-name {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--geo-yellow);
}

.irov1-geo-map__tip--export .irov1-geo-map__tip-val {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--geo-gray-400);
}

.irov1-geo-map__tip--plant .irov1-geo-map__tip-card {
  width: 224px;
  max-width: 100%;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, #325046 0%, #14372d 100%);
}

.irov1-geo-map__tip-accent {
  width: 100%;
  height: 4px;
}

.irov1-geo-map__tip-body {
  padding: 12px 16px;
}

.irov1-geo-map__tip--plant .irov1-geo-map__tip-name {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 700;
  color: var(--geo-yellow);
}

.irov1-geo-map__tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  line-height: 1.35;
}

.irov1-geo-map__tip-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.35;
}

.irov1-geo-map__tip-lbl {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.irov1-geo-map__tip-list .val {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.irov1-geo-map__tip-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* Chart — sits in its own column, never overlays the map */
.irov1-geo-map__chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 520px;
}

.irov1-geo-map__donut {
  position: relative;
  flex-shrink: 0;
  width: min(220px, 70vw);
  height: min(220px, 70vw);
  aspect-ratio: 1;
}

.irov1-geo-map__donut svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.55));
}

.irov1-geo-map__donut-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  pointer-events: none;
}

.irov1-geo-map__donut-label .line-y {
  font-size: clamp(10px, 2.2vw, 12px);
  line-height: 1.25;
  color: var(--geo-yellow);
}

.irov1-geo-map__donut-label .line-w {
  margin-top: 4px;
  font-size: clamp(10px, 2.2vw, 12px);
  line-height: 1.25;
  color: #fff;
}

.irov1-geo-map__donut-label .line-w + .line-w {
  margin-top: 0;
}

.irov1-geo-map__donut-label .year {
  margin-top: 8px;
  font-size: clamp(10px, 2.2vw, 12px);
  line-height: 1;
  color: #fff;
}

.irov1-geo-map__plant-keys {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}

.irov1-geo-map__plant-key {
  display: flex;
  align-items: center;
  gap: 8px;
}

.irov1-geo-map__plant-key i {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  display: block;
}

.irov1-geo-map__plant-key b {
  width: 1px;
  height: 16px;
  display: block;
  font-size: 0;
  flex-shrink: 0;
}

.irov1-geo-map__plant-key span {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 1.35;
}

@keyframes irov1-geo-ping {
  75%,
  100% {
    opacity: 0;
    transform: scale(2.5);
  }
}

/* Tablet+: chart row (donut + keys side by side), map below */
@media (min-width: 640px) {
  .irov1-geo-map__chart {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 640px;
  }

  .irov1-geo-map__donut {
    width: 200px;
    height: 200px;
  }

  .irov1-geo-map__plant-keys {
    max-width: 260px;
  }
}

/* Desktop: chart column on the left, map on the right */
@media (min-width: 1024px) {
  .irov1-geo-map__legend {
    justify-content: flex-end;
    padding: 8px 0 20px;
  }

  .irov1-geo-map__body {
    flex-direction: row;
    align-items: center;
    gap: 24px 32px;
  }

  .irov1-geo-map__chart-wrap {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
    order: 1;
  }

  .irov1-geo-map__stage {
    flex: 1 1 0;
    max-width: none;
    order: 2;
  }

  .irov1-geo-map__chart {
    flex-direction: column;
    align-items: center;
    max-width: 280px;
    gap: 24px;
  }

  .irov1-geo-map__donut {
    width: 240px;
    height: 240px;
  }

  .irov1-geo-map__plant-keys {
    max-width: 260px;
  }
}

@media (min-width: 1280px) {
  .irov1-geo-map__body {
    gap: 40px;
  }

  .irov1-geo-map__donut {
    width: 260px;
    height: 260px;
  }

  .irov1-geo-map__plant-key span {
    font-size: 14px;
  }
}

/* Mobile refinements */
@media (max-width: 639px) {
  .irov1-geo-map__legend {
    gap: 12px 16px;
    font-size: 13px;
    padding-bottom: 16px;
  }

  .irov1-geo-map__marker {
    width: 26px;
    height: 26px;
  }

  .irov1-geo-map__marker-dot,
  .irov1-geo-map__marker-ping {
    width: 26px;
    height: 26px;
  }

  .irov1-geo-map__marker-dot img {
    width: 15px;
    height: 15px;
  }

  .irov1-geo-map__tip--export .irov1-geo-map__tip-card {
    width: 150px;
    padding: 10px;
  }

  .irov1-geo-map__tip--plant .irov1-geo-map__tip-card {
    width: 180px;
  }

  .irov1-geo-map__tip--export .irov1-geo-map__tip-val {
    font-size: 16px;
  }

  .irov1-geo-map__plant-key span {
    font-size: 12px;
  }
}
