/* =========================================================
   UVITA, COSTA RICA — DESIGN SYSTEM & IMMERSIVE STYLES
   Color Palette:
   Deep Canopy Green: #1B3B2B
   Ocean Turquoise:   #0A7E8C
   Sand / Warm Cream: #F4EEDD
   Sunset Terracotta: #D96B43
   Deep Marine Night: #081823
   ========================================================= */

:root {
  --canopy-deep: #142e22;
  --canopy-green: #1B3B2B;
  --canopy-light: #2c5942;
  --ocean-turquoise: #0A7E8C;
  --ocean-cyan: #22b2c4;
  --ocean-deep: #081823;
  --sand-cream: #F4EEDD;
  --sand-light: #faf7ef;
  --sand-muted: #e4ddca;
  --sunset-terracotta: #D96B43;
  --sunset-gold: #f4a261;
  --text-dark: #1b2620;
  --text-light: #F4EEDD;
  --text-muted: rgba(244, 238, 221, 0.75);
  
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-subtle: 0 12px 36px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 25px rgba(34, 178, 196, 0.35);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-full: 9999px;
}

/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--canopy-green);
  color: var(--text-dark);
}

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: var(--sand-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  font-weight: 600;
}

.italic-serif {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
}

/* =========================================================
   TOP NAVBAR (Glassmorphism, Branding & Lang Switcher)
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 32px;
  transition: background 0.4s var(--ease-smooth), padding 0.4s var(--ease-smooth), backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background: rgba(14, 34, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sand-cream);
  font-family: var(--font-serif);
}

.logo-symbol {
  color: var(--ocean-cyan);
  font-size: 1.3rem;
}

.logo-text {
  font-size: 1.4rem;
  letter-spacing: 3px;
  font-weight: 700;
}

.logo-country {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ocean-cyan);
  opacity: 0.9;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--sand-cream);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--ocean-cyan);
}

/* Nav Dropdown for Referred Sites */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--sand-cream);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--ocean-cyan);
  color: #fff;
}

.dropdown-chevron {
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 250px;
  background: rgba(8, 24, 35, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(34, 178, 196, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

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

.nav-dropdown-item {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: translateX(3px);
}

.item-title {
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 600;
  display: block;
}

.item-desc {
  color: var(--sand-muted) !important;
  font-size: 0.74rem;
  line-height: 1.3;
  display: block;
}

/* Language Switcher Pill */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(244, 238, 221, 0.25);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--sand-muted);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: var(--ocean-turquoise);
  color: #fff;
  box-shadow: 0 2px 8px rgba(10, 126, 140, 0.4);
}

.nav-btn-action {
  background: var(--sunset-terracotta);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-smooth) !important;
  box-shadow: 0 4px 14px rgba(217, 107, 67, 0.35);
}

.nav-btn-action:hover {
  background: #e37952 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 107, 67, 0.5);
}

/* =========================================================
   AUDIO SOUNDSCAPE CONTROLLER
   ========================================================= */
.soundscape-control {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
}

.audio-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 46, 34, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 238, 221, 0.25);
  color: var(--sand-cream);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s var(--ease-smooth);
}

.audio-btn:hover {
  background: var(--canopy-green);
  border-color: var(--ocean-cyan);
  transform: translateY(-2px);
}

.audio-btn.playing {
  border-color: var(--ocean-cyan);
  box-shadow: 0 0 15px rgba(34, 178, 196, 0.4);
}

.audio-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hidden {
  display: none !important;
}

/* =========================================================
   WHALE TAIL SIDE PROGRESS INDICATOR
   ========================================================= */
.story-progress {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-track {
  position: relative;
  width: 3px;
  height: 200px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--ocean-cyan);
  border-radius: 4px;
  transition: height 0.2s linear;
}

.whale-tail-indicator {
  position: absolute;
  left: 50%;
  top: 0%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  color: var(--ocean-cyan);
  pointer-events: none;
  transition: top 0.2s linear, transform 0.3s var(--ease-smooth);
  filter: drop-shadow(0 0 8px rgba(34, 178, 196, 0.8));
}

.progress-dots {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.3s ease;
  cursor: pointer;
}

