/* 1. CSS Variables */
:root {
  --bg: #f5efe6;
  --ink: #1f2328;
  --muted: #5a6672;
  --card: #faf8f4;
  --line: rgba(31, 35, 40, .10);
  --shadow: 0 8px 20px rgba(31, 35, 40, .06);
  --radius: 18px;

  --accent: #223b5a;
  --accent2: #2f6b7a;
  --coral: #c96c44;
  --coral-hover: #b05e3a;
  --soft: #e9f2f3;
  --sand: #f3efe6;

  --font-display: "Cormorant Garamond", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-brand: "Birthstone Bounce", "Brush Script MT", "Segoe Script", cursive;

  /* Type scale */
  --text-base: 16px;
  --text-sm: 14px;
  --text-xs: 12px;
  --leading: 1.65;

  /* Heading scale */
  --text-h1: clamp(30px, 3.6vw, 44px);
  --text-h2: 28px;
  --text-h3: 22px;

  /* optional tuning */
  --tracking-tight: -0.015em;
  --tracking-display: -0.02em;

  /* Default hero/story images */
  --hero-photo: url("/assets/hero.webp");
  --story-photo: url("/assets/story.webp");
}

/* 2. Reset & Base Styles */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--bg);
  color: var(--ink);
  line-height: var(--leading);
  letter-spacing: var(--tracking-tight);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
.display,
.hero h1 {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-display);
}

h1 {
  line-height: 1.05;
}

h2 {
  line-height: 1.15;
}

p,
li {
  font-size: var(--text-base);
  line-height: var(--leading);
}

/* 3. Layout & Structure */
.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 230, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: .2px;
}

.brand-name {
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: .6px;
  font-size: clamp(22px, 2.2vw, 32px);
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: url("./logo.png") center/contain no-repeat;
  box-shadow: 0 8px 18px rgba(34, 59, 90, .18);
  position: relative;
  overflow: hidden;
}

.logo:after {
  content: none;
}

.brand small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .1px;
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 13px;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 18px;
  align-items: center;
}

/* TOP NAV LINKS */
.nav nav a:not(.btn) {
  position: relative;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  transition: color .25s ease;
}

.nav nav a:not(.btn):hover {
  color: #000;
}

.nav-social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35.2px;
  height: 35.2px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.nav-social a:hover {
  background: rgba(34, 59, 90, .08);
  color: #000;
}

.nav-social svg {
  width: 17.6px;
  height: 17.6px;
  display: block;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.hamburger span:before,
.hamburger span:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
}

.hamburger span:before {
  top: -6px;
}

.hamburger span:after {
  top: 6px;
}


.mobile {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, padding 0.3s ease;
  padding: 0;
}

.mobile.open {
  max-height: 400px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  padding: 0 0 14px;
}

.mobile a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
}

.mobile a:hover {
  background: rgba(34, 59, 90, .06);
  color: var(--ink);
}

section {
  --section-bg: transparent;
  position: relative;
  background: var(--section-bg);
  overflow: clip;
  padding: 72px 0;
}

.section-tone-page {
  --section-bg: transparent;
}

.section-tone-card {
  --section-bg: transparent;
}

.section-tone-bg {
  --section-bg: transparent;
}

.section-title {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 46px);
  letter-spacing: -.3px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
  font-size: var(--text-sm);
}

.section-title.with-media {
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: 1fr 1fr;
}

.grid.three {
  grid-template-columns: 1fr 1fr 1fr;
}

