/* Emergency Event Image Carousel Styles */

/* Event Images Container */
.event-images {
  margin-top: 15px;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 10px 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Carousel Track - Contains all slides */
.carousel-track {
  position: relative;
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  overflow: hidden;
}

/* Individual Carousel Slide */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Carousel Image - Handle both landscape and portrait orientations */
.carousel-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Maintains aspect ratio without cropping */
  cursor: pointer;
  transition: transform 0.3s ease;
}

.carousel-image:hover {
  transform: scale(1.02);
}

/* Navigation Buttons */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  color: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* Navigation Dots */
.carousel-nav {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: #1976d2;
}

/* Event Status styles */
.event-status {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  margin: 0 0 10px 0;
}

.event-status.active {
  background-color: #4caf50;
  color: white;
}

.event-status.inactive {
  background-color: #f44336;
  color: white;
}

/* Event Info Box - Additional styles */
.event-info-box {
  max-height: 80vh;
  overflow-y: auto;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .carousel-track {
    height: 200px;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .carousel-track {
    height: 220px;
  }
}
