/* ==========================================================================
   EL ZOTZ - LUXURY SUSTAINABLE ECOTOURISM DESIGN SYSTEM ($10k TIER)
   Theme: "Rainforest Adventure Meets Ancient Maya Astronomy"
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Figtree:ital,wght@0,300..900;1,300..900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --color-jungle-950: #081611;
  --color-jungle-900: #0d211a;
  --color-jungle-850: #102820;
  --color-jungle-800: #143228;
  --color-jungle-700: #1b4537;
  --color-limestone-50: #FAF8F5;
  --color-limestone-100: #F3EFEA;
  --color-limestone-200: #E5DFC8;
  --color-limestone-300: #C4BC9E;
  --color-gold-300: #F5D37E;
  --color-gold-400: #E6B84A;
  --color-gold-500: #D4AF37;
  --color-gold-600: #B89327;
  --color-jade-400: #4ADE9B;
  --color-jade-500: #2A9D6E;
  --color-jade-600: #21835b;
  --color-terracotta: #C86446;
  --color-obsidian: #050d0a;
  
  --font-display: 'Cinzel', serif;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Figtree', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-luxury: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-jungle-950);
  color: var(--color-limestone-100);
  overflow-x: hidden;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 38px;
  background-color: var(--color-jungle-950);
  color: var(--color-limestone-100);
  -webkit-font-smoothing: antialiased;
}

p, .body-text, .text-body {
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 38px;
}

/* Harmonic Typography Variations derived from 24px Base */
.text-body-lg {
  font-size: 28px;
  line-height: 42px;
}

.text-body-md {
  font-size: 24px;
  line-height: 38px;
}

.text-body-sm {
  font-size: 20px;
  line-height: 32px;
}

.text-body-xs {
  font-size: 16px;
  line-height: 26px;
}

.text-body-micro {
  font-size: 13px;
  line-height: 20px;
}

/* Typography Utility Classes */
.font-display { font-family: var(--font-display); }
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--color-jungle-950);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-500);
}

/* Selection */
::selection {
  background: var(--color-gold-500);
  color: var(--color-jungle-950);
}

/* Gold Gradient Text */
.text-gradient-gold {
  background: linear-gradient(135deg, #FFF6D6 0%, #E6B84A 40%, #D4AF37 70%, #AA801E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #A7F3D0 0%, #2A9D6E 50%, #155E40 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Interactive Ambient Spotlight Cursor Layer */
#interactiveCursorSpotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 40;
  background: radial-gradient(600px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(212, 175, 55, 0.045), transparent 80%);
  transition: opacity 0.4s ease;
}

/* Subtle Topographic Vector Backgrounds */
.bg-topo-pattern {
  background-image: radial-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 0),
                    radial-gradient(rgba(42, 157, 110, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

.bg-topo-contour {
  position: relative;
}

.bg-topo-contour::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='500' height='500' viewBox='0 0 500 500' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 100 C 150 120, 200 40, 350 90 C 450 120, 480 80, 500 100 M 0 200 C 120 220, 250 170, 380 230 C 440 250, 480 210, 500 200 M 0 320 C 180 280, 240 360, 400 310 C 460 300, 490 330, 500 320 M 0 440 C 140 460, 280 400, 420 450 C 470 460, 490 430, 500 440' stroke='%23D4AF37' fill='none' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Archival Field Journal Watermark Stamp */
.archival-stamp {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.35);
  border: 1px dashed rgba(212, 175, 55, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}

/* Bespoke Maya Architectural Stepped Borders */
.maya-card-luxury {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 40, 32, 0.7) 0%, rgba(8, 22, 17, 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 1.25rem;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease;
  will-change: transform;
}

.maya-card-luxury::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.5) 50%, transparent 100%);
}

.maya-card-luxury:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(212, 175, 55, 0.06);
}

/* Mayan Rounded Corner Ornaments */
.corner-notch-tr {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-top: 2px solid rgba(212, 175, 55, 0.55);
  border-right: 2px solid rgba(212, 175, 55, 0.55);
  border-top-right-radius: 0.85rem;
  pointer-events: none;
  transition: var(--transition-fast);
}

.corner-notch-bl {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 22px;
  height: 22px;
  border-bottom: 2px solid rgba(212, 175, 55, 0.55);
  border-left: 2px solid rgba(212, 175, 55, 0.55);
  border-bottom-left-radius: 0.85rem;
  pointer-events: none;
  transition: var(--transition-fast);
}

.maya-card-luxury:hover .corner-notch-tr,
.maya-card-luxury:hover .corner-notch-bl,
.glass-panel-elevated:hover .corner-notch-tr,
.glass-panel-elevated:hover .corner-notch-bl {
  border-color: rgba(212, 175, 55, 0.9);
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
}

