/* District Map Styles */

#district-map-container {
  max-width: 100%;
  margin: 0 auto;
}

#ny25-map {
  width: 100%;
  height: auto;
  display: block;
}

.county-region {
  cursor: pointer;
  transition: all 0.3s ease;
}

.county-region:hover .county-path,
.county-region.active .county-path {
  opacity: 1 !important;
  filter: brightness(1.2) drop-shadow(0 0 10px rgba(0,0,0,0.3));
}

.county-path {
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Make sure SVG elements can receive pointer events */
.county-region * {
  pointer-events: auto;
}

.county-region text {
  pointer-events: none;
}

#county-info-card {
  animation: fadeIn 0.5s ease-in-out;
}

#county-info-card.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #ny25-map text {
    font-size: 24px;
  }
  
  #ny25-map text:last-child {
    font-size: 16px;
  }
}

