.popular-packages-section {
  padding: 88px 0;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 34%),
    linear-gradient(180deg, #f8fbfa 0%, #ffffff 100%);
}

.best-selling-header {
  margin-bottom: 32px;
}

.best-selling-header .section-header-content {
  max-width: none;
  text-align: center;
}

.popular-packages-section .section-subtitle,
.popular-packages-section .section-title,
.popular-packages-section .section-description {
  color: inherit;
}

.popular-packages-section .best-selling-header .section-subtitle {
  color: #f4b400 !important;
  -webkit-text-fill-color: #f4b400 !important;
  background: none !important;
  opacity: 1 !important;
}

.popular-packages-section .section-title {
  color: #1e56a5 !important;
  background: linear-gradient(135deg, #1e56a5 0%, #007bff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.popular-packages-section .section-description {
  max-width: 760px;
  margin: 0 auto;
}

.best-selling-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 1px solid #d7e3df;
  border-radius: 999px;
  background: #ffffff;
  color: #0f4037;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(15, 64, 55, 0.08);
  transform: translateY(-50%);
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.best-selling-nav:hover:not(:disabled),
.best-selling-nav:focus-visible:not(:disabled) {
  background: linear-gradient(135deg, var(--blue) 0%, var(--primary) 100%) !important;
  color: #ffffff !important;
  border-color: var(--blue) !important;
  box-shadow: 0 6px 20px rgba(30, 86, 165, 0.3) !important;
}

.best-selling-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.best-selling-slider {
  position: relative;
  padding: 0 70px;
}

.best-selling-prev {
  left: 0;
}

.best-selling-next {
  right: 0;
}

.best-selling-slider.best-selling-static .best-selling-nav {
  display: none;
}

.best-selling-viewport {
  overflow: hidden;
}

.best-selling-track {
  display: flex;
  gap: 24px;
  transition: transform 0.35s ease;
  will-change: transform;
}

.best-selling-slide {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 24px) / 2);
  max-width: calc((100% - 24px) / 2);
}

.popular-packages-section .package-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.popular-packages-section .package-card::before {
  display: none;
}

.popular-packages-section .package-card:hover {
  transform: translateY(-10px);
}

.popular-packages-section .package-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10.3;
  border-radius: 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 20px 45px rgba(15, 64, 55, 0.14);
}

.popular-packages-section .image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.popular-packages-section .package-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popular-packages-section .package-card:hover .package-thumb {
  transform: scale(1.08);
}

.popular-packages-section .placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.popular-packages-section .placeholder-image i {
  font-size: 80px;
  color: rgba(255, 255, 255, 0.3);
}

.popular-packages-section .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(4, 18, 31, 0.55) 100%
  );
  opacity: 1;
  transition: opacity var(--duration-normal) var(--ease-standard);
}

.popular-packages-section .package-card:hover .image-overlay {
  opacity: 1;
}

.popular-packages-section .package-badges {
  position: absolute;
  left: var(--space-16);
  bottom: var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  z-index: 10;
}

.popular-packages-section .badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.popular-packages-section .popular-badge {
  background: linear-gradient(135deg, #f3903f 0%, #ed6834 100%);
  color: var(--white);
}

.popular-packages-section .discount-badge {
  background: linear-gradient(135deg, #1e56a5 0%, #0f766e 100%);
  color: var(--white);
}

.popular-packages-section .package-image-details {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 11;
  display: flex;
  justify-content: flex-end;
}

.popular-packages-section .package-content {
  padding: 22px 8px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}

.popular-packages-section .package-quote {
  display: none;
}

.popular-packages-section .package-quote i {
  font-size: 10px;
  color: var(--blue);
  margin-top: 2px;
  opacity: 0.5;
}

.popular-packages-section .package-title {
  font-size: clamp(2rem, 2vw, 2.4rem);
  font-weight: var(--font-weight-bold);
  margin: 0;
  line-height: var(--line-height-tight);
  min-height: 0;
}

.popular-packages-section .package-title a {
  color: #1f2a44;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.popular-packages-section .package-card:hover .package-title a {
  color: var(--blue);
}

.popular-packages-section .package-meta {
  display: none;
}

.popular-packages-section .package-footer {
  display: none;
}

.popular-packages-section .package-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.popular-packages-section .price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.popular-packages-section .original-price {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: line-through;
  font-weight: var(--font-weight-normal);
}

.popular-packages-section .current-price {
  font-size: clamp(1.8rem, 1.9vw, 2.35rem);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: currentColor;
  line-height: 1;
}

.popular-packages-section .price-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: var(--font-weight-medium);
  text-align: right;
}

.popular-packages-section .package-price-overlay {
  min-width: 180px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(46, 125, 185, 0.92) 0%, rgba(79, 176, 220, 0.85) 100%);
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(8, 48, 84, 0.28);
}