.footer {
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.links a {
  display: inline-block;
  margin: 6px 10px 0 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
}

/* Footer social links */
.footer .social {
  margin-top: 18px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35.2px;
  height: 35.2px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  color: var(--muted);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.footer .social a:hover {
  color: var(--ink);
  background: rgba(34, 59, 90, .08);
}

.footer .social svg {
  width: 17.6px;
  height: 17.6px;
  display: block;
}

/* 4. UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(31, 35, 40, .05);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(31, 35, 40, .08);
}

.btn.primary {
  border-color: rgba(34, 59, 90, .25);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(34, 59, 90, .22);
}

.btn.primary:hover {
  background: #1a2e47;
  box-shadow: 0 16px 40px rgba(34, 59, 90, .30);
}

.btn.ghost {
  background: rgba(9, 18, 30, .56);
  border: 1px solid rgba(255, 255, 255, .38);
  color: #fff;
  box-shadow: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.btn.ghost:hover {
  background: rgba(9, 18, 30, .70);
  transform: translateY(-1px);
}

/* Ghost button on light backgrounds (story section) */
.story .btn.ghost {
  background: rgba(34, 59, 90, .06);
  border: 1px solid rgba(34, 59, 90, .18);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(31, 35, 40, .05);
}

.story .btn.ghost:hover {
  background: rgba(34, 59, 90, .10);
  transform: translateY(-1px);
}

.card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .78);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: var(--text-base);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* Lists inside cards should match card body text */
.card ul,
.card ol {
  margin: 0;
  padding-left: 1.1rem;
  /* alinea con tu list-clean */
}

.card li {
  font-size: var(--text-sm);
  line-height: var(--leading);
  color: var(--muted);
}

/* Si usas <b> dentro de bullets, que vuelva a ink */
.card li b,
.card li strong {
  color: var(--ink);
}

/* Luna card */
.card.luna {
  display: flex;
  gap: 14px;
  align-items: center;
}

.card.luna img {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.card.luna-feature {
  align-items: flex-start;
}

.card.luna-feature h2 {
  margin: 0 0 6px;
  font-size: var(--text-base);
}

.card.luna-feature .luna-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.card.luna-feature img {
  width: 140px;
  height: 180px;
  border-radius: 22px;
  object-position: center;
}

.banner {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(233, 242, 243, .55), rgba(255, 255, 255, .6));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}

/* Form fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.label {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .2px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .85);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading);
  box-shadow: 0 6px 14px rgba(31, 35, 40, .06);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field textarea {
  resize: vertical;
}

.pill-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
}

/* Hide radio inputs without creating horizontal overflow */
.pill-toggle input[type="radio"] {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;

  /* key part: don't push it off-screen */
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .85);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .12s ease;
}

.pill-btn:hover {
  transform: translateY(-1px);
}

.pill-toggle input:checked+.pill-btn {
  border-color: rgba(201, 108, 68, .25);
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 30px rgba(201, 108, 68, .22);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, .40);
  border: 1px solid rgba(255, 255, 255, .30);
  padding: 8px 12px;
  border-radius: 999px;
  max-width: 100%;
}

.pill span {
  font-size: var(--text-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  opacity: .95;
  white-space: normal;
}

/* Lightbox (native dialog) */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 92vw);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, .66);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(10, 12, 14, .92);
  border: 1px solid rgba(255, 255, 255, .10);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lightbox-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.15s ease;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(0, 0, 0, .38);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, .92);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, .62);
  transform: scale(1.05);
}

/* Navigation arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(0, 0, 0, .38);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, .92);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, .62);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(0.95);
}

/* Hide navigation on mobile to avoid clutter */
@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, .28);
  }

  .lightbox-nav svg {
    width: 20px;
    height: 20px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

/* WhatsApp floating button — mobile only, Blue Moon style */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;

  display: none;
  /* hidden by default; shown on mobile */
  align-items: center;
  gap: .55rem;

  padding: .7rem .85rem;
  border-radius: 999px;

  background: rgba(2, 10, 24, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .92);
  text-decoration: none;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}

.wa-float__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .95;
}

.wa-float__icon svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, .92);
}

.wa-float__text {
  font-size: var(--text-sm);
  letter-spacing: .2px;
}

.wa-float:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .26);
}

/* 5. Page-Specific Styles */
.hero {
  padding: 0;
}

.hero > .container {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.hero-card {
  border: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  position: relative;
  min-height: 90vh;
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 18, 30, .62) 0%, rgba(9, 18, 30, .35) 45%, rgba(9, 18, 30, .08) 75%, rgba(9, 18, 30, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .35) 100%),
    var(--hero-photo);
  background-size: cover;
  background-position: center 42%;
}

@media (max-width: 480px) {
  .hero-card {
    min-height: 85vh;
  }

  .hero-image {
    background-position: center bottom;
  }
}

/* BOOKING HERO */
body.page-booking {
  --hero-photo: url("/assets/photos/blue-moon/booking-sunset.webp");
}

.hero-booking {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: 96px 0 48px;
  overflow: hidden;
}

.hero-booking .hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(9, 18, 30, .75) 0%,
      rgba(9, 18, 30, .45) 45%,
      rgba(9, 18, 30, .18) 75%,
      rgba(9, 18, 30, 0) 100%),
    linear-gradient(180deg,
      rgba(0, 0, 0, .25) 0%,
      rgba(0, 0, 0, .55) 100%),
    var(--hero-photo);
  background-size: cover;
  background-position: center 60%;
  transform: scale(1.02);
}

