/* ============================================================
   Upcoming Expeditions Carousel
   Card: full background image + gradient overlay, content at bottom
   1.5 cards visible — peek pattern
   ============================================================ */

.ue-carousel-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden; /* clips peeking slide at wrapper edge */
  padding: 12px 16px; /* breathing room so scaled cards aren't clipped on any edge */
  box-sizing: border-box;
}

/* ── Track: allow overflow so peek is visible ── */
#upcoming-expeditions-splide .splide__track {
  overflow: visible;
}

/* ── Card ── */
.ue-card {
  position: relative;
  display: block;
  height: 460px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.35s ease;
  will-change: transform;
}

.ue-card:hover {
  transform: scale(1.025);
  transform-origin: center center;
}

/* Gradient overlay: transparent top → dark bottom */
.ue-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.4)  50%,
    transparent         100%
  );
  border-radius: 16px;
  pointer-events: none;
}

/* ── Content: positioned over the gradient ── */
.ue-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 22px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Meta row: date + seats ── */
.ue-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Date pill */
.ue-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.02em;
}

/* Seats pill */
.ue-seats-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 114, 13, 0.25);
  color: #ff9f45;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 114, 13, 0.4);
}

.ue-seats-pill--full {
  background: rgba(200, 50, 50, 0.25);
  color: #ff6b6b;
  border-color: rgba(200, 50, 50, 0.4);
}

/* ── Title ── */
.ue-card__content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

/* ── Price ── */
.ue-price {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.ue-price .woocommerce-Price-amount {
  color: rgba(255, 255, 255, 0.65);
}

/* ── Footer: status + CTA ── */
.ue-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.ue-status-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.ue-btn {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.ue-card:hover .ue-btn {
  color: #ff720d;
}

/* ── Sold-out states ── */
.ue-slide--sold-out .ue-card::after {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.ue-slide--sold-out .ue-card {
  filter: grayscale(40%);
}

.ue-status-pill--sold {
  background: rgba(180, 0, 0, 0.6) !important;
  border-color: rgba(255, 80, 80, 0.4) !important;
  color: #fff !important;
}

.ue-btn--sold {
  color: rgba(255, 255, 255, 0.45);
  cursor: not-allowed;
}

.ue-slide--sold-out .ue-card:hover .ue-btn--sold {
  color: rgba(255, 255, 255, 0.45);
}

/* ── Hide pagination ── */
#upcoming-expeditions-splide .splide__pagination {
  display: none !important;
}

/* ============================================================
   Splide arrows
   ============================================================ */
#upcoming-expeditions-splide .splide__arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.25s ease, border-color 0.25s ease;
}

#upcoming-expeditions-splide .splide__arrow:hover {
  background: #ff720d;
  border-color: #ff720d;
}

#upcoming-expeditions-splide .splide__arrow svg {
  fill: #ffffff;
  width: 15px;
  height: 15px;
}

#upcoming-expeditions-splide .splide__arrow--prev { left: 12px; }
#upcoming-expeditions-splide .splide__arrow--next { right: 12px; }

/* ============================================================
   Responsive — Tablet (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .ue-card {
    height: 400px;
  }

  .ue-card__content h3 {
    font-size: 1.15rem;
  }
}

/* ============================================================
   Responsive — Mobile (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .ue-card {
    height: 380px;
  }

  .ue-card__content {
    padding: 20px 18px;
  }

  .ue-card__content h3 {
    font-size: 1.05rem;
  }

  #upcoming-expeditions-splide .splide__arrow--prev { left: 8px; }
  #upcoming-expeditions-splide .splide__arrow--next { right: 8px; }
}
