:root {
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #5c5c5c;
  --color-accent: #1a4d6d;
  --color-accent-hover: #153f5a;
  --color-border: #e8e4df;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --max-width: 1100px;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: var(--color-accent);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-accent) 72%, white) 0%,
    var(--color-accent) 42%,
    var(--color-accent-hover) 100%
  );
  border-bottom: 1px solid color-mix(in srgb, var(--color-accent-hover) 70%, black);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

.topbar .btn-outline {
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
}

.topbar .btn-outline:hover {
  background: #fff;
  color: var(--color-accent);
  border-color: #fff;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #2a2a2a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.2) 55%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  color: #fff;
  padding: 3rem 0 clamp(5.5rem, 14vh, 9rem);
}

.hero-status {
  margin: 0 0 0.75rem;
}

.status-badge {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.status-badge-inline {
  font-size: 0.75rem;
}

.status-available {
  background: #2e7d32;
  color: #fff;
}

.status-negotiations {
  background: #ef6c00;
  color: #fff;
}

.status-reserved {
  background: #c62828;
  color: #fff;
}

.status-sold {
  background: #616161;
  color: #fff;
}

.hero-price {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.hero-price-note {
  font-weight: 400;
  opacity: 0.9;
  font-size: 0.95rem;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin: 0 0 0.35rem;
  line-height: 1.15;
}

.hero-sub {
  margin: 0;
  opacity: 0.92;
  font-size: 1.05rem;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.grid-2 {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.85rem;
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.prose p,
.prose li {
  margin: 0 0 1rem;
  color: var(--color-text);
}

.prose-wide {
  max-width: 720px;
}

.prose ul {
  padding-left: 1.25rem;
}

.sidebar-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.kenmerken-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.popularity-card .spec-list dd {
  font-size: 0.95rem;
  line-height: 1.45;
}

.spec-list {
  margin: 0;
}

.spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.spec-list > div:last-child {
  border-bottom: none;
}

.spec-list dt {
  color: var(--color-muted);
  font-weight: 400;
}

.spec-list dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}

.price-box {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 2px solid var(--color-accent);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-accent);
}

.price-box small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-muted);
}

.highlights {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.highlight-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.highlight-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  font-weight: 600;
}

.highlight-card p {
  margin: 0;
  font-size: 0.98rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

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

.gallery-item {
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 3 / 2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.map-section h2 {
  margin-bottom: 1rem;
}

.map-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-embed {
  display: block;
  width: 100%;
  height: min(420px, 55vh);
  border: 0;
}

.map-card-link {
  margin: 0;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.map-card-link a {
  font-weight: 500;
}

.cta-section {
  padding-bottom: 4rem;
}

.cta-box {
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin-bottom: 0.5rem;
}

.cta-box p {
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 2rem 0;
  font-size: 0.9rem;
  text-align: center;
}

.footer .container {
  text-align: center;
}

.footer p {
  margin: 0 0 0.65rem;
}

.footer a {
  color: color-mix(in srgb, var(--color-accent) 50%, white);
}

.footer-broker {
  font-size: 1rem;
}

.footer-broker strong {
  color: #fff;
  font-weight: 600;
}

.footer-broker-link {
  color: #fff;
  text-decoration: none;
}

.footer-broker-link:hover strong {
  color: color-mix(in srgb, var(--color-accent) 65%, white);
}

.footer-contact {
  opacity: 0.9;
}

.footer-meta {
  opacity: 0.75;
  margin-top: 0.25rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox.hidden {
  display: none;
}

.lightbox img {
  max-width: min(94vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}
