/* =========================================================================
   First Light Villas
   Warm, calm, premium boutique aesthetic.
   ========================================================================= */

:root {
  /* Palette — matches the live site's tokens (hsl(33,33%,95%) cream, gold accent, brown). */
  --bg:             #F8F4ED;     /* live --white  — warm cream */
  --bg-soft:        #F2EBDD;     /* slightly deeper cream, used for stay-strip / testimonials */
  --off-white:      #F8F4ED;     /* legacy alias */
  --ink:            #211F1F;     /* live --black  — near-black */
  --ink-soft:       #4A4540;
  --ink-mute:       #877C6C;
  --terracotta:     #B59C6E;     /* live --accent — warm gold */
  --terracotta-dk:  #7C5836;     /* live --darkAccent — rich brown */
  --line:           rgba(31, 27, 22, 0.10);
  --shadow-sm:      0 1px 2px rgba(31, 27, 22, 0.05), 0 2px 8px rgba(31, 27, 22, 0.04);
  --shadow-md:      0 6px 24px rgba(31, 27, 22, 0.08);
  --shadow-lg:      0 24px 60px rgba(31, 27, 22, 0.16);

  /* Type — matches the live site exactly: Cormorant Garamond headings, Inter body, PT Serif on the header CTA. */
  --display: "Cormorant Garamond", "PT Serif", Georgia, "Times New Roman", serif;
  --sans:    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --cta:     "PT Serif", Georgia, "Times New Roman", serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 208px;
  --header-h-shrunk: 112px;
  --radius: 4px;
  --radius-lg: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 280ms;
}

/* -------------------------------------------------------------------------
   Reset
   ------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--terracotta-dk); }

ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.5;
}

p { margin: 0 0 1em; color: var(--ink-soft); }
p.lede { color: var(--ink); font-size: 1.15rem; }

::selection { background: rgba(184, 111, 77, 0.22); color: var(--ink); }

/* Focus — visible everywhere */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  z-index: 200;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--bg); }

/* -------------------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin: 0 0 1rem;
}

.section-head {
  max-width: 36rem;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
}
.section-head--center {
  text-align: center;
  margin-inline: auto;
}

section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--terracotta-dk);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0);
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease), box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease);
}

.site-header[data-state="scrolled"] {
  background: rgba(248, 244, 237, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height var(--dur) var(--ease);
}
.site-header[data-state="scrolled"] .header-inner {
  height: var(--header-h-shrunk);
}

.logo {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  justify-self: center;
}
.logo img {
  height: 176px;
  width: auto;
  transition: height var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.site-header[data-state="scrolled"] .logo img { height: 84px; }

/* Intermediate desktop — between mobile cutoff and full-size, the doubled
   logo would crowd the nav. Step it down so the layout still breathes. */
@media (min-width: 1101px) and (max-width: 1399px) {
  :root { --header-h: 152px; --header-h-shrunk: 96px; }
  .logo img { height: 120px; }
  .site-header[data-state="scrolled"] .logo img { height: 64px; }
}
.site-header[data-state="top"] .logo img {
  /* Lighten the logo and add a soft dark shadow so it reads against the photo. */
  filter: brightness(1.35) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.primary-nav {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.primary-nav ul {
  display: flex;
  gap: 1.75rem;
}
.header-right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.header-icons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.header-icons a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.header-icons a:hover {
  color: var(--terracotta-dk);
  background: rgba(31, 27, 22, 0.05);
  transform: translateY(-1px);
}
.header-icons svg {
  width: 32px;
  height: 32px;
  display: block;
}
.site-header[data-state="top"] .header-icons a {
  color: var(--bg);
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.35));
}
.site-header[data-state="top"] .header-icons a:hover {
  color: var(--bg);
  background: rgba(255, 255, 255, 0.14);
}
.nav-cta-stack {
  display: none;             /* hidden by default — only shown inside the mobile overlay */
  flex-direction: column;
  gap: 0.6rem;
  align-items: stretch;
  width: min(280px, 80vw);
}
.nav-cta-stack .btn { width: 100%; }

