/**
 * Nitro Map Section Styles
 */

/* Data Pin Content */
.data-pin-content {
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.data-pin-content.is-active {
  display: flex;
}

/* Explaining Card Container */
.explaining-card-container {
  display: none;
}

.explaining-card-container.is-visible {
  display: block;
}

/* Map Pins */
.map-pin {
  cursor: pointer;
}

/* Legend Dot Classes - Add to titles */
.dot-production,
.dot-office,
.dot-distribution {
  position: relative;
  padding-left: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  color: #252b37;
}

.dot-production::before,
.dot-office::before,
.dot-distribution::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Black dot - Unidade produtiva e centro de distribuição */
.dot-production::before {
  background-color: #252b37;
}

/* Blue dot - Unidade produtiva ou escritório */
.dot-office::before {
  background-color: #0064B5;
}

/* Green dot - Centro de distribuição */
.dot-distribution::before {
  background-color: #00B350;
}

/* Mobile Styles */
@media (max-width: 1024px) {
  .map-pin {
    width: 18.327px;
    height: 24px;
  }

  .map-pin image {
    width: 18.327px;
    height: 24px;
  }
}

/* Responsive SVG Container */
.sv-responsive-svg {
  display: flex;
}

.sv-responsive-svg__desktop {
  display: none;
}

.sv-responsive-svg__mobile {
  display: flex;
}

.sv-responsive-svg__desktop,
.sv-responsive-svg__mobile {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.sv-responsive-svg svg {
  width: 100%;
  height: auto;
  max-width: 100%;
}

@media screen and (min-width: 1025px) {
  .map-container {
    min-height: 600px;
  }

  .sv-responsive-svg {
    position: absolute !important;
    top: 21px;
    left: 111px;
    right: 111px;
    bottom: 21px;
    overflow: hidden;
  }

  .sv-responsive-svg__desktop {
    display: flex;
    height: 100%;
  }

  .sv-responsive-svg__mobile {
    display: none;
  }

  .sv-responsive-svg__desktop,
  .sv-responsive-svg svg {
    height: 100%;
    max-height: 100%;
  }
}
