/* ==========================================================================
   SAFARI GALLERY & DESTINATIONS SHOWCASE - PREMIUM AFRICAN TRAVEL SYSTEM
   Ninoh Wild Safaris Design System
   ========================================================================== */

/* ==========================================================================
   BEACHDAY FONT DEFINITION
   ========================================================================== */
@font-face {
  font-family: 'Beachday';
  src: url('/static/fonts/beachday.otf') format('opentype'),
       url('/static/fonts/beachday.ttf') format('truetype'),
       url('/static/Font/beachday.otf') format('opentype'),
       url('/static/Font/beachday.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.safari-gallery-heading,
.safari-dest-title,
.safari-editorial-title {
  font-family: 'Beachday', 'Poppins', sans-serif !important;
  letter-spacing: 0.6px;
}

:root {
  --safari-gold: #c9a66b;
  --safari-gold-hover: #dfb87a;
  --safari-gold-light: #edd2a4;
  --safari-gold-glow: rgba(201, 166, 107, 0.35);
  --safari-dark-bg: #06150d;
  --safari-card-bg: rgba(9, 29, 19, 0.82);
  --safari-card-border: rgba(201, 166, 107, 0.22);
  --safari-card-border-hover: rgba(201, 166, 107, 0.65);
  --safari-text-light: #f4f7f5;
  --safari-text-muted: #b9cfc3;
  --safari-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. 90% SCREEN WIDTH CONTAINER SYSTEM
   ========================================================================== */

.safari-gallery-section {
  position: relative;
  padding: 80px 0 100px 0;
  background: transparent;
  overflow: hidden;
}

/* Force gallery section to occupy ~90% of available screen width */
.safari-gallery-section > .container,
.safari-gallery-container,
.wild-moments-section > .container {
  width: 90% !important;
  max-width: 90vw !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(12px, 1.2vw, 24px) !important;
  padding-right: clamp(12px, 1.2vw, 24px) !important;
}

/* Ultra-wide desktop screens */
@media (min-width: 2000px) {
  .safari-gallery-section > .container,
  .safari-gallery-container,
  .wild-moments-section > .container {
    width: 90% !important;
    max-width: 2200px !important;
  }
}

/* Tablet screens */
@media (max-width: 992px) {
  .safari-gallery-section > .container,
  .safari-gallery-container,
  .wild-moments-section > .container {
    width: 92% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Mobile phones (320px - 576px) */
@media (max-width: 576px) {
  .safari-gallery-section > .container,
  .safari-gallery-container,
  .wild-moments-section > .container {
    width: 94% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* ==========================================================================
   2. CLEAN, MINIMAL SECTION HEADERS (NO LABELS)
   ========================================================================== */

.safari-gallery-header {
  position: relative;
  max-width: 820px;
  margin: 0 auto 36px auto;
  z-index: 2;
  text-align: center;
}

.safari-gallery-heading {
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-top: 0;
  margin-bottom: 14px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.safari-gallery-lead {
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--safari-text-muted);
  line-height: 1.75;
  max-width: 700px;
  margin: 0 auto 20px auto;
}

/* Top Link: View All Destinations (matches reference image) */
.safari-view-destinations-wrap {
  margin-top: 10px;
  margin-bottom: 30px;
}

.safari-view-destinations-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--safari-gold);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 24px;
  border-radius: 50px;
  background: rgba(201, 166, 107, 0.08);
  border: 1px solid rgba(201, 166, 107, 0.28);
  transition: var(--safari-transition);
}

.safari-view-destinations-link:hover {
  color: #ffffff;
  background: rgba(201, 166, 107, 0.25);
  border-color: var(--safari-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 166, 107, 0.25);
}

.safari-view-destinations-link i {
  transition: transform 0.3s ease;
}

.safari-view-destinations-link:hover i {
  transform: translateY(3px);
}

/* ==========================================================================
   3. FLAGSHIP DESTINATIONS GRID (REFERENCE IMAGE ARCHITECTURE AT 90% WIDTH)
   ========================================================================== */

.safari-destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.2vw, 20px);
  margin-bottom: 60px;
}

.safari-dest-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #081a11;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: var(--safari-transition);
  outline: none;
}

.safari-dest-card:focus-visible {
  outline: 2px solid var(--safari-gold);
  outline-offset: 4px;
}

.safari-dest-card:hover {
  transform: translateY(-5px);
  border-color: var(--safari-card-border-hover);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 25px var(--safari-gold-glow);
}

.safari-dest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.safari-dest-card:hover .safari-dest-img {
  transform: scale(1.08);
}

/* Overlays: Top badge shading & bottom cinematic text vignette */
.safari-dest-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    transparent 35%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(3, 15, 9, 0.92) 100%
  );
  pointer-events: none;
  transition: background 0.4s ease;
}

