/* ==========================================================================
   VOYAGO / WONDERFALLS — Package Detail Pages Stylesheet
   ========================================================================== */

/* --- Variables inherit from main theme --- */
:root {
  --primary-blue: #0284c7;
  --primary-cyan: #38bdf8;
  --primary-dark: #0369a1;
  --dark-bg: #070d14;
  --dark-surface: #0b1522;
  --dark-card: rgba(16, 29, 45, 0.75);
  --dark-border: rgba(255, 255, 255, 0.1);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --gradient-blue: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  --radius-pill: 9999px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
}

/* Base tweaks */
body.package-page {
  background-color: #f8fafc;
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* --- Package Hero Section --- */
.pkg-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 60px;
  color: #ffffff;
  overflow: hidden;
}

.pkg-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pkg-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.03);
  transition: transform 8s ease;
}

.pkg-hero:hover .pkg-hero-bg img {
  transform: scale(1.07);
}

.pkg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 13, 20, 0.75) 0%,
    rgba(7, 13, 20, 0.5) 40%,
    rgba(7, 13, 20, 0.95) 100%
  );
}

.pkg-hero-container {
  position: relative;
  z-index: 5;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.pkg-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.pkg-breadcrumbs a {
  color: #bae6fd;
  text-decoration: none;
}

.pkg-breadcrumbs a:hover {
  text-decoration: underline;
}

.pkg-badges-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pkg-tag-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pkg-rating-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: #facc15;
}

.pkg-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.pkg-hero-desc {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 720px;
  margin-bottom: 28px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pkg-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Highlights Bar --- */
.pkg-highlights-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 24px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.pkg-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.pkg-highlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pkg-hl-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e0f2fe;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pkg-hl-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: block;
}

.pkg-hl-text strong {
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 800;
}

/* --- Layout Grid: Main Content + Sticky Sidebar --- */
.pkg-main-section {
  padding: 60px 0 100px;
}

.pkg-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  align-items: start;
}

/* Content blocks */
.pkg-content-block {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #edf2f7;
}

.pkg-block-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pkg-block-title svg {
  color: var(--primary-blue);
}

/* Gallery Grid */
.pkg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pkg-gallery-item {
  position: relative;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.pkg-gallery-item.span-2 {
  grid-column: span 2;
  height: 280px;
}

.pkg-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pkg-gallery-item:hover img {
  transform: scale(1.08);
}

.pkg-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 12px 14px 8px;
  pointer-events: none;
}

/* Day by Day Timeline */
.pkg-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.pkg-day-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  background: #fdfefe;
  transition: all 0.3s ease;
  position: relative;
}

.pkg-day-card:hover {
  border-color: var(--primary-cyan);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
  transform: translateY(-2px);
}

.pkg-day-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.pkg-day-badge {
  background: var(--gradient-blue);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.pkg-day-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.pkg-day-body {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
}

.pkg-day-body ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pkg-day-body li {
  position: relative;
  padding-left: 24px;
}

.pkg-day-body li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

.pkg-day-thumb {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  max-height: 200px;
}

.pkg-day-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Inclusions & Exclusions Grid */
.inclusions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.incl-box {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid #e2e8f0;
}

.incl-box.positive {
  border-top: 4px solid #10b981;
}

.incl-box.negative {
  border-top: 4px solid #ef4444;
}

.incl-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.incl-box ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: #475569;
}

.incl-box.positive li::before {
  content: '✓ ';
  color: #10b981;
  font-weight: bold;
  margin-right: 6px;
}

.incl-box.negative li::before {
  content: '✕ ';
  color: #ef4444;
  font-weight: bold;
  margin-right: 6px;
}

/* Tips & Important Note */
.pkg-tips-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #475569;
  font-size: 0.95rem;
}

.pkg-notice-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--primary-blue);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  color: #1e3a8a;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Booking Sidebar --- */
.pkg-sidebar {
  position: relative;
}

@media (min-width: 1025px) {
  .pkg-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
  }
}

.pkg-booking-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
  scroll-margin-top: 100px;
}

.pkg-price-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.pkg-price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.pkg-price-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.pkg-price-sub {
  font-size: 0.8rem;
  color: #10b981;
  font-weight: 600;
  margin-bottom: 20px;
  display: block;
}

.pkg-book-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pkg-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pkg-form-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
}

.pkg-form-field input,
.pkg-form-field select {
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
  background: #ffffff;
}

