:root {
  --ink: #101715;
  --deep: #0d302b;
  --reef: #0fa3a2;
  --sun: #ffb84d;
  --coral: #ff6f61;
  --paper: #f8f4ec;
  --mist: #d8f0eb;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(8, 23, 20, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.has-lightbox {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(13, 48, 43, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  padding-block: 12px;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
}

.nav {
  justify-self: center;
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.92rem;
  font-weight: 650;
}

.header-cta {
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 10px 16px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  background-image: url("assets/villa-hero.jpg");
  background-size: cover;
  background-position: center 58%;
}

.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 16, 14, 0.84), rgba(5, 16, 14, 0.42) 48%, rgba(5, 16, 14, 0.1)),
    linear-gradient(0deg, rgba(5, 16, 14, 0.86), rgba(5, 16, 14, 0.08) 44%);
}

.hero-content {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto 138px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3.05rem, 8vw, 7.6rem);
  line-height: 0.91;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.05rem, 4.8vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 13px 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  background: var(--sun);
  color: #1e1608;
}

.button.ghost,
.airbnb-button,
.vrbo-button {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.availability-card {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(106px, 1fr));
  gap: 1px;
  width: min(660px, calc(100% - 36px));
  background: rgba(255, 255, 255, 0.32);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.availability-card div {
  min-height: 92px;
  padding: 16px;
  background: rgba(13, 48, 43, 0.74);
}

.availability-card span {
  display: block;
  font-size: 1.55rem;
  font-weight: 950;
}

.availability-card small {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.band {
  padding: clamp(58px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.intro {
  background: var(--deep);
  color: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  max-width: 1220px;
  margin: 0 auto;
}

.intro-grid p,
.location-copy p,
.booking-copy p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
}

.photo-collection {
  padding: clamp(58px, 9vw, 112px) clamp(14px, 4vw, 56px);
  background: #061210;
  color: var(--white);
}

.photo-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  max-width: 1240px;
  margin: 0 auto 24px;
}

.photo-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
}

.filter-button.is-active {
  background: var(--sun);
  border-color: var(--sun);
  color: #1e1608;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, 18vw);
  gap: 12px;
  max-width: 1240px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  min-width: 0;
  min-height: 210px;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #12312d;
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

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

.gallery-item.is-hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: saturate(1.08);
  transform: scale(1.035);
}

.gallery-item span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  background: rgba(8, 23, 20, 0.76);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--paper);
}

.features article,
.stay-grid article {
  padding: clamp(22px, 3vw, 34px);
  background: var(--white);
  min-height: 230px;
}

.icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  place-items: center;
  background: var(--mist);
  color: var(--deep);
  font-size: 0.84rem;
  font-weight: 950;
}

.features p,
.stay-grid p,
.site-footer p,
.form-note {
  color: rgba(16, 23, 21, 0.66);
}

.location-section {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 700px;
  background: #081714;
  color: var(--white);
}

.location-visual {
  min-height: 420px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18)), url("assets/villa-bedroom.jpg");
  background-size: cover;
  background-position: center 42%;
}

.location-copy {
  align-self: center;
  padding: clamp(38px, 7vw, 88px);
}

.distance-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
}

.distance-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 14px;
}

.distance-list dt {
  color: var(--sun);
  font-weight: 950;
}

.distance-list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.section-heading {
  max-width: 880px;
  margin: 0 auto 34px;
  text-align: center;
}

.stay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.booking-confidence {
  background: var(--white);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.channel-grid article {
  min-height: 250px;
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
}

.channel-grid p {
  color: rgba(16, 23, 21, 0.66);
}

.channel-link {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  background: var(--deep);
  color: var(--white);
  font-weight: 900;
}

.booking {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 6vw, 76px);
  align-items: center;
  padding: clamp(58px, 9vw, 120px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(13, 48, 43, 0.96), rgba(12, 83, 85, 0.9)),
    url("assets/villa-pool.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.booking-copy {
  max-width: 570px;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.booking-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  font-weight: 850;
}

.booking-form input,
.booking-form select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
}

.form-button,
.airbnb-button,
.vrbo-button {
  width: 100%;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.64);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-weight: 800;
}

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 44px);
  background: rgba(3, 8, 7, 0.92);
  color: var(--white);
}

.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  width: min(1040px, 100%);
  margin: 0;
}

.lightbox img {
  max-height: min(76vh, 760px);
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox figcaption {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 58px;
  transform: translateY(-50%);
  font-size: 2rem;
}

.lightbox-nav.previous {
  left: 18px;
}

.lightbox-nav.next {
  right: 18px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero-content {
    margin-bottom: 280px;
  }

  .availability-card {
    left: 18px;
    right: 18px;
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .location-section,
  .booking {
    grid-template-columns: 1fr;
  }

  .features,
  .channel-grid,
  .stay-grid {
    grid-template-columns: 1fr;
  }

  .photo-heading {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(190px, 36vw);
  }

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

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header-cta {
    padding: 9px 12px;
    font-size: 0.85rem;
  }

  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: 2.35rem;
    line-height: 0.95;
  }

  .hero-content {
    margin-bottom: 330px;
  }

  .availability-card {
    grid-template-columns: 1fr;
  }

  .booking-form {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(230px, 62vw);
  }

  .gallery-item.feature {
    grid-column: auto;
    grid-row: auto;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .distance-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