.primary-nav a {
  position: relative;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 0.4rem 0;
  transition: color var(--dur) var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.primary-nav a:hover::after { transform: scaleX(1); }

.site-header[data-state="top"] .primary-nav a {
  color: var(--bg);
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

.nav-cta {
  padding: 0.7rem 1.4rem;
  font-size: 0.85rem;
  font-family: var(--cta);
  letter-spacing: 0.04em;
  text-transform: none;
}
.site-header[data-state="top"] .nav-cta {
  background: var(--bg);
  color: var(--ink);
}
.site-header[data-state="top"] .nav-cta:hover {
  background: var(--terracotta);
  color: var(--bg);
}

/* Mobile menu toggle — sits in the LEFT grid cell on mobile (where desktop nav lives) */
.menu-toggle {
  display: none;
  grid-column: 1;
  justify-self: start;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header[data-state="top"] .menu-toggle span { background: var(--bg); }
body.nav-open .menu-toggle span { background: var(--ink); }
body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .header-right { display: none; }              /* hide right-side cluster on tablet/mobile */
  /* Stack lives inside the off-screen overlay; double-hide it via visibility
     so it can never bleed through if the overlay's transform is repainted
     mid-scroll. Visibility flips on only when the menu is actually open. */
  .nav-cta-stack.nav-cta--in-menu {
    display: flex;
    visibility: hidden;
    transition: visibility 0s linear 400ms;
  }
  body.nav-open .nav-cta-stack.nav-cta--in-menu {
    visibility: visible;
    transition-delay: 0s;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    grid-column: unset;
    justify-self: unset;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 400ms var(--ease);
    z-index: 105;
  }
  body.nav-open .primary-nav { transform: translateY(0); }
  .primary-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .primary-nav a {
    font-family: var(--display);
    font-size: 1.6rem;
    color: var(--ink) !important;
    text-shadow: none !important;
  }
  .nav-cta-stack .btn { font-size: 0.95rem; padding: 0.9rem 1.4rem; }
  body.nav-open { overflow: hidden; }

  /* Tighten header on small screens — logo scales down for legibility */
  :root { --header-h: 132px; --header-h-shrunk: 92px; }
  .logo img { height: 100px; }
  .site-header[data-state="scrolled"] .logo img { height: 68px; }
}

@media (max-width: 540px) {
  :root { --header-h: 108px; --header-h-shrunk: 80px; }
  .logo img { height: 80px; }
  .site-header[data-state="scrolled"] .logo img { height: 56px; }
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: clamp(6rem, 12vw, 10rem) clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  color: var(--bg);
  isolation: isolate;
}

.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero picture img {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.10) 35%, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0.55) 100%);
}