.progress-dot.active {
  background: var(--sunset-terracotta);
  transform: scale(1.6);
  box-shadow: 0 0 10px var(--sunset-terracotta);
}

/* =========================================================
   CHAPTERS & LAYOUT ENGINE
   ========================================================= */
.story-chapter {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 32px 80px;
}

.chapter-badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(10, 126, 140, 0.25);
  color: var(--ocean-cyan);
  border: 1px solid rgba(34, 178, 196, 0.35);
  margin-bottom: 16px;
}

.chapter-badge.badge-forest {
  background: rgba(44, 89, 66, 0.4);
  color: #72d99d;
  border-color: rgba(114, 217, 157, 0.3);
}

.chapter-badge.badge-sunset {
  background: rgba(217, 107, 67, 0.2);
  color: var(--sunset-gold);
  border-color: rgba(217, 107, 67, 0.4);
}

.chapter-badge.badge-closing {
  background: rgba(255, 255, 255, 0.15);
  color: var(--sand-cream);
  border-color: rgba(255, 255, 255, 0.3);
}

.chapter-header-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.chapter-header-center.light-text h2,
.chapter-header-center.light-text p {
  color: var(--sand-cream);
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--canopy-deep);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-family: var(--font-editorial);
  font-style: italic;
  color: var(--ocean-turquoise);
}

/* =========================================================
   CHAPTER I: THE AWAKENING (HERO)
   ========================================================= */
.hero-chapter {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--sand-cream);
  padding: 120px 24px 60px;
}

.hero-media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: brightness(0.68) saturate(1.15);
  animation: heroKenBurns 24s infinite alternate ease-in-out;
}

@keyframes heroKenBurns {
  0% { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1%, -1%); }
}

.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(14, 34, 24, 0.2) 0%, rgba(8, 24, 35, 0.8) 90%),
              linear-gradient(to bottom, rgba(8, 24, 35, 0.5) 0%, transparent 40%, rgba(8, 24, 35, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.geo-coordinates {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sand-muted);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

.highlight-text {
  color: var(--ocean-cyan);
}

.hero-quote {
  font-family: var(--font-editorial);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.65;
  color: var(--sand-cream);
  max-width: 760px;
  margin-bottom: 40px;
  opacity: 0.95;
  font-style: italic;
}

.scroll-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--sand-cream);
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
}

.scroll-prompt:hover {
  opacity: 1;
  transform: translateY(4px);
}

.mouse-wheel {
  width: 22px;
  height: 38px;
  border: 2px solid var(--sand-cream);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel-dot {
  width: 4px;
  height: 8px;
  background: var(--ocean-cyan);
  border-radius: 2px;
  animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.prompt-text {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* =========================================================
   CHAPTER II: THE TAIL OF THE GIANTS (MARINO BALLENA)
   ========================================================= */
.giants-chapter {
  background: linear-gradient(to bottom, #081823 0%, #0d2937 40%, var(--sand-light) 100%);
  color: var(--text-dark);
}

.giants-chapter .section-title {
  color: #fff;
}

.giants-chapter .section-subtitle {
  color: var(--ocean-cyan);
}

.content-grid-duo {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

.text-story-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.lead-paragraph {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.85;
}

.sandbar-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--ocean-turquoise);
}

.sandbar-card h3 {
  color: var(--ocean-deep);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.sandbar-card p {
  color: #33443d;
  font-size: 0.98rem;
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

/* Interactive Season Box */
.interactive-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(10, 126, 140, 0.2);
}

.widget-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.widget-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sunset-terracotta);
  font-weight: 700;
}

.widget-header h4 {
  font-size: 1.25rem;
  color: var(--ocean-deep);
}

.widget-desc {
  font-size: 0.9rem;
  color: #5d6d66;
  margin-bottom: 16px;
}

.season-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.season-btn {
  background: #f0f4f2;
  border: 1px solid #d4ded9;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--canopy-deep);
}

.season-btn:hover {
  background: #e2ece7;
}

.season-btn.active {
  background: var(--ocean-turquoise);
  color: #fff;
  border-color: var(--ocean-turquoise);
  box-shadow: 0 4px 12px rgba(10, 126, 140, 0.35);
}

.season-display-card {
  background: #f8faf9;
  border-radius: var(--radius-md);
  padding: 18px;
  border-left: 3px solid var(--sunset-terracotta);
  transition: opacity 0.3s ease;
}

/* Visual Column */
.visual-story-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.photo-composition {
  position: relative;
  width: 100%;
}

.photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-smooth);
}

