/* ===================================================
   FINCA BUENA VIDA — Main Stylesheet
   Palette: deep canopy greens, Dolphin Bay teals,
   warm cacao browns, coral accents, cream backgrounds
   =================================================== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lora:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500&family=Caveat:wght@500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --green-deep:    #1a3a2a;
  --green-canopy:  #2d5a3d;
  --green-mid:     #3d7a55;
  --green-light:   #6aab7e;
  --teal-deep:     #1e5c5c;
  --teal-bay:      #2a8080;
  --teal-bright:   #4ab5b5;
  --teal-pale:     #9dd8d8;
  --brown-cacao:   #3d2510;
  --brown-warm:    #6b3f22;
  --brown-tan:     #a0714f;
  --brown-sand:    #c9a87a;
  --coral:         #d9644a;
  --coral-light:   #f0956e;
  --amber:         #d4882a;
  --cream:         #f5f0e8;
  --cream-dark:    #ede5d5;
  --white:         #fdfbf7;
  --text-dark:     #1c2b20;
  --text-mid:      #3a4f3e;
  --text-light:    #6b7f6e;

  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Lora', Georgia, serif;
  --font-sans:     'DM Sans', system-ui, sans-serif;
  --font-hand:     'Caveat', cursive;

  --transition:    0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--teal-bright);
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-deep);
}

.section-title em {
  font-style: italic;
  color: var(--teal-bay);
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 680px;
  line-height: 1.8;
}

/* Wave / organic dividers */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -2px;
}
.wave-divider svg { display: block; width: 100%; }

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--transition-slow), transform 0.7s var(--transition-slow);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in.delay-1 { transition-delay: 0.15s; }
.fade-in.delay-2 { transition-delay: 0.3s; }
.fade-in.delay-3 { transition-delay: 0.45s; }
.fade-in.delay-4 { transition-delay: 0.6s; }

/* ===================================================
   NAV
   =================================================== */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#site-nav.scrolled {
  background: rgba(26, 58, 42, 0.97);
  padding: 0.85rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo span {
  font-family: var(--font-hand);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal-pale);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.03em;
  transition: color var(--transition);
  text-transform: uppercase;
}

.nav-links a:hover { color: var(--teal-pale); }

/* Quiet owner-facing nav link */
.nav-member-link {
  font-size: 0.8rem !important;
  opacity: 0.6;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.3rem 0.8rem !important;
  border-radius: 2rem;
  transition: opacity var(--transition), border-color var(--transition), color var(--transition) !important;
}
.nav-member-link:hover {
  opacity: 1 !important;
  color: var(--teal-pale) !important;
  border-color: var(--teal-bright);
}

.nav-cta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55rem 1.3rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 2rem;
  color: var(--white);
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-cta:hover {
  background: var(--teal-bright);
  border-color: var(--teal-bright);
  color: var(--green-deep);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all var(--transition);
}

/* ===================================================
   HERO
   =================================================== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--green-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(42,128,128,0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 70%, rgba(45,90,61,0.5) 0%, transparent 50%),
    linear-gradient(160deg, #0d2b1e 0%, #1a3a2a 35%, #1e5c5c 65%, #0d2f3a 100%);
}

/* Animated water shimmer */
.hero-shimmer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(42,128,128,0.15) 40%,
    rgba(30,92,92,0.3) 100%
  );
  animation: shimmer 6s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0%   { transform: skewY(-0.3deg) translateY(0); opacity: 0.7; }
  100% { transform: skewY(0.3deg) translateY(-8px); opacity: 1; }
}

