.italy-map-container {
  padding: 3.2rem 0.8rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.italy-map-container img {
  width: 100%;
  height: auto;
  display: block;
}

.italy-map-container .map-point {
  cursor: pointer;
  position: absolute;
  width: 1.6rem;
  height: 1.6rem;
  background-color: #00acc1;
  border-radius: 50%;
  transition: all 0.3s ease;
  will-change: transform, box-shadow;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 rgba(0, 172, 193, 0.4);
}

.italy-map-container .map-point:hover {
  transform: translate(-50%, -50%) scale3D(1.35, 1.35, 1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.italy-map-container .map-point.pulse-animation {
  animation: pulse 3s infinite;
}

.italy-map-container .map-point.pulse-animation:hover {
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 172, 193, 0.5);
  }
  70% {
    box-shadow: 0 0 0 25px rgba(0, 172, 193, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 172, 193, 0);
  }
}

.tippy-tooltip {
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
}

.tippy-tooltip[data-theme~='light'] {
  background-color: #fff;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tippy-tooltip[data-theme~='dark'] {
  background-color: #333;
  color: #fff;
}

.tippy-arrow {
  width: 16px;
  height: 16px;
}

.tippy-arrow[data-theme~='light'] {
  border-color: #fff;
}

.tippy-arrow[data-theme~='dark'] {
  border-color: #333;
}

/* SVG Map Styles */
.italy-map-container.svg-map {
  text-align: center;
}

.italy-map-container.svg-map .svg-map-wrapper {
  display: inline-block;
  position: relative;
}

.italy-map-container.svg-map svg {
  width: 100%;
  height: auto;
  max-width: 100%;
  /* Prevent SVG from moving during transformations */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Interactive Airport Styles */
.interactive-airport {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  stroke: none;
  stroke-width: 0;
  /* Prevent positioning issues */
  transform-box: fill-box;
  will-change: transform, filter;
}

.interactive-airport:hover,
.interactive-airport.hover {
  fill: #ff6b6b !important;
  transform: scale(1.3);
  filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.6));
}

.interactive-airport.active {
  fill: #ff6b6b !important;
  transform: scale(1.4);
  filter: drop-shadow(0 0 12px rgba(255, 107, 107, 0.8));
  animation: active-glow 1s ease-in-out infinite alternate;
}

/* Soft glow animation for active state */
@keyframes active-glow {
  0% {
    filter: drop-shadow(0 0 12px rgba(255, 107, 107, 0.8));
  }
  100% {
    filter: drop-shadow(0 0 16px rgba(255, 107, 107, 0.6));
  }
}

/* Soft pulse animation for airports */
@keyframes airport-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.95;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Remove problematic ::after pseudo-element for SVG elements */
/* SVG elements don't work well with absolute positioning */

.interactive-airport.pulse-animation {
  animation: airport-pulse 2s infinite;
}

.interactive-airport.pulse-animation:hover {
  animation: none;
}

/* Tooltip content styling */
.tippy-tooltip h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: inherit;
}

.tippy-tooltip p {
  margin: 0;
  line-height: 1.4;
}

/* Airport tooltip specific styling */
.airport-tooltip {
  padding: 0.5rem 0;
}

.airport-tooltip h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3rem;
}

.airport-tooltip .airport-content {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #666;
}

/* Dark theme adjustments */
.tippy-tooltip[data-theme~='dark'] .airport-tooltip h4 {
  color: #fff;
  border-bottom-color: #555;
}

.tippy-tooltip[data-theme~='dark'] .airport-tooltip .airport-content {
  color: #ccc;
}

/* Image Map Styles (existing) */
.italy-map-container.image-map {
  /* Keep existing styles */
}

@media (max-width: 768px) {
  .italy-map-container {
    padding: 1.6rem 0.4rem;
  }
  
  .italy-map-container .map-point {
    width: 1.2rem;
    height: 1.2rem;
  }
  
  .italy-map-container.svg-map svg {
    max-width: 100%;
  }
}