* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
}
#map {
  height: 100vh;
  background-color: #F2F9F5;
}
#map svg {
  width: 100%;
  height: 100%;
  display: block;
}
.st0,
.st1,
.st2,
.st3,
.st4,
.st5,
.st6,
.st7 {
  stroke-linecap: round;
  stroke-linejoin: round;
}
.st0,
.st1,
.st8,
.st9 {
  fill-rule: evenodd;
}
.st0,
.st3,
.st4,
.st10,
.st11,
.st6,
.st12 {
  stroke-width: 0.5px;
}
.st0,
.st3,
.st4,
.st5,
.st6,
.st12 {
  stroke: #fff;
}
.st0,
.st13,
.st6,
.st14 {
  fill: #7fb2c6;
}
.st1,
.st2,
.st15,
.st8,
.st16,
.st17,
.st18,
.st14,
.st9,
.st19,
.st7,
.st20 {
  stroke: #f2f9f5;
}
.st1,
.st15,
.st8,
.st16,
.st17,
.st18,
.st14,
.st9,
.st19,
.st7,
.st20 {
  stroke-width: 0.8px;
}
.st1,
.st15,
.st9,
.st7 {
  fill: #f9db8f;
}
.st2,
.st3,
.st21,
.st5 {
  fill: #aadbd0;
}
.st2,
.st22,
.st23,
.st24,
.st5,
.st25 {
  stroke-width: 0.2px;
}
.st26,
.st11,
.st25,
.st12,
.st27 {
  fill: #7f7fc9;
}
.st28 {
  font-size: 13.9px;
}
.st28,
.st29,
.st30,
.st31,
.st27,
.st32 {
  isolation: isolate;
}
.st28,
.st29,
.st31,
.st33,
.st32 {
  fill: #2e524a;
}
.st28,
.st29,
.st31,
.st32 {
  font-family: Poppins-Medium, Poppins;
  font-weight: 500;
}
.st34 {
  fill: #fff;
}
.st35 {
  fill: #929496;
}
.st22 {
  stroke: #2b5480;
}
.st22,
.st15,
.st8,
.st23,
.st24,
.st16,
.st17,
.st18,
.st14,
.st9,
.st19,
.st20 {
  stroke-miterlimit: 10;
}
.st22,
.st23,
.st24 {
  fill: none;
}
.st36,
.st27 {
  opacity: 0.3;
}
.st8,
.st17 {
  fill: #caded6;
}
.st29 {
  font-size: 9.4px;
}
.st4,
.st10,
.st37 {
  fill: #b7673c;
}
.st10 {
  stroke: #b7673c;
}
.st31 {
  font-size: 11.7px;
}
.st23 {
  stroke: #5d84b9;
}
.st24 {
  stroke: #5bc6ba;
}
.st16 {
  fill: #b2ce84;
}
.st38 {
  fill: #e3d870;
}
.st11 {
  stroke: #7f7fc9;
}
.st18 {
  fill: #eac68c;
}
.st25 {
  stroke: #000;
}
.st19 {
  fill: #82bc64;
}
.st20 {
  fill: #ef995e;
}
.st32 {
  font-size: 7px;
}
.country {
  cursor: pointer;
}
.point {
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
}
.point-1 {
  fill: none;
  stroke: #fff;
  stroke-linejoin: round;
  stroke-width: 3.12px;
}
.point-2 {
  fill: #fff;
  opacity: 0.17;
}
.point-3 {
  fill: #2e524a;
}
.point-3.hover {
  fill: #80A847;
}
.map_main {
  position: relative;
}
#mapSvg {
  cursor: grab;
}
#mapSvg:active,
.country:active {
  cursor: grabbing;
}
.map_controls {
  position: absolute;
  right: 0;
  bottom: 6%;
  gap: 54px;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.map_controls input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 108px;
  height: 10px;
  background: transparent;
  border-radius: 10px;
  outline: none;
  transform: rotate(-90deg);
}
.map_controls input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  background: rgba(42, 86, 74, 0.19);
  border-radius: 10px;
}
.map_controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #2E524A;
  border-radius: 50%;
  margin-top: -3px;
  cursor: pointer;
}
.map_controls .zoom {
  width: 26px;
  height: 26px;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid #B2C1BD;
  background-color: #fff;
  position: relative;
  transition: all 0.3s;
}
.map_controls .zoom:disabled {
  opacity: 0.5;
  pointer-events: none;
}
.map_controls .zoom:hover {
  border-color: #2E524A;
  background-color: #2E524A;
}
.map_controls .zoom::before,
.map_controls .zoom::after {
  content: '';
  display: block;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background-color: #2E524A;
  position: absolute;
  left: 50%;
  top: 50%;
  transition: all 0.3s;
  transform: translate(-50%, -50%);
}
.map_controls .zoom::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.map_controls .zoom:hover::before,
.map_controls .zoom:hover::after {
  background-color: #fff;
}
.map_controls #zoomOut::after {
  display: none;
}
#zoomButton {
  width: 40px;
  height: 40px;
  opacity: 0;
  cursor: pointer;
  transition: background 0.3s, opacity 0.2s;
  pointer-events: none;
  border: none;
  background-color: rgba(42, 86, 74, 0.19);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -34px;
  border-radius: 6px;
}
#zoomButton.active {
  opacity: 1;
  pointer-events: all;
}
#zoomButton:hover {
  background-color: #2E524A;
}
#zoomButton svg {
  display: block;
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: all 0.3s;
}
#zoomButton:hover svg {
  filter: contrast(0) brightness(2);
}
.map_infos {
  position: absolute;
  left: 34px;
  bottom: 34px;
  padding: 26px 30px 30px;
  border: 2px solid #21442e;
  background-color: #fff;
  width: 412px;
}
.map_infos .title {
  color: #222623;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.map_infos .continents {
  gap: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 18px;
}
.map_infos .name {
  color: #21442e;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.map_infos .continent li {
  color: #2a3533;
  font-size: 13px;
  font-weight: 500;
  list-style: none;
  gap: 8px;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
}
.map_infos .continent li + li {
  margin-top: 2px;
}
.map_infos .continent li::after {
  content: '';
  display: block;
  box-sizing: border-box;
  align-self: start;
  width: 30px;
  height: 15px;
  border: 1px solid var(--bdc);
  background-color: var(--bgc);
}
.map_infos .scale .line {
  position: relative;
  height: 14px;
  border: 2px solid #21442e;
  border-top-color: transparent;
}
.map_infos .scale .line i {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 7px;
  background-color: #21442e;
  transform: translateX(-50%);
}
.map_infos .scale .label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #2a3533;
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
}
.map_infos .scale .label em {
  font-style: normal;
}
.map_infos .scale .label1 {
  transform: translateX(-50%);
}
.map_infos .scale .label2 {
  transform: translateX(50%);
}

