/* Research Map Styles */

.research-map-container {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

/* Custom Marker Styles */
.custom-marker {
  background: transparent;
  border: none;
}

.marker-pin {
  width: 40px;
  height: 40px;
  position: relative;
}

.marker-content {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  animation: bounce 2s ease-in-out infinite;
}

.marker-number {
  transform: rotate(45deg);
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

@keyframes bounce {
  0%, 100% {
    transform: rotate(-45deg) translateY(0);
  }
  50% {
    transform: rotate(-45deg) translateY(-10px);
  }
}

/* Custom Popup Styles */
.custom-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.custom-popup .leaflet-popup-content {
  margin: 0;
  width: 280px !important;
}

.map-popup {
  padding: 0;
}

.map-popup-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.map-popup-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1rem 1rem 0.5rem;
  color: var(--heading-color);
}

.map-popup-projects {
  font-size: 0.875rem;
  color: var(--text-muted-color, #666);
  margin: 0 1rem 0.5rem;
  font-weight: 500;
}

.map-popup-description {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 1rem 1rem;
  color: var(--text-color);
}

.map-popup-link {
  display: inline-block;
  margin: 0 1rem 1rem;
  color: var(--link-color, #2196F3);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.map-popup-link:hover {
  color: var(--link-hover-color, #1976D2);
}

/* Map Fallback */
.map-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--card-bg, #f5f5f5);
  color: var(--text-muted-color, #666);
  text-align: center;
  padding: 2rem;
}

.map-fallback i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.map-fallback p {
  margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .research-map-container {
    height: 400px;
  }

  .custom-popup .leaflet-popup-content {
    width: 240px !important;
  }

  .map-popup-image {
    height: 120px;
  }
}