.photo-frame:hover .story-img {
  transform: scale(1.04);
}

.main-frame {
  height: 380px;
}

.floating-frame {
  position: absolute;
  bottom: -40px;
  right: -20px;
  width: 62%;
  height: 220px;
  border: 4px solid #fff;
  z-index: 2;
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 0.78rem;
  padding: 20px 14px 10px;
  pointer-events: none;
}

.tide-simulator-card {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.95);
  padding: 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tide-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ec4b6;
  box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.7);
  animation: pulseRipple 1.8s infinite;
}

@keyframes pulseRipple {
  0% { box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(46, 196, 182, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 196, 182, 0); }
}

.tide-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ocean-deep);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tide-label {
  font-size: 0.8rem;
  color: #666;
  display: block;
  margin-bottom: 6px;
}

.tide-bar-bg {
  width: 100%;
  height: 8px;
  background: #e2ece9;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.tide-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ocean-turquoise), var(--ocean-cyan));
  border-radius: 4px;
}

.tide-advice {
  font-size: 0.88rem;
  color: #384d43;
  line-height: 1.5;
}

/* =========================================================
   WHALE WATCHING SHOWCASE (CHAPTER II EXPANSION)
   ========================================================= */
.whale-watching-showcase {
  max-width: 1240px;
  margin: 70px auto 0;
  width: 100%;
}

.whale-feature-card {
  background: #ffffff;
  border-radius: var(--radius-xl, 24px);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(8, 24, 35, 0.12);
  border: 1px solid rgba(10, 126, 140, 0.18);
  display: grid;
  grid-template-columns: 1fr;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whale-feature-card:hover {
  box-shadow: 0 25px 55px rgba(8, 24, 35, 0.16);
}

.whale-feature-media {
  position: relative;
  width: 100%;
  height: 440px;
  overflow: hidden;
  background: #0d2937;
}

.whale-action-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.whale-feature-card:hover .whale-action-img {
  transform: scale(1.03);
}

.whale-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(8, 24, 35, 0.3) 0%, transparent 40%, rgba(8, 24, 35, 0.75) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 24px 30px;
  pointer-events: none;
}

.whale-action-tag {
  background: rgba(8, 24, 35, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.whale-badge-live {
  background: linear-gradient(135deg, var(--ocean-turquoise), var(--ocean-cyan));
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(10, 126, 140, 0.4);
}

.whale-feature-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.whale-header-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.whale-feature-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--ocean-deep);
  line-height: 1.25;
}

.whale-feature-lead {
  font-size: 1.05rem;
  color: #3b5045;
  line-height: 1.7;
}

.whale-behavior-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.behavior-card {
  background: #f8faf9;
  border: 1px solid #e1e9e5;
  border-radius: var(--radius-md, 12px);
  padding: 24px 20px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.behavior-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  border-color: var(--ocean-turquoise);
  box-shadow: 0 8px 24px rgba(10, 126, 140, 0.12);
}

.behavior-icon {
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.behavior-card h4 {
  font-size: 1.05rem;
  color: var(--ocean-deep);
  margin-bottom: 8px;
  font-weight: 700;
}

.behavior-card p {
  font-size: 0.88rem;
  color: #55695e;
  line-height: 1.6;
}

.whale-ethics-banner {
  background: linear-gradient(135deg, rgba(10, 126, 140, 0.08), rgba(46, 196, 182, 0.12));
  border: 1px solid rgba(10, 126, 140, 0.22);
  border-radius: var(--radius-md, 12px);
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.ethics-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 280px;
}

.ethics-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ocean-turquoise);
}

