/* ── Variables ───────────────────────────────────────── */
:root {
  --color-bg:          #F9F7F4;
  --color-accent:      #7A9E7E;
  --color-accent-dark: #4A7A50;
  --color-accent-light:#E8F0E9;
  --color-dark:        #2C2926;
  --color-dark-green:  #263328;
  --color-text:        #1E1A17;
  --color-muted:       #7a6f65;
  --color-border:      #E8ECE8;
  --color-card:        #FFFFFF;

  --radius-sm: 8px;
  --radius-md: 12px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --container: 1100px;
  --section-pad: 80px 40px;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Shared ──────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 36px;
}

/* ── NavBar ──────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(249, 247, 244, 0.97);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  backdrop-filter: blur(8px);
}
.navbar.nav-visible { transform: translateY(0); }
.navbar-address { font-size: 13px; font-weight: 500; color: var(--color-dark); }
.navbar-price { font-size: 14px; color: var(--color-accent-dark); font-weight: 600; }
.navbar-cta {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.navbar-cta:hover { background: var(--color-accent-dark); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #1E3028 0%, #2E5038 40%, #4A7A5A 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 40px 100px;
  position: relative;
}
.hero-logo {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(168, 212, 172, 0.8);
  margin-bottom: 32px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  color: var(--color-bg);
  line-height: 1.05;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-size: 14px;
  font-weight: 300;
  color: rgba(249, 247, 244, 0.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 60px;
}
.hero-badge {
  border: 1px solid rgba(168, 212, 172, 0.4);
  color: rgba(168, 212, 172, 0.9);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.hero-badge--price {
  background: rgba(122, 158, 126, 0.25);
  border-color: var(--color-accent);
  color: var(--color-bg);
  font-size: 14px;
  font-weight: 600;
}
a.hero-badge:hover { opacity: 0.75; }
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(249, 247, 244, 0.3);
  font-size: 22px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Gallery ─────────────────────────────────────────── */