.hero-booking .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.hero-booking h1 {
  color: #fff;
}

.hero-booking p {
  color: rgba(255, 255, 255, .9);
}

/* Page-specific images (use variables to preserve gradients) */
body.page-home {
  --hero-photo: url("/assets/hero.webp");
  --story-photo: url("/assets/story.webp");
}

body.page-bluemoon {
  --hero-photo: url("/assets/photos/blue-moon/hero.webp");
}

body.page-moondrop {
  --hero-photo: url("/assets/photos/moon-drop/hero.webp");
}



.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 20% 18%, rgba(0, 0, 0, .36), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, .10), rgba(0, 0, 0, .18));
  pointer-events: none;
}

body.page-home .hero-overlay {
  background:
    radial-gradient(900px 420px at 20% 18%, rgba(0, 0, 0, .28), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .16));
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;
  z-index: -1;
}

body.page-home .hero-bg-img {
  object-position: center 68%;
}

body.page-home .hero-image {
  /* Removed background image, kept gradients for contrast */
  background:
    linear-gradient(90deg, rgba(9, 18, 30, .65) 0%, rgba(9, 18, 30, .45) 45%, rgba(9, 18, 30, 0) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, .10) 0%, rgba(0, 0, 0, .30) 100%);
}

/* Subpages: background image replaced by <img> tag — keep gradients only */
body.page-bluemoon .hero-image,
body.page-moondrop .hero-image {
  background:
    linear-gradient(90deg, rgba(9, 18, 30, .62) 0%, rgba(9, 18, 30, .35) 45%, rgba(9, 18, 30, .08) 75%, rgba(9, 18, 30, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .35) 100%);
}

body.page-booking .hero-image {
  background:
    linear-gradient(90deg, rgba(9, 18, 30, .75) 0%, rgba(9, 18, 30, .45) 45%, rgba(9, 18, 30, .18) 75%, rgba(9, 18, 30, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 100%);
}

/* Hero image object-position per subpage */
body.page-bluemoon .hero-bg-img {
  object-position: center 42%;
}

body.page-moondrop .hero-bg-img {
  object-position: center 42%;
}

body.page-booking .hero-bg-img {
  object-position: center 60%;
}

body.page-guide .hero-bg-img {
  object-position: center 50%;
}

.hero-content {
  position: relative;
  padding: clamp(100px, 14vh, 180px) 5vw 60px;
  max-width: 680px;
}

.hero h1 {
  margin: 14px 0 8px;
  font-size: var(--text-h1);
  line-height: 1.12;
  letter-spacing: -.6px;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.hero p {
  margin: 0 0 16px;
  color: #fff;
  max-width: 60ch;
  font-size: var(--text-base);
  text-shadow: 0 12px 30px rgba(0, 0, 0, .32);
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.fine {
  color: var(--muted);
  font-size: var(--text-xs);
  margin-top: 6px;
}

.hero-micro {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  text-shadow: 0 8px 20px rgba(0, 0, 0, .30);
}

.hero-micro:hover {
  text-decoration: underline;
}

/* -----------------------------
   PHOTO GALLERY (simple, fast)
------------------------------ */
.gallery {
  /* inherits global section padding */
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.gallery-item {
  grid-column: span 6;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .35s ease, opacity .35s ease;
}

.gallery-item:focus-within img,
.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item a {
  display: block;
}

.gallery-item .tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .38);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .92);
  font-size: var(--text-xs);
  backdrop-filter: blur(8px);
}

.story {
  background: transparent;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
}

.story-text h2 {
  margin: 0 0 12px;
  font-size: var(--text-h2);
  letter-spacing: -.3px;
}

.story-text p {
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 58ch;
}

.story-points {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
}

.story-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-left: 0;
  margin-bottom: 14px;
  color: var(--ink);
  line-height: 1.5;
}

.story-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--coral);
}

.story-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.story-image {
  position: relative;
  display: block;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--story-photo);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.story-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .35));
  pointer-events: none;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bedrooms {
  padding: clamp(64px, 8vw, 110px) 0;
}

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

