:root {
  --bg: #faf7f2;
  --bg-alt: #f1eae0;
  --text: #2b2420;
  --muted: #6b6058;
  --accent: #7a5c3e;
  --accent-strong: #5c4429;
  --card-bg: #ffffff;
  --border: #e6ddd2;
  --nav-bg: rgba(250, 247, 242, 0.9);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1815;
    --bg-alt: #221e1a;
    --text: #ede6dc;
    --muted: #b3a89b;
    --accent: #d9b98a;
    --accent-strong: #e8cda2;
    --card-bg: #262220;
    --border: #3a332c;
    --nav-bg: rgba(27, 24, 21, 0.88);
  }
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
}
img { max-width: 100%; }

/* ---------- Nav ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links > li { position: relative; list-style: none; }
.nav-link {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-link:hover, .nav-link:focus { background: var(--border); }
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  display: grid;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  min-width: 480px;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.dropdown-group h4 {
  margin: 4px 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.dropdown-group a {
  display: block;
  padding: 5px 6px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.dropdown-group a:hover { background: var(--bg-alt); color: var(--accent-strong); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 10px;
    gap: 2px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .dropdown {
    display: none !important;
    position: static;
    grid-template-columns: 1fr;
    min-width: 0;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 12px;
  }
  .nav-item.has-dropdown.open .dropdown { display: grid !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: min(92vh, 780px);
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 62%;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,12,9,0.82) 0%, rgba(15,12,9,0.25) 45%, rgba(15,12,9,0.05) 70%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 56px;
  text-align: center;
  width: 100%;
}
.hero-content h1 {
  font-size: clamp(32px, 6vw, 56px);
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero-content p {
  font-size: clamp(15px, 2.2vw, 19px);
  margin: 0 0 22px;
  color: #f1ece3;
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.hero-stats .stat {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
}
.hero-stats .stat b { color: #fff; }
.hero-scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: #fff;
  opacity: 0.85;
  font-size: 26px;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
.hero-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  background: var(--accent-strong);
  color: #2b2013;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* ---------- Sections generic ---------- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 20px;
}
.section-narrow { max-width: 760px; }
.section-head {
  text-align: center;
  margin-bottom: 36px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.section-alt { background: var(--bg-alt); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
}
.card p { line-height: 1.65; margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Floor intro ---------- */
.floor-intro {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 64px 0 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.floor-intro:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.floor-intro h3 {
  font-size: 24px;
  margin: 0;
}
.floor-intro span.meta {
  color: var(--muted);
  font-size: 14px;
  margin-left: auto;
  white-space: nowrap;
}

/* ---------- Room block ---------- */
.room {
  margin-bottom: 46px;
  scroll-margin-top: 90px;
}
.room-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.room-head h4 {
  font-size: 20px;
  margin: 0;
}
.room-area {
  font-size: 13px;
  color: var(--accent-strong);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 600;
}
.room-blurb {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 16px;
  max-width: 640px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.gallery figure.portrait {
  aspect-ratio: 3 / 4;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery.scans figure { aspect-ratio: 3 / 4; cursor: zoom-in; }
.gallery.scans img { object-fit: contain; background: #fff; }

/* ---------- Outdoor group divider ---------- */
.outdoor-lead {
  max-width: 640px;
  margin: 0 auto 10px;
  text-align: center;
  color: var(--muted);
}

/* ---------- Spec table ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0 0 8px;
}
.spec-table caption {
  text-align: left;
  font-weight: 700;
  padding: 10px 0;
  color: var(--accent-strong);
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
}
.spec-table tr:last-child td { font-weight: 700; border-bottom: none; }
.spec-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 34px;
}
@media (max-width: 700px) {
  .spec-tables { grid-template-columns: 1fr; }
}

.room-list {
  margin: 6px 0 20px;
}
.room-list h4 {
  margin: 18px 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.room-list h4:first-child { margin-top: 0; }
.room-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.room-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.room-list li:last-child { border-bottom: none; }
.room-list .room-area {
  flex-shrink: 0;
}

.amenities-inline {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px 20px;
}
.amenities-inline li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.4;
}
.amenities-inline li::before { content: "✓"; color: var(--accent); font-weight: bold; }

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 13px;
  color: var(--accent-strong);
  font-weight: 600;
}
.feature-tag::before { content: "✓"; color: var(--accent); }

.scan-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 18px;
}

.spec-details {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 20px;
  background: var(--card-bg);
}
.spec-details summary {
  cursor: pointer;
  padding: 16px 4px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-strong);
  list-style: none;
}
.spec-details summary::-webkit-details-marker { display: none; }
.spec-details summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.2s ease;
}
.spec-details[open] summary::before { transform: rotate(90deg); }
.spec-details[open] summary { border-bottom: 1px solid var(--border); }
.spec-details .spec-tables { margin-top: 20px; }

/* ---------- Contact ---------- */
.contact-card {
  text-align: center;
  padding: 40px 30px;
}
.contact-card-inline {
  margin-top: 20px;
  padding: 22px 30px;
}
.contact-card-inline p:first-child {
  margin: 0;
  color: var(--muted);
}
.contact-card-inline .phone {
  font-size: 24px;
  margin-top: 6px;
}
.contact-card h3 { margin: 0 0 6px; font-size: 22px; }
.contact-card .phone {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-strong);
  margin: 14px 0 0;
}
.contact-card .phone a {
  color: inherit;
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 40px 20px 60px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox .caption {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: #f1ece3;
  font-size: 14px;
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
  user-select: none;
}
.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 42px;
  cursor: pointer;
  padding: 10px 18px;
  user-select: none;
  opacity: 0.7;
}
.lightbox .nav:hover { opacity: 1; }
.lightbox .prev { left: 4px; }
.lightbox .next { right: 4px; }
