/* ============================================
   CAROUSEL WITH ARROWS - Trips/Cruises Section
   ============================================ */

/* Carousel Container */
.cte-carousel-container {
  position: relative;
  padding: 0;
  margin: 0 auto;
  max-width: 100%;
  overflow: visible;
}

/* Section Grid - Horizontal Scroll */
.cte-section-grid {
  display: flex !important;
  gap: 24px !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scroll-behavior: smooth !important;
  padding: 20px 0 !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Hide scrollbar */
.cte-section-grid::-webkit-scrollbar {
  display: none;
}

/* Cards in carousel - fixed width */
.cte-section-grid .clem-trip-card {
  flex: 0 0 380px !important;
  min-width: 380px !important;
  max-width: 380px !important;
  height: auto !important;
}

/* Navigation Arrows - Positioned underneath carousel */
.cte-carousel-nav {
  position: relative;
  width: 32px;
  height: 32px;
  background: #532A75;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(83, 42, 117, 0.2);
  margin: 0 6px;
}

.cte-carousel-nav:hover {
  background: #3d1f56;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(83, 42, 117, 0.4);
}

.cte-carousel-nav:active {
  transform: scale(0.95);
}

/* Navigation container underneath */
.cte-carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 0;
}

/* Arrow icons */
.cte-carousel-nav::before {
  font-family: dashicons;
  font-size: 18px;
  line-height: 1;
}

.cte-carousel-nav.prev::before {
  content: "\f341"; /* dashicons-arrow-left-alt2 */
}

.cte-carousel-nav.next::before {
  content: "\f345"; /* dashicons-arrow-right-alt2 */
}

/* Hide arrows when not needed */
.cte-carousel-nav.hidden {
  display: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .cte-carousel-container {
    padding: 0;
  }
  
  .cte-carousel-nav {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  .cte-carousel-nav::before {
    font-size: 16px;
  }
  
  .cte-section-grid .clem-trip-card {
    flex: 0 0 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
  }
}

@media (max-width: 480px) {
  .cte-carousel-container {
    padding: 0;
  }
  
  .cte-carousel-nav {
    width: 26px;
    height: 26px;
  }
  
  .cte-section-grid .clem-trip-card {
    flex: 0 0 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
  }
}

/* Remove "No items found" styling or hide it */
.cte-section-grid .cte-empty {
  display: none !important;
}

/* Ensure carousel parent has proper overflow */
.cte-section-shell {
  overflow: visible !important;
}

/* Fix for card display in carousel */
.cte-section-grid .clem-trip-card.clem-vertical-card {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 500px;
}

.cte-section-grid .clem-trip-card.clem-vertical-card .trip-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.cte-section-grid .clem-trip-card.clem-vertical-card .trip-btn {
  margin-top: auto !important;
  width: 100% !important;
  display: block !important;
}
