:root {
  --ivory: #f4efe6;
  --soft-white: #fffdf8;
  --charcoal: #24211e;
  --timber: #624a3a;
  --stone: #d8cdbe;
  --muted: #6f665e;
  --line: rgba(36, 33, 30, 0.22);
  --content: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-space: clamp(5rem, 9vw, 8rem);
  --focus: #0b63ce;
  --focus-dark: #ffd980;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.hero :focus-visible,
.booking-section :focus-visible,
.amenities-section :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--focus-dark);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  background: var(--soft-white);
  color: var(--charcoal);
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 5.25rem;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(255, 253, 248, 0.35);
  color: var(--soft-white);
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  border-color: var(--line);
  background: rgba(244, 239, 230, 0.98);
  color: var(--charcoal);
}

.wordmark {
  width: max-content;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.brand-logo {
  display: block;
  width: 7.5rem;
  height: 5rem;
  object-fit: contain;
}

.site-header.is-scrolled .brand-logo,
.site-header.menu-open .brand-logo,
.site-footer .brand-logo {
  filter: brightness(0);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1.1rem, 2.5vw, 2.25rem);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.4rem;
}

.menu-button {
  display: none;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0.125rem;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.header-cta {
  border-color: rgba(255, 253, 248, 0.65);
  background: rgba(36, 33, 30, 0.18);
  color: var(--soft-white);
}

.header-cta:hover {
  background: var(--soft-white);
  color: var(--charcoal);
}

.site-header.is-scrolled .header-cta,
.site-header.menu-open .header-cta {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--soft-white);
}

.button-light {
  background: var(--soft-white);
  color: var(--charcoal);
}

.button-light:hover {
  background: var(--stone);
}

.button-dark {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--soft-white);
}

.button-dark:hover {
  border-color: var(--timber);
  background: var(--timber);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: max(44rem, 96dvh);
  overflow: hidden;
  background: var(--charcoal);
  color: var(--soft-white);
}

.hero-poster,
.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-poster {
  object-fit: cover;
  object-position: 52% center;
  animation: hero-settle 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-video {
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
}

.hero-video.has-frame {
  opacity: 1;
}

.hero-video-toggle {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .5rem .9rem;
  border: 1px solid rgba(255, 253, 248, .65);
  border-radius: .125rem;
  background: rgba(36, 33, 30, .8);
  color: var(--soft-white);
  font: inherit;
  font-size: .75rem;
  cursor: pointer;
}

.hero-video-toggle[hidden] { display: none; }
.hero-video-toggle:hover { background: var(--charcoal); }
.hero-video-toggle:focus-visible { outline: 3px solid var(--soft-white); outline-offset: 4px; box-shadow: 0 0 0 6px var(--charcoal); }

.hero-shade {
  background: linear-gradient(180deg, rgba(20, 17, 14, 0.25) 0%, rgba(20, 17, 14, 0.04) 40%, rgba(20, 17, 14, 0.76) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(46rem, calc(100% - (var(--gutter) * 2)));
  margin: 0 var(--gutter) clamp(4.5rem, 9vh, 7rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--timber);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--soft-white);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-weight: 500;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.8rem, 7.5vw, 7.5rem);
  line-height: 0.9;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.65rem, 5vw, 5rem);
  line-height: 0.98;
}

.hero-content > p:not(.eyebrow) {
  margin: 0;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.35rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-weight: 600;
}