.safari-dest-card:hover .safari-dest-gradient {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.15) 30%,
    rgba(2, 12, 7, 0.85) 75%,
    rgba(2, 12, 7, 0.98) 100%
  );
}

/* Tour Count Badge - Top Right (Reference Style) */
.safari-dest-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #12291d;
  background: var(--safari-gold);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
  transition: var(--safari-transition);
}

/* Alternate highlight badge */
.safari-dest-badge.alt-badge {
  background: rgba(229, 169, 60, 0.95);
  color: #102419;
}

.safari-dest-card:hover .safari-dest-badge {
  transform: scale(1.05);
  background: #ffffff;
  color: #0b2418;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

/* Destination Name & Info - Centered at Bottom */
.safari-dest-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 14px;
  text-align: center;
  z-index: 2;
  transition: transform 0.4s ease;
}

.safari-dest-title {
  color: #ffffff;
  font-size: clamp(18px, 1.4vw, 23px);
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  transition: color 0.3s ease;
}

.safari-dest-card:hover .safari-dest-title {
  color: var(--safari-gold-light);
}

.safari-dest-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--safari-gold);
  margin-top: 4px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.35s ease;
}

.safari-dest-card:hover .safari-dest-sub {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle Click-to-View Icon Badge */
.safari-dest-expand {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: 2;
}

.safari-dest-card:hover .safari-dest-expand {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   4. CATEGORY FILTERS (STORYTELLING TABS)
   ========================================================================== */

.safari-gallery-filters-wrap {
  display: flex;
  justify-content: center;
  margin: 10px auto 35px auto;
  position: relative;
  z-index: 3;
}

.safari-filter-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 60px;
  background: rgba(9, 29, 19, 0.75);
  border: 1px solid rgba(201, 166, 107, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.safari-filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--safari-text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: 40px;
  cursor: pointer;
  transition: var(--safari-transition);
  outline: none;
}

.safari-filter-btn:hover {
  color: #ffffff;
  border-color: rgba(201, 166, 107, 0.35);
  background: rgba(201, 166, 107, 0.1);
}

.safari-filter-btn.active {
  color: #0b2418;
  background: var(--safari-gold);
  border-color: var(--safari-gold);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(201, 166, 107, 0.35);
}

/* ==========================================================================
   5. EDITORIAL ASYMMETRIC STORYTELLING GALLERY (EXPANSIVE 90% SCREEN WIDTH)
   ========================================================================== */

.safari-editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.2vw, 20px);
  margin-bottom: 50px;
}

.safari-editorial-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #091f14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.4s ease, opacity 0.4s ease;
  min-height: 260px;
}

.safari-editorial-item:hover {
  transform: translateY(-6px);
  border-color: var(--safari-card-border-hover);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--safari-gold-glow);
}

/* Filter Hide State */
.safari-editorial-item.is-hidden {
  display: none !important;
}

/* Asymmetric Span Variations Proportioned for 90% Screen Width */
.span-4 {
  grid-column: span 4;
  height: clamp(300px, 20vw, 380px);
}

.span-6 {
  grid-column: span 6;
  height: clamp(340px, 24vw, 440px);
}

.span-8 {
  grid-column: span 8;
  height: clamp(380px, 28vw, 500px);
}

.span-12 {
  grid-column: span 12;
  height: clamp(400px, 30vw, 520px);
}

.safari-editorial-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.safari-editorial-item:hover img {
  transform: scale(1.07);
}

/* Vignette Overlay */
.safari-editorial-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    transparent 40%,
    rgba(3, 14, 8, 0.75) 75%,
    rgba(3, 14, 8, 0.95) 100%
  );
  transition: background 0.4s ease;
  pointer-events: none;
}

.safari-editorial-item:hover .safari-editorial-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(3, 14, 8, 0.85) 70%,
    rgba(3, 14, 8, 0.98) 100%
  );
}