.ethics-text {
  font-size: 0.88rem;
  color: #2c4238;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .whale-behavior-grid {
    grid-template-columns: 1fr;
  }
  .whale-feature-media {
    height: 300px;
  }
  .whale-feature-content {
    padding: 26px 20px;
  }
  .whale-media-overlay {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =========================================================
   CHAPTER III: SECRETS OF THE CANOPY
   ========================================================= */
.canopy-chapter {
  background-color: var(--canopy-deep);
  color: var(--sand-cream);
  padding-top: 110px;
  padding-bottom: 110px;
  position: relative;
  overflow: hidden;
}

.canopy-bg-ambience {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(44, 89, 66, 0.35) 0%, transparent 60%),
              radial-gradient(circle at 90% 80%, rgba(10, 126, 140, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.canopy-intro {
  max-width: 780px;
  margin: 0 auto 60px;
  text-align: center;
  font-size: 1.15rem;
  color: var(--sand-muted);
  line-height: 1.8;
}

.canopy-cards-grid {
  max-width: 1240px;
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.canopy-card {
  background: rgba(27, 59, 43, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 238, 221, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s ease, border-color 0.4s ease;
}

.canopy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--ocean-cyan);
}

.card-media {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.canopy-card:hover .card-media img {
  transform: scale(1.08);
}

.tag-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(8, 24, 35, 0.75);
  backdrop-filter: blur(8px);
  color: var(--sand-cream);
  font-size: 0.72rem;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #fff;
}

.card-body p {
  font-size: 0.92rem;
  color: var(--sand-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ocean-cyan);
  border-top: 1px solid rgba(244, 238, 221, 0.1);
  padding-top: 14px;
}

/* Wildlife Spotter */
.wildlife-spotter-section {
  max-width: 880px;
  margin: 0 auto;
  background: rgba(14, 34, 24, 0.8);
  border: 1px solid rgba(244, 238, 221, 0.15);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
}

.spotter-title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 22px;
}

.spotter-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.wildlife-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--sand-cream);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wildlife-pill:hover {
  background: rgba(255, 255, 255, 0.18);
}

.wildlife-pill.active {
  background: var(--ocean-turquoise);
  border-color: var(--ocean-cyan);
  box-shadow: 0 4px 16px rgba(10, 126, 140, 0.4);
}

.wildlife-display-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
  border-left: 4px solid var(--sunset-gold);
}

/* =========================================================
   CHAPTER IV: THE LIVING PULSE (PURA VIDA)
   ========================================================= */
.pulse-chapter {
  background: var(--sand-light);
  color: var(--text-dark);
}

.pulse-story-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.pulse-quote-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border-left: 5px solid var(--sunset-terracotta);
}

.grand-quote {
  font-family: var(--font-editorial);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.7;
  color: #24352d;
  font-style: italic;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pillar-item {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.pillar-item:hover {
  transform: translateY(-6px);
}

.pillar-img-wrap {
  height: 200px;
  overflow: hidden;
  margin-bottom: 18px;
}

.pillar-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pillar-item:hover .pillar-img-wrap img {
  transform: scale(1.06);
}

.pillar-item h4 {
  font-size: 1.25rem;
  color: var(--canopy-deep);
  padding: 0 20px;
  margin-bottom: 10px;
}

.pillar-item p {
  font-size: 0.92rem;
  color: #55665e;
  padding: 0 20px;
  line-height: 1.6;
}

/* =========================================================
   CHAPTER V: CLOSING CHAPTER (CTA & TRAVEL PLANNER)
   ========================================================= */
.closing-chapter {
  min-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--sand-cream);
  padding: 100px 24px;
}

.closing-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.closing-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(1.2);
}

.closing-veil {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(8, 24, 35, 0.95) 0%, rgba(20, 46, 34, 0.7) 100%);
}

.closing-card-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  background: rgba(14, 34, 24, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(244, 238, 221, 0.25);
  border-radius: 24px;
  padding: 60px 40px;
  box-shadow: var(--shadow-subtle);
}

.closing-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #fff;
  margin-bottom: 18px;
}

