/* 🔹🔹🔹 HALAMAN PAKET 🔹🔹🔹 */
/* ==========================
   Paket wisata - CSS
============================= */
/* Container utama */
.paket-container,
.paket-scroll-wrapper {
  max-width: 1000px;
  margin: var(--section-spacing) auto;
  padding: var(--section-padding);
  text-align: center;
  box-sizing: border-box;
}

/* Section Title */
.paket-title {
  font-size: 26px;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin-bottom: var(--title-margin-bottom);
}

/* Filter */
.paket-filter-wrapper {
  margin-bottom: 20px;
}

.paket-filter-wrapper label {
  font-size: 14px;
  color: var(--secondary-color);
  margin-right: 10px;
}

.paket-filter-wrapper select {
  padding: 6px 10px;
  border-radius: var(--border-radius);
  border: var(--card-border-width) solid #ccc;
}

/* Card */
.paket-item,
.paket-item-populer {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-box-shadow);
  border: var(--card-border-width) solid #ddd;
  overflow: hidden;
  position: relative;
  margin: 10px;
  display: inline-block;
  vertical-align: top;
  transition: var(--transition);
  --paket-color: #0077b6;
}

.paket-item img,
.paket-item-populer img {
  width: 100%;
  height: auto;
  display: block;
}

/* Konten kartu */
.paket-card-content {
  padding: 12px;
}

/* Judul */
.paket-card-content h3 {
  font-size: 18px;
  text-align: center;
  font-weight: var(--font-weight-bold);
  color: var(--paket-color);
  margin-bottom: 4px;
}

/* Rating */
.paket-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px 0;
}

.paket-rating div {
  font-size: 24px;
  background: linear-gradient(to right, gold 0%, #ccc 0%);
  -webkit-background-clip: text;
  color: transparent;
}

.paket-rating span {
  font-size: 13px;
  color: var(--secondary-color);
}

/* default: deskripsi hanya 2 baris + ellipsis */
.paket-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* tampilkan 2 baris awal */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: max-height 0.3s ease;
  /* animasi halus */
  max-height: 3em;
  /* kira-kira 2 baris */
  line-height: 1.5em;
  margin-bottom: 5px;
}

/* saat tombol toggle diklik */
.paket-description.expanded {
  -webkit-line-clamp: unset;
  /* hapus pembatas baris */
  max-height: 100vh;
  /* biar terbuka penuh */
  overflow: visible;
}

.paket-toggle-btn {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.9rem;
  color: var(--paket-color, #007BFF);
  cursor: pointer;
  user-select: none;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.paket-toggle-btn:hover {
  color: #0056b3;
}

/* Info tambahan */
.paket-additional {
  font-size: 13px;
  color: var(--secondary-color);
  margin-top: 6px;
  display: block;
  text-align: left;
}

/* Harga */
.paket-price {
  font-size: 14px;
  margin-top: 6px;
  text-align: left;
  color: var(--secondary-color);
}

.paket-price del {
  color: #888;
  font-size: 13px;
}

.paket-price strong {
  color: var(--paket-color);
  font-size: 15px;
  display: block;
  margin-top: 2px;
}

/* Tombol link */
.paket-link {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: var(--border-radius);
  background-color: var(--paket-color);
  color: var(--primary-button-text-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  text-align: left;
}

/* Badge */
.paket-badge {
  position: absolute;
  right: -30px;
  bottom: 18px;
  width: 120px;
  text-align: center;
  background: #efbf04;
  color: var(--text-color-dark);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  padding: 4px 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
  animation: paketGlow 2s infinite ease-in-out;
  border-radius: 2px;
}

.paket-badge::before,
.paket-badge::after {
  content: "";
  position: absolute;
  top: -6px;
  border-bottom: 6px solid rgba(0, 0, 0, 0.3);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

.paket-badge::before {
  left: 0;
}

.paket-badge::after {
  right: 0;
}

/* Animasi Glow */
@keyframes paketGlow {
  0% {
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.5), 0 0 12px rgba(255, 215, 0, 0.3);
  }

  50% {
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6);
  }

  100% {
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.5), 0 0 12px rgba(255, 215, 0, 0.3);
  }
}

/* Scroll wrapper */
.paket-scroll-wrapper {
  padding-bottom: 10px;
  width: 100%;
}

.paket-scroll-area {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  width: 100%;
}

.paket-scroll-content {
  display: flex;
  gap: 20px;
  padding-bottom: 10px;
  width: max-content;
  box-sizing: border-box;
}

.paket-scroll-content>.paket-item {
  flex: 0 0 auto;
  width: 85vw;
  max-width: 260px;
  box-sizing: border-box;
}

/* Filter message */
.paket-filter-message {
  text-align: center;
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--secondary-color);
}

/* Responsive */
@media (min-width: 768px) {
  #paket-container-populer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .paket-item-populer {
    flex: 1 1 calc(50% - 20px);
    margin: 0;
  }

  .paket-scroll-content>.paket-item {
    width: 200px;
  }
}