:root {
  --ivory: #f4f1ea;
  --pearl: #faf9f6;
  --stone: #e8dccf;
  --oat: #e6dac8;
  --sand: #cdb89f;
  --wood: #a77c52;
  --leaf: #6f7d63;
  --palm: #6f7d63;
  --teal: #6faeb8;
  --aqua: #b9d5d8;
  --olive: #6f7d63;
  --ink: #2f2a24;
  --gold: #a77c52;
  --shadow: 0 24px 70px rgba(30, 30, 27, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  position: relative;
  scroll-margin-top: 50px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  gap: 26px;
  align-items: center;
  padding: 22px 38px;
  color: var(--pearl);
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.site-header.scrolled,
.site-header.menu-open,
.site-header.solid {
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(30, 30, 27, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-grid;
  justify-items: center;
  line-height: 1;
}

.brand span {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
}

.brand small {
  margin-top: 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.main-nav {
  justify-self: center;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.main-nav a {
  opacity: 0.86;
}

.main-nav a:hover {
  opacity: 1;
  color: var(--gold);
}

.main-nav a.active {
  opacity: 1;
  color: var(--teal);
}

.site-header.scrolled .main-nav a.active,
.site-header.menu-open .main-nav a.active,
.site-header.solid .main-nav a.active {
  color: var(--wood);
}

.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.header-cta {
  justify-self: end;
  border: 1px solid currentColor;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.menu-button {
  display: none;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--pearl);
}

.media-fill {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(180deg, rgba(47, 42, 36, 0.12), rgba(47, 42, 36, 0.38)),
    radial-gradient(circle at 76% 64%, rgba(185, 213, 216, 0.86), transparent 25%),
    linear-gradient(135deg, #e8dccf 0%, #faf9f6 31%, #cdb89f 32%, #a77c52 46%, #e6dac8 47%, #b9d5d8 72%, #6faeb8 100%);
  background-size: cover;
}

.hero-content {
  position: relative;
  width: min(920px, calc(100% - 40px));
  padding-top: 80px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(82px, 12vw, 172px);
}

.hero-location {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: clamp(16px, 2.2vw, 34px);
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
}

.hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 24px auto 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: var(--pearl);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.ghost {
  border-color: rgba(255, 253, 248, 0.78);
  color: var(--pearl);
}

.intro,
.video-teaser,
.villa-detail,
.amenities,
.experiences,
.faq,
.contact {
  padding: 64px 0;
}

.page-hero {
  padding: 154px 0 74px;
  background: var(--ivory);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 8vw, 118px);
  font-weight: 500;
  line-height: 0.96;
}

.page-hero p:last-child {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(30, 30, 27, 0.72);
  font-size: 18px;
}

.moments,
.gallery,
.location,
.rates {
  padding: 66px 0;
  background: var(--ivory);
}

.location {
  padding-bottom: 42px;
}

.rates {
  padding-top: 42px;
}

.villa-detail {
  padding-bottom: 52px;
}

.experiences {
  padding-top: 52px;
}

.video-teaser {
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--pearl);
  text-align: center;
}

.video-media {
  background:
    linear-gradient(180deg, rgba(47, 42, 36, 0.08), rgba(47, 42, 36, 0.42)),
    radial-gradient(circle at 50% 42%, rgba(185, 213, 216, 0.62), transparent 28%),
    linear-gradient(135deg, #faf9f6 0 26%, #e8dccf 26% 42%, #6faeb8 42% 72%, #a77c52 72%);
}

.video-content {
  position: relative;
  width: min(820px, calc(100% - 40px));
}

.video-content h2 {
  font-size: clamp(44px, 6vw, 88px);
}

.video-content p:last-child {
  max-width: 560px;
  margin: 24px auto 0;
  color: rgba(255, 253, 248, 0.82);
}

.play-button {
  display: inline-grid;
  width: 86px;
  height: 86px;
  margin-top: 34px;
  place-items: center;
  border: 1px solid rgba(255, 253, 248, 0.78);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.12);
  color: var(--pearl);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.play-button span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid currentColor;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 0.9fr;
  gap: 46px;
  align-items: start;
}

.intro h2,
.section-heading h2,
.split h2,
.booking-grid h2,
.contact-grid h2 {
  font-size: clamp(42px, 5vw, 76px);
}

.intro p:last-child,
.split p,
.section-heading p,
.booking-grid p,
.contact-grid p {
  color: rgba(30, 30, 27, 0.72);
}

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.image-card {
  background: var(--pearl);
}

.image-card > div:last-child {
  padding: 28px;
}

.image-card h3,
.amenities-grid h3,
.editorial-grid h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
}

.placeholder {
  display: block;
  min-height: 340px;
  background:
    linear-gradient(180deg, rgba(30, 30, 27, 0), rgba(30, 30, 27, 0.18)),
    linear-gradient(135deg, var(--stone), var(--ivory) 42%, var(--palm) 43%, var(--olive) 58%, var(--aqua));
  background-size: cover;
}

.villa-one { background: linear-gradient(135deg, #e8dccf 0 34%, #faf9f6 34% 58%, #cdb89f 58% 72%, #6faeb8 100%); }
.villa-two { background: linear-gradient(150deg, #e6dac8 0 28%, #faf9f6 28% 62%, #a77c52 62% 64%, #e8dccf 64% 82%, #b9d5d8 82%); }
.pool { background: linear-gradient(135deg, #f4f1ea 0 30%, #b9d5d8 30% 58%, #6faeb8 58% 72%, #e8dccf 72%); }
.beach { background: linear-gradient(180deg, #b9d5d8 0 48%, #faf9f6 48% 62%, #e8dccf 62% 76%, #cdb89f 76%); }
.terrace { background: linear-gradient(135deg, #faf9f6 0 32%, #e8dccf 32% 52%, #a77c52 52% 56%, #cdb89f 56% 72%, #b9d5d8 72%); }
.garden { background: linear-gradient(135deg, #6f7d63, #cdb89f 38%, #faf9f6 39% 72%, #e8dccf); }
.dining { background: linear-gradient(135deg, #a77c52, #e6dac8 36%, #faf9f6 37% 68%, #b9d5d8); }
.ocean { background: linear-gradient(135deg, #6faeb8, #b9d5d8 58%, #faf9f6 59% 72%, #e8dccf); }
.wellness { background: linear-gradient(135deg, #faf9f6, #e8dccf 46%, #cdb89f 47% 70%, #b9d5d8); }
.bedroom { background: linear-gradient(135deg, #faf9f6 0 30%, #e8dccf 30% 48%, #f4f1ea 48% 68%, #cdb89f 68% 78%, #a77c52); }
.games { background: linear-gradient(135deg, #e8dccf 0 24%, #faf9f6 24% 44%, #a77c52 44% 52%, #b9d5d8 52% 76%, #cdb89f); }

.split,
.booking-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.booking-grid {
  align-items: start;
}

.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.detail-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 28px 0;
  list-style: none;
}

.award-note {
  display: inline-grid;
  gap: 4px;
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 3px solid var(--teal);
  background: rgba(125, 204, 208, 0.14);
}

.award-note a {
  display: inherit;
  gap: inherit;
}

.award-note span {
  color: var(--olive);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.award-note strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
}

.detail-list li {
  border-top: 1px solid var(--stone);
  padding-top: 10px;
}

.detail-list.compact {
  margin: 24px 0 0;
}

.detail-list.compact li {
  color: rgba(30, 30, 27, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.text-link {
  color: var(--teal);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.booking-note {
  margin-top: 20px;
}

.feature-frame {
  padding: 18px;
  border: 1px solid var(--stone);
}

.feature-frame .placeholder {
  min-height: 620px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  border: 0;
  padding: 0;
  cursor: zoom-in;
  overflow: hidden;
  background: transparent;
}

.gallery-item span {
  width: 100%;
  height: 100%;
  min-height: 100%;
  transition: transform 500ms ease;
}

.gallery-item:hover span {
  transform: scale(1.04);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.extra {
  display: none;
}

.gallery-grid.expanded .gallery-item.extra {
  display: block;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

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

.amenities-grid article,
.shot-grid article {
  min-height: 210px;
  padding: 24px 26px;
  border-top: 1px solid var(--stone);
  background: rgba(247, 243, 236, 0.54);
}

.amenity-icon,
.shot-grid span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--teal);
  line-height: 1;
}

.amenity-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.shot-grid span {
  display: block;
  width: auto;
  height: auto;
  font-family: var(--serif);
  font-size: 24px;
}

.amenities-grid h3 {
  font-size: 27px;
}

.amenities-grid p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.shot-grid h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
}

.note-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--stone);
}

.note-list article {
  padding: 24px 0;
  border-bottom: 1px solid var(--stone);
}

.note-list h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
}

.note-list p {
  margin: 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 70px;
  align-items: start;
}

.faq-grid h2 {
  font-size: clamp(42px, 5vw, 72px);
}

.faq-grid > div:first-child p:last-child {
  color: rgba(30, 30, 27, 0.72);
}

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--stone);
}

.faq-list article {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--stone);
}

.faq-list h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.08;
}

.faq-list p {
  margin: 0;
  color: rgba(30, 30, 27, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.faq-page + .faq-page {
  padding-top: 0;
}

.faq-secondary-action {
  margin-left: 10px;
}

.editorial-grid article {
  display: grid;
  gap: 18px;
}

.editorial-grid .placeholder {
  min-height: 390px;
}

.map-wrap {
  min-height: 520px;
  border: 1px solid var(--stone);
  padding: 14px;
  background: var(--pearl);
}

.map-wrap iframe {
  width: 100%;
  height: 520px;
  border: 0;
  filter: saturate(0.75) contrast(0.95);
}

.booking-form,
.contact-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: var(--pearl);
  box-shadow: var(--shadow);
}

.openclaw-widget {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--stone);
  background: var(--ivory);
}

.openclaw-widget .eyebrow {
  margin-bottom: 0;
}

.openclaw-widget p:last-child {
  margin: 0;
  color: rgba(30, 30, 27, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.calendar-preview {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(205, 184, 159, 0.75);
  background: var(--pearl);
}

.calendar-preview span {
  color: rgba(47, 42, 36, 0.52);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-preview i {
  aspect-ratio: 1;
  border: 1px solid var(--stone);
  background: rgba(232, 220, 207, 0.52);
}

.calendar-preview i.open {
  background: rgba(185, 213, 216, 0.58);
  border-color: rgba(111, 174, 184, 0.58);
}

.calendar-preview i.held {
  background: rgba(167, 124, 82, 0.34);
  border-color: rgba(167, 124, 82, 0.48);
}

label {
  display: grid;
  gap: 7px;
  color: rgba(30, 30, 27, 0.72);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--stone);
  background: var(--pearl);
  color: var(--ink);
  padding: 13px 14px;
  outline: 0;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  border: 1px solid var(--stone);
  padding: 9px 12px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-line,
.contact-line a {
  color: var(--olive);
  font-weight: 700;
}

.site-footer {
  padding: 52px 0;
  background: var(--oat);
  color: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}

.footer-signature {
  display: inline-grid;
  justify-items: center;
  width: fit-content;
}

.footer-signature p {
  margin: 18px 0 0;
  color: rgba(47, 42, 36, 0.72);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  font-size: 13px;
}

.footer-contact {
  justify-self: end;
  display: grid;
  gap: 4px;
  text-align: right;
  color: rgba(47, 42, 36, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

.footer-contact p {
  margin: 0;
}

.footer-contact a {
  color: var(--olive);
  font-weight: 700;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 30px;
  background: rgba(30, 30, 27, 0.88);
  color: var(--pearl);
}

.lightbox.open {
  display: grid;
}

.lightbox button {
  position: absolute;
  top: 22px;
  right: 28px;
  border: 0;
  background: transparent;
  color: var(--pearl);
  cursor: pointer;
  font-size: 42px;
}

.lightbox-image {
  width: min(1000px, 90vw);
  height: min(660px, 72vh);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.lightbox p {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 28px;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 18px 22px;
  }

  .menu-button {
    display: inline-grid;
    gap: 7px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
  }

  .menu-button span {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 18px 22px 28px;
    background: var(--pearl);
    color: var(--ink);
  }

  .main-nav.open {
    display: grid;
  }

  .main-nav a {
    padding: 12px 0;
    border-top: 1px solid var(--stone);
  }

  .header-cta {
    display: none;
  }

  .intro-grid,
  .split,
  .booking-grid,
  .contact-grid,
  .reverse {
    grid-template-columns: 1fr;
  }

  .card-grid.three,
  .amenities-grid,
  .shot-grid,
  .editorial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: 92svh;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .intro,
  .video-teaser,
  .villa-detail,
  .amenities,
  .experiences,
  .faq,
  .contact,
  .moments,
  .gallery,
  .location,
  .rates {
    padding: 42px 0;
  }

  .page-hero {
    padding: 124px 0 46px;
  }

  .page-hero p:last-child {
    font-size: 16px;
  }

  .villa-detail {
    padding-bottom: 36px;
  }

  .experiences {
    padding-top: 36px;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .card-grid.three,
  .shot-grid,
  .editorial-grid,
  .faq-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .faq-list article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .faq-list h3 {
    font-size: 25px;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .amenities-grid article {
    min-height: 0;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 0 16px;
    align-items: start;
    padding: 18px 0;
    border-top: 1px solid var(--stone);
    background: transparent;
  }

  .amenity-icon {
    grid-row: span 2;
    margin: 4px 0 0;
  }

  .amenity-icon svg {
    width: 25px;
    height: 25px;
    stroke-width: 1.8;
  }

  .amenities-grid h3 {
    margin-bottom: 4px;
    font-size: 25px;
  }

  .amenities-grid p {
    font-size: 14px;
    line-height: 1.5;
  }

  .gallery-grid {
    grid-auto-rows: 280px;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: span 1;
    grid-column: span 1;
  }

  .feature-frame .placeholder,
  .map-wrap,
  .map-wrap iframe {
    min-height: 420px;
    height: 420px;
  }

  .booking-form,
  .contact-form {
    padding: 18px;
  }

  .faq-secondary-action {
    margin: 12px 0 0;
  }

  .site-footer nav {
    display: grid;
  }

  .footer-contact {
    justify-self: start;
    text-align: left;
  }
}
