.usa-map-container {
  position: relative;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background: linear-gradient(135deg, #e1b15c 0%, #c89a4a 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  /* Avoid transforms/will-change on container to prevent fixed positioning issues */
  transform: none !important;
  perspective: none !important;
}

.map-wrapper {
  background: #ffffff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.usa-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.state-path {
  transition: none !important;
  cursor: pointer;
  stroke-width: 1.5;
}

.state-path:hover {
  fill: #e1b15c !important;
  stroke: #c89a4a !important;
  stroke-width: 2.5;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

.state-path.active {
  fill: #c89a4a !important;
  stroke: #e1b15c !important;
  stroke-width: 2.5;
}

.state-label {
  fill: #333;
  font-family: "Arial", sans-serif;
  font-size: 11px;
  font-weight: 700;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  transition: none !important;
  text-anchor: middle;
  transform: none !important;
  animation: none !important;
}

.state-path:hover + .state-label,
.state-label.active {
  fill: #333;
  font-size: 16px;
}

.state-info-box {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(0, 0) !important;
  width: 640px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: none !important;
  z-index: 1000;
  border: 3px solid #e1b15c;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  animation: none !important;
}

.state-info-box.show {
  opacity: 1;
  visibility: visible;
}

.info-box-header {
  background: linear-gradient(135deg, #e1b15c 0%, #c89a4a 100%);
  color: #ffffff;
  padding: 20px 25px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-box-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.info-box-content {
  padding: 25px;
  overflow: visible !important;
  max-height: none !important;
  color: #333;
  font-size: 15px;
  line-height: 1.7;
}

.info-box-content p {
  margin: 0 0 15px 0;
}

.info-box-content p:last-child {
  margin-bottom: 0;
}

.info-box-content ul,
.info-box-content ol {
  margin: 10px 0;
  padding-left: 25px;
}

.info-box-content li {
  margin-bottom: 8px;
}

.info-box-content strong {
  color: #e1b15c;
  font-weight: 700;
}

.info-box-content::-webkit-scrollbar {
  width: 8px;
}

.info-box-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.info-box-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #e1b15c 0%, #c89a4a 100%);
  border-radius: 10px;
}

.info-box-content::-webkit-scrollbar-thumb:hover {
  background: #c89a4a;
}

@media (max-width: 1024px) {
  .state-info-box {
    width: min(92vw, 700px);
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  .state-path:hover {
    transform: none !important;
    filter: none !important;
  }

  .usa-map-container {
    padding: 10px;
    margin: 20px auto;
    border-radius: 12px;
    max-width: 100%;
    min-height: auto;
  }

  .map-wrapper {
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    overflow: hidden;
  }

  .usa-map-svg {
    width: 100%;
    height: auto;
    aspect-ratio: 959 / 593;
    max-width: 100%;
    max-height: none;
  }

  .state-info-box {
    width: 92vw !important;
    left: 4vw !important;
    right: 4vw !important;
    position: fixed !important;
    bottom: 20px !important;
    top: auto !important;
    z-index: 999999 !important;
    transform: none !important;
    opacity: 0;
    visibility: hidden;
    transition: none;
  }

  .state-info-box.show {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .info-box-header {
    padding: 15px 18px;
  }

  .info-box-header h3 {
    font-size: 18px;
  }

  .info-box-content {
    padding: 15px;
    font-size: 14px;
  }

  .close-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .usa-map-container {
    padding: 5px;
    margin: 10px auto;
  }

  .map-wrapper {
    padding: 5px;
  }

  .info-box-header {
    padding: 12px 15px;
  }

  .info-box-header h3 {
    font-size: 16px;
  }
}

.state-path.pulse {
  animation: none;
}
