:root {
  --ink: #17211d;
  --muted: #60716a;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --stone: #d7d0c3;
  --leaf: #185a43;
  --leaf-dark: #0f3f31;
  --water: #0e7b82;
  --sun: #d99f45;
  --line: rgba(23, 33, 29, 0.14);
  --shadow: 0 24px 70px rgba(15, 63, 49, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--sun);
  color: #1e1710;
  padding: 10px 16px;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
  transition: background 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled .brand-mark {
  border-color: rgba(23, 33, 29, 0.36);
}

.site-header.is-scrolled .header-cta {
  border-color: rgba(23, 33, 29, 0.3);
}

.solid-header {
  position: sticky;
  color: #fff;
  background: var(--leaf-dark);
}

.brand,
.nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  font-size: 13px;
  letter-spacing: 0;
}

.nav {
  font-size: 14px;
  font-weight: 650;
}

.nav a,
.footer-links a,
.header-cta {
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.nav a:hover,
.footer-links a:hover,
.header-cta:hover {
  opacity: 0.78;
}

.header-cta {
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 10px 17px;
  font-size: 14px;
  font-weight: 750;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  padding: 120px clamp(18px, 5vw, 72px) 56px;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-pool.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 23, 18, 0.76), rgba(8, 23, 18, 0.36) 48%, rgba(8, 23, 18, 0.15)),
    linear-gradient(0deg, rgba(8, 23, 18, 0.58), rgba(8, 23, 18, 0.05) 42%);
}

.hero-content {
  position: relative;
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sun);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.feature-copy h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 880px;
  font-size: clamp(46px, 8vw, 92px);
}

.hero-copy {
  max-width: 630px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.section-heading,
.footer {
  display: flex;
  gap: 14px;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--sun);
  color: #1e1710;
  box-shadow: 0 14px 34px rgba(217, 159, 69, 0.24);
}

.button-primary:hover {
  background: #e5ad55;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  backdrop-filter: blur(8px);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dark-button {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

.is-hidden {
  display: none;
}

.hero-facts {
  position: relative;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 880px;
  margin-top: 60px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-facts span {
  min-height: 66px;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(8, 23, 18, 0.2);
  text-align: center;
  font-weight: 750;
}

.quick-inquiry input:focus,
.quick-inquiry select:focus,
.booking-form input:focus,
.booking-form select:focus {
  border-color: var(--leaf);
  outline: 3px solid rgba(24, 90, 67, 0.14);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 82px 0;
}

.quick-inquiry {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 36px));
  margin: -34px auto 0;
}

.quick-inquiry-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.trust-strip {
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: -24px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust-strip div {
  min-height: 126px;
  padding: 22px;
  background: #fff;
}

.trust-strip strong,
.amenity-grid strong,
.direct-grid strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}

.trust-strip span,
.amenity-grid span,
.direct-grid p {
  color: var(--muted);
}

.section h2,
.feature-copy h2 {
  font-size: clamp(32px, 4vw, 54px);
}

.intro p:last-child,
.booking p,
.location p,
.feature-list,
.faq p {
  color: var(--muted);
  font-size: 17px;
}

.section-heading {
  max-width: 820px;
  flex-direction: column;
  margin-bottom: 34px;
}

.villa-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.text-link {
  width: max-content;
  color: var(--leaf);
  font-weight: 850;
  border-bottom: 2px solid var(--sun);
}

.villa-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(23, 33, 29, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.villa-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(23, 33, 29, 0.13);
}

.villa-card img {
  height: 260px;
  object-fit: cover;
}

.villa-card-body {
  padding: 20px;
}

.villa-number {
  margin: 0 0 8px;
  color: var(--water);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.villa-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.14;
}

.villa-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.villa-card .text-link {
  display: inline-block;
  margin-top: 16px;
}

.villa-detail-lead {
  max-width: 760px;
}

.villa-detail-lead p {
  color: var(--muted);
  font-size: 17px;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: stretch;
  background: var(--leaf-dark);
  color: #fff;
}

.photo-rail {
  display: grid;
  grid-auto-columns: minmax(280px, 420px);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 0 clamp(18px, 5vw, 72px) 18px;
  scroll-snap-type: x mandatory;
}

.photo-rail img {
  height: 420px;
  object-fit: cover;
  border-radius: 8px;
  scroll-snap-align: start;
}

.feature-band img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.virtual-tour {
  border-bottom: 1px solid var(--line);
}

