/* Ensure the carousel wrapper has the same "Gilded" feel as the rest of the site */
.custom-carousel {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.3); /* Match your Gold theme */
  background-color: transparent;
  height: auto;
}

/* Force images to maintain their natural aspect ratio */
.carousel-item img {
  height: auto; /* Container height will match image height */
  width: 100%;
  object-fit: contain; /* Ensures the whole image is seen */
}

/* Customizing indicators to match High Noon theme */
.carousel-indicators [button] {
  background-color: #d4af37;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* --- TIGHT-FIT CAROUSEL INDICATORS --- */

#heroCarousel .carousel-indicators {
  /* 1. Force the container to ONLY be as wide as the buttons */
  width: fit-content !important;
  min-width: 0 !important;

  /* 2. Absolute Centering Logic */
  position: absolute !important;
  left: 50% !important;
  bottom: 30px !important;
  transform: translateX(-50%) !important;

  /* 3. Reset all Bootstrap spacing */
  margin: 0 !important;
  padding: 8px 15px !important; /* Adjust this to change the "padding" around the buttons */

  /* 4. Styling the Dock */
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  gap: 8px; /* Space between the pills */
  z-index: 15;
}

/* Individual Indicator Buttons */
#heroCarousel .carousel-indicators [data-bs-target] {
  box-sizing: border-box;
  flex: 0 0 auto; /* Prevents them from stretching */
  width: 10px;
  height: 10px;
  padding: 0;
  margin: 0;
  text-indent: -999px; /* Hides default Bootstrap text */
  cursor: pointer;
  background-color: var(--bbc-blue-dark);
  border: none;
  border-radius: 10px;
  opacity: 0.4;
  transition: all 0.3s ease;
}

/* Active State - Expands only the width */
#heroCarousel .carousel-indicators .active {
  width: 28px;
  opacity: 1;
  background-color: var(--bbc-gold) !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

@media (max-width: 768px) {
  #heroCarousel .carousel-indicators {
    backdrop-filter: blur(0px) !important;
  }

  #heroCarousel .carousel-indicators {
    opacity: 0.5 !important;
  }
}