.pkg-form-field input:focus,
.pkg-form-field select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.pkg-sidebar-contact {
  background: #0f1d30;
  border-radius: var(--radius-xl);
  padding: 24px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pkg-contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pkg-contact-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.pkg-contact-info p {
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

/* Other Packages Slider */
.other-packages-section {
  background: #ffffff;
  padding: 80px 0;
  border-top: 1px solid #e2e8f0;
}

.other-pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.other-pkg-grid .package-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Responsive queries */
@media (max-width: 1024px) {
  .pkg-layout-grid {
    grid-template-columns: 1fr;
  }
  .pkg-sidebar {
    position: static;
  }
  .pkg-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pkg-hero-title {
    font-size: 2.5rem;
  }
  .pkg-gallery-grid {
    grid-template-columns: 1fr;
  }
  .pkg-gallery-item.span-2 {
    grid-column: span 1;
    height: 200px;
  }
  .inclusions-grid {
    grid-template-columns: 1fr;
  }
  .other-pkg-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CONTACT BUTTON (NAVBAR)
   ========================================================================== */
.btn-nav-contact {
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gradient-blue);
  color: #ffffff !important;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-nav-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.55);
  color: #ffffff !important;
}

/* ==========================================================================
   TRAVEL TIPS CONTACT CTA
   ========================================================================== */
.pkg-tips-contact-cta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(56, 189, 248, 0.05) 100%);
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
}

.pkg-tips-contact-text strong {
  display: block;
  font-size: 0.96rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.pkg-tips-contact-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pkg-tips-contact-btn {
  padding: 9px 22px;
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: var(--gradient-blue);
  color: #ffffff;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
}

.pkg-tips-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

/* ==========================================================================
   STICKY BOTTOM BOOKING BAR ("STRAIGHT DOWN STICKY")
   ========================================================================== */
.pkg-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(7, 13, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
  padding: 12px 0;
  animation: slideUpSticky 0.4s ease-out;
}

@keyframes slideUpSticky {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.pkg-sticky-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pkg-sticky-details {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pkg-sticky-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.pkg-sticky-text {
  display: flex;
  flex-direction: column;
}

.pkg-sticky-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.pkg-sticky-pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.pkg-sticky-price {
  color: #38bdf8;
  font-size: 1.35rem;
  font-weight: 800;
}

.pkg-sticky-unit {
  color: #94a3b8;
  font-size: 0.82rem;
}

.pkg-sticky-guarantee {
  color: #10b981;
  font-weight: 600;
  font-size: 0.78rem;
  margin-left: 6px;
}

.pkg-sticky-book-btn {
  padding: 11px 26px;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: var(--gradient-blue);
  color: #ffffff !important;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pkg-sticky-book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.6);
  color: #ffffff !important;
}

/* Position adjustment for package pages */
body.package-page {
  padding-bottom: 78px;
}

body.package-page .whatsapp-float {
  bottom: 84px;
}

/* Highlight and Pulse animations */
.pkg-booking-card {
  scroll-margin-top: 100px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.pkg-booking-card.highlight-pulse {
  animation: bookCardPulse 1.4s ease-out;
  border-color: #38bdf8 !important;
}

@keyframes bookCardPulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.75); }
  50% { box-shadow: 0 0 0 16px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.12); }
}

.pkg-sidebar-contact {
  scroll-margin-top: 100px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.pkg-sidebar-contact.highlight-pulse {
  animation: contactBoxPulse 1.4s ease-out;
  border-color: #38bdf8 !important;
}

@keyframes contactBoxPulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.75); }
  50% { box-shadow: 0 0 0 16px rgba(56, 189, 248, 0); }
  100% { box-shadow: none; }
}

.pkg-contact-phone {
  color: #38bdf8;
  font-weight: 700;
  margin-top: 4px;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}

.pkg-contact-phone:hover {
  color: #bae6fd;
  text-decoration: underline;
}

@media (max-width: 768px) {
  body.package-page {
    padding-bottom: 72px;
  }
  body.package-page .whatsapp-float {
    bottom: 76px;
  }
  .pkg-sticky-bar {
    padding: 10px 0;
  }
  .pkg-sticky-container {
    padding: 0 16px;
    gap: 12px;
  }
  .pkg-sticky-pill,
  .pkg-sticky-guarantee {
    display: none;
  }
  .pkg-sticky-title {
    font-size: 0.85rem;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pkg-sticky-price {
    font-size: 1.15rem;
  }
  .pkg-sticky-book-btn {
    padding: 9px 16px;
    font-size: 0.82rem;
  }
}

