/**
 * Enjoy Holiday Hub - Custom Trending Section Stylesheet
 * Brand colors: Navy #14213D, Red #E72E2E, Slate #64748B, Border #E2E8F0, BG #F8FAFC
 */

.trending-section-custom {
  position: relative;
  background-color: #f8fafc;
  padding: 80px 0 90px;
  overflow: hidden;
}

/* Subtle background accent glow */
.trending-section-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 380px;
  background: radial-gradient(circle, rgba(231, 46, 46, 0.04) 0%, rgba(20, 33, 61, 0.02) 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Section Header */
.trending-header {
  position: relative;
  z-index: 1;
  margin-bottom: 35px;
}

.trending-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(231, 46, 46, 0.08);
  color: #e72e2e;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
  border: 1px solid rgba(231, 46, 46, 0.18);
}

.trending-badge-pill i {
  font-size: 0.95rem;
}

.trending-header h2 {
  font-size: 2.35rem;
  font-weight: 800;
  color: #14213d;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.trending-header h2 .highlight-trending {
  color: #e72e2e;
  position: relative;
  display: inline-block;
}

.trending-header h2 .highlight-trending::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(231, 46, 46, 0.2);
  border-radius: 4px;
  z-index: -1;
}

.trending-header p.sub-title {
  color: #64748b;
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Category Navigation Bar */
.trending-nav-wrapper {
  position: relative;
  z-index: 1;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
}

.trending-nav-pills {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 60px;
  box-shadow: 0 4px 18px rgba(20, 33, 61, 0.06);
  border: 1px solid #e2e8f0;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none; /* Firefox */
}

.trending-nav-pills::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.trending-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid transparent;
  color: #14213d;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.trending-nav-btn i {
  font-size: 1.05rem;
  transition: transform 0.25s ease;
}

.trending-nav-btn:hover {
  background: rgba(20, 33, 61, 0.05);
  color: #e72e2e;
}

.trending-nav-btn:hover i {
  transform: scale(1.15);
}

.trending-nav-btn.active {
  background: #e72e2e !important;
  color: #ffffff !important;
  border-color: #e72e2e !important;
  box-shadow: 0 6px 18px rgba(231, 46, 46, 0.35);
}

.trending-nav-btn.active i {
  color: #ffffff !important;
}

/* Sub-filter pills */
.trending-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.trending-filter-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.trending-filter-chip:hover {
  border-color: #cbd5e1;
  color: #14213d;
  background: #f1f5f9;
}

.trending-filter-chip.active {
  background: #14213d;
  color: #ffffff;
  border-color: #14213d;
}

/* Cards Carousel / Grid Wrapper */
.trending-cards-wrapper {
  position: relative;
  z-index: 1;
}

/* Slider Track / Horizontal Scroll */
.trending-slider-container {
  position: relative;
}

.trending-carousel-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  transition: transform 0.35s ease;
}

/* Product Card */
.trending-product-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(20, 33, 61, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.35s ease;
  position: relative;
  height: 100%;
}

.trending-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(20, 33, 61, 0.12);
  border-color: #cbd5e1;
}

/* Card Image Wrapper */
.trending-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #e2e8f0;
}

.trending-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.trending-product-card:hover .trending-card-img {
  transform: scale(1.08);
}

/* Badge on Image */
.trending-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(20, 33, 61, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.trending-card-badge.badge-red {
  background: linear-gradient(135deg, #e72e2e 0%, #c61d1d 100%);
}

.trending-card-badge.badge-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.trending-card-badge.badge-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Wishlist Heart Button */
.trending-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  z-index: 2;
}

.trending-wishlist-btn:hover {
  background: #ffffff;
  color: #e72e2e;
  transform: scale(1.12);
}

.trending-wishlist-btn.active {
  background: #ffffff;
  color: #e72e2e;
}

.trending-wishlist-btn.active i {
  font-weight: 900;
}

/* Image Bottom Info Ribbon (e.g. Flight Route or Duration) */
.trending-img-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0) 100%);
  padding: 24px 16px 8px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.trending-img-ribbon span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Card Body */
.trending-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.trending-card-top-info {
  margin-bottom: 12px;
}

.trending-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #e72e2e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.trending-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #14213d;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-card-location i {
  color: #e72e2e;
  font-size: 0.85rem;
}

/* Rating Strip */
.trending-rating-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.trending-rating-score {
  background: #10b981;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.trending-rating-stars {
  color: #f59e0b;
  font-size: 0.78rem;
}

.trending-review-count {
  color: #94a3b8;
  font-size: 0.76rem;
}

/* Feature Inclusions Pills */
.trending-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.trending-feature-item {
  font-size: 0.74rem;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trending-feature-item i {
  font-size: 0.72rem;
  color: #64748b;
}

/* Card Footer */
.trending-card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.trending-price-block {
  display: flex;
  flex-direction: column;
}

.trending-price-label {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

.trending-price-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.trending-price-currency {
  font-size: 1.28rem;
  font-weight: 800;
  color: #14213d;
  line-height: 1.1;
}

.trending-price-unit {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.trending-original-price {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: line-through;
}

/* CTA Button */
.trending-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #14213d;
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(20, 33, 61, 0.15);
}

.trending-card-btn:hover {
  background: #e72e2e;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(231, 46, 46, 0.35);
  transform: translateY(-2px);
}

.trending-card-btn i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.trending-card-btn:hover i {
  transform: translateX(3px);
}

/* Carousel Arrow Controls */
.trending-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 18px rgba(20, 33, 61, 0.12);
  color: #14213d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.trending-nav-arrow:hover {
  background: #e72e2e;
  color: #ffffff;
  border-color: #e72e2e;
  box-shadow: 0 8px 24px rgba(231, 46, 46, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.trending-nav-prev {
  left: -22px;
}

.trending-nav-next {
  right: -22px;
}

/* Bottom Dynamic CTA View All Button */
.trending-view-all-wrapper {
  margin-top: 45px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.trending-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #14213d;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.2);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 2px solid transparent;
}

.trending-view-all-btn:hover {
  background: #e72e2e;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(231, 46, 46, 0.38);
  transform: translateY(-3px);
}

.trending-view-all-btn i {
  transition: transform 0.25s ease;
}

.trending-view-all-btn:hover i {
  transform: translateX(4px);
}

/* Toast Alert for Wishlist */
.trending-wishlist-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #14213d;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.trending-wishlist-toast.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.trending-wishlist-toast i {
  color: #e72e2e;
  font-size: 1.25rem;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .trending-carousel-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .trending-nav-prev {
    left: -12px;
  }
  .trending-nav-next {
    right: -12px;
  }
}

@media (max-width: 768px) {
  .trending-section-custom {
    padding: 55px 0 65px;
  }
  .trending-header h2 {
    font-size: 1.75rem;
  }
  .trending-nav-pills {
    justify-content: flex-start;
    padding: 6px 10px;
  }
  .trending-nav-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .trending-carousel-track {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .trending-nav-arrow {
    display: none; /* Swipe on mobile */
  }
  .trending-card-img-wrap {
    height: 185px;
  }
  .trending-wishlist-toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
    justify-content: center;
  }
}