/* Category Badge (Top Left) */
.safari-editorial-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  border-radius: 40px;
  background: rgba(8, 25, 16, 0.75);
  border: 1px solid rgba(201, 166, 107, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--safari-gold-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}

/* Zoom/Expand Button (Top Right) */
.safari-editorial-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(201, 166, 107, 0.9);
  color: #0b2418;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.7);
  transition: var(--safari-transition);
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.safari-editorial-item:hover .safari-editorial-btn {
  opacity: 1;
  transform: scale(1);
}

/* Card Content / Story Caption */
.safari-editorial-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 20px;
  z-index: 2;
}

.safari-editorial-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--safari-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.safari-editorial-title {
  color: #ffffff;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.safari-editorial-desc {
  font-size: 13px;
  color: var(--safari-text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.35s ease;
}

.safari-editorial-item:hover .safari-editorial-desc {
  max-height: 50px;
  opacity: 1;
  margin-top: 6px;
}

/* ==========================================================================
   6. CTA BUTTONS & ACTIONS
   ========================================================================== */

.safari-gallery-footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 15px;
}

.safari-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: 50px;
  background: linear-gradient(135deg, #c9a66b 0%, #e2be82 100%);
  color: #0d281a !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: none;
  box-shadow: 0 8px 24px rgba(201, 166, 107, 0.35);
  transition: var(--safari-transition);
}

.safari-primary-btn:hover {
  background: linear-gradient(135deg, #dfb87a 0%, #f3d49f 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(201, 166, 107, 0.5);
  color: #06150d !important;
}

/* Wild Moments CTA Buttons */
.wild-moments-button-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
  margin-top: 48px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.wild-moments-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 14px 34px !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, #c89b3c 0%, #f4d06f 50%, #dfb87a 100%) !important;
  color: #06150d !important;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(200, 155, 60, 0.35) !important;
  transition: var(--safari-transition) !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.wild-moments-btn:hover {
  background: linear-gradient(135deg, #dfb87a 0%, #fae19b 50%, #c89b3c 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(200, 155, 60, 0.5) !important;
  color: #06150d !important;
}

.safari-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  background: rgba(201, 166, 107, 0.1);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: 1px solid rgba(201, 166, 107, 0.4);
  transition: var(--safari-transition);
  backdrop-filter: blur(10px);
}

.safari-secondary-btn:hover {
  background: rgba(201, 166, 107, 0.25);
  border-color: var(--safari-gold);
  color: var(--safari-gold-light) !important;
  transform: translateY(-3px);
}

/* ==========================================================================
   7. CINEMATIC FULLSCREEN TRAVEL VIEWER (LIGHTBOX MODAL)
   ========================================================================== */

.safari-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 15, 9, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  user-select: none;
}

.safari-lightbox-modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.safari-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 36px;
  position: relative;
  z-index: 10;
}

.safari-lightbox-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 40px;
  background: rgba(201, 166, 107, 0.15);
  border: 1px solid rgba(201, 166, 107, 0.3);
  color: var(--safari-gold-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
}

.safari-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.safari-lightbox-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--safari-transition);
  outline: none;
}

.safari-lightbox-icon-btn:hover {
  background: var(--safari-gold);
  border-color: var(--safari-gold);
  color: #0a2417;
  transform: scale(1.08);
}

.safari-lightbox-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 80px;
  overflow: hidden;
}

.safari-lightbox-figure {
  position: relative;
  max-width: 90vw;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.safari-lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(201, 166, 107, 0.25);
  transition: transform 0.35s ease, opacity 0.3s ease;
}

.safari-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(9, 29, 19, 0.7);
  border: 1px solid rgba(201, 166, 107, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--safari-transition);
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  outline: none;
}

.safari-lightbox-nav:hover {
  background: var(--safari-gold);
  border-color: var(--safari-gold);
  color: #081d13;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 25px var(--safari-gold-glow);
}

.safari-lightbox-prev {
  left: 24px;
}

.safari-lightbox-next {
  right: 24px;
}

.safari-lightbox-footer {
  position: relative;
  z-index: 10;
  padding: 20px 36px 30px 36px;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 15, 9, 0.95) 60%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.safari-lightbox-story {
  max-width: 720px;
}

.safari-lightbox-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--safari-gold);
  margin-bottom: 6px;
}