/* ===== Map Key entrance animation ===== */
@keyframes infoPanelIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes swatchPop {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  70% {
    opacity: 1;
    transform: scale(1.18);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes lineDraw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.map_infos {
  animation: infoPanelIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.map_infos .title {
  animation: fadeSlideIn 0.45s ease-out both 0.25s;
}
.map_infos .name {
  animation: fadeSlideIn 0.45s ease-out both 0.4s;
}
.map_infos .continent li {
  animation: fadeSlideIn 0.4s ease-out both;
}
.map_infos .continent li:nth-child(1) {
  animation-delay: 0.5s;
}
.map_infos .continent li:nth-child(2) {
  animation-delay: 0.58s;
}
.map_infos .continent li:nth-child(3) {
  animation-delay: 0.66s;
}
.map_infos .continent li:nth-child(4) {
  animation-delay: 0.74s;
}
.map_infos .continent li:nth-child(5) {
  animation-delay: 0.82s;
}
.map_infos .continent li::after {
  animation: swatchPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: inherit;
}
.map_infos .continents + .title {
  animation-delay: 0.95s;
}
.map_infos .scale .line {
  transform-origin: left center;
  animation: lineDraw 0.6s ease-out both 1.05s;
}
.map_infos .scale .label span {
  animation: fadeInUp 0.4s ease-out both 1.55s;
}
@media (prefers-reduced-motion: reduce) {
  .map_infos,
  .map_infos .title,
  .map_infos .name,
  .map_infos .continent li,
  .map_infos .continent li::after,
  .map_infos .scale .line,
  .map_infos .scale .label span {
    animation: none;
  }
}

/* ===== Map zoom-out reveal: soft fade so the zoomed-in start doesn't pop ===== */
@keyframes mapFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#map svg {
  animation: mapFadeIn 0.6s ease-out both;
}
@media (prefers-reduced-motion: reduce) {
  #map svg {
    animation: none;
  }
}