.media-label {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 1.25rem;
  margin: 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.media-label-hero {
  bottom: 4.9rem;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-section,
.location-section {
  padding: var(--section-space) var(--gutter);
}

.story-copy,
.story-media,
.gallery-heading,
.gallery-meta,
.amenities-section > *,
.location-section,
.site-footer {
  width: min(100%, var(--content));
  margin-right: auto;
  margin-left: auto;
}

.story-section {
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
}

.story-copy {
  display: grid;
  grid-template-columns: minmax(9rem, 0.42fr) minmax(0, 1.2fr);
  column-gap: clamp(2rem, 7vw, 7rem);
  margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.story-copy .eyebrow {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-top: 0.5rem;
}

.story-copy h2,
.story-text {
  grid-column: 2;
}

.story-copy h2 {
  margin-bottom: 1.5rem;
}

.story-text {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.2rem);
}

.story-media {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(15rem, 0.58fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: end;
}

figure {
  margin: 0;
}

.story-media figure {
  position: relative;
}

.story-wide img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.story-detail {
  transform: translateY(clamp(1.5rem, 4vw, 4rem));
}

.story-detail img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 38% center;
}

.story-media figcaption {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.28rem 0.45rem;
  background: rgba(36, 33, 30, 0.78);
  color: var(--soft-white);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
}

.gallery-section {
  overflow: hidden;
  padding: clamp(5rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
  background: var(--soft-white);
}

.gallery-heading {
  display: grid;
  grid-template-columns: minmax(9rem, 0.42fr) minmax(0, 1.2fr);
  column-gap: clamp(2rem, 7vw, 7rem);
  padding: 0 var(--gutter);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.gallery-heading .eyebrow {
  padding-top: 0.5rem;
}

.gallery-heading h2 {
  margin-bottom: 0.75rem;
}

.gallery-heading div > p {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
}

.gallery-track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  width: 100%;
  padding-right: var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--content)) / 2));
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--content)) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 min(82vw, 1080px);
  scroll-snap-align: start;
}

.image-button {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--stone);
  cursor: zoom-in;
}

.image-button img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.image-button:hover img {
  transform: scale(1.012);
}

.gallery-slide figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.media-error {
  display: none;
  min-height: 12rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid var(--line);
}

.gallery-slide.has-error .image-button,
.gallery-slide.has-error figcaption {
  display: none;
}

.gallery-slide.has-error .media-error {
  display: flex;
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 0 var(--gutter);
  margin-top: 1.5rem;
}

.gallery-guidance,
.gallery-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.gallery-count {
  font-variant-numeric: tabular-nums;
}

.gallery-buttons {
  display: flex;
  gap: 0.75rem;
}

.round-button,
.lightbox-nav {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.round-button:hover:not(:disabled) {
  background: var(--charcoal);
  color: var(--soft-white);
}

.round-button:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.amenities-section {
  padding: var(--section-space) max(var(--gutter), calc((100vw - var(--content)) / 2));
  background: var(--charcoal);
  color: var(--soft-white);
}

.amenities-heading {
  display: grid;
  grid-template-columns: minmax(9rem, 0.42fr) minmax(0, 1.2fr);
  column-gap: clamp(2rem, 7vw, 7rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.amenities-heading .eyebrow {
  padding-top: 0.5rem;
}

.amenities-heading h2 {
  margin-bottom: 0;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 253, 248, 0.28);
  border-left: 1px solid rgba(255, 253, 248, 0.28);
  list-style: none;
}

.amenities-grid li {
  display: flex;
  min-width: 0;
  min-height: 9rem;
  align-items: center;
  gap: 1.1rem;
  padding: 1.5rem;
  border-right: 1px solid rgba(255, 253, 248, 0.28);
  border-bottom: 1px solid rgba(255, 253, 248, 0.28);
}

.amenities-grid svg {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: var(--stone);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.amenities-grid span {
  font-size: 0.92rem;
  line-height: 1.4;
}

.location-section {
  display: grid;
  grid-template-columns: 1.1fr minmax(22rem, 0.8fr);
  gap: clamp(3rem, 10vw, 10rem);
  align-items: end;
}

.location-heading h2 {
  margin-bottom: 0;
}

.location-address {
  padding-bottom: 0.5rem;
}

.location-address address {
  margin-bottom: 1.75rem;
  font-style: normal;
}

.location-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--charcoal);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.text-link:hover {
  color: var(--timber);
}

.copy-status {
  min-height: 1.5rem;
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
}

.booking-section {
  position: relative;
  display: flex;
  min-height: max(38rem, 78dvh);
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--soft-white);
}

.booking-section > img,
.booking-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.booking-section > img {
  object-fit: cover;
}

.booking-shade {
  background: linear-gradient(180deg, rgba(25, 21, 18, 0.08), rgba(25, 21, 18, 0.78));
}

.booking-copy {
  position: relative;
  z-index: 2;
  width: min(48rem, calc(100% - (var(--gutter) * 2)));
  margin: 0 var(--gutter) clamp(4rem, 9vh, 7rem);
}

.booking-copy > p:not(.eyebrow) {
  max-width: 36rem;
}

.booking-copy .button {
  margin-top: 1.25rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: 2.5rem var(--gutter);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.site-footer > a:not(.wordmark) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.copyright {
  color: var(--muted);
}

.developer-credit {
  grid-column: 1 / -1;
  justify-self: end;
  color: var(--muted);
  font-size: 0.72rem;
}

.developer-credit a {
  color: var(--charcoal);
  font-weight: 600;
  text-underline-offset: 0.25rem;
}

.lightbox {
  width: min(94vw, 1280px);
  max-width: none;
  max-height: 94dvh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--soft-white);
}

.lightbox::backdrop {
  background: rgba(18, 16, 14, 0.95);
}

.lightbox-inner {
  display: grid;
  gap: 0.75rem;
}

.lightbox-toolbar {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
}

.lightbox-count,
.lightbox-inner > p {
  margin: 0;
  color: var(--stone);
  font-size: 0.82rem;
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(74dvh, 760px);
}

.lightbox-stage img {
  width: 100%;
  max-height: 78dvh;
  object-fit: contain;
}

.lightbox-close {
  min-width: 3rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--soft-white);
  font-weight: 600;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  border-color: rgba(255, 253, 248, 0.8);
  background: rgba(36, 33, 30, 0.58);
  transform: translateY(-50%);
}

