:root {
  --paper: #fbfbf9;
  --sand: #f4f1ea;
  --sand-dark: #ebe7dc;
  --ink: #1a1d1a;
  --muted: #585d56;
  --muted-light: #7c827a;
  --line: #e3e0d8;
  --line-light: #eeebe3;
  --accent: #264937;
  --accent-hover: #1c3629;
  --accent-light: #eef4f0;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, Cambria, 'Times New Roman', Times, serif;
}

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

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-style: none;
}

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

.container {
  max-width: 1220px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: clamp(3.5rem, 6vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 6.5rem);
}

.section--sand {
  background-color: var(--sand);
}

/* TYPOGRAPHY */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.85rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

/* HEADER & NAV */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(251, 251, 249, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  min-height: 72px;
  display: flex;
  align-items: center;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.brand__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand__sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-body);
}

.btn--primary {
  background-color: var(--accent);
  color: #ffffff !important;
}

.btn--primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--secondary:hover {
  background-color: var(--sand);
  border-color: var(--muted);
}

.btn--icon {
  padding: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
}

.btn--icon:hover {
  color: var(--ink);
  background-color: var(--sand);
}

.link-subtle {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  font-weight: 500;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.link-subtle:hover {
  color: var(--accent);
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.hero__copy {
  max-width: 540px;
}

.hero__intro {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0;
  line-height: 1.65;
}

.hero__price-box {
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.hero__price-val {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero__price-label {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.35;
}

.hero__price-tag {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background-color: var(--accent-light);
  color: var(--accent);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.hero__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
  background-color: var(--sand);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero__media:hover img {
  transform: scale(1.02);
}

.hero__media-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* FACTS STRIP */
.facts-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: #ffffff;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin: 0;
}

.fact-item dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-light);
  margin-bottom: 0.25rem;
}

.fact-item dd {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.fact-item small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

/* EDITORIAL PHOTO GRID */
.editorial-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.gallery-tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--sand);
  cursor: pointer;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-tile:hover img {
  transform: scale(1.03);
}

.gallery-tile__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 0.75rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 600;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.tile-col-8 { grid-column: span 8; aspect-ratio: 16 / 10; }
.tile-col-6 { grid-column: span 6; aspect-ratio: 16 / 10; }
.tile-col-4 { grid-column: span 4; aspect-ratio: 4 / 3; }

/* FLOOR PLAN & SPECS */
.details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.floorplan-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #ffffff;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.floorplan-frame:hover {
  border-color: var(--accent);
}

.spec-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.spec-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
}

.spec-item__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spec-item__desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* COSTS & COMMUTE */
.costs-commute-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.cost-table tr {
  border-bottom: 1px solid var(--line);
}

.cost-table td {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  font-size: 0.95rem;
}

.cost-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.cost-table tr.total-row {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
}

.cost-table tr.total-row td {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.commute-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.commute-card {
  background-color: #ffffff;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.commute-card__time {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-top: 0.35rem;
}

.commute-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
}

.commute-card__desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* FAQ DETAILS ACCORDION */
.faq-list {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

details.faq-item {
  border-bottom: 1px solid var(--line);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

details.faq-item summary {
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--muted);
}

details.faq-item[open] summary::after {
  content: '−';
}

details.faq-item p {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* CONTACT SECTION */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

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

input, select, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.contact-card {
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}

.contact-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--muted);
}

.contact-info-list li a {
  color: var(--ink);
  font-weight: 600;
}

.contact-info-list li a:hover {
  color: var(--accent);
}

.share-card {
  background-color: var(--sand);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.download-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.download-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.2s;
}

.download-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background-color: var(--accent-light);
  color: var(--accent);
}

.success-message {
  padding: 1.5rem;
  background-color: var(--accent-light);
  border: 1px solid rgba(38, 73, 55, 0.2);
  border-radius: 8px;
  color: var(--accent);
  margin-top: 1rem;
}

.gallery-action-bar {
  text-align: center;
  margin-top: 2.5rem;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  background-color: rgba(18, 20, 18, 0.97);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.lightbox.active {
  display: flex;
}

.lightbox__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.lightbox__counter {
  font-size: 0.875rem;
  color: #a0a69f;
}

.lightbox__caption {
  font-weight: 600;
  color: #ffffff;
  margin-left: 0.5rem;
}

.lightbox__stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.lightbox__stage img {
  max-height: 78vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.lightbox__nav:hover {
  background-color: var(--accent);
}

.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

.lightbox__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 0.5rem;
}

.lightbox__thumb {
  width: 60px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  border: 1px solid transparent;
}

.lightbox__thumb.active {
  opacity: 1;
  border-color: #ffffff;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  background-color: var(--ink);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .details-layout, .costs-commute-layout, .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tile-col-8, .tile-col-6, .tile-col-4 {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  
  .facts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .tile-col-8, .tile-col-6, .tile-col-4 {
    grid-column: span 12;
  }

  .form-row, .commute-cards {
    grid-template-columns: 1fr;
  }

  .hero__price-box {
    flex-wrap: wrap;
  }

  .hero__price-tag {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}