/* ============================================================
   MZANZI — responsive.css
   Mobile-first fixes for every screen size
   ============================================================ */

/* ─── BASE BODY SPACING ─── */
body {
  overflow-x: hidden;
}

/* Push content below fixed header (topbar + navbar) */
.hero,
.page-hero {
  /* hero handles its own padding-top internally */
}

/* ─── HERO ─── */
@media (max-width: 900px) {
  .hero-title { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .hero-desc { font-size: .95rem; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-content { padding-bottom: 40px; }
  .hero-scroll { display: none; }
}

/* ─── TOUR TYPES BAR ─── */
.tour-types-inner {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tour-types-inner::-webkit-scrollbar { display: none; }
a.tour-type-item { text-decoration: none; }

@media (max-width: 900px) {
  .tour-type-item { min-width: 150px; padding: 20px 14px; }
  .tour-type-desc { display: none; }
  .tour-type-name { font-size: .78rem; }
}
@media (max-width: 480px) {
  .tour-type-item { min-width: 130px; padding: 18px 12px; }
}

/* ─── ACTIVITIES GRID ─── */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) {
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .activities-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ─── TOURS GRID ─── */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 1000px) {
  .tours-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tours-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ─── BLOG GRID ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 1000px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; gap: 18px; }
  .blog-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ─── GALLERY GRID ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (max-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; }
}

/* ─── GALLERY ITEMS ─── */
.gallery-item { height: 200px; }
@media (max-width: 700px) { .gallery-item { height: 160px; } }
@media (max-width: 480px) { .gallery-item { height: 140px; } }

/* ─── CTA BANNER ─── */
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-text h2 { font-size: 1.5rem; }
  .cta-banner { padding: 50px 0; }
}

/* ─── SECTION HEADINGS ─── */
@media (max-width: 600px) {
  .section-heading h2 { font-size: 1.6rem; }
  .section { padding: 50px 0; }
  .section--lg { padding: 70px 0; }
  .container { padding: 0 16px; }
}

/* ─── PAGE HERO ─── */
.page-hero {
  padding: 60px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
@media (max-width: 600px) {
  .page-hero { padding: 40px 0 40px; }
  .page-hero h1 { font-size: 1.8rem; }
}

/* ─── ABOUT GRID ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrap { margin-bottom: 30px; }
  .about-badge { right: 0; bottom: -20px; }
}

/* ─── FOOTER ─── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
  gap: 48px;
}
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-main { padding: 50px 0 36px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 10px; }
}

/* ─── SINGLE POST / PAGE LAYOUT ─── */
@media (max-width: 900px) {
  /* Sidebar stacks below content */
  #main-content + aside,
  .sidebar { padding-left: 0 !important; margin-top: 40px; }
}

/* ─── CONTACT / ABOUT PAGE GRIDS ─── */
@media (max-width: 860px) {
  /* Any inline grid with two columns becomes single column */
  [style*="grid-template-columns:1.2fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ─── BACK TO TOP ─── */
#back-to-top { bottom: 20px; right: 20px; }
@media (max-width: 600px) { #back-to-top { width: 38px; height: 38px; font-size: .8rem; } }

/* ─── LIGHTBOX ─── */
.lightbox img { max-width: 95vw; max-height: 80vh; }

/* ─── CARDS — ensure images don't break ─── */
.tour-card-img img,
.activity-card-img img,
.blog-card-img img,
.activity-full-img img,
.tour-full-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── PREVENT HORIZONTAL SCROLL ─── */
.tour-types,
.gallery-section,
.blog-section,
.activities-section,
.tours-section {
  overflow-x: hidden;
}

/* ─── MOBILE NAV IMPROVEMENTS ─── */
@media (max-width: 900px) {
  .mz-navbar-inner { height: 60px; }
  .mz-logo .mz-logo-img { max-height: 42px; }
}
@media (max-width: 480px) {
  .mz-navbar-inner { height: 60px; }
  .mz-logo .mz-logo-img { max-height: 36px; }
}

/* ─── ACTIVITY READ MORE LINK ─── */
.activity-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sage);
  transition: gap var(--tr), color var(--tr);
}
.activity-read-more:hover { color: var(--gold); gap: 10px; }
.activity-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .77rem;
  color: var(--muted);
}
.activity-card-meta > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.activity-card-meta i { color: var(--gold); }

/* ─── TOUR TYPE LINK STYLE ─── */
a.tour-type-item { text-decoration: none; display: flex; flex-direction: column; align-items: center; text-align: center; }
a.tour-type-item:hover .tour-type-icon { background: var(--gold); color: var(--white); border-color: var(--gold); }
a.tour-type-item:hover .tour-type-name { color: var(--gold-light); }

/* ─── ACTIVITY HIGHLIGHTS LIST ─── */
.activity-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.activity-highlights li {
  font-size: .8rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.activity-highlights li i { color: var(--gold); font-size: .75rem; flex-shrink: 0; }

/* ─── BLOG SECTION HEADER ─── */
.blog-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}
@media(max-width:600px){
  .blog-section-header{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .blog-section-header .section-heading{text-align:center;}
}

/* ─── TOURS PAGE GRID ─── */
.tour-full-body .tour-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 600px) {
  .tour-full-body .tour-card-footer { flex-direction: column; align-items: flex-start; }
  .tour-full-body .tour-card-footer .btn { width: 100%; justify-content: center; }
}

/* ─── PRINT ─── */
@media print {
  .mz-header, .back-to-top, .hero-scroll, .cta-banner { display: none; }
  body { padding-top: 0; }
}