.lightbox-nav:hover {
  background: var(--soft-white);
  color: var(--charcoal);
}

.lightbox-previous {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.js .reveal,
.js .reveal-media {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js .reveal-media {
  transition-duration: 700ms;
}

.js .reveal.is-visible,
.js .reveal-media.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.no-js .menu-button,
.no-js .gallery-controls,
.no-js .gallery-guidance,
.no-js .copy-address,
.no-js .copy-status,
.no-js .lightbox-nav {
  display: none;
}

@keyframes hero-settle {
  from { opacity: 0.75; transform: scale(1.015); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 980px) {
  .story-media {
    grid-template-columns: minmax(0, 1.3fr) minmax(14rem, 0.7fr);
  }

  .amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-section {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }

  .site-footer {
    grid-template-columns: 1fr auto auto;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --section-space: clamp(4rem, 15vw, 5.5rem);
  }

  html {
    scroll-padding-top: 4.75rem;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    min-height: 4.5rem;
    column-gap: 0.35rem;
  }

  .brand-logo {
    width: 6rem;
    height: 4rem;
  }

  .menu-button {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
    min-width: 3.25rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.45rem;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0 1.25rem;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--line);
  }

  .js .site-nav {
    display: none;
  }

  .js .site-header.menu-open .site-nav {
    display: flex;
  }

  .header-cta {
    grid-column: 3;
    grid-row: 1;
    min-height: 2.75rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.72rem;
  }

  .hero {
    min-height: max(39rem, 92svh);
  }

  .hero-poster {
    object-position: 54% center;
  }

  .hero-video-toggle { bottom: 1rem; }

  .hero-content {
    margin-bottom: 5.5rem;
  }

  h1 {
    font-size: clamp(3.25rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.45rem, 11vw, 3.9rem);
  }

  .scroll-cue {
    left: var(--gutter);
    right: auto;
  }

  .media-label-hero {
    right: var(--gutter);
    bottom: 1.8rem;
  }

  .story-copy,
  .gallery-heading,
  .amenities-heading {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .story-copy .eyebrow,
  .story-copy h2,
  .story-text {
    grid-column: 1;
    grid-row: auto;
  }

  .story-copy .eyebrow,
  .gallery-heading .eyebrow,
  .amenities-heading .eyebrow {
    padding-top: 0;
  }

  .story-copy {
    margin-bottom: 2.5rem;
  }

  .story-copy h2 {
    margin-bottom: 1.1rem;
  }

  .story-media {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .story-wide img {
    aspect-ratio: 4 / 3;
  }

  .story-detail {
    width: 70%;
    margin-left: auto;
    transform: none;
  }

  .gallery-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .gallery-heading {
    margin-bottom: 2.25rem;
  }

  .gallery-slide {
    flex-basis: 82vw;
  }

  .image-button img {
    aspect-ratio: 4 / 3;
  }

  .gallery-slide figcaption {
    flex-direction: column;
    gap: 0.1rem;
  }

  .gallery-meta {
    align-items: flex-end;
  }

  .gallery-guidance {
    max-width: 10rem;
  }

  .amenities-heading {
    margin-bottom: 2.5rem;
  }

  .amenities-grid li {
    min-height: 7.5rem;
    padding: 1.15rem;
  }

  .location-section {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .booking-section {
    min-height: max(35rem, 74svh);
  }

  .booking-section > img {
    object-position: 58% center;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .site-footer > p:nth-child(2),
  .site-footer > a:not(.wordmark) {
    justify-self: end;
    text-align: right;
  }

  .site-footer > a:not(.wordmark) {
    grid-column: 2;
  }

  .copyright {
    grid-column: 1;
  }

  .developer-credit {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }

  .lightbox {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
    background: rgba(18, 16, 14, 0.96);
  }

  .lightbox-inner {
    min-height: 100%;
    grid-template-rows: auto 1fr auto;
  }

  .lightbox-stage {
    min-height: 0;
  }

  .lightbox-stage img {
    max-height: 72dvh;
  }

  .lightbox-nav {
    top: auto;
    bottom: 0.75rem;
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .hero-actions .hero-link {
    width: 100%;
    justify-content: center;
  }

  .gallery-meta {
    gap: 1rem;
  }

  .gallery-controls {
    gap: 0.8rem;
  }

  .location-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .location-actions .button,
  .location-actions .text-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding-right: 0.85rem;
    padding-left: 0.85rem;
  }

  .wordmark {
    font-size: 1rem;
  }

  .menu-button {
    min-width: 2.9rem;
  }

  .header-cta {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-track { position: relative; cursor: grab; }
.gallery-track.is-marquee { scroll-behavior: auto; scroll-snap-type: none; }
.gallery-play { min-width: 2.75rem; min-height: 2.75rem; border: 0; padding: .35rem; background: transparent; color: var(--charcoal); font: inherit; font-size: .75rem; cursor: pointer; }
.gallery-play:hover { text-decoration: underline; text-underline-offset: .25rem; }
.no-js .gallery-play { display: none; }
@media (max-width: 480px) {
  .gallery-guidance { max-width: 8rem; font-size: .7rem; }
  .gallery-buttons { gap: .4rem; }
  .gallery-controls { gap: .4rem; }
}
.gallery-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.gallery-track.is-dragging a { pointer-events: none; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1.5rem;
  padding: 1.5rem var(--gutter);
}
.site-footer .copyright, .site-footer .developer-credit { grid-column: auto; justify-self: auto; }
.site-footer .developer-credit { font-size: .72rem; }

body { padding-bottom: 5rem; }
.booking-dock {
  position: fixed;
  z-index: 30;
  left: max(10.25rem, var(--gutter), calc((100vw - 960px) / 2));
  right: max(var(--gutter), calc((100vw - 960px) / 2));
  bottom: 1rem;
  background: var(--soft-white);
  color: var(--charcoal);
  box-shadow: 0 3px 18px rgba(20,17,14,.12);
}
.booking-search { display: grid; grid-template-columns: 1fr 1fr .85fr 1fr; min-height: 3.75rem; }
.booking-search label { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: .4rem 1rem; border-right: 1px solid var(--line); gap: .05rem; }
.booking-search label > span { font-size: .58rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--timber); }
.booking-search input, .booking-search select { width: 100%; min-width: 0; min-height: 1.75rem; border: 0; border-radius: 0; padding: 0; background: transparent; color: var(--charcoal); font: inherit; font-size: .8rem; color-scheme: light; }
.booking-submit { border: 0; background: var(--timber); color: var(--soft-white); font-size: .85rem; font-weight: 600; cursor: pointer; min-height: 2.75rem; }
.booking-submit:hover { background: var(--charcoal); }
.whatsapp-float {
  position: fixed;
  z-index: 31;
  left: max(1rem, env(safe-area-inset-left));
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.75rem;
  padding: .7rem 1rem;
  border: 1px solid var(--stone);
  border-radius: .5rem;
  background: var(--timber);
  color: var(--soft-white);
  box-shadow: 0 3px 14px rgba(20, 17, 14, .18);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.whatsapp-float svg { flex: 0 0 1.4rem; width: 1.4rem; height: 1.4rem; fill: currentColor; }
.whatsapp-float:hover, .whatsapp-float:active { background: var(--charcoal); }
.whatsapp-float:focus-visible { outline: 3px solid var(--soft-white); outline-offset: 3px; box-shadow: 0 0 0 7px var(--charcoal); }
.booking-toggle { display: none; }
.booking-preview { width: min(34rem, calc(100vw - 2rem)); padding: clamp(1.5rem, 4vw, 3rem); border: 0; background: var(--ivory); color: var(--charcoal); }
.booking-preview::backdrop { background: rgba(20,17,14,.65); }
.booking-preview h2 { font-size: 2.5rem; margin-top: 2rem; }
.booking-preview > .text-link { display: flex; margin-left: auto; font-size: .8rem; }
.booking-preview-note { font-size: .9rem; color: var(--muted); }
.booking-preview .button { margin-top: 1rem; }

@media (max-width: 760px) {
  body { padding-bottom: 4.5rem; }
  .booking-dock { left: max(5rem, calc(env(safe-area-inset-left) + 4rem)); right: 1rem; bottom: max(.75rem, env(safe-area-inset-bottom)); }
  .booking-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 2.9rem; border: 0; padding: .5rem .85rem; background: var(--timber); color: var(--soft-white); font-size: .8rem; font-weight: 600; cursor: pointer; }
  .js .booking-search { display: none; }
  .booking-dock.is-open .booking-search, .no-js .booking-search { display: grid; grid-template-columns: 1fr 1fr; }
  .booking-search label { padding: .45rem .85rem; min-height: 3.75rem; border-bottom: 1px solid var(--line); }
  .booking-search label:nth-child(3) { grid-column: 1 / -1; }
  .booking-submit { min-height: 2.9rem; grid-column: 1 / -1; }
  .whatsapp-float { width: 3rem; min-height: 2.9rem; bottom: max(.75rem, env(safe-area-inset-bottom)); justify-content: center; padding: .65rem; }
  .whatsapp-float > span { display: none; }
  .site-footer { gap: .5rem 1rem; }
  .footer-location { margin-left: auto; }
  .site-footer > a:not(.wordmark) { grid-column: auto; justify-self: auto; text-align: left; }
  .site-footer .copyright { margin-left: auto; }
  .site-footer .developer-credit { width: 100%; text-align: left; }
}

.location-banner .booking-shade {
  background:
    linear-gradient(90deg, rgba(25, 21, 18, .78) 0%, rgba(25, 21, 18, .6) 29%, rgba(25, 21, 18, .18) 62%, rgba(25, 21, 18, .04) 100%),
    linear-gradient(0deg, rgba(25, 21, 18, .3), transparent 50%);
}
.location-banner .booking-copy { width: min(38rem, calc(100% - (var(--gutter) * 2))); }
.location-banner .eyebrow { margin-bottom: .8rem; }
.location-banner h2 { margin-bottom: 1.15rem; font-size: clamp(2.65rem, 4vw, 4rem); }
.location-banner address { margin: 0; font-style: normal; font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.5; }
.location-banner-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.45rem; }
.location-banner-actions .button { width: 10.5rem; margin-top: 0; }
.button-outline-light { border: 1px solid var(--soft-white); background: transparent; color: var(--soft-white); }
.button-outline-light:hover { background: var(--soft-white); color: var(--charcoal); }
@media (max-width: 760px) {
  .location-banner .booking-shade {
    background: linear-gradient(90deg, rgba(25, 21, 18, .78), rgba(25, 21, 18, .35) 70%, rgba(25, 21, 18, .16));
  }
  .location-banner h2 { font-size: clamp(2.45rem, 10vw, 3.2rem); }
}
@media (max-width: 480px) {
  .location-banner-actions { flex-wrap: nowrap; gap: .6rem; }
  .location-banner-actions .button { width: min(50%, 10.5rem); padding-inline: .55rem; font-size: .78rem; }
}
.villa-details { width: min(100%, var(--content)); margin: 2rem auto 0; font-size: .9rem; }
.villa-details p { max-width: 54rem; margin: .65rem 0; }
.villa-details .villa-summary { max-width: none; font-weight: 600; font-size: 1rem; }
.visualisation-note { margin: 1rem var(--gutter) 0; color: var(--muted); font-size: .75rem; }
.amenities-note { margin-top: 1.25rem; margin-bottom: 0; color: var(--stone); font-size: .85rem; }
.stay-info { width: min(100%, var(--content)); margin: auto; padding: clamp(3rem, 5vw, 4.5rem) var(--gutter); display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.stay-info h2 { font-size: clamp(2rem, 3vw, 3rem); }
.stay-info details { border-bottom: 1px solid var(--line); }
.stay-info summary { min-height: 3rem; padding: .75rem 0; font-size: .9rem; font-weight: 600; cursor: pointer; }
.stay-info details p { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; }
.guest-field { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: .4rem 1rem; border-right: 1px solid var(--line); }
.guest-field > span { font-size: .58rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--timber); }
.guest-toggle { min-height: 1.75rem; padding: 0; border: 0; text-align: left; background: transparent; color: var(--charcoal); font: inherit; font-size: .8rem; cursor: pointer; }
.guest-panel { position: absolute; bottom: calc(100% + .5rem); right: 0; width: min(26rem, 100%); max-height: 50dvh; overflow-y: auto; padding: 1rem; background: var(--soft-white); box-shadow: 0 3px 18px rgba(20,17,14,.16); }
.guest-panel[hidden], .guest-panel label[hidden] { display: none; }
.booking-search .guest-panel label { padding: .5rem 0; border-right: 0; }
.guest-panel p { margin: .75rem 0; font-size: .75rem; }
.guest-panel .text-link { font-size: .8rem; }
.booking-submit { padding: .4rem .75rem; line-height: 1.3; }
.hero-content h1.hero-title-enquiry { font-size: clamp(2.5rem, 5.4vw, 5.5rem); }
.site-footer { column-gap: 1rem; }
.site-footer > a { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .stay-info { grid-template-columns: 1fr; gap: .75rem; }
  .stay-info h2 { margin-bottom: .5rem; }
  .villa-details { margin-top: 1.5rem; }
  .booking-search .guest-field { grid-column: 1 / -1; min-height: 3.75rem; padding: .45rem .85rem; border-bottom: 1px solid var(--line); }
  .guest-panel { right: 0; }
  .header-cta { max-width: 9rem; font-size: .72rem; line-height: 1.3; text-align: center; }
  .hero-content h1.hero-title-enquiry { font-size: clamp(2rem, 8.4vw, 3.5rem); }
}

/* Revision 5: photography leads; motion supports the architectural story. */
.hero-content {
  width: calc(100% - var(--gutter) * 2);
  margin-bottom: clamp(6rem, 12vh, 9rem);
}

.hero-content h1 {
  max-width: 100%;
  width: min(100%, 1120px);
  font-size: clamp(4rem, 9.8vw, 9.5rem);
  line-height: 1.04;
  margin-bottom: 2rem;
}

.title-line { display: block; overflow: clip; padding-bottom: 0.08em; }
.title-line > span { display: block; }
.hero-content .title-line:nth-child(2) { margin-left: 18%; }
.hero-content .title-line:first-child { transform: translateX(var(--hero-drift, 0px)); }
.hero-content .title-line:nth-child(2) { transform: translateX(calc(var(--hero-drift, 0px) * -1)); }
.hero-content > p:not(.eyebrow), .hero-actions { margin-left: 48%; }
.hero-content > p:not(.eyebrow) { font-size: 1rem; }
.hero-actions { gap: 0.6rem 1.25rem; margin-top: 1.3rem; }
.hero-shade { background: linear-gradient(180deg, rgba(20,17,14,.34), rgba(20,17,14,.22) 40%, rgba(20,17,14,.78)); }

.story-section { padding-top: clamp(4rem, 7vw, 7rem); padding-bottom: 2rem; }
.story-copy { grid-template-columns: .32fr 1fr; margin-bottom: 3rem; }
.story-copy h2 { font-size: clamp(2.4rem, 4.2vw, 4.5rem); }
.story-text { max-width: 35rem; }
.story-media { grid-template-columns: minmax(0, 1.8fr) minmax(0, .65fr); gap: clamp(1rem, 4vw, 4rem); align-items: start; padding-bottom: 2rem; }
.story-media figure { overflow: clip; }
.story-wide { aspect-ratio: 16 / 11; }
.story-detail { aspect-ratio: 3 / 4; margin-top: 22%; transform: none; }
.story-media figure img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--photo-y, 0px)) scale(1.08); }
.story-media .reveal-media { transform: none; }
.story-media .reveal-media.is-visible { transform: none; }
.gallery-section { background: var(--ivory); border-top: 0; padding-top: clamp(2rem, 4vw, 4rem); padding-bottom: clamp(4rem, 7vw, 6rem); }
.gallery-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.75rem; gap: 1rem; }
.gallery-heading h2 { font-size: clamp(2rem, 3.2vw, 3.25rem); margin: 0; }
.gallery-heading .eyebrow { margin: 0; }
.gallery-track { padding-left: var(--gutter); scroll-padding-left: var(--gutter); }
.gallery-slide { flex-basis: 86vw; }
.amenities-section { padding-top: clamp(3.5rem, 6vw, 5rem); padding-bottom: clamp(3.5rem, 6vw, 5rem); }
.amenities-heading { margin-bottom: 2rem; align-items: baseline; }
.amenities-heading h2 { font-size: clamp(1.9rem, 3vw, 3rem); }
.amenities-grid li { min-height: 7.5rem; }
.location-section { padding-top: clamp(3.5rem, 6vw, 5rem); padding-bottom: clamp(3.5rem, 6vw, 5rem); }
.location-heading h2 { font-size: clamp(2.4rem, 4vw, 4rem); }

@keyframes line-enter {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero .title-line > span,
  .js .is-visible .title-line > span { animation: line-enter 700ms cubic-bezier(.22,1,.36,1) both; }
  .js .title-line:nth-child(2) > span { animation-delay: 100ms; }
  .hero-actions { animation: line-enter 600ms 180ms cubic-bezier(.22,1,.36,1) both; }
  .js .reveal-media { transition: opacity 900ms ease; }
  .js .amenities-grid li { transition: opacity 550ms ease, transform 550ms ease; }
}

@media (max-width: 760px) {
  .hero-content { margin-bottom: 6rem; }
  .hero-content h1 { font-size: clamp(3rem, 12vw, 5.5rem); line-height: 1.08; }
  .hero-content .title-line:nth-child(2) { margin-left: 0; }
  .hero-content > p:not(.eyebrow), .hero-actions { margin-left: 0; }
  .hero-actions { margin-top: 1.5rem; }
  .story-copy { grid-template-columns: 1fr; margin-bottom: 2rem; }
  .story-copy h2 { font-size: clamp(1.8rem, 7.6vw, 3.3rem); }
  .story-media { grid-template-columns: 1fr; gap: 1rem; padding-bottom: 0; }
  .story-wide { aspect-ratio: 4 / 3; }
  .story-detail { width: 100%; margin: 0; aspect-ratio: 4 / 3; }
  .story-media figure img { transform: none; }
  .gallery-heading { align-items: end; }
  .gallery-heading h2 { font-size: clamp(1.7rem, 7vw, 2.5rem); }
  .gallery-heading .eyebrow { font-size: .65rem; }
  .gallery-slide { flex-basis: 86vw; }
  .amenities-heading { gap: .5rem; }
  .js .hero .title-line > span, .js .is-visible .title-line > span { animation-duration: 450ms; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-clone, .gallery-play { display: none; }
  .story-media figure img { transform: none; }
  .hero-content .title-line { transform: none; }
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal,
  .js .reveal-media {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .header-cta,
  .button,
  .round-button,
  .lightbox-nav,
  .amenities-grid,
  .amenities-grid li {
    border: 1px solid ButtonText;
  }
}