.popular-packages-section .package-hover-actions {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(7, 19, 32, 0.08) 0%, rgba(7, 19, 32, 0.62) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.popular-packages-section .package-card:hover .package-hover-actions,
.popular-packages-section .package-card:focus-within .package-hover-actions {
  opacity: 1;
  visibility: visible;
}

.popular-packages-section .package-hover-button {
  min-width: 170px;
  justify-content: center;
}

.popular-packages-section .package-hover-book {
  background: linear-gradient(135deg, var(--primary) 0%, var(--blue) 100%);
}

.popular-packages-section .btn-view-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-12) var(--space-24);
  background: linear-gradient(135deg, var(--blue) 0%, var(--primary) 100%);
  color: var(--white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(30, 86, 165, 0.3);
}

.popular-packages-section .btn-view-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.popular-packages-section .btn-view-more:hover::before {
  left: 100%;
}

.popular-packages-section .btn-view-more:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(30, 86, 165, 0.4);
}

.popular-packages-section .btn-view-more i {
  font-size: var(--font-size-xs);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.popular-packages-section .btn-view-more:hover i {
  transform: translateX(4px);
}

.popular-packages-section .no-packages-message {
  padding: 36px 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e4efec;
  text-align: center;
  color: #52606d;
}

.popular-packages-section .no-packages-message i {
  display: block;
  margin-bottom: 14px;
  color: #0f766e;
  font-size: 34px;
}

.popular-packages-section .best-selling-section-cta {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

.popular-packages-section .best-selling-section-button {
  min-width: 220px;
  justify-content: center;
  padding: 14px 28px;
  font-size: var(--font-size-base);
  box-shadow: 0 10px 24px rgba(30, 86, 165, 0.22);
}

.popular-packages-section .best-selling-section-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(30, 86, 165, 0.28);
}

@media (max-width: 1099px) {
  .best-selling-slider {
    padding: 0 62px;
  }

  .best-selling-track {
    gap: 20px;
  }

  .best-selling-slide {
    flex: 0 0 calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }

  .popular-packages-section .package-title {
    font-size: clamp(1.55rem, 3.8vw, 2rem);
  }

  .popular-packages-section .package-price-overlay {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .popular-packages-section {
    padding: 72px 0;
  }

  .best-selling-slider {
    padding: 0;
  }

  .best-selling-nav {
    display: none;
  }

  .best-selling-viewport {
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 18px 12px;
    margin: 0 -18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .best-selling-viewport::-webkit-scrollbar {
    display: none;
  }

  .best-selling-track {
    gap: 16px;
    transition: none;
    will-change: auto;
  }

  .best-selling-slide {
    flex: 0 0 min(82%, 320px);
    max-width: min(82%, 320px);
    scroll-snap-align: start;
  }

  .popular-packages-section .package-content {
    padding: 18px 4px 0;
  }

  .popular-packages-section .package-image {
    border-radius: 24px;
  }

  .popular-packages-section .package-image-details {
    right: 14px;
    bottom: 14px;
  }

  .popular-packages-section .package-badges {
    left: 14px;
    top: 14px;
    bottom: auto;
  }

  .popular-packages-section .package-price-overlay {
    padding: 14px 16px;
    min-width: 0;
    width: auto;
  }

  .popular-packages-section .package-hover-actions {
    display: none;
  }

  .popular-packages-section .package-title {
    font-size: 1.5rem;
  }

  .popular-packages-section .best-selling-section-cta {
    margin-top: 26px;
  }

  .popular-packages-section .best-selling-section-button {
    width: 100%;
    min-width: 0;
  }

  .popular-packages-section .btn-view-more {
    width: 100%;
    justify-content: center;
  }
}
