/* Editorial luxury direction inspired by Costa Rica's most refined nature retreats. */
:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --editorial-forest: #154b3e;
  --editorial-deep: #0d352e;
  --editorial-leaf: #4d8069;
  --editorial-mist: #edf4ef;
  --editorial-white: #fcfdfb;
  --editorial-gold: #c79e56;
  --editorial-coral: #c9755d;
}

html { scroll-behavior: smooth; }
body {
  color: #20342f;
  background: var(--editorial-white);
}

.section-pad {
  padding-block: clamp(5rem, 9vw, 9rem);
}

.section-heading {
  width: min(100%, 1040px);
}

.section-heading h2,
.split-layout h2,
.media-copy h2 {
  color: var(--editorial-deep);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-kicker {
  color: var(--editorial-coral);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* A quiet, image-first arrival. */
.hero {
  isolation: isolate;
  background: var(--editorial-deep) !important;
}

.hero-media::before,
.hero-media::after,
.hero::before,
.hero::after,
.hero-depth-canvas,
.hero-birds,
.hero-4d-aura,
.hero-editorial-light,
.hero-grain,
.hero-luxury-lines,
.hero-premium-notes,
.hero-kinetic {
  display: none !important;
}

.hero-media {
  background: var(--editorial-deep) !important;
}

.hero-photo {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 27, 23, 0.62), rgba(6, 27, 23, 0.14) 48%, transparent 72%),
    linear-gradient(0deg, rgba(6, 27, 23, 0.72), transparent 42%) !important;
}

.hero-content {
  width: min(620px, 55vw) !important;
}

.hero-brand-lockup {
  margin-bottom: 1rem !important;
  padding: 0 !important;
}

.hero-brand-lockup::before,
.hero-brand-lockup::after {
  display: none !important;
}

.hero .hero-brand-lockup h1 {
  max-width: 590px !important;
  color: #fff !important;
  font-family: var(--font-display) !important;
  font-size: clamp(2.45rem, 4vw, 4.5rem) !important;
  font-weight: 400 !important;
  line-height: 0.92 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.28) !important;
}

.hero .hero-brand-lockup h1 span:first-child {
  display: block !important;
  margin-bottom: 0.12em !important;
  font-size: 0.56em !important;
}

.hero .hero-brand-lockup p {
  margin-top: 0.8rem !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0 !important;
}

.hero .eyebrow {
  color: #f0cf8d !important;
}

.hero-copy {
  max-width: 500px !important;
  color: rgba(255, 255, 255, 0.84) !important;
  font-size: 0.92rem !important;
  line-height: 1.7 !important;
}

.hero-actions .btn {
  min-height: 46px;
  border-radius: 2px !important;
  box-shadow: none !important;
}

.hero-actions .btn-primary {
  color: #fff !important;
  background: var(--editorial-coral) !important;
}