.gallery { padding: var(--section-pad); }
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.gallery-tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-tile:hover .gallery-overlay { opacity: 1; }
.gallery-tile--main { grid-row: span 2; }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 51, 40, 0.3);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-overlay-icon { font-size: 28px; color: rgba(255,255,255,0.8); }
.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Gradient placeholders — replace with <img> when photos arrive */
.gallery-tile--living    { background: linear-gradient(160deg, #1E3028, #4A7A5A); }
.gallery-tile--terras    { background: linear-gradient(135deg, #3A5A30, #2A4020); }
.gallery-tile--keuken    { background: linear-gradient(135deg, #4A4030, #302A20); }
.gallery-tile--slaapkamer{ background: linear-gradient(135deg, #3A3050, #252038); }
.gallery-tile--badkamer  { background: linear-gradient(135deg, #2A4050, #1A2838); }
.gallery-tile--bureau    { background: linear-gradient(135deg, #303850, #202838); }
.gallery-tile--garage    { background: linear-gradient(135deg, #303040, #202028); }
.gallery-tile--buitengevel{ background: linear-gradient(135deg, #3A3428, #252018); }
.gallery-label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.gallery-showall {
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 0;
}
.gallery-showall:hover { background: #3d3530; }
.gallery-showall-icon { font-size: 24px; color: var(--color-bg); }
.gallery-showall-label { font-size: 12px; font-weight: 500; color: var(--color-bg); letter-spacing: 0.06em; text-transform: uppercase; }
.gallery-showall-count { font-size: 10px; color: rgba(168, 212, 172, 0.7); letter-spacing: 0.08em; }

/* ── Lightbox ────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 26, 23, 0.96);
  z-index: 200;
  display: none;
  flex-direction: column;
}
.lightbox.is-open { display: flex; }
.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.lightbox-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-bg);
}
.lightbox-close {
  background: none;
  border: none;
  color: rgba(249,247,244,0.5);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}
.lightbox-close:hover { color: var(--color-bg); }
.lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px 80px;
  min-height: 0;
}
.lightbox-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
/* Gradient placeholder for lightbox when no real photo */
.lightbox-placeholder {
  width: 700px;
  max-width: 100%;
  height: 450px;
  max-height: 100%;
  border-radius: var(--radius-sm);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(249,247,244,0.1);
  border: none;
  color: var(--color-bg);
  font-size: 24px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: var(--radius-sm);
}
.lightbox-nav:hover { background: rgba(249,247,244,0.2); }
.lightbox-nav--prev { left: 16px; }
.lightbox-nav--next { right: 16px; }
.lightbox-caption {
  text-align: center;
  font-size: 12px;
  color: rgba(249,247,244,0.4);
  padding: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.lightbox-thumbs {
  display: flex;
  gap: 6px;
  padding: 12px 28px 20px;
  overflow-x: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.lightbox-thumb {
  width: 72px;
  height: 52px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.15s;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
}
.lightbox-thumb.is-active { opacity: 1; border-color: var(--color-accent); }
.lightbox-thumb:hover { opacity: 0.8; }
.lightbox-thumb img, .lightbox-thumb .thumb-placeholder { width: 100%; height: 100%; object-fit: cover; }

/* ── Features ────────────────────────────────────────── */
.features { padding: var(--section-pad); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(38, 51, 40, 0.1);
}
.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon { font-size: 24px; color: var(--color-accent); }
.feature-card h4 { font-size: 14px; font-weight: 600; color: var(--color-dark); margin-bottom: 4px; }
.feature-card p { font-size: 13px; color: var(--color-muted); line-height: 1.5; }

/* ── Floor Plan ──────────────────────────────────────── */
.floorplan { padding: var(--section-pad); background: #F4F1EB; }
.floorplan-wrap {
  background: #F0EDE5;
  border: 1px solid #DDD8CC;
  border-radius: var(--radius-md);
  padding: 32px;
  display: block;
}
.floorplan-wrap svg text { font-family: var(--font-body); }

/* ── Costs ───────────────────────────────────────────── */
.costs {
  background: var(--color-dark-green);
  padding: var(--section-pad);
}
.costs .section-label { color: rgba(168, 212, 172, 0.8); }
.costs .section-heading { color: var(--color-bg); }
.costs-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.costs-table { width: 100%; border-collapse: collapse; }
.costs-table td {
  padding: 13px 0;
  font-size: 14px;
  color: rgba(249, 247, 244, 0.75);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.costs-table td:last-child { text-align: right; font-weight: 500; }
.costs-table tr.costs-total td {
  color: var(--color-bg);
  font-weight: 700;
  font-size: 17px;
  border-bottom: none;
  padding-top: 20px;
}
.costs-conditions { list-style: none; }
.costs-conditions li {
  font-size: 13px;
  color: rgba(249, 247, 244, 0.65);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-left: 18px;
  position: relative;
}
.costs-conditions li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* ── Neighborhood ────────────────────────────────────── */
.neighborhood { padding: var(--section-pad); }
.neighborhood-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.neighborhood-text p { font-size: 15px; color: var(--color-muted); line-height: 1.8; margin-bottom: 12px; }
.neighborhood-callout {
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 28px 30px;
}
.neighborhood-callout-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.neighborhood-callout h4 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-dark);
  margin-bottom: 12px;
}
.neighborhood-callout p { font-size: 14px; color: var(--color-muted); line-height: 1.7; margin-bottom: 8px; }
.neighborhood-callout strong { color: var(--color-dark); font-weight: 600; }

.neighborhood-nearby {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.neighborhood-nearby-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.neighborhood-nearby-icon {
  font-size: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
}
.neighborhood-nearby-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.neighborhood-nearby-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
}
.neighborhood-nearby-time {
  font-size: 11px;
  color: var(--color-muted);
}

.neighborhood-gallery { margin-top: 48px; }
.neighborhood-gallery-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.neighborhood-gallery-caption {
  font-size: 12px;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}
.neighborhood-gallery-credit {
  font-size: 11px;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.neighborhood-gallery-credit:hover { color: var(--color-accent); }
.neighborhood-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.neighborhood-gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  cursor: pointer;
}
.neighborhood-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.neighborhood-gallery-item:hover .neighborhood-gallery-img {
  transform: scale(1.04);
}
.neighborhood-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 41, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  font-size: 24px;
  cursor: pointer;
}
.neighborhood-gallery-item:hover .neighborhood-gallery-overlay { opacity: 1; }
.neighborhood-gallery-zoom-icon { font-size: 28px; color: rgba(255,255,255,0.9); }

/* ── Neighborhood Lightbox ───────────────────────────── */
.nb-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(28, 24, 20, 0.96);
  flex-direction: column;
}
.nb-lightbox.is-open { display: flex; }
.nb-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nb-lightbox-title {
  font-size: 13px;
  color: rgba(249,247,244,0.6);
  margin: 0;
}
.nb-lightbox-label { color: rgba(249,247,244,0.9); }
.nb-lightbox-close {
  background: none;
  border: none;
  color: rgba(249,247,244,0.7);
  font-size: 28px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.nb-lightbox-close:hover { color: #fff; }
.nb-lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.nb-lightbox-img-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}
.nb-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.nb-lightbox-nav {
  background: none;
  border: none;
  color: rgba(249,247,244,0.5);
  font-size: 48px;
  cursor: pointer;
  padding: 0 24px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s;
}
.nb-lightbox-nav:hover { color: #fff; }
.nb-lightbox-caption {
  text-align: center;
  font-size: 12px;
  color: rgba(249,247,244,0.4);
  padding: 12px;
  margin: 0;
}

/* ── Certificates ────────────────────────────────────── */
.certificates { padding: 60px 40px; background: var(--color-card); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.certificates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 28px; }
.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.cert-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cert-icon-wrap--ok   { background: var(--color-accent-light); }
.cert-icon-wrap--warn { background: #FFF4E5; }
.cert-icon-wrap--info { background: #EBF5FF; }
.cert-icon { font-size: 20px; }
.cert-icon-wrap--ok   .cert-icon { color: var(--color-accent); }
.cert-icon-wrap--warn .cert-icon { color: #D97706; }
.cert-icon-wrap--info .cert-icon { color: #3B82F6; }
.cert-item h4 { font-size: 13px; font-weight: 600; color: var(--color-dark); margin-bottom: 3px; }
.cert-item p { font-size: 12px; color: var(--color-muted); line-height: 1.5; }

/* ── Contact ─────────────────────────────────────────── */
.contact { padding: var(--section-pad); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-intro p { font-size: 15px; color: var(--color-muted); line-height: 1.8; }
.contact-map {
  margin-top: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 320px;
}
.contact-map iframe { width: 100%; height: 100%; border: none; display: block; }
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 7px;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(122, 158, 126, 0.15);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.1s;
}
.form-submit:hover { background: var(--color-accent-dark); }
.form-submit:active { transform: scale(0.98); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-feedback {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}
.form-feedback.is-success { background: var(--color-accent-light); color: var(--color-accent-dark); display: block; }
.form-feedback.is-error { background: #fce8e8; color: #b83030; display: block; }
.form-privacy { font-size: 11px; color: #b0a898; margin-top: 14px; line-height: 1.6; }

/* ── Footer ──────────────────────────────────────────── */
.footer {
  background: var(--color-dark);
  padding: 48px 40px;
  color: rgba(249, 247, 244, 0.5);
  font-size: 13px;
}
.footer-layout { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 12px; }
.footer p, .footer a { color: rgba(249, 247, 244, 0.5); font-size: 13px; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; font-size: 12px; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-pad: 56px 24px; }
  .navbar { padding: 12px 24px; }
  .navbar-address { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 180px; }
  .gallery-tile--main { grid-row: span 1; grid-column: span 2; }
  .features-grid { grid-template-columns: 1fr; }
  .costs-layout, .neighborhood-layout, .contact-layout, .footer-layout { grid-template-columns: 1fr; gap: 36px; }
  .neighborhood-nearby { grid-template-columns: 1fr 1fr; }
  .neighborhood-gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 40px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-tile--main { grid-column: span 1; }
  .neighborhood-gallery-grid { grid-template-columns: 1fr; }
}