/* Canopy overlay (animated SVG leaves) */
.hero-canopy {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.canopy-leaf {
  position: absolute;
  opacity: 0.12;
  animation: leafSway 8s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
.canopy-leaf:nth-child(2) { animation-delay: -2s; animation-duration: 11s; }
.canopy-leaf:nth-child(3) { animation-delay: -4s; animation-duration: 9s; }
.canopy-leaf:nth-child(4) { animation-delay: -1s; animation-duration: 13s; }

@keyframes leafSway {
  0%   { transform: rotate(-4deg) scale(1); }
  100% { transform: rotate(4deg) scale(1.03); }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(155, 216, 216, 0.4);
  animation: float linear infinite;
}
@keyframes float {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100vh) translateX(30px) scale(0.5); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 860px;
}

.hero-location {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--teal-pale);
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: heroFadeUp 1s 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: 0.3rem;
  opacity: 0;
  animation: heroFadeUp 1s 0.5s forwards;
}

.hero-title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--teal-pale);
  font-size: 0.7em;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: rgba(245,240,232,0.85);
  margin: 1.5rem auto 0;
  max-width: 520px;
  line-height: 1.7;
  font-style: italic;
  opacity: 0;
  animation: heroFadeUp 1s 0.8s forwards;
}

.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 1s 1.1s forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  background: var(--teal-bright);
  color: var(--green-deep);
  border: none;
  border-radius: 3rem;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  display: inline-block;
}
.btn-primary:hover {
  background: var(--teal-pale);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74,181,181,0.35);
}

.btn-outline {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 3rem;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  display: inline-block;
}
.btn-outline:hover {
  border-color: var(--coral-light);
  color: var(--coral-light);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: heroFadeUp 1s 1.5s both;
}
.hero-scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(1.3); opacity: 1; }
}

/* ===================================================
   ABOUT
   =================================================== */
#about {
  padding: 7rem 0 6rem;
  background: var(--white);
  position: relative;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text .section-label { margin-bottom: 0.75rem; }

.about-text p {
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-card {
  background: var(--cream);
  border-radius: 1rem;
  padding: 1.4rem;
  border-left: 3px solid var(--teal-bright);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green-canopy);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.about-visual {
  position: relative;
}

.about-image-stack {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 440px;
  margin-left: auto;
}

.about-img-main {
  width: 80%;
  aspect-ratio: 3/4;
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-canopy) 0%, var(--teal-bay) 100%);
  position: relative;
}

.about-img-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--green-deep) 100%);
  border: 4px solid var(--white);
  overflow: hidden;
}

/* Illustrated placeholder scenes for image boxes */
.scene-jungle {
  width: 100%;
  height: 100%;
}

.about-pull-quote {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  background: var(--brown-cacao);
  color: var(--cream);
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  max-width: 200px;
  font-family: var(--font-hand);
  font-size: 1rem;
  line-height: 1.4;
  z-index: 2;
  transform: rotate(2deg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* About vignettes */
.about-vignettes {
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(26,58,42,0.1);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.about-vignette {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(26,58,42,0.07);
}
.about-vignette:last-child { border-bottom: none; }
.about-vignette-icon {
  width: 36px;
  height: 36px;
  color: var(--green-mid);
  margin-top: 0.2rem;
  opacity: 0.7;
  flex-shrink: 0;
}
.about-vignette p {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}

/* Getting Here stats row */
.getting-here-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 3rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(26,58,42,0.12);
  width: 100%;
  max-width: 480px;
}
.getting-here-stat {
  text-align: center;
}
.ghs-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.1;
}
.ghs-lbl {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* ===================================================
   MAP SECTION
   =================================================== */
#map-section {
  padding: 6rem 0 5rem;
  background: var(--cream-dark);
  position: relative;
  overflow: hidden;
}

#map-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a87a' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.map-header {
  text-align: center;
  margin-bottom: 3rem;
}
.map-header .section-intro {
  margin: 1rem auto 0;
}