/* Rounded Photo Frame Utilities */
.photo-frame-rounded {
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.photo-frame-rounded img {
  border-radius: 1.25rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Silky Soft Image Zoom */
.card-img-zoom {
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  will-change: transform;
}

.group:hover .card-img-zoom,
.maya-card-luxury:hover .card-img-zoom {
  transform: scale(1.02) !important;
}

/* Handcrafted Glassmorphism Panels */
.glass-panel {
  background: rgba(13, 33, 26, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: border-color 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}

.glass-panel-elevated {
  background: linear-gradient(180deg, rgba(16, 42, 33, 0.85) 0%, rgba(8, 22, 17, 0.95) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

/* Hairline Section Dividers */
.section-hairline {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.35) 50%, transparent 100%);
  margin: 0 auto;
}

/* Navigation Dropdown Menu & Pills */
.nav-dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-link-pill {
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-limestone-200);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
}

.nav-link-pill:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

/* Luxury Buttons with Silky Soft Transitions */
.btn-gold {
  position: relative;
  background: linear-gradient(135deg, #F0C65E 0%, #D4AF37 55%, #AA801E 100%);
  color: #081611;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease, filter 0.3s ease;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  will-change: transform;
}

.btn-gold:hover {
  transform: translateY(-1.5px) scale(1.01);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, #FAD97A 0%, #E6B84A 55%, #C29623 100%);
}

.btn-gold:active {
  transform: translateY(0px) scale(0.995);
}

.btn-outline-gold {
  background: rgba(13, 33, 26, 0.4);
  backdrop-filter: blur(8px);
  color: var(--color-gold-300);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease, border-color 0.3s ease, background-color 0.3s ease;
  will-change: transform;
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: #FFF6D6;
  color: #FFF6D6;
  transform: translateY(-1px) scale(1.008);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
}

.btn-outline-gold:active {
  transform: translateY(0px) scale(0.995);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #2EE872 0%, #25D366 60%, #1DA851 100%);
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.9rem 1.85rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-luxury);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 38px rgba(37, 211, 102, 0.5);
  background: linear-gradient(135deg, #38F57E 0%, #29E06D 60%, #20BA5A 100%);
}

/* Animations */
@keyframes pulse-subtle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.06); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-subtle {
  animation: pulse-subtle 4s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 50s linear infinite;
}

/* Sticky WhatsApp Float */
.sticky-whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(13, 33, 26, 0.92);
  backdrop-filter: blur(16px);
  padding: 0.5rem 0.65rem 0.5rem 1.15rem;
  border-radius: 9999px;
  border: 1px solid rgba(37, 211, 102, 0.45);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  transition: var(--transition-luxury);
}

.sticky-whatsapp-float:hover {
  transform: scale(1.05) translateY(-3px);
  border-color: #25D366;
  box-shadow: 0 20px 50px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.55);
}

/* Hero Overlay Video / Graphic */
.hero-gradient-overlay {
  background: linear-gradient(
    180deg,
    rgba(8, 22, 17, 0.35) 0%,
    rgba(8, 22, 17, 0.7) 50%,
    rgba(8, 22, 17, 1) 100%
  );
}

/* Audio ambient visualizer waves */
.audio-wave-bar {
  display: inline-block;
  width: 3px;
  background: var(--color-gold-400);
  border-radius: 2px;
  transition: height 0.18s ease;
}

/* Interactive Map & Elevation Diagram */
.trail-elevation-point {
  transition: var(--transition-fast);
  cursor: pointer;
}

.trail-elevation-point:hover circle {
  r: 8px;
  fill: var(--color-gold-500);
  filter: drop-shadow(0 0 10px var(--color-gold-500));
}

/* Canvas Container */
.bat-canvas-container {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(180deg, #182834 0%, #3d2b38 45%, #081611 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

/* Form Styles */
.form-input-luxury {
  background: rgba(8, 22, 17, 0.85);
  border: 1px solid rgba(250, 248, 245, 0.14);
  border-radius: 0.85rem;
  padding: 0.9rem 1.15rem;
  color: var(--color-limestone-100);
  font-family: var(--font-sans);
  width: 100%;
  outline: none;
  transition: var(--transition-fast);
}

.form-input-luxury:focus {
  border-color: var(--color-gold-500);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.22);
  background: rgba(14, 38, 30, 0.98);
}

/* Custom Option Cards */
.custom-option-card {
  border: 1px solid rgba(250, 248, 245, 0.1);
  background: rgba(13, 33, 26, 0.65);
  border-radius: 0.85rem;
  padding: 1.15rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.custom-option-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(20, 50, 40, 0.8);
  transform: translateY(-2px);
}

.custom-option-card.selected {
  border-color: var(--color-gold-500);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.18);
}

/* Interactive Soundboard Wildlife Cards */
.soundcard-playing {
  border-color: var(--color-jade-400) !important;
  background: rgba(42, 157, 110, 0.15) !important;
  box-shadow: 0 0 25px rgba(42, 157, 110, 0.3) !important;
}

/* Glass Card */
.glass-card {
  background: rgba(13, 33, 26, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #interactiveCursorSpotlight {
    display: none !important;
  }
}

/* ==========================================================================
   DEDICATED MOBILE & TOUCH OPTIMIZATIONS (<768px & <640px)
   ========================================================================== */
@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  body, p, .body-text, .text-body {
    font-size: 19px !important;
    line-height: 29px !important;
  }

  .text-body-lg {
    font-size: 21px !important;
    line-height: 31px !important;
  }

  .text-body-md {
    font-size: 19px !important;
    line-height: 29px !important;
  }

  .text-body-sm {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  .text-body-xs {
    font-size: 14px !important;
    line-height: 21px !important;
  }

  .bat-canvas-container {
    height: 300px;
  }

  /* Safe Area for Mobile Floating Elements */
  .sticky-whatsapp-float {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
    padding: 0.35rem 0.5rem 0.35rem 0.85rem;
    gap: 0.5rem;
  }

  .whatsapp-icon-circle {
    width: 38px;
    height: 38px;
  }
}

/* Touch Devices: Disable Desktop Cursor Spotlight & Enable Responsive Tap Feedback */
@media (hover: none) and (pointer: coarse) {
  #interactiveCursorSpotlight {
    display: none !important;
  }

  .btn-gold:active, .btn-outline-gold:active {
    transform: scale(0.98) !important;
  }
}