.safari-lightbox-title {
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.safari-lightbox-caption {
  color: var(--safari-text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.safari-lightbox-cta-wrap {
  flex-shrink: 0;
}

.safari-lightbox-inquire-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 50px;
  background: var(--safari-gold);
  color: #071f14 !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(201, 166, 107, 0.35);
  transition: var(--safari-transition);
}

.safari-lightbox-inquire-btn:hover {
  background: var(--safari-gold-hover);
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 166, 107, 0.5);
}

/* ==========================================================================
   8. DEDICATED GALLERY PAGE HERO & VIDEO REELS
   ========================================================================== */

.safari-page-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 20px 70px 20px;
  overflow: hidden;
  background: #06150d;
}

.safari-page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.safari-page-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 21, 13, 0.55) 0%, rgba(6, 21, 13, 0.92) 80%);
  z-index: 1;
}

.safari-page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES (MOBILE, TABLET, DESKTOP)
   ========================================================================== */

@media (max-width: 1200px) {
  .safari-destinations-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  
  .span-4 {
    grid-column: span 6;
    height: 300px;
  }
  
  .span-8 {
    grid-column: span 6;
    height: 300px;
  }
}

@media (max-width: 992px) {
  .safari-destinations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  
  .safari-dest-card {
    aspect-ratio: 16 / 10;
  }
  
  .safari-dest-sub {
    opacity: 1;
    transform: translateY(0);
  }
  
  .span-4, .span-6, .span-8, .span-12 {
    grid-column: span 12;
    height: 340px;
  }
  
  .safari-lightbox-stage {
    padding: 10px 20px;
  }
  
  .safari-lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
  
  .safari-lightbox-prev {
    left: 10px;
  }
  
  .safari-lightbox-next {
    right: 10px;
  }
  
  .safari-lightbox-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }
}

@media (max-width: 768px) {
  .safari-gallery-section {
    padding: 60px 0 70px 0;
  }
  
  .safari-destinations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .safari-dest-title {
    font-size: 16px;
  }
  
  .safari-dest-badge {
    top: 10px;
    right: 10px;
    font-size: 11px;
    padding: 4px 10px;
  }
  
  .safari-filter-pills {
    border-radius: 20px;
    gap: 6px;
  }
  
  .safari-filter-btn {
    font-size: 12px;
    padding: 6px 14px;
  }
  
  .span-4, .span-6, .span-8, .span-12 {
    grid-column: span 12;
    height: 280px;
  }
  
  .safari-editorial-desc {
    max-height: 50px;
    opacity: 1;
    margin-top: 4px;
  }
  
  .safari-lightbox-header {
    padding: 16px 20px;
  }
  
  .safari-lightbox-figure {
    max-width: 96vw;
    max-height: 65vh;
  }
  
  .safari-lightbox-img {
    max-height: 60vh;
  }
}

@media (max-width: 480px) {
  .safari-destinations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .safari-dest-card {
    aspect-ratio: 16 / 10;
  }
  
  .safari-dest-title {
    font-size: 15px;
  }
  
  .safari-dest-badge {
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 3px 8px;
  }
  
  .safari-dest-sub {
    display: none;
  }
  
  .safari-gallery-footer-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .safari-primary-btn, .safari-secondary-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .safari-destinations-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .safari-dest-card {
    aspect-ratio: 16 / 9;
  }
  
  .safari-dest-sub {
    display: block;
  }
}

@media (max-width: 640px) {
  .wild-moments-button-wrap {
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 36px !important;
    width: 100% !important;
    padding: 0 12px !important;
  }
  
  .wild-moments-btn,
  .wild-moments-button-wrap .safari-primary-btn {
    width: 100% !important;
    max-width: 330px !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 13px 20px !important;
    font-size: 14px !important;
    border-radius: 9999px !important;
    margin: 0 !important;
  }
}

@media (max-width: 380px) {
  .wild-moments-btn,
  .wild-moments-button-wrap .safari-primary-btn {
    max-width: 100% !important;
    padding: 12px 14px !important;
    font-size: 12.5px !important;
    gap: 6px !important;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .safari-dest-card,
  .safari-dest-img,
  .safari-editorial-item,
  .safari-editorial-item img,
  .safari-lightbox-modal,
  .safari-lightbox-img {
    transition: none !important;
    animation: none !important;
  }
}