.hero-content {
  max-width: 60rem;
  /* Shift the title block in from the left edge, in addition to the .container gutter. */
  padding-left: clamp(4rem, 16vw, 14rem);
}
.hero h1 {
  color: var(--bg);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.hero .lede {
  color: var(--bg);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 32rem;
  margin-bottom: 2.25rem;
  text-wrap: pretty;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.hero .btn-primary {
  background: var(--bg);
  color: var(--ink);
}
.hero .btn-primary:hover {
  background: var(--terracotta);
  color: var(--bg);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1px solid rgba(250,247,242,0.7);
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.hero-scroll span {
  display: block;
  width: 2px;
  height: 8px;
  background: var(--bg);
  border-radius: 1px;
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%, 100% { transform: translateY(-4px); opacity: 0.4; }
  50% { transform: translateY(4px); opacity: 1; }
}
@media (max-width: 640px) {
  .hero-scroll { display: none; }
}

/* -------------------------------------------------------------------------
   Gallery
   ------------------------------------------------------------------------- */
.gallery { background: var(--bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  grid-auto-rows: 14rem;
  grid-auto-flow: dense;
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
  cursor: zoom-in;
  transition: transform var(--dur) var(--ease);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 400ms var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:hover { box-shadow: var(--shadow-md); }

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

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 11rem;
    gap: 0.5rem;
  }
}
@media (max-width: 480px) {
  .gallery-grid { grid-auto-rows: 9rem; }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-item--tall { grid-row: auto; }
}

/* -------------------------------------------------------------------------
   The Villa
   ------------------------------------------------------------------------- */
.villa { background: var(--bg); }

.villa-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.villa-copy h2 { margin-bottom: 1.2rem; }
.villa-figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.villa-figure img { width: 100%; height: 100%; object-fit: cover; }

.villa-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.villa-facts li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.villa-facts strong {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.villa-facts span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

@media (max-width: 880px) {
  .villa-grid { grid-template-columns: 1fr; }
  .villa-figure { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .villa-facts { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

/* -------------------------------------------------------------------------
   Our Story
   ------------------------------------------------------------------------- */
.story { background: var(--bg); }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.story-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.story-images figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.story-images figure:first-child { transform: translateY(2rem); }
.story-images img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.story-images figcaption {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-mute);
}

@media (max-width: 880px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-images figure:first-child { transform: none; }
}

/* -------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */
.faq { background: var(--bg); }

.accordion {
  max-width: 52rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-item h3 { margin: 0; }

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0.5rem;
  text-align: left;
  font-family: var(--display);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.accordion-header:hover { color: var(--terracotta-dk); }

.accordion-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transition: transform 350ms var(--ease);
}
.accordion-icon::before {
  width: 18px; height: 1.5px;
  transform: translate(-50%, -50%);
}
.accordion-icon::after {
  width: 1.5px; height: 18px;
  transform: translate(-50%, -50%);
}
.accordion-header[aria-expanded="true"] .accordion-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 400ms var(--ease);
}
.accordion-panel[hidden] {
  display: block; /* override default to allow animation; visually hidden via max-height */
  max-height: 0;
}
.accordion-panel-inner {
  padding: 0 0.5rem 1.5rem;
  max-width: 44rem;
  color: var(--ink-soft);
}
.accordion-panel a { color: var(--terracotta-dk); border-bottom: 1px solid currentColor; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding-block: clamp(3rem, 6vw, 5rem) 1.5rem;
}
.site-footer h4 { color: var(--bg); opacity: 0.7; }
.site-footer a { color: var(--bg); }
.site-footer a:hover { color: var(--terracotta-dk); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.footer-brand img {
  height: 54px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer-brand p { color: rgba(250,247,242,0.7); max-width: 22rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col h4 { margin-bottom: 1rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-map-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(250,247,242,0.3);
  padding-bottom: 0.1rem;
}
address { font-style: normal; color: rgba(250,247,242,0.7); }

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(250,247,242,0.25);
  color: rgba(250,247,242,0.85);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.social-links a:hover {
  background: rgba(250,247,242,0.08);
  border-color: rgba(250,247,242,0.5);
  color: var(--bg);
}
.social-links svg { width: 18px; height: 18px; }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250,247,242,0.15);
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(250,247,242,0.55);
  margin: 0;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* -------------------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 16, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease);
}
.lightbox[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}
.lightbox[hidden] { display: none; }

.lightbox-figure {
  margin: 0;
  max-width: min(94vw, 1400px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-figure figcaption {
  color: rgba(250,247,242,0.75);
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(250,247,242,0.08);
  color: var(--bg);
  display: grid;
  place-items: center;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(250,247,242,0.18);
  transform: scale(1.05);
}
.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 24px;
  height: 24px;
}
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.85rem;
  color: rgba(250,247,242,0.6);
  letter-spacing: 0.1em;
}

@media (max-width: 640px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; }
}

/* -------------------------------------------------------------------------
   Stay strip — rate + booking CTAs at the end of The Villa
   ------------------------------------------------------------------------- */
.stay-strip {
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  max-width: var(--container);
  padding-inline: var(--gutter);
}
.stay-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 2.4vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  flex-wrap: wrap;
}
.stay-rate {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.stay-currency-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0.1rem;
}
.stay-currency {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.3rem 1.7rem 0.3rem 0.75rem;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.stay-currency:hover {
  border-color: var(--terracotta-dk);
  color: var(--ink);
}
.stay-currency:focus-visible {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(184, 111, 77, 0.18);
}
.stay-currency-caret {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 7px;
  color: var(--ink-soft);
  pointer-events: none;
}
.stay-from {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.stay-price {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stay-unit {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.stay-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  flex: 1 1 auto;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.stay-meta li {
  position: relative;
  padding-right: 1.4rem;
}
.stay-meta li:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: 0;
  color: var(--ink-mute);
}
.stay-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.stay-actions .btn { font-size: 0.78rem; padding: 0.75rem 1.4rem; }

@media (max-width: 720px) {
  .stay-strip-inner { flex-direction: column; align-items: stretch; }
  .stay-meta li::after { display: none; }
  .stay-meta li { padding-right: 0; }
  .stay-actions { width: 100%; flex-direction: column; }
  .stay-actions .btn { width: 100%; }
}

/* -------------------------------------------------------------------------
   Bedrooms — three-up cards inside The Villa
   ------------------------------------------------------------------------- */
.bedrooms {
  margin-top: clamp(3rem, 6vw, 5rem);
}
.bedroom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
}
.bedroom {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.bedroom-figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.bedroom-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.bedroom:hover .bedroom-figure img { transform: scale(1.03); }

.bedroom-figure--placeholder {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg,
      var(--bg-soft) 0,
      var(--bg-soft) 14px,
      #F3EFE8 14px,
      #F3EFE8 28px);
  border: 1px dashed var(--line);
}
.bedroom-figure--placeholder span {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.bedroom h4 {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.bedroom p { margin: 0; }

@media (max-width: 880px) {
  .bedroom-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* -------------------------------------------------------------------------
   What's nearby
   ------------------------------------------------------------------------- */
.nearby { background: var(--bg); }
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.4vw, 1.75rem);
}
.nearby-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nearby-figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.nearby-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.nearby-card:hover .nearby-figure img { transform: scale(1.04); }
.nearby-card h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}
.nearby-card p {
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 900px) {
  .nearby-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .nearby-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------------------- */
.testimonials { background: var(--bg-soft); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  max-width: 1100px;
  margin: 0 auto;
}
.testimonial {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: 0.25rem;
  left: 1rem;
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--terracotta);
  opacity: 0.5;
  pointer-events: none;
}
.testimonial blockquote {
  margin: 0;
  padding-top: 1.5rem;
}
.testimonial blockquote p {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
}
.testimonial figcaption {
  font-size: 0.85rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

@media (max-width: 880px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Reveal-on-scroll (used by IntersectionObserver in main.js)
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transition: opacity 600ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; }
}
