/* Satori Villas — main stylesheet
   Layout: one editorial column. The hero sells the address with a gilded wash
   and a tall image frame, the house is walked floor by floor, then the gallery,
   the four remaining units, FAQ and contact details. Light only.
   Mobile first: base rules target phones, min-width queries widen the layout. */

:root {
  --bg: #F5F1EA;
  --surface: #FBF9F5;
  --ink: #3D382E;
  --muted: #6E6759;
  --accent: #9A7C52;
  --accent-soft: #C9B08A;
  --accent-strong: #86693F;
  --on-accent: #FBF9F5;
  --line: #DCD3C4;
  --gild: linear-gradient(120deg, #86693F 0%, #B8985F 45%, #86693F 100%);
  --display: "Bodoni Moda", "Didot", Georgia, "Times New Roman", serif;
  --body: Manrope, "Helvetica Neue", Arial, sans-serif;
  --bar-h: 64px;
  --gutter: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  /* room for the sticky mobile call bar */
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}
img, svg, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--on-accent);
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
}
section { padding-block: clamp(56px, 9vw, 112px); }
.rule { border-top: 1px solid var(--line); }
.surface { background: var(--surface); border-block: 1px solid var(--line); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--gild);
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: clamp(30px, 4.8vw, 56px); }
h2 em, h1 em { font-style: italic; color: var(--accent); }
h3 { font-size: 22px; line-height: 1.25; }
.lead {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--muted);
  max-width: 56ch;
  margin: 18px 0 0;
}

/* Photos */
.photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface), #EAE2D4);
  min-width: 0;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.photo:hover img { transform: scale(1.03); }
.caption { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* Header */
.bar {
  position: sticky;
  top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--bar-h);
}
.mark {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.18em;
  text-decoration: none;
  background: var(--gild);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.3s ease, background 0.3s ease;
}
.menu-btn span::before,
.menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav: slides down under the bar */
.nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -30px rgba(61, 56, 46, 0.45);
  padding: 8px var(--gutter) 20px;
  max-height: calc(100dvh - var(--bar-h));
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.nav.open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 17px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.nav a.nav-contact {
  margin-top: 16px;
  border: 0;
  text-align: center;
  background: var(--gild);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 15px;
}
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: clamp(14px, 1.8vw, 26px);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    max-height: none;
    overflow: visible;
  }
  .nav a { font-size: 14px; color: var(--muted); padding: 6px 0; border: 0; }
  .nav a:hover { color: var(--ink); }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--gild);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }
  .nav a:hover::after { transform: scaleX(1); }
  .nav a.nav-contact { margin: 0; padding: 10px 18px; font-size: 13px; color: var(--on-accent); }
  .nav a.nav-contact::after { display: none; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--accent-strong);
  border-radius: 1px;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.btn.primary {
  background: var(--gild);
  background-size: 200% 100%;
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: 0 10px 28px -12px rgba(134, 105, 63, 0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn.primary:hover { background-position: 100% 0; transform: translateY(-1px); }
.btn.ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn.ghost:hover { border-color: var(--accent); }
@media (max-width: 479px) {
  .actions .btn { flex: 1 1 100%; }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(32px, 7vw, 88px);
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(201, 176, 138, 0.28), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(201, 176, 138, 0.18), transparent 70%),
    var(--bg);
}
/* Optional full-bleed background video, see comment in index.html */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  filter: saturate(0.55) sepia(0.2);
}
/* The veil fades the background image. Raise the percentages for a fainter image, lower them to show more. */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
}
.hero-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (max-width: 859px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .hero-copy {
    display: contents;
  }
  .hero-header {
    order: 1;
    width: 100%;
  }
  .hero-media {
    order: 2;
    width: 100%;
  }
  .hero-buy {
    order: 3;
    width: 100%;
  }
  .hero-buy .price {
    margin-top: 8px;
  }
  .btn-plans {
    display: none !important;
  }
}
.hero h1 {
  font-size: clamp(52px, 10.5vw, 128px);
  letter-spacing: 0.005em;
  line-height: 0.98;
}
.hero h1 span {
  background: var(--gild);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .tagline {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--muted);
  margin: 20px 0 0;
  max-width: 34ch;
  font-family: var(--display);
  font-style: italic;
}
.price {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}
.price .label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); width: 100%; }
.price .amount {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 46px);
  background: var(--gild);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.price .per { color: var(--muted); font-size: 15px; }