.hero-actions .btn-glass {
  border-color: rgba(255, 255, 255, 0.55) !important;
  color: #fff !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

.booking-panel {
  border: 0 !important;
  border-radius: 2px !important;
  background: rgba(252, 253, 251, 0.97) !important;
  box-shadow: 0 18px 48px rgba(6, 27, 23, 0.2) !important;
  backdrop-filter: none !important;
}

.booking-panel label,
.booking-panel input,
.booking-panel select {
  color: var(--editorial-deep) !important;
  background: transparent !important;
}

.booking-panel button {
  border-radius: 0 !important;
  background: var(--editorial-forest) !important;
}

.proof-band {
  border: 0 !important;
  border-bottom: 1px solid rgba(21, 75, 62, 0.12) !important;
  background: var(--editorial-white) !important;
  box-shadow: none !important;
}

.proof-band strong { color: var(--editorial-forest) !important; }
.proof-band span { color: #667a73 !important; }

/* Editorial introduction and film. */
.intro {
  color: #20342f;
  background: var(--editorial-white) !important;
}

.intro .split-layout {
  gap: clamp(3rem, 10vw, 10rem);
}

.intro .split-layout h2 {
  font-size: clamp(3rem, 6.1vw, 6.8rem);
}

.intro-copy {
  align-self: end;
  padding-bottom: 0.5rem;
}

.intro-copy p {
  color: #5d7069;
  font-size: 1rem;
  line-height: 1.9;
}

.text-link {
  color: var(--editorial-forest) !important;
  text-underline-offset: 0.45rem;
}

.media-experience {
  color: #fff;
  background: var(--editorial-deep) !important;
}

.media-experience .media-copy h2,
.media-experience .media-copy p { color: #fff !important; }
.media-experience .section-kicker { color: #f0cf8d !important; }
.media-stage { gap: clamp(1.5rem, 4vw, 4rem) !important; }
.video-preview,
.sound-card {
  border: 0 !important;
  border-radius: 2px !important;
  background: transparent !important;
  box-shadow: none !important;
}
.retreat-film { border-radius: 2px !important; }
.sound-card { border-left: 1px solid rgba(255, 255, 255, 0.18) !important; }

/* Three accommodations presented as full editorial stories, not cards. */
.villas-section {
  color: #20342f;
  background: var(--editorial-mist) !important;
}

.villas-section .section-heading {
  max-width: 980px;
  margin-bottom: clamp(3.5rem, 7vw, 7rem);
}

.villas-section .section-heading h2 {
  max-width: 920px;
  font-size: clamp(3rem, 5.8vw, 6.3rem);
}

.villas-section .villa-grid {
  gap: clamp(5rem, 10vw, 10rem) !important;
  max-width: 1500px !important;
}

.villas-section .villa-card,
.villas-section .villa-card[data-property-card] {
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(350px, 0.82fr) !important;
  align-items: center !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.villas-section .villa-card:nth-child(even) .property-window { grid-column: 2; }
.villas-section .villa-card:nth-child(even) .villa-card-content {
  grid-column: 1;
  grid-row: 1 !important;
  padding-right: clamp(2rem, 7vw, 7rem) !important;
  padding-left: 0 !important;
}

.villas-section .property-window {
  overflow: hidden;
  border: 0 !important;
  border-radius: 2px !important;
  background: #dfe9e3 !important;
  box-shadow: none !important;
}

.villas-section .property-window-stage {
  aspect-ratio: 4 / 3 !important;
  background: #dfe9e3 !important;
}

.villas-section .property-window-slide {
  transform: translate3d(1.5%, 0, 0) scale(0.995) !important;
  transition: opacity 850ms ease, transform 1050ms cubic-bezier(.2, .72, .2, 1), visibility 850ms !important;
}

.villas-section .property-window-slide.is-active {
  transform: none !important;
}

.villas-section .property-window-slide img,
.villas-section .villa-card .property-window-slide img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #dfe9e3 !important;
  box-shadow: none !important;
  filter: none !important;
}

.villas-section .property-window-controls {
  position: relative !important;
  inset: auto !important;
  min-height: 52px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.villas-section .property-window-controls button {
  border: 0 !important;
  color: var(--editorial-forest) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.villas-section .villa-card-content,
.villas-section .villa-card[data-property-card] .villa-card-content {
  padding: clamp(2rem, 6vw, 6rem) 0 clamp(2rem, 6vw, 6rem) clamp(2rem, 7vw, 7rem) !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.villas-section .villa-card-content > span {
  color: var(--editorial-coral) !important;
  letter-spacing: 0 !important;
}

.villas-section .villa-card-content h3 {
  margin: 0.55rem 0 1rem !important;
  color: var(--editorial-deep) !important;
  font-family: var(--font-display) !important;
  font-size: clamp(3rem, 5.1vw, 5.8rem) !important;
  font-weight: 400 !important;
  line-height: 0.95 !important;
}

.villas-section .villa-card-content p {
  max-width: 620px;
  color: #536760 !important;
  font-size: 0.94rem !important;
  line-height: 1.84 !important;
}

.villas-section .stay-facts {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.45rem !important;
}

.villas-section .stay-facts strong,
.villas-section .stay-facts span {
  min-height: 0 !important;
  padding: 0.34rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(21, 75, 62, 0.18) !important;
  border-radius: 0 !important;
  color: #526b62 !important;
  background: transparent !important;
}

.villas-section .stay-facts strong {
  width: 100%;
  color: var(--editorial-forest) !important;
  font-family: var(--font-display);
  font-size: 1.2rem !important;
}

.villas-section .villa-card-content > a {
  width: fit-content;
  margin-top: 0.9rem;
  color: var(--editorial-forest) !important;
  border-bottom: 1px solid var(--editorial-forest);
  text-decoration: none;
}

/* Nature story as an immersive editorial band. */
.paradise-moment {
  background: var(--editorial-forest) !important;
}

.paradise-photo img {
  border-radius: 2px !important;
  box-shadow: none !important;
}

.day-journey {
  background: var(--editorial-white) !important;
}

.day-journey .section-heading h2 {
  max-width: 1050px;
  font-size: clamp(3rem, 5.8vw, 6.4rem);
}

.light-story-stage,
.light-story-slide {
  border: 0 !important;
  border-radius: 2px !important;
  background: var(--editorial-mist) !important;
  box-shadow: none !important;
}

.light-story-slide::before,
.light-story-slide::after { display: none !important; }
.light-story-slide img { object-fit: contain !important; background: var(--editorial-mist) !important; }
.light-story-slide figcaption { background: rgba(13, 53, 46, 0.86) !important; }

/* Exclusive gallery: one pristine image at a time, adaptive to its real ratio. */
.house-gallery,
body[data-atmosphere="sunset"] .house-gallery,
body[data-atmosphere="night"] .house-gallery {
  overflow: hidden;
  color: #20342f !important;
  background: var(--editorial-white) !important;
}

.house-gallery::before,
.house-gallery::after,
.house-gallery .gallery-photo-grid::before,
.house-gallery .gallery-photo-grid::after,
.house-gallery .gallery-photo::before,
.house-gallery .gallery-photo::after {
  display: none !important;
  content: none !important;
}

.house-gallery .section-heading {
  max-width: 940px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.house-gallery .section-heading h2 {
  color: var(--editorial-deep) !important;
  font-size: clamp(3rem, 6vw, 6.5rem);
}

.gallery-tabs {
  justify-content: flex-start !important;
  gap: clamp(1.4rem, 3vw, 3rem) !important;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem) !important;
  border-bottom: 1px solid rgba(21, 75, 62, 0.14);
}

.house-gallery .gallery-tab {
  padding: 0.7rem 0 0.85rem !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  color: #6b7d76 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.house-gallery .gallery-tab.is-active {
  color: var(--editorial-forest) !important;
  border-bottom-color: var(--editorial-coral) !important;
}

.gallery-showcase {
  display: block !important;
  margin-bottom: clamp(1.8rem, 4vw, 3.5rem) !important;
}

.house-gallery .gallery-copy {
  display: grid !important;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  align-items: end;
  width: min(100%, 1240px) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding: 0 0 clamp(1.4rem, 3vw, 2.4rem) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(21, 75, 62, 0.14) !important;
  text-align: left !important;
  background: transparent !important;
}

.house-gallery .gallery-copy span {
  grid-column: 1;
  color: var(--editorial-coral) !important;
  letter-spacing: 0;
}

.house-gallery .gallery-copy h3 {
  grid-column: 1;
  margin: 0 !important;
  color: var(--editorial-deep) !important;
  font-family: var(--font-display) !important;
  font-size: clamp(2.6rem, 4.8vw, 5.2rem) !important;
  font-weight: 400;
  line-height: 0.96;
}

.house-gallery .gallery-copy p {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 680px !important;
  margin: 0 !important;
  color: #5b7068 !important;
  line-height: 1.8;
}

.house-gallery .gallery-copy strong {
  grid-column: 2;
  justify-self: start;
  color: var(--editorial-forest) !important;
}

.house-gallery .gallery-feature { display: none !important; }

.house-gallery .gallery-photo-grid {
  position: relative !important;
  display: block !important;
  width: min(100%, 1380px) !important;
  height: 640px;
  min-height: 300px;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  perspective: none !important;
  transition: height 700ms cubic-bezier(.2, .72, .2, 1);
}

.house-gallery .gallery-photo,
.house-gallery .gallery-photo.has-media-backdrop {
  position: absolute !important;
  inset: 0 auto auto 50% !important;
  display: block !important;
  width: var(--active-gallery-width, min(100%, 1240px)) !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(12px) scale(0.992) !important;
  transition: opacity 750ms ease, transform 950ms cubic-bezier(.2, .72, .2, 1), visibility 0s linear 950ms !important;
}

.house-gallery .gallery-photo.is-orbit-current {
  z-index: 2 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) !important;
  transition-delay: 0s !important;
}

.house-gallery .gallery-photo.is-orbit-previous,
.house-gallery .gallery-photo.is-orbit-next,
.house-gallery .gallery-photo.is-orbit-far-previous,
.house-gallery .gallery-photo.is-orbit-far-next,
.house-gallery .gallery-photo.is-orbit-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(12px) scale(0.992) !important;
}

.house-gallery .gallery-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.house-gallery .gallery-photo > span,
.house-gallery .gallery-photo figcaption { display: none !important; }

.gallery-reel-controls {
  grid-template-columns: 48px minmax(100px, 1fr) auto 48px !important;
  width: min(100%, 760px) !important;
  margin-top: clamp(1.2rem, 3vw, 2rem) !important;
}

.gallery-reel-controls button {
  width: 48px !important;
  height: 48px !important;
  border: 1px solid rgba(21, 75, 62, 0.2) !important;
  border-radius: 50% !important;
  color: var(--editorial-forest) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.gallery-reel-controls button:hover,
.gallery-reel-controls button:focus-visible {
  color: #fff !important;
  background: var(--editorial-forest) !important;
}

.gallery-reel-progress { background: rgba(21, 75, 62, 0.14) !important; }
.gallery-reel-progress span { background: var(--editorial-coral) !important; }
.gallery-reel-count { color: #657a72 !important; }

@media (min-width: 821px) {
  .hero-content {
    left: clamp(1.5rem, 5vw, 5.5rem) !important;
    bottom: clamp(9.5rem, 18vh, 12.5rem) !important;
  }
}

@media (max-width: 900px) {
  .intro .split-layout { gap: 2rem; }
  .sound-card { border-left: 0 !important; border-top: 1px solid rgba(255, 255, 255, 0.18) !important; }

  .villas-section .villa-card,
  .villas-section .villa-card:nth-child(even) {
    grid-template-columns: 1fr !important;
    gap: 1.4rem;
  }

  .villas-section .villa-card:nth-child(even) .property-window,
  .villas-section .villa-card:nth-child(even) .villa-card-content {
    grid-column: 1 !important;
  }

  .villas-section .villa-card:nth-child(even) .property-window { grid-row: 1 !important; }
  .villas-section .villa-card:nth-child(even) .villa-card-content { grid-row: 2 !important; }

  .villas-section .villa-card-content,
  .villas-section .villa-card[data-property-card] .villa-card-content,
  .villas-section .villa-card:nth-child(even) .villa-card-content {
    grid-row: 2 !important;
    padding: 0 !important;
  }

  .house-gallery .gallery-copy {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .house-gallery .gallery-copy span,
  .house-gallery .gallery-copy h3,
  .house-gallery .gallery-copy p,
  .house-gallery .gallery-copy strong {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  .hero {
    padding-bottom: 1rem !important;
    background: var(--editorial-deep) !important;
  }

  .hero-media {
    position: relative !important;
    inset: auto !important;
  }

  .hero-overlay { display: none !important; }

  .hero-content {
    position: relative !important;
    width: 100% !important;
    padding: 1.7rem 1.15rem 1rem !important;
  }

  .hero .hero-brand-lockup h1 {
    font-size: clamp(2.3rem, 11vw, 3.35rem) !important;
  }

  .hero-copy { max-width: 620px !important; }
  .booking-panel { margin: 0 1rem 0 !important; }
}

@media (max-width: 560px) {
  .section-pad { padding-block: 4.5rem; }
  .intro .split-layout h2,
  .villas-section .section-heading h2,
  .day-journey .section-heading h2,
  .house-gallery .section-heading h2 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .villas-section .villa-grid { gap: 4.5rem !important; }
  .villas-section .property-window-stage { aspect-ratio: 4 / 3 !important; }
  .villas-section .villa-card-content h3 { font-size: clamp(2.75rem, 13vw, 4.2rem) !important; }

  .gallery-tabs {
    justify-content: flex-start !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .gallery-tabs::-webkit-scrollbar { display: none; }
  .house-gallery .gallery-tab { flex: 0 0 auto; }
  .house-gallery .gallery-photo-grid { min-height: 280px; }
  .gallery-reel-controls { grid-template-columns: 44px 1fr 52px 44px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .house-gallery .gallery-photo,
  .house-gallery .gallery-photo-grid,
  .villas-section .property-window-slide {
    transition: none !important;
  }
}