.closing-subtext {
  font-family: var(--font-editorial);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--sand-muted);
  font-style: italic;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.closing-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-primary-glow {
  background: linear-gradient(135deg, var(--sunset-terracotta), #e87b55);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(217, 107, 67, 0.4);
  transition: all 0.3s var(--ease-smooth);
}

.btn-primary-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(217, 107, 67, 0.6);
}

.btn-secondary-outline {
  background: transparent;
  color: var(--sand-cream);
  border: 1px solid rgba(244, 238, 221, 0.4);
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-secondary-outline:hover {
  background: rgba(244, 238, 221, 0.12);
  border-color: var(--sand-cream);
}

.btn-secondary-outline.saved {
  background: rgba(34, 178, 196, 0.2);
  border-color: var(--ocean-cyan);
  color: var(--ocean-cyan);
}

.saved-notification {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #72d99d;
}

.saved-notification.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   TRAVEL PLANNER MODAL
   ========================================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 24, 35, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-window {
  background: #fff;
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  animation: modalIn 0.35s var(--ease-smooth);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(15px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #777;
  cursor: pointer;
  line-height: 1;
}

.modal-header {
  margin-bottom: 24px;
}

.modal-pre {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ocean-turquoise);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.modal-header h3 {
  font-size: 1.8rem;
  color: var(--ocean-deep);
  margin-bottom: 8px;
}

.modal-header p {
  color: #667770;
  font-size: 0.92rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--canopy-deep);
  margin-bottom: 8px;
}

.options-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pill-option {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #dbe2df;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-option input {
  margin-right: 12px;
}

.pill-option:hover {
  background: #f7faf8;
}

.custom-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dbe2df;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  color: #333;
}

.recommendation-result {
  background: #f0f7f5;
  border-left: 4px solid var(--ocean-turquoise);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #233b31;
  line-height: 1.5;
}

.btn-submit-plan {
  width: 100%;
  background: var(--ocean-turquoise);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit-plan:hover {
  background: #086b77;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #051017;
  color: var(--sand-cream);
  padding: 60px 32px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: 36px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 12px;
}

.footer-col p {
  color: rgba(244, 238, 221, 0.7);
  font-size: 0.92rem;
  max-width: 500px;
  line-height: 1.6;
}

.coordinates-col {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.coord-text {
  font-family: monospace;
  font-size: 0.95rem;
  color: #ffffff !important;
  margin-bottom: 2px;
}

.coord-subtext {
  font-size: 0.82rem;
  color: var(--sand-muted) !important;
  margin-bottom: 12px;
}

.footer-map-wrapper {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-google-map {
  width: 100%;
  height: 140px;
  border: 1px solid rgba(34, 178, 196, 0.3);
  border-radius: var(--radius-sm);
  background: #0d212b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.footer-google-map:hover {
  border-color: var(--ocean-cyan);
  transform: translateY(-2px);
}

.map-external-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ocean-cyan);
  font-size: 0.78rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  width: fit-content;
}

.map-external-link:hover {
  color: var(--sunset-gold);
  transform: translateX(3px);
}

.referred-sites-col {
  display: flex;
  flex-direction: column;
}

.referred-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.referred-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--ocean-turquoise);
  transition: all 0.25s ease;
}

.referred-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--sunset-gold);
  transform: translateX(4px);
}

.referred-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.referred-name::after {
  content: "↗";
  font-size: 0.85rem;
  color: var(--ocean-cyan);
}

.referred-desc {
  color: rgba(244, 238, 221, 0.65);
  font-size: 0.78rem;
  line-height: 1.4;
}

.coord-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ocean-cyan);
  margin-bottom: 8px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(244, 238, 221, 0.5);
}

/* =========================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================= */
@media (max-width: 1024px) {
  .content-grid-duo {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .floating-frame {
    position: relative;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 260px;
    margin-top: 16px;
    border: none;
  }
  .canopy-cards-grid,
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .story-progress {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 14px 20px;
  }
  .nav-links a:not(.nav-btn-action),
  .nav-dropdown {
    display: none;
  }
  .story-chapter {
    padding: 80px 20px 60px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .coordinates-col {
    text-align: left;
  }
  .soundscape-control {
    bottom: 16px;
    left: 16px;
  }
}
