/* ===== Hero: slideshow de fondo con Ken Burns (como el background slideshow de Elementor) ===== */
.hero-slideshow {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.hero-slideshow .hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  transform: scale(1);
}

.hero-slideshow .hero-slide.active {
  opacity: 1;
  animation: heroKenBurns 10s linear forwards;
}

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.2); }
}

@media (max-width: 1199px) {
  .hero-slideshow { height: 143px; }
}

/* ===== Buscador (franja gris + barra blanca, como el original) ===== */
.search-outer {
  padding: 0 100px;
  margin-top: -362px;   /* lo sube sobre el hero, igual que la sección del original */
  margin-bottom: 260px;
  position: relative;
  z-index: 10;
  animation: searchFadeInUp 0.8s ease-out 0.15s both;
}

/* Entrada del buscador completo: sube desde abajo con fade, igual que el
   animation:"fadeInUp" de Elementor en abudhabiviajes */
@keyframes searchFadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-outer {
    animation: none;
  }
}

.search-strip {
  background-color: #D3D1D1;
  padding: 20px 0;
}

.search-widget {
  background-color: #fff;
  border-radius: 6px;
  padding: 10px;
  margin: 0 auto;
  max-width: 97%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.15);
}

.search-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  padding: 10px;
  margin: 0;
}

.search-field {
  flex: 1;
  min-width: 200px;
}

.search-field .select2-container {
  width: 100% !important;
}

/* Oculta el <select> nativo desde el primer paint para que no se vea el
   flash sin estilar antes de que Select2 lo reemplace por su propio markup */
.search-field select {
  display: none;
}

.submit-group {
  flex: 0.5;
  min-width: 200px;
}

.btn-buscar {
  width: 100%;
  padding: 10px;
  height: 50px;
  background-color: var(--color-btn);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-buscar:hover {
  background-color: var(--color-accent-hover);
  color: #fff;
}

/* Select2 con el mismo look del original */
.select2-container--default .select2-selection--single {
  height: 46px;
  border: 1px solid #fff !important;
  border-radius: 4px;
  display: flex;
  align-items: center;
  background-color: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 46px;
  color: #555;
  padding-left: 50px;
  font-size: 14px;
  width: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
}

.select2-selection__placeholder {
  color: #000 !important;
}

.select2-search__field {
  padding: 8px !important;
}

@media (min-width: 992px) {
  .search-field--bordered {
    border-right: 1px solid #e6e6e6;
    padding-right: 10px;
  }
}

@media (max-width: 1199px) {
  .search-outer {
    margin-top: 0;      /* en mobile va debajo del hero, sin solaparse */
    margin-bottom: 0;
    padding: 0;
  }
  .search-strip {
    padding: 10px 0;
  }
  .search-widget {
    margin: 0 10px;
  }
  .search-wrapper {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }
  .search-field, .submit-group {
    width: 100%;
    min-width: 0;
  }
}

/* ===== Banner carousel (slides promocionales) ===== */
.banner-section {
  background-color: var(--color-primary);
  padding: 10px 0;
  margin-top: -40px;   /* la sección del original se solapa 40px con lo anterior */
}

.banner-carousel {
  padding: 10px 10px 0;
}

.banner-carousel .banner-slide img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  display: block;
}

.banner-carousel .slick-prev,
.banner-carousel .slick-next {
  z-index: 5;
  width: 33px;
  height: 33px;
}

.banner-carousel .slick-prev { left: 10px; }
.banner-carousel .slick-next { right: 10px; }

.banner-carousel .slick-prev:before,
.banner-carousel .slick-next:before {
  font-family: 'bootstrap-icons';
  font-size: 33px;
  color: #fff;
  opacity: 1;
}

.banner-carousel .slick-prev:before { content: "\f284"; }
.banner-carousel .slick-next:before { content: "\f285"; }

/* Dots dentro del banner, abajo al centro: inactivo blanco, activo naranja */
.banner-carousel .slick-dots {
  bottom: 15px;
}

.banner-carousel .slick-dots li {
  width: 11px;
  height: 11px;
  margin: 0 6px;
}

.banner-carousel .slick-dots li button {
  width: 11px;
  height: 11px;
  padding: 0;
}

.banner-carousel .slick-dots li button:before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  opacity: 1;
}

.banner-carousel .slick-dots li.slick-active button:before {
  background: var(--color-accent);
}

@media (max-width: 1199px) {
  .banner-section {
    padding: 8px 5px;
    margin-top: 0;
  }
  .banner-carousel {
    padding: 0;
  }
  .banner-carousel .banner-slide img {
    border-radius: 4px;
  }
  .banner-carousel .slick-prev,
  .banner-carousel .slick-next {
    width: 20px;
    height: 20px;
  }
  .banner-carousel .slick-prev:before,
  .banner-carousel .slick-next:before {
    font-size: 20px;
  }
  .banner-carousel .slick-prev { left: 6px; }
  .banner-carousel .slick-next { right: 6px; }
  .banner-carousel .slick-dots { display: none !important; }
}

/* ===== Sección Destacados + Imperdibles (marca de agua de fondo) ===== */
.home-listings {
  position: relative;
  padding: 40px 0 20px;
}

.home-listings::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #CC2727 url('../img/misc/fondo-web-final.jpg') repeat;
  opacity: 0.19;
  pointer-events: none;
}

.home-listings > * {
  position: relative;
}

.home-listings .listings-sub {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text);
  text-align: center;
  margin: 20px 0 0;
}

.home-listings .listing-grid {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
}

.home-listings .listing-col {
  padding: 0 15px;
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .home-listings .listing-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .home-listings .listing-col {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (max-width: 767px) {
  .home-listings .package-card {
    margin-bottom: 15px;
  }
}

.home-listings .imperdibles-title {
  margin: 20px 0;
}

/* ===== Carousel Imperdibles ===== */
.imperdibles-carousel {
  max-width: 100%;
}

.imperdibles-carousel .item {
  padding: 0 15px;
}

.imperdibles-carousel .slick-arrow {
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50px;
  z-index: 5;
}

.imperdibles-carousel .slick-prev { left: 0; }
.imperdibles-carousel .slick-next { right: 0; }

.imperdibles-carousel .slick-prev:before,
.imperdibles-carousel .slick-next:before {
  font-family: 'bootstrap-icons';
  font-size: 14px;
  color: #021F4A;
  opacity: 1;
}

.imperdibles-carousel .slick-prev:before { content: "\f12f"; }
.imperdibles-carousel .slick-next:before { content: "\f138"; }

.imperdibles-carousel .slick-arrow:hover {
  background: #021F4A;
}

.imperdibles-carousel .slick-arrow:hover:before {
  color: #fff;
}

/* Dots como los del theme original: circulitos con borde gris */
.imperdibles-carousel .slick-dots {
  position: static;
  margin-top: 5px;
  line-height: 1;
}

.imperdibles-carousel .slick-dots li {
  width: 14px;
  height: 14px;
  margin: 0 7px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #B9C1D0;
  position: relative;
}

.imperdibles-carousel .slick-dots li button {
  width: 6px;
  height: 6px;
  padding: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.imperdibles-carousel .slick-dots li button:before {
  display: none;
}

.imperdibles-carousel .slick-dots li:hover,
.imperdibles-carousel .slick-dots li.slick-active {
  background: #B9C1D0;
}
