/* ==========================================================================
   paket.css — Halaman Paket Wisata
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page Header
   -------------------------------------------------------------------------- */
.paket-header {
  background-color: #F5F6F0;
  text-align: center;
  padding: 80px 20px 60px;
}

.paket-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

.paket-header p {
  font-size: 0.95rem;
  color: #6B7280;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   2. Packages Grid
   -------------------------------------------------------------------------- */
.packages-grid {
  padding: 40px 0 80px;
  background-color: #F5F6F0;
}

.packages-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-8);
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .packages-inner {
    grid-template-columns: 1fr 1fr;
    padding: 0 24px;
  }
}

/* Eksplor-style cards span full width on larger screens */
/* @media (min-width: 768px) {
  .package-card--eksplor {
    grid-column: 1 / -1;
    max-width: 560px;
    justify-self: center;
  }
} */

/* --------------------------------------------------------------------------
   3. Package Card
   -------------------------------------------------------------------------- */
.package-card {
  background-color: #FFFFFF;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(26, 92, 42, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.package-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: rgba(26, 92, 42, 0.14);
}

/* ---- Hero image ---- */
.pkg-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}

.pkg-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.package-card:hover .pkg-image-wrap img {
  transform: scale(1.04);
}

.pkg-image-label {
  position: absolute;
  bottom: 12px;
  left: 16px;
  padding: 0.35rem 0.65rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Best seller badge */
.pkg-best-seller {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--color-accent);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  z-index: 1;
}

/* Promo badge (new) */
.pkg-promo-badge {
  position: absolute;
  top: 12px;
  left: 16px;
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.35);
  animation: promo-pulse 2.5s ease-in-out infinite;
}

@keyframes promo-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(255, 107, 53, 0.35); }
  50% { box-shadow: 0 4px 16px rgba(255, 107, 53, 0.55); }
}

/* Price overlay on image (eksplor-style) */
.pkg-price-overlay {
  position: absolute;
  bottom: 12px;
  right: 16px;
  background: linear-gradient(135deg, rgba(26, 67, 50, 0.92), rgba(45, 106, 79, 0.92));
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.pkg-price-overlay__amount {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}

.pkg-price-overlay__unit {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

/* ---- Card body ---- */
.pkg-body {
  padding: var(--spacing-6);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  flex: 1;
  min-height: 0;
}

.pkg-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #1A3A2A;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Price + duration row ---- */
.pkg-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: var(--spacing-4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pkg-meta-row--compact {
  padding-bottom: var(--spacing-3);
}

.pkg-price-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pkg-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #1A3A2A;
  line-height: 1;
}

.pkg-price-unit {
  font-size: 0.85rem;
  font-weight: 400;
  color: #6B7280;
}

.pkg-min-peserta {
  font-size: 0.75rem;
  font-weight: 400;
  color: #6B7280;
}

.pkg-min-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #EFF1EC;
  color: #2D6A4F;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid #D8DEDA;
}

.pkg-min-badge svg {
  flex-shrink: 0;
}

.pkg-duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #EFF1EC;
  color: #2D6A4F;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid #D8DEDA;
}

/* --------------------------------------------------------------------------
   4. Fasilitas Section (Sudah Termasuk)
   -------------------------------------------------------------------------- */
.pkg-fasilitas {
  padding: var(--spacing-4) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pkg-fasilitas__heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: #1A3A2A;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pkg-fasilitas__heading svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #2D6A4F;
}

.pkg-fasilitas__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 480px) {
  .pkg-fasilitas__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pkg-fasilitas__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: linear-gradient(145deg, #F0F4F0, #E8EDE8);
  border-radius: 0.75rem;
  border: 1px solid rgba(45, 106, 79, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pkg-fasilitas__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.12);
}

.pkg-fasilitas__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(45, 106, 79, 0.1);
  border-radius: 50%;
  color: #2D6A4F;
  transition: background-color 0.2s ease;
}

.pkg-fasilitas__item:hover .pkg-fasilitas__icon {
  background-color: rgba(45, 106, 79, 0.18);
}

.pkg-fasilitas__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #374151;
  text-align: center;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   5. Destinasi Section
   -------------------------------------------------------------------------- */
.pkg-destinasi {
  padding: var(--spacing-4) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pkg-destinasi__heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: #1A3A2A;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pkg-destinasi__heading svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #2D6A4F;
}

.pkg-destinasi__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pkg-destinasi__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #374151;
  line-height: 1.5;
  padding: 6px 10px;
  border-radius: 0.5rem;
  background-color: rgba(45, 106, 79, 0.04);
  transition: background-color 0.2s ease;
}

.pkg-destinasi__item:hover {
  background-color: rgba(45, 106, 79, 0.08);
}

.pkg-destinasi__bullet {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background-color: #2D6A4F;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6. Itinerary section
   -------------------------------------------------------------------------- */
.pkg-itinerary-section {
  flex: 1;
  min-height: 0;
}

.pkg-itinerary-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #1A3A2A;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pkg-itinerary-heading svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #2D6A4F;
}

.itinerary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Vertical connecting line */
.itinerary-list::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background-color: #D1D5DB;
  z-index: 0;
}

.itinerary-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0;
  position: relative;
}

/* Timeline dot */
.itinerary-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  border-radius: 50%;
  background-color: #2D6A4F;
  margin-top: 5px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Last item: grey dot */
.itinerary-item:last-child .itinerary-dot {
  background-color: #9CA3AF;
}

.itinerary-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.itinerary-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.2;
}

.itinerary-activity {
  font-size: 0.75rem;
  color: #6B7280;
  line-height: 1.45;
}

/* ---- Book button ---- */
.pkg-footer {
  margin-top: auto;
  padding-top: var(--spacing-4);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pkg-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  background-color: #25D366;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 24px;
  border-radius: 0.625rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  line-height: 1.3;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.pkg-book-btn:hover {
  background-color: #1DAF57;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.pkg-book-btn svg {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   7. Responsive tweaks
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .paket-header {
    padding: 100px 40px 70px;
  }
}

/* --------------------------------------------------------------------------
   8. Image Zoom Button & Lightbox
   -------------------------------------------------------------------------- */

/* Zoom icon button on top-right of image */
.pkg-image-zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.pkg-image-wrap:hover .pkg-image-zoom-btn {
  opacity: 1;
}

.pkg-image-zoom-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* Cursor hint on image */
.pkg-image-wrap img {
  cursor: zoom-in;
}

/* Lightbox overlay */
#pkg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#pkg-lightbox.pkg-lightbox--open {
  opacity: 1;
  pointer-events: all;
}

.pkg-lightbox-inner {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pkg-lightbox-img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
  display: block;
  transition: transform 0.3s ease;
}

#pkg-lightbox.pkg-lightbox--open #pkg-lightbox-img {
  transform: scale(1);
  animation: lb-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lb-pop {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Close button */
.pkg-lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pkg-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}