.photo-card {
  border-radius: 16px;
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Suites spacing (remove inline margin-top) */
.suite+.suite {
  margin-top: 28px;
}

/* Caretaker card: make the photo bigger and avoid the 2-thumb layout */
.caretaker-feature .luna-photos {
  display: flex;
  align-items: flex-start;
}

.caretaker-feature .luna-photos a,
.caretaker-feature .luna-photos img {
  width: 140px;
  height: 180px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center;
}

/* 6. Utilities */
.text-white-soft {
  color: rgba(255, 255, 255, .96);
}

.text-ink {
  color: var(--ink);
}

.text-sm {
  font-size: var(--text-sm);
}

.mt-14 {
  margin-top: 14px;
}

.mt-10 {
  margin-top: 10px;
}

.m0 {
  margin: 0;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-12 {
  margin-bottom: 12px;
}

.btn-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.embed {
  min-width: 320px;
  height: 820px;
}

.flex-between {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.flex-row-wrap {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  align-items: center;
}

.list-clean {
  margin: 0;
  padding-left: 1.1rem;
}

.logo-mark-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark-right {
  justify-content: flex-end;
}

.logo-mark {
  width: 400px;
  max-width: 100%;
  height: auto;
}

.booking-narrow {
  width: min(720px, 92vw);
  margin: 0 auto;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.soft-note {
  margin: 28px 0 34px;
  color: var(--muted);
  line-height: 1.7;
}

.soft-note em {
  font-style: italic;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 59, 90, .35);
  padding-bottom: 2px;
}

.text-link:hover {
  opacity: .85;
}

/* 404 page */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.page-404 .wrap {
  width: min(760px, 92vw);
}

.page-404 .center {
  text-align: center;
}

.page-404 h1 {
  margin: 0 0 8px;
  font-size: clamp(48px, 6vw, 84px);
  letter-spacing: -1px;
}

.page-404 p {
  margin: 0 auto 18px;
  max-width: 48ch;
  color: var(--muted);
}

.page-404 .actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-404 .logo-only {
  display: flex;
  justify-content: center;
  padding: 16px 0 6px;
}

.page-404 .logo-only img {
  width: 156px;
  height: auto;
  display: block;
}

/* Guide page helpers */
.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.guide-nav a {
  text-decoration: none;
}

/* Guide: mobile density + collapses */
.guide-collapse {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .5);
}

.guide-collapse summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guide-collapse summary::-webkit-details-marker {
  display: none;
}

.guide-collapse summary::after {
  content: "+";
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.guide-collapse[open] summary::after {
  content: "−";
}

.guide-collapse summary:focus-visible,
.guide-nav .btn:focus-visible {
  outline: 2px solid rgba(34, 59, 90, .35);
  outline-offset: 2px;
}

.guide-collapse[open] summary {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .35);
}

.guide-collapse .rentals-note-grid {
  margin: 0;
  padding: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.icon {
  display: inline-flex;
  margin-right: .35rem;
  line-height: 1;
}

.contact-info {
  margin-top: .3rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  align-items: center;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .6rem;
  border-radius: 999px;
}

.badge.soft {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
}

.map-wrap {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
}

.map-embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 400px at 20% 10%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(2, 10, 24, .42) 0%, rgba(2, 10, 24, .10) 55%, rgba(2, 10, 24, .30) 100%);
  mix-blend-mode: soft-light;
}

.map-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .7rem;
  border-radius: 999px;
  background: rgba(2, 10, 24, .42);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .92);
  letter-spacing: .2px;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.map-badge .moon {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .25) 55%, rgba(255, 255, 255, .08) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 24px rgba(0, 0, 0, .18);
  opacity: .95;
}

details.card {
  cursor: pointer;
}

details.card summary {
  list-style: none;
}

details.card summary::-webkit-details-marker {
  display: none;
}

.fine {
  opacity: .85;
}

.hero-image.guide-hero {
  background-image: url("/assets/photos/guide-hero.jpg");
  background-position: center 35%;
}

.hero-image.guide-hero + .hero-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .28) 100%),
    radial-gradient(800px 400px at 20% 20%, rgba(255, 255, 255, .18), transparent 60%);
}

.section-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
  width: 100%;
}

.photo-tile {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(300px 160px at 20% 20%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, rgba(34, 59, 90, .22), rgba(2, 10, 24, .22));
  pointer-events: none;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-gallery figcaption {
  margin-top: .35rem;
}

.travel-flow {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 860px;
  display: grid;
  gap: 18px;
}

.travel-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.travel-step:last-child {
  border-bottom: 1px solid var(--line);
}

.travel-step-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  color: rgba(34, 59, 90, .32);
}

