/**
 * Premium Package Detail Page CSS
 * Luxury Adventure Tourism - Mount Rinjani Summit Trek
 * 
 * Color Palette:
 * - Primary: #2E7D32 (Green)
 * - Secondary: #FF8F00 (Orange)
 * - Background: #F8F9FA
 * - Dark Text: #212529
 */

:root {
  --premium-primary: #2e7d32;
  --premium-secondary: #ff8f00;
  --premium-bg: #f8f9fa;
  --premium-dark: #212529;
  --premium-light: #f8f9fa;
  --premium-border-radius: 1.25rem;
  --premium-shadow: 0 8px 24px rgba(46, 125, 50, 0.12);
  --premium-shadow-hover: 0 16px 40px rgba(46, 125, 50, 0.2);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   HERO SECTION
   ============================================ */

.premium-hero {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.hero-title {
  animation: slideInDown 0.8s ease-out;
  letter-spacing: -1px;
}

.hero-subtitle {
  animation: slideInUp 0.8s ease-out 0.2s both;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.badge-premium {
  animation: fadeInScale 0.6s ease-out;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   INFO CARDS
   ============================================ */

.info-card {
  border: 1px solid rgba(46, 125, 50, 0.08);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(46, 125, 50, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--premium-shadow-hover);
  border-color: var(--premium-primary);
}

.info-card:hover::before {
  left: 100%;
}

.info-icon {
  transition: var(--transition-smooth);
}

.col-lg-2-4 {
    flex: 0 0 calc(16.666% - 0.75rem);
    max-width: calc(16.666% - 0.75rem);
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header h2 {
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-header h2::after {
  content: none;
}

.divider {
  animation: expandWidth 0.6s ease-out;
}

@keyframes expandWidth {
  from {
    width: 0 !important;
  }
  to {
    width: 80px !important;
  }
}

/* ============================================
   HIGHLIGHT CARDS
   ============================================ */

.highlight-card {
  border: 1px solid rgba(46, 125, 50, 0.08);
  transition: var(--transition-smooth);
  position: relative;
}

.highlight-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--premium-shadow-hover);
  border-color: var(--premium-secondary);
}

.highlight-card i {
  transition: var(--transition-smooth);
}

.highlight-card:hover i {
  transform: scale(1.2) rotateZ(-10deg);
  color: var(--premium-secondary);
}

.highlight-card h5 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--premium-dark);
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline {
  position: relative;
}

.timeline-item {
  animation: fadeInSlideRight 0.6s ease-out;
  animation-fill-mode: both;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}
.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}
.timeline-item:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInSlideRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-dot {
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
  transition: var(--transition-smooth);
  font-size: 1.2rem;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.2);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.35);
}

.timeline-content .card {
  border: 1px solid rgba(46, 125, 50, 0.08);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content .card {
  box-shadow: var(--premium-shadow-hover);
  border-color: var(--premium-primary);
}

.card-header {
  background-color: #f0f4f2 !important;
  border-bottom: 1px solid rgba(46, 125, 50, 0.1) !important;
}

/* ============================================
   TRAIL CARDS
   ============================================ */

.trail-card {
  border: 1px solid rgba(46, 125, 50, 0.08);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.trail-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(46, 125, 50, 0.05),
    transparent
  );
  transition: right 0.5s ease;
}

.trail-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--premium-shadow-hover);
  border-color: var(--premium-secondary);
}

.trail-card:hover::before {
  right: 100%;
}

.trail-card h5 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trail-stat {
  transition: var(--transition-smooth);
}

.trail-card:hover .trail-stat {
  transform: translateX(5px);
}

.trail-stat i {
  transition: var(--transition-smooth);
}

.trail-card:hover .trail-stat i {
  transform: scale(1.15);
}

/* ============================================
   WEATHER CARDS
   ============================================ */

.weather-card {
  border: 1px solid rgba(46, 125, 50, 0.08);
  transition: var(--transition-smooth);
  position: relative;
}

.weather-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--premium-shadow-hover);
  background: linear-gradient(135deg, #f0f4f2 0%, #fff8f0 100%) !important;
}

.weather-card i {
  transition: var(--transition-smooth);
}

.weather-card:hover i {
  transform: scale(1.25);
}

/* ============================================
   EQUIPMENT CARDS
   ============================================ */

.equipment-card {
  border: 1px solid rgba(46, 125, 50, 0.08);
  transition: var(--transition-smooth);
}

.equipment-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--premium-shadow-hover);
  border-color: var(--premium-primary);
}

.equipment-card ul li {
  transition: var(--transition-smooth);
}

