/* Course Map Lightbox Styles */
.course-map-lightbox {
  position: relative;
  display: block;
  text-decoration: none;
}

.course-map-lightbox img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-map-lightbox:hover img {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.course-map-lightbox .zoom-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.course-map-lightbox:hover .zoom-hint {
  opacity: 1;
}

/* Lightbox Overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

@media screen and (max-width: 768px) {
  .course-map-lightbox .zoom-hint {
    font-size: 12px;
    padding: 6px 12px;
    bottom: 10px;
    right: 10px;
  }

  .lightbox-close {
    top: 15px;
    right: 20px;
    font-size: 32px;
  }
}