.travel-step h3 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.2vw, 26px);
}

.travel-step p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

.travel-flow-note {
  max-width: 860px;
  margin: 14px auto 0;
  color: var(--muted);
}

@media (min-width: 860px) {
  .travel-flow {
    gap: 22px;
  }

  .travel-step {
    grid-template-columns: 72px 1fr;
    gap: 18px;
    padding: 20px 0;
  }
}

.getting-around-grid {
  margin-top: 6px;
}

.transport-card {
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--line);
  box-shadow: none;
}

.transport-card h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.2vw, 26px);
}

.transport-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.transport-card-primary {
  background: rgba(34, 59, 90, .03);
  border-color: rgba(34, 59, 90, .12);
}

.transport-tips {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.transport-tips-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
}

.transport-tips .list-clean {
  margin: 0;
}

.transport-tips li {
  margin-bottom: 6px;
  color: var(--muted);
}

/* Guide: Rentals section */
.rentals-disclaimer {
  margin-top: 10px;
}

.rentals-grid,
.rentals-note-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.rentals-grid {
  margin-top: 8px;
}

.rentals-note-grid {
  margin-top: 18px;
}

.rentals-panel,
.rentals-note {
  background: rgba(255, 255, 255, .58);
  border: 1px solid var(--line);
  box-shadow: none;
}

.rentals-panel h3,
.rentals-note h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.2vw, 26px);
}

.rentals-panel > p {
  margin: 0 0 12px;
  color: var(--muted);
}

.provider-list {
  display: grid;
  gap: 10px;
}

.provider-mini-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .45);
}

.provider-mini-card h4 {
  margin: 0 0 8px;
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
}

.provider-links {
  display: grid;
  gap: 4px;
}

.provider-links a {
  color: var(--muted);
  text-decoration: none;
  word-break: break-word;
}

.provider-links a:hover {
  text-decoration: underline;
  color: var(--ink);
}

.rentals-note .list-clean {
  margin: 0;
}

.rentals-note li {
  margin-bottom: 6px;
  color: var(--muted);
}

.rentals-note p {
  margin: 0 0 10px;
  color: var(--muted);
}

.rentals-note p:last-child {
  margin-bottom: 0;
}

@media (min-width: 860px) {
  .rentals-grid,
  .rentals-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Guide: Beaches + Things To Do + Good To Know */
.guide-beaches-grid,
.guide-know-grid {
  margin-top: 6px;
}

.guide-beach-card,
.guide-know-card,
.guide-note-panel {
  background: rgba(255, 255, 255, .58);
  border: 1px solid var(--line);
  box-shadow: none;
}

.guide-beach-card h3,
.guide-know-card h3,
.guide-note-panel h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.2vw, 26px);
}

.guide-beach-card p,
.guide-know-card p,
.guide-note-panel p {
  margin: 0 0 8px;
  color: var(--muted);
}

.guide-beach-card p:last-child,
.guide-know-card p:last-child,
.guide-note-panel p:last-child {
  margin-bottom: 0;
}

.guide-note-panel {
  padding: 18px;
}

.guide-note-panel .list-clean {
  margin: 0;
}

.guide-note-panel li {
  margin-bottom: 8px;
  color: var(--muted);
}

.guide-note-panel li:last-child {
  margin-bottom: 0;
}

.guide-know-card {
  min-height: 100%;
}

/* Guide: FAQ accordion */
.faq-shell {
  max-width: 860px;
  margin: 0 auto;
}

.faq-shell h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.8vw, 46px);
}

.faq-accordion {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .55);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:focus-visible {
  outline: 2px solid rgba(34, 59, 90, .35);
  outline-offset: 2px;
  border-radius: 12px;
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .35);
}

