/* ==========================================================================
   Mistyhills Travelplanner — Interior detail pages
   (packages / destinations / safaris). Font is loaded via css/fonts.css.
   Selector groups cover the class-name variants used across pages:
     gallery:  .gallery-top | .gallery | .hero-grid
     groups:   .features | .reviews | .packages | .highlights | .activities
     items:    .feature | .review | .pkg | .highlight | .activity
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body { background: #f5f7fa; color: #222; line-height: 1.6; }

header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, .08);
}

.nav {
  max-width: 1200px;
  margin: auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo,
.logo a { text-decoration: none; color: #1FA774; font-size: 28px; font-weight: 800; }

.home-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1FA774, #159665);
  color: #fff;
  padding: 12px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
}

.container { max-width: 1200px; margin: auto; padding: 20px; }

.title-box,
.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}
.title-box { margin: 20px 0; }
.card { margin-bottom: 20px; }

.rating {
  display: inline-block;
  background: #1FA774;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Photo gallery (top of page) */
.gallery-top,
.gallery,
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
}
.gallery-top img,
.gallery img,
.hero-grid img { width: 100%; object-fit: cover; border-radius: 12px; }
.gallery-top .main,
.gallery .main,
.hero-grid .main { height: 450px; grid-row: span 2; }
.gallery-top .small,
.gallery .small,
.hero-grid .small { height: 220px; }

/* Two-column body / sidebar */
.layout { display: grid; grid-template-columns: 2fr 1fr; gap: 25px; margin-top: 25px; }

/* Repeating content groups */
.features,
.reviews,
.packages,
.highlights,
.activities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.feature,
.review,
.pkg,
.highlight,
.activity { background: #f8fbfa; padding: 15px; border-radius: 12px; }

/* Booking sidebar */
.booking { position: sticky; top: 90px; }
.price { font-size: 44px; font-weight: 800; color: #1FA774; }

/* Buttons */
.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  background: #1FA774;
  color: #fff;
  padding: 14px;
  border-radius: 10px;
  margin-top: 10px;
  font-weight: 700;
}
.btn-outline { background: #fff; color: #1FA774; border: 2px solid #1FA774; }

.timeline li { margin: 12px 0; }

details,
.faq details { background: #f8fbfa; padding: 14px; border-radius: 10px; margin-bottom: 10px; }

.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  z-index: 999;
}
.whatsapp svg { width: 30px; height: 30px; }

footer { background: #173b2d; color: #fff; text-align: center; padding: 30px; margin-top: 40px; }

/* Responsive */
@media (max-width: 768px) {
  .gallery-top,
  .gallery,
  .hero-grid,
  .layout,
  .features,
  .reviews,
  .packages,
  .highlights,
  .activities { grid-template-columns: 1fr; }
  .gallery-top .main,
  .gallery-top .small,
  .gallery .main,
  .gallery .small,
  .hero-grid .main,
  .hero-grid .small { height: 250px; }
  .nav { flex-direction: column; gap: 10px; }
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 18px 0 4px;
  color: #5f6f67;
}
.breadcrumb a { color: #1FA774; text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: #9aa8a1; }
.breadcrumb .current { color: #173b2d; font-weight: 600; }

/* ==========================================================================
   Animations & interactions
   ========================================================================== */
.logo a { transition: opacity 0.2s ease; }
.logo a:hover { opacity: 0.85; }

/* Buttons */
.btn, .btn-outline, .home-btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(31, 167, 116, 0.3); filter: brightness(1.03); }
.btn-outline:hover { background: #1FA774; color: #fff; transform: translateY(-2px); }
.home-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(31, 167, 116, 0.35); }
.btn:active, .btn-outline:active, .home-btn:active { transform: translateY(0) scale(0.98); }

/* Floating WhatsApp pop */
.whatsapp { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.whatsapp:hover { transform: scale(1.1); box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55); }

/* Cards & content tiles */
.card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); }
.feature, .review, .pkg, .highlight, .activity { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.feature:hover, .review:hover, .pkg:hover, .highlight:hover, .activity:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); }

/* Gallery image zoom */
.gallery-top img, .gallery img, .hero-grid img { transition: transform 0.5s ease; }
.gallery-top img:hover, .gallery img:hover, .hero-grid img:hover { transform: scale(1.04); }

details summary { cursor: pointer; }

/* Scroll reveal (active only when JS is on) */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.reveal-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .card:hover, .feature:hover, .review:hover, .pkg:hover, .highlight:hover, .activity:hover { transform: none; }
  .gallery-top img:hover, .gallery img:hover, .hero-grid img:hover { transform: none; }
}