.equipment-card:hover ul li {
  transform: translateX(8px);
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-grid {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  transition: var(--transition-smooth);
  transform-origin: center;
}

.gallery-item:hover img {
  transform: scale(1.15) rotateZ(2deg);
}

.gallery-overlay {
  background: rgba(46, 125, 50, 0) !important;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
  background: rgba(46, 125, 50, 0.4) !important;
}

.gallery-item:hover .gallery-overlay i {
  opacity: 1;
  transform: scale(1.2);
}

/* ============================================
   REVIEW CARDS
   ============================================ */

.review-card {
  border: 1px solid rgba(46, 125, 50, 0.08);
  transition: var(--transition-smooth);
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 4rem;
  color: var(--premium-secondary);
  opacity: 0.1;
}

.review-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--premium-shadow-hover);
  border-color: var(--premium-secondary);
}

.review-comment {
  font-style: italic;
  line-height: 1.6;
}

.customer-avatar {
  border: 2px solid var(--premium-primary);
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
  transition: var(--transition-smooth);
}

.review-card:hover .customer-avatar {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.25);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.accordion-item {
  border: none;
  background: transparent;
}

.accordion-button {
  border-radius: 1rem;
  border: 1px solid rgba(46, 125, 50, 0.08);
  transition: var(--transition-smooth);
  margin-bottom: 12px;
}

.accordion-button:not(.collapsed) {
  background-color: #e8f5e9;
  color: var(--premium-primary);
  border-color: var(--premium-primary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--premium-primary);
  background-color: #f1f8f5;
}

.accordion-button:hover:not(.collapsed) {
  background-color: #e0f2f1;
}

.accordion-body {
  border-radius: 0 0 1rem 1rem;
  background: rgba(46, 125, 50, 0.02);
  border: 1px solid rgba(46, 125, 50, 0.08);
  border-top: 1px solid rgba(46, 125, 50, 0.12);
}

/* ============================================
   STICKY BOOKING CARD
   ============================================ */

.sticky-booking-card {
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sticky-booking-card .card {
  transition: var(--transition-smooth);
}

.sticky-booking-card .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(46, 125, 50, 0.3);
}

.sticky-booking-card .btn {
  transition: var(--transition-smooth);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.sticky-booking-card .btn:hover {
  transform: translateY(-2px);
}

/* ============================================
   PACKAGE CARDS (RELATED)
   ============================================ */

.package-card {
  border: 1px solid rgba(46, 125, 50, 0.08);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.package-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--premium-primary) 0%,
    var(--premium-secondary) 100%
  );
}

.package-card:hover .package-image img {
  transform: scale(1.1) rotateZ(3deg);
}

.package-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--premium-shadow-hover);
  border-color: var(--premium-secondary);
}

.package-card .badge {
  animation: fadeInScale 0.6s ease-out;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
  background: linear-gradient(135deg, var(--premium-primary) 0%, #1b5e20 100%);
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

.btn-warning {
  transition: var(--transition-smooth);
}

.btn-warning:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(255, 143, 0, 0.3);
  background-color: #ffa726 !important;
}

.btn-outline-light {
  border: 2px solid white;
  transition: var(--transition-smooth);
}

.btn-outline-light:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.15);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 991px) {
  .premium-hero {
    min-height: 400px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .sticky-booking-card {
    display: none !important;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .premium-hero {
    min-height: 350px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .info-card {
    border-radius: 1rem;
  }

  .timeline-item .d-flex {
    flex-direction: column;
  }

  .timeline-marker {
    min-width: 40px !important;
    text-align: center;
    margin-bottom: 12px;
  }

  .timeline-dot {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem;
  }

  .trail-card {
    margin-bottom: 1rem;
  }

  .review-card {
    margin-bottom: 1rem;
  }

  .weather-card {
    text-align: center;
  }

  .gallery-item {
    aspect-ratio: 1 !important;
  }

  .col-lg-2-4 {
    flex: 0 0 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
  }
}

/* Small Phones */
@media (max-width: 576px) {
  .premium-hero {
    min-height: 300px;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .section-header h2 {
    font-size: 1.25rem;
  }

  .col-lg-2-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .info-card p {
    font-size: 0.85rem;
  }

  .badge-premium {
    font-size: 0.75rem;
    padding: 0.5rem 1rem !important;
  }

  .d-flex.flex-wrap {
    gap: 0.5rem;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

.transition-all {
  transition: var(--transition-smooth);
}

.text-shadow {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.bg-light-gray {
  background-color: var(--premium-bg) !important;
}

.object-fit-cover {
  object-fit: cover;
}

.min-vh-100 {
  min-height: 100vh;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.bounce {
  animation: bounce 1s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .sticky-booking-card,
  .navbar,
  .d-grid {
    display: none !important;
  }

  .premium-hero {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