.faq-answer {
  padding: 12px 16px 16px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

@media (max-width: 900px) {
  .section-gallery {
    width: min(560px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .section-gallery {
    grid-template-columns: 1fr;
  }
}

/* 7. Media Queries */
@media (max-width: 900px) {
  nav ul {
    display: none;
  }

  .actions .btn {
    display: none;
  }

  .actions .nav-social {
    display: none;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .grid.three {
    grid-template-columns: 1fr;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-image {
    height: 300px;
  }

  .suite-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


@media (max-width: 860px) {
  .wa-float {
    display: inline-flex;
  }
}

@media (max-width: 820px) {
  .gallery-item {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .hero-booking {
    min-height: 70vh;
    padding: 72px 0 40px;
  }

  .hero-booking .hero-image {
    background-position: center 72%;
  }

  .hero-booking .hero-inner {
    max-width: 100%;
  }
}

@media (min-width: 481px) and (max-width: 520px) {
  .card.luna {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-image {
    background-position: center 60%;
  }

  body.page-home .hero-bg-img {
    object-position: center 74%;
  }

  .hero-content {
    padding: clamp(80px, 12vh, 140px) 4vw 50px;
  }

  .hero p {
    font-size: var(--text-base);
  }

  /* Improve button wrapping on small screens */
  .hero-cta {
    gap: 8px;
  }

  .btn-row {
    flex-direction: column;
    gap: 8px;
  }

  .btn-row .btn {
    width: 100%;
  }

  /* Better spacing for cards */
  .card {
    padding: 14px;
  }

}

/* Extra small devices (<375px) - iPhone SE, small Android phones */
@media (max-width: 374px) {

  /* Typography adjustments */
  :root {
    --text-base: 15px;
    --text-sm: 13px;
    --text-xs: 11px;
    --text-h1: clamp(26px, 8vw, 36px);
    --text-h2: 24px;
    --text-h3: 18px;
  }

  /* Hero optimizations */
  .hero-card {
    min-height: 85vh;
  }

  .hero-content {
    padding: clamp(70px, 10vh, 120px) 4vw 40px;
  }

  .hero h1 {
    font-size: clamp(26px, 8vw, 36px);
    line-height: 1.15;
  }

  .hero-cta .btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  /* Navigation */
  .brand-name {
    font-size: clamp(20px, 5vw, 28px);
  }

  .brand small {
    font-size: 12px;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  /* Pill adjustments */
  .pill {
    padding: 6px 10px;
  }

  .pill span {
    font-size: 11px;
  }

  /* Card improvements */
  .card {
    padding: 12px;
  }

  .card h3 {
    font-size: 16px;
  }

  /* Button improvements */
  .btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  /* Gallery adjustments */
  .gallery-grid {
    gap: 10px;
  }

  /* Luna card photos */
  .card.luna-feature .luna-photos {
    grid-template-columns: 1fr;
  }

  .card.luna-feature img {
    width: 100%;
    height: 200px;
  }

  /* Container adjustments */
  .container {
    width: min(1120px, 94vw);
  }

  /* Lightbox navigation - smaller on tiny screens */
  .lightbox-nav {
    width: 36px;
    height: 36px;
  }

  .lightbox-nav svg {
    width: 18px;
    height: 18px;
  }

  .lightbox-close {
    width: 38px;
    height: 38px;
    top: 10px;
    right: 10px;
  }

  /* WhatsApp float button */
  .wa-float {
    padding: 0.6rem 0.75rem;
    font-size: 13px;
  }

  .wa-float__icon {
    width: 16px;
    height: 16px;
  }

  .wa-float__icon svg {
    width: 16px;
    height: 16px;
  }

  /* Guide page specific */
  .guide-nav {
    display:flex;
    flex-wrap:nowrap;
    gap:8px;
    overflow-x:auto;
    white-space:nowrap;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  .guide-nav::-webkit-scrollbar { display:none; }

  .guide-nav .btn {
    flex:0 0 auto;
    font-size: 12px;
    padding: 8px 10px;
  }

  /* Grid adjustments */
  .grid-2,
  .grid-3 {
    gap: 10px;
  }
}

/* Safe area (iPhone) */
@supports (padding: max(0px)) {
  .wa-float {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 768px) {
  body.page-home {
    --hero-photo: url("/assets/hero-1200.webp");
  }

  body.page-bluemoon {
    --hero-photo: url("/assets/photos/blue-moon/hero-1200.webp");
  }

  body.page-moondrop {
    --hero-photo: url("/assets/photos/moon-drop/hero-1200.webp");
  }

  body.page-booking {
    --hero-photo: url("/assets/photos/blue-moon/booking-sunset-1200.webp");
  }

  .hero-image.guide-hero {
    background-image: url("/assets/photos/guide-hero-1200.jpg");
  }
}

/* ===================================================
   NEW COMPONENT STYLES — moonbeam-design-refresh sync
   =================================================== */

/* --- Eyebrow label (small uppercase above headings) --- */
.label-eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 10px;
}

/* --- Property card with image (home page "Book your adventure") --- */
.card-property {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .4s ease, transform .4s ease;
}

.card-property:hover {
  box-shadow: 0 24px 56px rgba(31, 35, 40, .14);
  transform: translateY(-2px);
}

.card-property-img {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--sand);
}

.card-property-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.card-property:hover .card-property-img img {
  transform: scale(1.05);
}

.card-property-img .card-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .38);
  border: 1px solid rgba(255, 255, 255, .24);
  color: rgba(255, 255, 255, .95);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.card-property-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent);
  pointer-events: none;
}

.card-property-body {
  padding: 22px;
}

.card-property-body h3 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2vw, 26px);
  font-family: var(--font-display);
  letter-spacing: var(--tracking-display);
}

.card-property-body p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading);
}

/* --- Feature tags --- */
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.feature-tag {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(34, 59, 90, .06);
  border: 1px solid rgba(34, 59, 90, .10);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .04em;
}

/* --- Team grid (3-col → 1-col on mobile) --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-member {
  text-align: center;
}

.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: 0 14px 36px rgba(31, 35, 40, .14);
  border: 3px solid var(--card);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  margin: 0 0 4px;
  font-size: clamp(20px, 2vw, 26px);
  font-family: var(--font-display);
}

.team-member .team-role {
  font-size: var(--text-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin: 0 0 12px;
}

.team-member p:not(.team-role) {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading);
  margin: 0;
}

/* --- Guestbook teaser section --- */
.guestbook-teaser {
  background: transparent;
  border-top: none;
  border-bottom: none;
  padding: 60px 0;
  text-align: center;
}

.guestbook-teaser .quote-mark {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-style: italic;
  color: var(--ink);
  max-width: 62ch;
  margin: 0 auto 10px;
  line-height: 1.3;
}

.guestbook-teaser .quote-sub {
  color: var(--muted);
  margin-bottom: 20px;
}

.guestbook-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto 24px;
  text-align: left;
}

.guestbook-review {
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(31, 35, 40, .04);
}

.guestbook-review h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.2;
  font-family: var(--font-display);
}