.map-wrapper {
  position: relative;
  background: var(--white);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(26,58,42,0.12);
  border: 1px solid rgba(42,128,128,0.1);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.2rem 1.8rem;
  background: var(--green-deep);
  align-items: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.03em;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-dot.owner-occupied { background: #6aab7e; }
.legend-dot.for-sale       { background: #f0956e; }
.legend-dot.for-rent       { background: #7ec8e3; }
.legend-dot.available      { background: #9dd8d8; border: 2px dashed #4ab5b5; }

#property-map {
  width: 100%;
  display: block;
  cursor: default;
}

/* Lot fill colors */
.lot {
  cursor: pointer;
  transition: all 0.2s ease;
  stroke: rgba(255,255,255,0.6);
  stroke-width: 1;
}
.lot.owner-occupied { fill: rgba(106,171,126,0.55); }
.lot.for-sale       { fill: rgba(240,149,110,0.6); }
.lot.for-rent       { fill: rgba(126,200,227,0.6); }
.lot.available      { fill: rgba(157,216,216,0.45); stroke-dasharray: 4,3; }

.lot:hover {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(255,255,255,0.4));
  stroke-width: 2;
  stroke: white;
}

/* Lot labels */
.lot-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  fill: white;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}

/* Map tooltip */
#map-tooltip {
  position: absolute;
  background: var(--green-deep);
  color: var(--cream);
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  max-width: 220px;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border-top: 3px solid var(--teal-bright);
}
#map-tooltip.visible { opacity: 1; }
.tooltip-lot {
  font-family: var(--font-hand);
  font-size: 0.85rem;
  color: var(--teal-pale);
  display: block;
  margin-bottom: 0.2rem;
}
.tooltip-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.tooltip-meta {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--teal-pale);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tooltip-status {
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tooltip-status.for-sale    { background: var(--coral); }
.tooltip-status.for-rent    { background: var(--teal-bay); }
.tooltip-status.available   { background: var(--teal-deep); }
.tooltip-status.owner-occupied { background: var(--green-mid); }

/* ===================================================
   THE PLACE
   =================================================== */
#the-place {
  padding: 7rem 0 6rem;
  background: var(--white);
}

.place-header {
  text-align: center;
  margin-bottom: 5rem;
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.place-card {
  padding: 2.5rem 2rem;
  position: relative;
  transition: background var(--transition);
}

.place-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: var(--cream-dark);
}
.place-card:nth-child(n+4)::after { display: none; }

.place-card:hover {
  background: var(--cream);
}

.place-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.place-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-canopy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.place-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* Feature strip */
.place-feature-strip {
  margin-top: 5rem;
  padding: 3.5rem;
  background: var(--green-deep);
  border-radius: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-strip-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.feature-strip-text h2 em { color: var(--teal-pale); font-style: italic; }

.feature-strip-text p {
  color: rgba(245,240,232,0.75);
  font-size: 1rem;
  line-height: 1.8;
}

.feature-strip-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.fstrip-stat {
  background: rgba(255,255,255,0.07);
  border-radius: 0.75rem;
  padding: 1.2rem;
  border-left: 3px solid var(--teal-bright);
}
.fstrip-stat .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--teal-pale);
}
.fstrip-stat .lbl {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.15rem;
}

/* ===================================================
   PROPERTIES
   =================================================== */
#properties {
  padding: 7rem 0 6rem;
  background: var(--cream);
}

.properties-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--cream-dark);
}

.tab-btn {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  background: none;
  border: none;
  color: var(--text-light);
  letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--teal-bay); }
.tab-btn.active {
  color: var(--green-canopy);
  border-bottom-color: var(--teal-bright);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.listing-card {
  background: var(--white);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(26,58,42,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(42,128,128,0.08);
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(26,58,42,0.12);
}

.listing-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.listing-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.listing-badge.for-sale  { background: var(--coral); color: white; }
.listing-badge.for-rent  { background: var(--teal-bay); color: white; }
.listing-badge.available { background: var(--teal-bright); color: var(--green-deep); }

.listing-type-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  background: rgba(26,58,42,0.75);
  backdrop-filter: blur(4px);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.9);
}

.listing-body {
  padding: 1.5rem;
}

