/* Home Page Styles */

.hero-banner {
  animation: slideDown 0.6s ease-out;
  background-attachment: scroll !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hero-carousel {
  animation: slideDown 0.6s ease-out;
  background-attachment: scroll !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative;
  overflow: hidden;
}

/* Carousel images - natural height on desktop */
.hero-carousel .carousel-item img {
  width: 100%;
  object-fit: cover;
}

/* Main overlay caption (always visible) */
.carousel-main-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: transparent;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-caption-content {
  max-width: 800px;
  width: 100%;
  padding: 20px;
  animation: fadeIn 0.8s ease-in;
  pointer-events: auto;
  text-align: center;
}

.carousel-top-section {
  padding-top: 40px !important;
  padding-bottom: 0 !important;
}

.carousel-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  color: white;
}

.carousel-subtitle {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 300;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  color: white;
}

/* Per-slide captions */
.carousel-item .carousel-caption {
  position: absolute !important;
  bottom: 20px !important;
  left: 0 !important;
  right: 0 !important;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3)) !important;
  padding: 20px 20px !important;
  border-radius: 10px !important;
  margin: 0 20px !important;
}

.carousel-slide-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
  margin: 0 0 10px 0;
  letter-spacing: 0.5px;
}

.carousel-slide-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), 0 0 8px rgba(0, 0, 0, 0.4);
  margin: 0;
  letter-spacing: 0.3px;
}

/* Carousel control buttons - Make them clickable */
.carousel-control-prev,
.carousel-control-next {
  position: absolute !important;
  z-index: 10 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 50px !important;
  height: 50px !important;
  background-color: rgba(102, 126, 234, 0.6) !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.7 !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(102, 126, 234, 0.9) !important;
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.carousel-control-prev {
  left: 20px !important;
}

.carousel-control-next {
  right: 20px !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px !important;
  height: 20px !important;
  background-size: 100% 100% !important;
  filter: brightness(0) invert(1) !important;
}

/* Stats box styling */
.carousel-stats {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 10px;
  margin-bottom: 0;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 25px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.95;
  color: white;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  margin-top: 3px;
}

/* CTA Button styling */
.carousel-cta {
  color: #667eea !important;
  font-weight: 600;
  border-radius: 50px;
  padding: 15px 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.carousel-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Featured Destinations Card Styles */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3) !important;
}

/* Card Footer Button Styling */
.card-footer {
  background: linear-gradient(to right, #f8f9fa, #f0f0f0) !important;
  border-top: 1px solid #dee2e6 !important;
  padding: 0 !important;
}

.card-footer .btn {
  border-radius: 0 !important;
  width: 100% !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.card-footer .btn-sm {
  padding: 10px 15px !important;
}

.card-footer .btn:not(:disabled) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border: none !important;
}

.card-footer .btn:not(:disabled):hover {
  transform: scale(1.02) !important;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4) !important;
}

.card-footer .btn:disabled {
  background-color: #6c757d !important;
  color: white !important;
  cursor: not-allowed !important;
}

.btn-sm:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

html {
  scroll-behavior: smooth;
}

.badge {
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  /* Increase image height on tablet */
  .hero-carousel .carousel-item img {
    min-height: 235px;
    object-fit: cover;
  }

  .carousel-caption-content {
    padding: 10px 15px;
  }

  .carousel-title {
    font-size: 2rem;
    margin-bottom: 5px;
  }
  
  .carousel-subtitle {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .carousel-slide-title {
    font-size: 1.8rem;
  }

  .carousel-slide-subtitle {
    font-size: 0.9rem;
  }

  .carousel-stats {
    gap: 15px;
    padding: 10px 15px;
    margin-top: 70px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px !important;
    height: 40px !important;
  }
}

@media (max-width: 576px) {
  /* Increase image height on mobile */
  .hero-carousel .carousel-item img {
    min-height: 235px;
    object-fit: cover;
  }

  .carousel-caption-content {
    padding: 5px 10px;
  }

  .carousel-title {
    font-size: 1.5rem;
    margin-bottom: 3px;
  }

  .carousel-subtitle {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }

  .carousel-stats {
    gap: 10px;
    padding: 8px 10px;
    margin-top: 70px;
  }

  .stat-number {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }
}