.guestbook-review-meta {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.guestbook-review-rating {
  margin: 0 0 10px;
  color: #c89b2b;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .08em;
  line-height: 1;
}

.guestbook-review-body {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.guestbook-teaser .text-link {
  font-weight: 600;
  color: var(--coral);
  border-color: rgba(201, 108, 68, .35);
}

.guestbook-teaser .text-link:hover {
  color: var(--coral-hover);
}

/* --- Dark CTA section (Ocean background) --- */
.cta-dark {
  background: var(--accent);
  color: #fff;
  padding: 72px 0;
}

.cta-dark .cta-dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cta-dark h2 {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 50px);
  margin: 0 0 16px;
}

.cta-dark p {
  color: rgba(255, 255, 255, .72);
  font-size: var(--text-base);
  margin: 0 0 24px;
  line-height: var(--leading);
}

.cta-dark .cta-detail-label {
  font-size: var(--text-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 4px;
}

.cta-dark .cta-detail-value {
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  transition: color .2s;
}

.cta-dark .cta-detail-value:hover {
  color: var(--coral);
}

.cta-dark .cta-detail-block {
  margin-bottom: 18px;
}

/* --- Section with large h2 --- */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: clamp(28px, 3.8vw, 54px);
  margin: 0;
}

/* --- Guide CTA final --- */
.guide-cta {
  padding: 60px 0;
  background: var(--accent);
  text-align: center;
}

.guide-cta h2 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 46px);
  margin: 0 0 14px;
}

.guide-cta p {
  color: rgba(255, 255, 255, .72);
  margin: 0 0 24px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ===== MOBILE RESPONSIVE — new components ===== */

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 420px;
    margin: 0 auto;
  }

  .cta-dark .cta-dark-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .card-property-img {
    height: 220px;
  }

  .card-property-body {
    padding: 16px;
  }

  .team-photo {
    width: 130px;
    height: 130px;
  }

  .guestbook-teaser {
    padding: 48px 0;
  }

  .guestbook-review-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cta-dark {
    padding: 52px 0;
  }
}

@media (max-width: 374px) {
  .card-property-img {
    height: 190px;
  }

  .team-photo {
    width: 110px;
    height: 110px;
  }

  .guestbook-teaser .quote-mark {
    font-size: 22px;
  }
}

/* ============================================================
   Scroll-triggered Fade-Up Animations
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of .stagger */
.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Section padding — mobile responsive
   ============================================================ */