.listing-lot {
  font-family: var(--font-hand);
  font-size: 0.9rem;
  color: var(--teal-bay);
  margin-bottom: 0.3rem;
}

.listing-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.listing-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.listing-meta span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.listing-description {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.feature-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 1rem;
  background: var(--cream);
  color: var(--text-mid);
  border: 1px solid var(--cream-dark);
}

.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-dark);
}

.listing-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-canopy);
}

.listing-contact {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  background: var(--teal-bright);
  color: var(--green-deep);
  border-radius: 2rem;
  border: none;
  transition: all var(--transition);
  display: inline-block;
}
.listing-contact:hover {
  background: var(--teal-bay);
  color: white;
  transform: translateY(-1px);
}

/* External only card */
.listing-card.external-only .listing-body {
  border-top: 2px solid var(--cream-dark);
}
.external-note {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 1rem;
}

/* ===================================================
   THE ISLAND
   =================================================== */

/* Sub-nav bar */
.island-subnav-bar {
  position: sticky;
  top: 70px;
  z-index: 90;
  background: var(--green-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.7rem 1.5rem;
}
.island-subnav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.island-subnav-link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.6);
  padding: 0.25rem 0.6rem;
  border-radius: 1rem;
  transition: color var(--transition), background var(--transition);
}
.island-subnav-link:hover,
.island-subnav-link.active {
  color: var(--teal-pale);
  background: rgba(74,181,181,0.1);
}
.island-subnav-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
}

/* Chapter base */
.island-chapter {
  padding: 6rem 0 5rem;
}
.island-chapter--dark {
  background: var(--green-deep);
}
.island-chapter--light {
  background: #fdfbf7;
}
.island-chapter--jungle {
  background: #1e3d2e;
}
.island-chapter--ocean {
  background: #0d2e3e;
}
.island-chapter--getting-here {
  padding-bottom: 7rem;
}

/* Chapter header */
.island-chapter-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.island-chapter--dark .section-label,
.island-chapter--jungle .section-label,
.island-chapter--ocean .section-label {
  color: var(--teal-pale);
}
.island-chapter--dark .section-title,
.island-chapter--jungle .section-title,
.island-chapter--ocean .section-title {
  color: var(--white);
}
.island-chapter--dark .section-title em,
.island-chapter--jungle .section-title em,
.island-chapter--ocean .section-title em {
  color: var(--teal-pale);
}
.island-chapter-intro {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-top: 0.75rem;
}
.island-chapter-intro--light {
  color: rgba(245,240,232,0.65);
}

/* Prose */
.island-prose p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(245,240,232,0.82);
  margin-bottom: 1.4rem;
}
.island-prose p:last-child { margin-bottom: 0; }
.island-prose--light p { color: rgba(245,240,232,0.82); }
.island-chapter--light .island-prose p { color: var(--text); }

/* Origins: 2-col layout */
.island-origins-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

/* Geological timeline */
.island-timeline {
  position: sticky;
  top: 130px;
}
.timeline-track {
  display: flex;
  flex-direction: column;
}
.timeline-node {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  border: 2px solid transparent;
}
.timeline-dot--deep  { background: rgba(74,181,181,0.3); border-color: rgba(74,181,181,0.5); }
.timeline-dot--mid   { background: rgba(74,181,181,0.5); border-color: var(--teal-bright); }
.timeline-dot--late  { background: rgba(74,181,181,0.75); border-color: var(--teal-bright); }
.timeline-dot--now   { background: var(--teal-bright); border-color: var(--teal-bright); box-shadow: 0 0 8px rgba(74,181,181,0.5); }
.timeline-connector {
  width: 2px;
  height: 2.5rem;
  background: linear-gradient(to bottom, rgba(74,181,181,0.25), rgba(74,181,181,0.5));
  margin-left: 5px;
}
.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.5rem;
}
.timeline-age {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-pale);
}
.timeline-event {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(245,240,232,0.6);
  line-height: 1.5;
}