.scarce { margin: 14px 0 0; font-size: 15px; color: var(--muted); }

.hero-media { position: relative; }
.hero-media .photo { aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.badge {
  position: absolute;
  left: 12px;
  bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px 18px;
  box-shadow: 0 24px 48px -28px rgba(61, 56, 46, 0.35);
}
.badge p { margin: 0; }
.badge .n { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--accent-strong); }
.badge .t { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.ghost-word { display: none; }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; }
  .hero-veil { background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 90%, transparent) 30%, color-mix(in srgb, var(--bg) 72%, transparent) 100%); }
  .badge { left: -20px; bottom: 32px; padding: 18px 22px; min-width: 200px; }
  .badge .n { font-size: 40px; }
  .badge .t { font-size: 12px; }
  .ghost-word {
    display: block;
    position: absolute;
    right: -10px;
    top: -40px;
    font-family: var(--display);
    font-size: clamp(64px, 11vw, 120px);
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-soft);
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
    margin: 0;
  }
}

/* Spec strip */
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.specs div {
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
}
.specs div:nth-child(even) { border-left: 1px solid var(--line); }
.specs div:nth-child(n+3) { border-top: 1px solid var(--line); }
.specs dt { order: 2; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.specs dd { margin: 0; font-family: var(--display); font-size: clamp(28px, 3.6vw, 42px); line-height: 1; font-variant-numeric: tabular-nums; }
@media (min-width: 720px) {
  .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
  .specs div { padding: 30px 20px; }
  .specs div + div { border-left: 1px solid var(--line); }
  .specs div:nth-child(n+3) { border-top: 0; }
  .specs dt { font-size: 12px; }
}

/* The villa */
.split {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.prose p { margin: 0 0 1em; color: var(--muted); max-width: 60ch; }
.prose p:first-child { color: var(--ink); font-size: 19px; font-family: var(--display); font-style: italic; }
.gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 48px;
}
.gallery figure { margin: 0; min-width: 0; }
.gallery .photo { aspect-ratio: 4 / 3; }
.gallery .stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.trio {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 56px;
}
.trio article { position: relative; padding-top: 22px; }
.trio article::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 56px; height: 2px;
  background: var(--gild);
}
.trio p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 479px) {
  .gallery .stack { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .gallery { grid-template-columns: 1.4fr 1fr; margin-top: 64px; }
  .gallery > figure .photo { aspect-ratio: auto; height: 100%; min-height: 420px; }
  .gallery > figure { display: flex; flex-direction: column; }
  .gallery > figure .photo { flex: 1; }
  .gallery .stack { grid-template-columns: minmax(0, 1fr); }
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 64px; }
}

/* Location */
.map {
  margin-top: 36px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface), #EAE2D4);
  position: relative;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: sepia(0.25) saturate(0.85); }
.map-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--accent-strong); }
.loc-grid {
  display: grid;
  gap: 28px 56px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 40px;
}
.loc-grid h3 { margin-bottom: 8px; }
.loc-grid p { margin: 0; color: var(--muted); }
.loc-grid > div { padding-top: 22px; border-top: 1px solid var(--line); }
@media (min-width: 640px) {
  .map { aspect-ratio: 21 / 9; }
  .loc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; }
}

/* Floor plans */
.levels-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 40px;
}
.level {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px 16px 22px;
  min-width: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.level:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(61, 56, 46, 0.4); }