@media (max-width: 900px) {
  section {
    padding: 56px 0;
  }
}

@media (max-width: 640px) {
  section {
    padding: 44px 0;
  }
}

@media (max-width: 480px) {
  section {
    padding: 36px 0;
  }
}

/* ============================================================
   Footer 3-column styles
   ============================================================ */
.footer-col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
}

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

.footer-links a {
  color: var(--muted);
  transition: color 0.18s ease;
  font-size: var(--text-sm);
}

.footer-links a:hover {
  color: var(--coral);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 8px;
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--coral);
}

.footer-contact-item a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--muted);
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Prevent CSS hero background image requests when reduced motion is preferred */
@media (prefers-reduced-motion: reduce) {
  body.page-home,
  body.page-bluemoon,
  body.page-moondrop,
  body.page-booking {
    --hero-photo: none !important;
  }
}


/* ============================================================
   Guestbook Flipbook
   ============================================================ */

    /* --- Guestbook Flipbook (lightweight) --- */
    .bookWrap {
      max-width: 980px;
      margin: 0 auto;
      padding: 28px 16px 60px;
    }

    .bookHeader {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 18px;
    }

    .bookHeader h1 {
      margin: 0;
      font-family: "Cormorant Garamond", serif;
      letter-spacing: .2px;
      font-size: clamp(28px, 3.8vw, 44px);
    }

    .bookHeader p {
      margin: 0;
      color: var(--muted);
      max-width: 55ch;
    }

    .bookShell {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .bookStage {
      position: relative;
      min-height: 460px;
      padding: 0;
    }

    .page {
      position: absolute;
      inset: 0;
      padding: 34px 26px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 18px;
      opacity: 0;
      transform: translateX(18px);
      transition: opacity .35s ease, transform .35s ease;
      pointer-events: none;
      background:
        radial-gradient(1400px 500px at 10% -10%, rgba(34, 59, 90, .06), transparent 60%),
        radial-gradient(900px 500px at 110% 110%, rgba(47, 107, 122, .06), transparent 55%),
        #fff;
    }

    .page.active {
      opacity: 1;
      transform: translateX(0);
      pointer-events: auto;
    }

    .cover {
      text-align: center;
      gap: 10px;
    }

    .cover .badge {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      padding: 8px 12px;
      border-radius: 999px;
      background: var(--soft);
      color: var(--accent);
      font-size: 13px;
      border: 1px solid rgba(34, 59, 90, .12);
      margin: 0 auto 6px;
    }

    .cover h2 {
      margin: 0;
      font-family: "Cormorant Garamond", serif;
      font-size: clamp(32px, 4.2vw, 54px);
      letter-spacing: .2px;
    }

    .cover .sub {
      color: var(--muted);
      max-width: 58ch;
      margin: 0 auto;
      line-height: 1.6;
    }

    blockquote {
      margin: 0;
      padding: 18px 18px;
      border-left: 3px solid rgba(34, 59, 90, .22);
      background: rgba(243, 239, 230, .55);
      border-radius: 12px;
    }

    blockquote p {
      margin: 0;
      font-size: 18px;
      line-height: 1.7;
      color: var(--ink);
    }

    .sig {
      margin-top: 10px;
      color: var(--muted);
      font-size: 14px;
      letter-spacing: .2px;
    }

    .bookNav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 16px;
      border-top: 1px solid var(--line);
      background: rgba(251, 250, 248, .65);
      backdrop-filter: blur(6px);
    }

    .bookNav .meta {
      color: var(--muted);
      font-size: 14px;
    }

    .bookNav .btnRow {
      display: flex;
      gap: 10px;
    }

    .bookNav .btn {
      appearance: none;
      border: 1px solid rgba(31, 35, 40, .16);
      background: #fff;
      border-radius: 12px;
      padding: 10px 12px;
      cursor: pointer;
      font: inherit;
      color: var(--ink);
      box-shadow: 0 6px 16px rgba(31, 35, 40, .06);
    }

    .bookNav .btn:hover {
      transform: translateY(-1px);
    }

    .bookNav .btn:disabled {
      opacity: .45;
      cursor: not-allowed;
      transform: none;
    }

    .bookNav .btn.primary {
      background: var(--coral);
      color: #fff;
      border-color: rgba(201, 108, 68, .25);
    }

    @media (min-width: 740px) {
      .page {
        padding: 44px 54px;
      }

      blockquote p {
        font-size: 19px;
      }
    }
  