/* Protection badges grid */
.protection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}
.protection-badge {
  padding: 1.75rem 1.5rem;
  border-radius: 1.25rem;
  border-top: 4px solid transparent;
  background: #fff;
  box-shadow: 0 2px 12px rgba(26,58,42,0.06);
  transition: box-shadow var(--transition), transform var(--transition);
}
.protection-badge:hover {
  box-shadow: 0 6px 24px rgba(26,58,42,0.14);
  transform: translateY(-2px);
}
/* Per-badge color accents */
.protection-badge--forest {
  border-top-color: #3d7a55;
  background: linear-gradient(160deg, #f0f7f3 0%, #fff 55%);
}
.protection-badge--forest .protection-badge-icon { color: #3d7a55; }
.protection-badge--forest h4 { color: #2a5a3c; }

.protection-badge--gold {
  border-top-color: #c9933a;
  background: linear-gradient(160deg, #fdf6ec 0%, #fff 55%);
}
.protection-badge--gold .protection-badge-icon { color: #c9933a; }
.protection-badge--gold h4 { color: #8f5f18; }

.protection-badge--teal {
  border-top-color: #4ab5b5;
  background: linear-gradient(160deg, #edf8f8 0%, #fff 55%);
}
.protection-badge--teal .protection-badge-icon { color: #2a9090; }
.protection-badge--teal h4 { color: #1a6060; }

.protection-badge--ocean {
  border-top-color: #2a6090;
  background: linear-gradient(160deg, #eaf2f8 0%, #fff 55%);
}
.protection-badge--ocean .protection-badge-icon { color: #2a6090; }
.protection-badge--ocean h4 { color: #1a4060; }

.protection-badge--sky {
  border-top-color: #5ba3c9;
  background: linear-gradient(160deg, #edf5fa 0%, #fff 55%);
}
.protection-badge--sky .protection-badge-icon { color: #5ba3c9; }
.protection-badge--sky h4 { color: #2a6080; }

.protection-badge--amber {
  border-top-color: #c97a3a;
  background: linear-gradient(160deg, #fdf3ec 0%, #fff 55%);
}
.protection-badge--amber .protection-badge-icon { color: #c97a3a; }
.protection-badge--amber h4 { color: #8f4a18; }

.protection-badge-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  opacity: 0.85;
}
.protection-badge h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.protection-badge p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.65;
}
.island-coral-callout {
  text-align: center;
  padding: 2.5rem 3rem;
  background: var(--green-deep);
  border-radius: 1.25rem;
  max-width: 680px;
  margin: 0 auto;
}
.island-coral-callout p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(245,240,232,0.85);
  line-height: 1.65;
}
.island-coral-callout strong {
  color: var(--teal-pale);
  font-style: normal;
}

/* Wildlife: 2-col layout */
.island-wildlife-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Species grid */
.island-species-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.species-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  transition: background var(--transition);
}
.species-card:hover { background: rgba(255,255,255,0.09); }
.species-icon {
  width: 52px;
  height: 52px;
  color: var(--teal-pale);
  margin-bottom: 0.6rem;
  opacity: 0.85;
}
.species-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
}
.species-note {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: rgba(245,240,232,0.45);
  margin-top: 0.2rem;
  font-style: italic;
}

/* Plant grid */
.plant-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.plant-card {
  padding: 1.5rem 1.25rem;
  border-radius: 1.25rem;
  border-bottom: 3px solid transparent;
  transition: box-shadow var(--transition), transform var(--transition);
}
.plant-card:hover {
  box-shadow: 0 6px 20px rgba(26,58,42,0.12);
  transform: translateY(-2px);
}
/* Rotating 4-color palette */
.plant-card:nth-child(4n+1) {
  background: linear-gradient(145deg, #eef6f1 0%, #f8fdf9 100%);
  border-bottom-color: #3d7a55;
}
.plant-card:nth-child(4n+1) .plant-icon { color: #2a5a3c; }
.plant-card:nth-child(4n+1) h5 { color: #1e3d2a; }

.plant-card:nth-child(4n+2) {
  background: linear-gradient(145deg, #edf8f8 0%, #f5fdfd 100%);
  border-bottom-color: #4ab5b5;
}
.plant-card:nth-child(4n+2) .plant-icon { color: #2a8888; }
.plant-card:nth-child(4n+2) h5 { color: #1a5a5a; }

.plant-card:nth-child(4n+3) {
  background: linear-gradient(145deg, #fdf3ec 0%, #fdf9f6 100%);
  border-bottom-color: #c97a3a;
}
.plant-card:nth-child(4n+3) .plant-icon { color: #a05820; }
.plant-card:nth-child(4n+3) h5 { color: #7a3e10; }

.plant-card:nth-child(4n+0) {
  background: linear-gradient(145deg, #fdf6ec 0%, #fefbf5 100%);
  border-bottom-color: #c9933a;
}
.plant-card:nth-child(4n+0) .plant-icon { color: #a07020; }
.plant-card:nth-child(4n+0) h5 { color: #6a4a10; }

.plant-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}
.plant-card h5 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.plant-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Beach cards */
.beach-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.beach-card {
  padding: 1.5rem 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.25rem;
  transition: background var(--transition);
}
.beach-card:hover { background: rgba(255,255,255,0.1); }
.beach-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.beach-distance {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(245,240,232,0.5);
  letter-spacing: 0.04em;
}
.beach-type {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
}
.beach-type--calm    { background: rgba(74,181,181,0.2); color: var(--teal-pale); }
.beach-type--shallow { background: rgba(115,210,220,0.2); color: #7dd5e0; }
.beach-type--remote  { background: rgba(107,160,120,0.2); color: #90c4a0; }
.beach-type--surf    { background: rgba(217,100,74,0.2); color: #e89080; }
.beach-type--snorkel { background: rgba(74,181,181,0.2); color: var(--teal-pale); }
.beach-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.beach-card p {
  font-size: 0.8rem;
  color: rgba(245,240,232,0.6);
  line-height: 1.6;
}

/* Getting here */
.getting-here-steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.getting-here-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  width: 100%;
}
.getting-here-connector {
  width: 2px;
  height: 2.5rem;
  background: linear-gradient(to bottom, rgba(26,58,42,0.2), rgba(26,58,42,0.4));
  margin: 0 auto;
  flex-shrink: 0;
}
.getting-here-icon {
  width: 40px;
  height: 40px;
  color: var(--green-deep);
  flex-shrink: 0;
  margin-top: 0.25rem;
  opacity: 0.6;
}
.getting-here-text h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}
.getting-here-text p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* Botanical dividers */
.island-divider {
  display: block;
  line-height: 0;
  font-size: 0;
}
.island-divider svg {
  display: block;
  width: 100%;
}

/* ===================================================
   FOOTER
   =================================================== */
#footer {
  background: var(--brown-cacao);
  padding: 4rem 0 2.5rem;
  color: rgba(245,240,232,0.8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.footer-brand .location {
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--brown-sand);
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(245,240,232,0.6);
  max-width: 280px;
}

.footer-nav h4, .footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brown-sand);
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav a {
  font-size: 0.9rem;
  color: rgba(245,240,232,0.7);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--teal-pale); }

.footer-contact a {
  font-size: 0.9rem;
  color: var(--teal-pale);
  display: block;
  margin-bottom: 0.5rem;
}
.footer-contact p {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.5);
  line-height: 1.6;
  margin-top: 0.75rem;
}
.footer-member-link {
  font-size: 0.85rem;
  color: var(--teal-pale);
  transition: color var(--transition);
}
.footer-member-link:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(245,240,232,0.4);
}
.member-login-link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(245,240,232,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  transition: all var(--transition);
}
.member-login-link:hover {
  color: var(--teal-pale);
  border-color: var(--teal-bright);
}

/* ===================================================
   CONTACT MODAL
   =================================================== */
#contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#contact-modal.open {
  opacity: 1;
  pointer-events: all;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,22,0.75);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.modal-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 1.25rem;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
}
#contact-modal.open .modal-box {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--cream);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--cream-dark); }

.modal-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.3rem;
}
.modal-box .modal-subtitle {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  color: var(--teal-bay);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.1rem;
}
.form-group label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  display: block;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--teal-bright);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--green-canopy);
  color: var(--white);
  border: none;
  border-radius: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  margin-top: 0.5rem;
}
.form-submit:hover {
  background: var(--teal-bay);
  transform: translateY(-1px);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-stack { margin: 0 auto; }
  .place-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .feature-strip-text h2 { font-size: 1.5rem; }
  /* Island */
  .island-origins-layout { grid-template-columns: 1fr; }
  .island-timeline { position: static; }
  .island-wildlife-layout { grid-template-columns: 1fr; }
  .island-species-grid { grid-template-columns: repeat(4, 1fr); }
  .protection-grid { grid-template-columns: repeat(2, 1fr); }
  .plant-grid { grid-template-columns: repeat(3, 1fr); }
  .beach-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  #site-nav.menu-open .nav-links {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--green-deep);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: -1;
  }
  #site-nav.menu-open .nav-links a {
    font-size: 1.4rem;
    font-family: var(--font-display);
  }

  .place-grid { grid-template-columns: 1fr; }
  .place-feature-strip { grid-template-columns: 1fr; }
  .feature-strip-stats { grid-template-columns: repeat(2, 1fr); }
  .listings-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  /* About vignettes */
  .about-vignette { grid-template-columns: 40px 1fr; }
  /* Getting Here stats */
  .getting-here-stats { max-width: 100%; }
  /* Island */
  .island-subnav { gap: 0.15rem 0.4rem; }
  .island-subnav-sep { display: none; }
  .island-chapter { padding: 4rem 0 3.5rem; }
  .island-species-grid { grid-template-columns: repeat(2, 1fr); }
  .protection-grid { grid-template-columns: 1fr 1fr; }
  .plant-grid { grid-template-columns: repeat(2, 1fr); }
  .beach-cards { grid-template-columns: 1fr 1fr; }
  .island-coral-callout { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .about-stats { grid-template-columns: 1fr; }
  .feature-strip-stats { grid-template-columns: 1fr; }
  .map-legend { gap: 0.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* Island */
  .island-species-grid { grid-template-columns: repeat(2, 1fr); }
  .protection-grid { grid-template-columns: 1fr; }
  .plant-grid { grid-template-columns: repeat(2, 1fr); }
  .beach-cards { grid-template-columns: 1fr; }
  .getting-here-step { flex-direction: column; gap: 0.75rem; }
}

/* ===========================================
   GETTING HERE NOTE
   =========================================== */
.getting-here-note {
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: var(--green-deep);
  opacity: 0.6;
  text-align: center;
}

/* ===========================================
   CLIMATE CHAPTER
   =========================================== */
.island-chapter--climate {
  background: #e4f3f6;
  color: var(--green-deep);
}
.island-chapter--climate .section-label {
  color: var(--teal-bright);
}
.island-chapter--climate .island-prose p {
  color: var(--green-deep);
  opacity: 0.85;
}

/* Climate chart wrapper */
.climate-chart-wrap {
  margin-top: 2.75rem;
}
.climate-chart-controls {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.climate-unit-toggle {
  display: flex;
  border: 1px solid rgba(74,181,181,0.45);
  border-radius: 2rem;
  overflow: hidden;
}
.climate-toggle-btn {
  background: transparent;
  border: none;
  padding: 0.22rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--green-deep);
  cursor: pointer;
  opacity: 0.55;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}
.climate-toggle-btn.is-active {
  background: var(--teal-bright);
  color: #fff;
  opacity: 1;
}
.climate-toggle-btn:hover:not(.is-active) {
  opacity: 0.85;
  background: rgba(74,181,181,0.12);
}
.climate-chart-outer {
  position: relative;
  border-radius: 0.75rem;
  overflow: visible;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 2px 14px rgba(26,58,42,0.07);
  border: 1px solid rgba(74,181,181,0.15);
}
.climate-chart-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
}
.climate-tooltip {
  position: absolute;
  background: rgba(20,40,30,0.92);
  color: #f5f0e8;
  padding: 0.45rem 0.7rem;
  border-radius: 0.45rem;
  font-size: 0.75rem;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px));
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 10;
  line-height: 1.55;
}
.climate-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(20,40,30,0.92);
}
.climate-sea-callout {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--green-deep);
  opacity: 0.6;
  font-style: italic;
}

/* ===========================================
   WEATHER WIDGET
   =========================================== */
.weather-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 500;
  font-family: var(--font-body);
  font-size: 0.83rem;
}

/* Pill (collapsed) */
.weather-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(20,40,30,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 2rem;
  padding: 0.4rem 0.85rem 0.4rem 0.6rem;
  color: rgba(245,240,232,0.92);
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  transition: background 0.2s;
  white-space: nowrap;
}
.weather-pill:hover {
  background: rgba(20,40,30,0.85);
}
.weather-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: weather-pulse 2.2s ease-out infinite;
}
@keyframes weather-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.weather-pill-icon { display: flex; align-items: center; }
.weather-pill-icon svg { width: 17px; height: 17px; display: block; }
.weather-pill-temp { font-weight: 600; font-size: 0.88rem; }
.weather-pill-loc { opacity: 0.65; font-size: 0.78rem; }
.weather-pill-chevron {
  width: 10px;
  height: 10px;
  opacity: 0.5;
  margin-left: 0.1rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.weather-widget[data-open] .weather-pill-chevron {
  transform: rotate(180deg);
}

/* Expanded panel */
.weather-panel {
  position: absolute;
  bottom: calc(100% + 0.6rem);
  right: 0;
  width: 265px;
  background: rgba(18,38,28,0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1rem;
  padding: 1.1rem;
  color: rgba(245,240,232,0.88);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.weather-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}
.weather-panel-icon { display: flex; align-items: center; }
.weather-panel-icon svg { width: 38px; height: 38px; display: block; }
.weather-panel-info { min-width: 0; }
.weather-panel-loc {
  font-size: 0.68rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.15rem;
}
.weather-panel-temp {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(245,240,232,0.96);
}
.weather-panel-desc {
  font-size: 0.8rem;
  opacity: 0.65;
  margin-top: 0.2rem;
}
.weather-panel-time {
  font-size: 0.7rem;
  opacity: 0.4;
  margin-top: 0.15rem;
}
.weather-panel-details {
  display: flex;
  gap: 1.1rem;
  font-size: 0.76rem;
  opacity: 0.6;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.weather-forecast {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.weather-forecast-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
}
.weather-forecast-day svg { width: 20px; height: 20px; display: block; }
.weather-forecast-label {
  font-size: 0.62rem;
  opacity: 0.45;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.weather-forecast-temp { font-size: 0.75rem; font-weight: 600; }
.weather-forecast-lo  { font-size: 0.68rem; opacity: 0.45; }
.weather-note {
  font-size: 0.68rem;
  opacity: 0.38;
  font-style: italic;
  text-align: center;
  margin: 0;
}

/* Mobile: slim pill, no loc text */
@media (max-width: 480px) {
  .weather-widget { bottom: 1rem; right: 1rem; }
  .weather-pill-loc { display: none; }
  .weather-panel { width: 240px; }
}