.plan-link {
  display: block;
  position: relative;
  margin-bottom: 20px;
  background: #F4EFE7;
  cursor: zoom-in;
}
.plan-link img { width: 100%; aspect-ratio: 5 / 4; object-fit: contain; }
.plan-link .zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 10px;
}
.level .num { font-size: 12px; color: var(--accent-strong); font-weight: 700; letter-spacing: 0.16em; margin: 0; }
.level h3 { margin: 8px 0 6px; }
.level .desc { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.rooms { list-style: none; margin: 0; padding: 0; }
.rooms li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.rooms li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.rooms-note { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
@media (min-width: 700px) and (max-width: 979px) {
  .levels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .levels-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
  .level { padding: 22px 22px 26px; }
}

/* Lightbox (shared by page photos, floor plans and gallery) */
.lightbox {
  border: 0;
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  background: rgba(30, 27, 22, 0.96);
  color: #F5F1EA;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(30, 27, 22, 0.9); }
.lb-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 8px 16px;
  font-size: 14px;
}
.lb-caption { flex: 1; min-width: 0; font-family: var(--display); font-size: 17px; }
.lb-count { font-size: 12px; letter-spacing: 0.12em; color: #C9B08A; font-variant-numeric: tabular-nums; }
.lb-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px calc(16px + env(safe-area-inset-bottom, 0px));
  touch-action: pan-y pinch-zoom;
}
.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox button {
  font: inherit;
  min-width: 44px;
  min-height: 44px;
  background: rgba(245, 241, 234, 0.08);
  border: 1px solid rgba(245, 241, 234, 0.25);
  color: #F5F1EA;
  cursor: pointer;
  border-radius: 1px;
}
.lightbox button:hover { background: rgba(245, 241, 234, 0.18); }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px !important;
  line-height: 1;
  width: 48px;
  height: 64px;
  z-index: 1;
}
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-nav[hidden] { display: none !important; }
@media (max-width: 599px) {
  .lb-nav { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: none; height: 48px; }
  .lb-stage { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* Page photos open in the lightbox */
.photo[data-full] { cursor: zoom-in; }
.photo[data-full]:focus-visible { outline-offset: -3px; }
picture { display: contents; }

/* Gallery */
.g-filters {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.g-filters::-webkit-scrollbar { display: none; }
.g-filter {
  flex: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  padding: 8px 18px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 1px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.g-filter:hover { color: var(--ink); border-color: var(--accent-soft); }
.g-filter[aria-pressed="true"] { background: var(--gild); color: var(--on-accent); border-color: transparent; }
.g-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}
.g-item { margin: 0; min-width: 0; }
.g-item[hidden] { display: none !important; }
.g-item a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #EFE8DC;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.g-item[data-cat="plans"] img,
.g-item[data-cat="drawings"] img { object-fit: contain; background: #fff; padding: 6px; }
.g-item[data-cat="plans"] img { background: #F4EFE7; }
.g-item a:hover img { transform: scale(1.04); }
.g-item figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
@media (min-width: 640px) {
  .g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .g-item figcaption { font-size: 13px; }
}
@media (min-width: 980px) {
  .g-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
}

/* Amenities */
.amen-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.amen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.amen li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.amen strong { font-family: var(--display); font-weight: 400; font-size: 21px; }
.amen span { color: var(--muted); font-size: 15px; }
.amen-grid .photo { aspect-ratio: 4 / 3; margin-top: 32px; }
@media (min-width: 560px) {
  .amen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .amen-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; }
  .amen li { padding: 22px 0; }
  .amen strong { font-size: 22px; }
}

/* Investment */
.invest {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.invest .photo { aspect-ratio: 4 / 5; max-height: 640px; }
.invest-list { list-style: none; margin: 28px 0 0; padding: 0; }
.invest-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.invest-list strong { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; }
.invest-list span { color: var(--muted); font-size: 15px; }
@media (min-width: 860px) {
  .invest { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
}

/* Units */
.units {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 40px;
}
.unit {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.unit::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gild);
}
.unit:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(61, 56, 46, 0.4); }
.unit .no { font-family: var(--display); font-size: 48px; line-height: 1; color: var(--accent-soft); margin: 0; }
.unit h3 { font-size: 20px; }
.unit .status {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  border: 1px solid var(--accent-soft);
  padding: 4px 10px;
}
.unit .price-small { font-family: var(--display); font-size: 19px; font-variant-numeric: tabular-nums; margin: 0; }
.unit a {
  margin-top: auto;
  padding-top: 6px;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.unit a:hover { color: var(--accent-strong); }
@media (min-width: 960px) {
  .units { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
  .unit { padding: 24px 22px; }
  .unit h3 { font-size: 24px; }
  .unit .price-small { font-size: 22px; }
}

/* FAQ */
.faq { margin-top: 40px; border-bottom: 1px solid var(--line); max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  min-height: 44px;
  font-family: var(--display);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--body);
  font-size: 22px;
  color: var(--accent-strong);
  transition: transform 0.3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* Contact */
.contact-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 40px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px;
  min-width: 0;
  position: relative;
  font-style: normal;
}
.card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.35s ease;
}
.card:hover::after { border-color: var(--accent-soft); }
.card .k { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.card .v { font-family: var(--display); font-size: clamp(20px, 2.6vw, 24px); margin: 0; overflow-wrap: anywhere; }
.card .v a { text-decoration: none; }
.card .v a:hover { color: var(--accent-strong); }
.card .row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 14px; position: relative; z-index: 1; }
.copy {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  padding: 9px 16px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 1px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.copy:hover { border-color: var(--accent); color: var(--accent-strong); }
.card a.inline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--accent-strong);
  font-weight: 700;
}
.copy-status { font-size: 13px; color: var(--muted); }
@media (min-width: 640px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
  .card { padding: 26px; }
}

/* Footer: brand and about on the left, contact on the right, copyright centred below a rule */
footer {
  border-top: 1px solid var(--line);
  padding-block: 48px 28px;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
}
.foot {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
}
.foot-about p { margin: 12px 0 0; max-width: 46ch; line-height: 1.7; }
.foot-contact {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.foot-contact a,
.foot-contact span { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); }
.foot-contact a { text-decoration: none; }
.foot-contact a:hover { color: var(--accent-strong); }
.legal {
  margin: 36px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
}
@media (min-width: 560px) {
  .foot { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 40px; }
  .foot-contact { align-items: flex-end; text-align: right; justify-self: end; }
}
@media (min-width: 860px) {
  .foot { gap: 80px; }
}

/* Sticky mobile call-to-action bar */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { min-height: 46px; padding: 10px 8px; font-size: 13px; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mobile-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .bar, .mobile-cta, .map, .actions, .copy { display: none !important; }
  body { padding: 0; background: #fff; }
  section { padding-block: 24px; }
}

@media (max-width: 479px) {
  .eyebrow { letter-spacing: 0.1em; font-size: 11px; gap: 10px; }
  .eyebrow::before { width: 20px; }
}

/* Virtual tour: silent, control-free film on a dark band */
.tour {
  background: #2B2720;
  color: #F5F1EA;
  padding-bottom: 0;
}
.tour h2 { color: #F5F1EA; }
.tour h2 em { color: #C9B08A; }
.tour .eyebrow { color: #C9B08A; }
.tour .lead { color: #CFC6B6; }
.tour-frame {
  margin-top: 36px;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1E1B16;
  overflow: hidden;
}
.tour-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.tour-video::-webkit-media-controls { display: none !important; }
.tour-video::-webkit-media-controls-start-playback-button { display: none !important; }
@media (min-width: 860px) {
  .tour { padding-bottom: clamp(56px, 9vw, 112px); }
  .tour-frame {
    max-width: 1120px;
    margin: 48px auto 0;
    width: calc(100% - 2 * var(--gutter));
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
  }
}

/* ==========================================================================
   Booking Modal & Form
   ========================================================================== */

body.modal-open {
  overflow: hidden;
}

.booking-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 580px;
  width: calc(100% - 32px);
  margin: auto;
  color: var(--ink);
  overflow: visible;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.booking-dialog:not([open]) {
  display: none;
}

.booking-dialog::backdrop {
  background: rgba(26, 22, 17, 0.72);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  animation: modalBackdropFadeIn 0.28s ease forwards;
}

@keyframes modalBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.booking-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalScaleUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 100%;
  box-shadow:
    0 32px 72px -16px rgba(45, 38, 28, 0.38),
    0 12px 28px -8px rgba(45, 38, 28, 0.16),
    0 0 0 1px rgba(154, 124, 82, 0.12);
  overflow: hidden;
  max-height: calc(100dvh - 36px);
  display: flex;
  flex-direction: column;
}

.modal-gild-bar {
  height: 4px;
  width: 100%;
  background: var(--gild);
  background-size: 200% 100%;
  flex-shrink: 0;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  padding: 0;
}

.modal-close-btn:hover {
  background: var(--ink);
  color: var(--on-accent);
  border-color: var(--ink);
  transform: rotate(90deg);
}

.modal-close-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.modal-body {
  padding: clamp(24px, 5vw, 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gild);
}

.modal-title {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 10px;
}

.modal-title em {
  font-style: italic;
  color: var(--accent);
}

.modal-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 22px;
}

/* Form inputs & structure */
.booking-form {
  margin: 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row.form-row-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

@media (max-width: 520px) {
  .form-row:not(.form-row-split) {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-row.form-row-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }
  .form-row.form-row-split .form-group {
    min-width: 0;
  }
  .form-row.form-row-split .form-input {
    padding: 12px 8px;
    font-size: 13.5px;
  }
  .form-row.form-row-split .form-label {
    font-size: 11px;
    letter-spacing: 0.03em;
  }
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-label .req {
  color: var(--accent-strong);
  margin-left: 2px;
}

.form-label .optional {
  font-weight: 400;
  text-transform: none;
  color: var(--muted);
  font-size: 11px;
  margin-left: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 14.5px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(61, 56, 46, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input:hover,
.form-textarea:hover {
  border-color: var(--accent-soft);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(154, 124, 82, 0.16);
}

.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: #B93838;
  box-shadow: 0 0 0 3px rgba(185, 56, 56, 0.12);
}

input[type="date"].form-input,
input[type="time"].form-input {
  min-height: 48px;
  color: var(--ink);
  min-width: 0;
}

input[type="date"].form-input::-webkit-calendar-picker-indicator,
input[type="time"].form-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

input[type="date"].form-input::-webkit-calendar-picker-indicator:hover,
input[type="time"].form-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: scale(1.1);
}

.field-error {
  display: block;
  font-size: 11.5px;
  color: #A32828;
  margin-top: 4px;
  min-height: 0;
}

.form-textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
}

/* Unit Selection Quick Pills */
.unit-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.unit-pill {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.unit-pill:hover {
  border-color: var(--accent-soft);
  color: var(--ink);
}

.unit-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-accent);
}

/* Submit button & state */
.form-actions {
  margin-top: 20px;
}

.modal-submit-btn {
  width: 100%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modal-submit-btn:disabled {
  opacity: 0.85;
  cursor: not-allowed;
  transform: none !important;
}

.btn-spinner {
  animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 2px;
  font-size: 13.5px;
  line-height: 1.45;
}

.form-status.error {
  background: #FDF2F2;
  border: 1px solid #F5C6C6;
  color: #9B2C2C;
}

.form-privacy {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 16px 0 0;
  text-align: center;
}

.form-privacy svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* Success Card */
.modal-success-view {
  text-align: center;
  padding: clamp(32px, 6vw, 44px) clamp(24px, 5vw, 36px);
  animation: bookingSuccessIn 0.35s ease forwards;
}

@keyframes bookingSuccessIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--gild);
  color: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 10px 24px -8px rgba(134, 105, 63, 0.6);
}

.success-message {
  margin-bottom: 20px;
}

.success-summary {
  margin: 20px 0 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px 18px;
  text-align: left;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13.5px;
  border-bottom: 1px dashed var(--line);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-k {
  color: var(--muted);
  font-weight: 500;
}

.summary-v {
  color: var(--ink);
  font-weight: 700;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 480px) {
  .success-actions {
    flex-direction: row;
  }
  .success-actions .btn {
    flex: 1;
  }
}