.tour-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101a17;
  box-shadow: var(--shadow);
}

.tour-frame iframe {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  min-height: 520px;
  border: 0;
}

.amenity-grid,
.direct-grid,
.stay-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.amenity-grid div,
.direct-grid div,
.stay-grid article {
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.stay-grid article {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stay-grid span {
  color: var(--sun);
  font-weight: 900;
}

.stay-grid h3 {
  margin: auto 0 10px;
  font-size: 28px;
  line-height: 1.05;
}

.stay-grid p {
  margin: 0;
  color: var(--muted);
}

.place-section {
  min-height: 520px;
  display: grid;
  align-items: end;
  margin: 18px 0 0;
  padding: clamp(42px, 8vw, 90px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(9, 26, 21, 0.75), rgba(9, 26, 21, 0.28)),
    url("assets/villa-6-8-pool.webp") center / cover;
  color: #fff;
}

.place-inner {
  max-width: 720px;
}

.place-inner h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.02;
}

.place-inner p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.direct {
  border-bottom: 1px solid var(--line);
}

.direct-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.direct-grid p {
  margin: 0;
}

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 33, 29, 0.08);
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  color: var(--leaf);
  font-size: 13px;
  text-transform: uppercase;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.feature-copy {
  align-self: center;
  padding: clamp(40px, 6vw, 82px);
}

.feature-list {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  list-style: none;
}

.feature-list li {
  padding-left: 18px;
  border-left: 3px solid var(--sun);
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.7fr);
  gap: clamp(28px, 5vw, 70px);
}

.booking-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.booking-form .button {
  width: 100%;
  margin-top: 4px;
}

.location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.location .button-secondary {
  margin-top: 12px;
  background: var(--leaf);
  border-color: var(--leaf);
}

.location-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.location-points span {
  min-height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  text-align: center;
  font-weight: 750;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
}

.footer {
  justify-content: space-between;
  align-items: center;
  padding: 30px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer p {
  margin: 4px 0 0;
  color: var(--muted);
}

.footer-links {
  font-weight: 800;
}

.mobile-sticky-cta {
  display: none;
}

.legal-page {
  max-width: 860px;
  padding-top: 72px;
}

.legal-page h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
}

.legal-page h2 {
  margin: 34px 0 8px;
  font-size: 24px;
}

.legal-page p {
  color: var(--muted);
  font-size: 17px;
}

.detail-hero {
  min-height: 74vh;
}

.page-kicker {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.spec {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.spec strong {
  display: block;
  margin-bottom: 4px;
  font-size: 22px;
}

.spec span {
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.photo-mosaic img {
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
}

.photo-mosaic img:first-child {
  grid-column: 1 / -1;
  height: 360px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-facts,
  .villa-grid,
  .faq-grid,
  .trust-strip,
  .amenity-grid,
  .stay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-inquiry-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-inquiry-form .button {
    grid-column: 1 / -1;
  }

  .intro,
  .feature-band,
  .booking,
  .location,
  .two-column {
    grid-template-columns: 1fr;
  }

  .direct-grid {
    grid-template-columns: 1fr;
  }

  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-band img {
    min-height: 360px;
  }

  .tour-frame iframe {
    height: 68vh;
    min-height: 460px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 96vh;
    padding: 96px 18px 36px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-actions .button,
  .booking-form .button {
    width: 100%;
  }

  .hero-facts,
  .villa-grid,
  .faq-grid,
  .location-points,
  .spec-grid,
  .photo-mosaic,
  .trust-strip,
  .amenity-grid,
  .stay-grid,
  .quick-inquiry-form {
    grid-template-columns: 1fr;
  }

  .quick-inquiry {
    margin-top: -20px;
  }

  .photo-rail img {
    height: 320px;
  }

  .photo-mosaic img,
  .photo-mosaic img:first-child {
    grid-column: auto;
    height: 240px;
  }

  .hero-facts span {
    min-height: 52px;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 58px 0;
  }

  .villa-card img {
    height: 230px;
  }

  .feature-copy {
    padding: 34px 18px;
  }

  .tour-frame iframe {
    height: 520px;
    min-height: 520px;
  }

  .booking-form {
    padding: 18px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 88px;
  }

  .mobile-sticky-cta {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 20;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--sun);
    color: #1e1710;
    box-shadow: 0 18px 40px rgba(23, 33, 29, 0.22);
    font-weight: 900;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
