/* nissehoeve.nl - landelijke verkooppagina */

:root {
  --groen-donker: #2f4f3a;
  --groen: #4f7a5a;
  --groen-licht: #dfe8da;
  --zand: #f6f1e7;
  --zand-donker: #e9dfcc;
  --aarde: #8a6a4a;
  --goud: #c9a227;
  --tekst: #2b2b28;
  --tekst-licht: #6b6b64;
  --wit: #ffffff;
  --funda-oranje: #ff9b21;
  --rood: #c0342c; /* alleen voor het te-koop-label */
  --kop-font: "Fraunces", Georgia, "Times New Roman", serif;
  --body-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --schaduw: 0 10px 30px rgba(47, 79, 58, 0.12);
  --max-breedte: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--tekst);
  background: var(--zand);
  line-height: 1.6;
}

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

/* Grid/flex children with wide images must be allowed to shrink below their content size */
.intro-grid > *,
.lucht-grid > *,
.omgeving-grid > *,
.energie-grid > *,
.kaart-item,
.verdieping,
.sfeer figure,
.slider,
.slider__track figure {
  min-width: 0;
}

a {
  color: var(--groen-donker);
}

h1,
h2,
h3 {
  font-family: var(--kop-font);
  font-weight: 500;
  line-height: 1.15;
  color: var(--groen-donker);
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

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

.sectie {
  padding: 4.5rem 0;
}

.sectie--zand-donker {
  background: var(--zand-donker);
}

.sectie--groen {
  background: var(--groen-donker);
  color: var(--zand);
}

.sectie--groen h2,
.sectie--groen h3 {
  color: var(--zand);
}

.sectie--groen a {
  color: var(--goud);
}

.sectie-kop {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.sectie-kop .intro {
  font-size: 1.1rem;
  color: var(--tekst-licht);
}

.sectie--groen .sectie-kop .intro {
  color: rgba(246, 241, 231, 0.8);
}

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

.sectie--groen .label {
  color: var(--goud);
}

/* Header & navigatie */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(47, 79, 58, 0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.merk {
  font-family: var(--kop-font);
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--groen-donker);
}

.merk small {
  display: block;
  font-family: var(--body-font);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aarde);
}

.hoofdnav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

.hoofdnav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--tekst);
}

.hoofdnav a:hover {
  color: var(--groen);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--groen-donker);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  color: var(--groen-donker);
  cursor: pointer;
}

/* Knoppen */
.knop {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.knop:hover {
  transform: translateY(-1px);
}

.knop--primair {
  background: var(--groen-donker);
  color: var(--zand);
}

.knop--primair:hover {
  background: var(--groen);
}

.knop--secundair {
  background: transparent;
  border-color: var(--groen-donker);
  color: var(--groen-donker);
}

.knop--licht {
  background: var(--zand);
  color: var(--groen-donker);
}

.knop--funda {
  background: var(--funda-oranje);
  color: var(--wit);
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 860px);
  display: grid;
  align-items: end;
  color: var(--wit);
  isolation: isolate;
}

.hero__foto {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 35, 25, 0.15) 0%, rgba(20, 35, 25, 0.82) 100%);
}

.hero .knop--primair {
  border-color: rgba(255, 255, 255, 0.55);
}

.hero__inhoud {
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  color: var(--wit);
  max-width: 14ch;
  margin-bottom: 0.4em;
}

.hero .hero__sub {
  font-size: 1.15rem;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.9);
}

/* "Te koop" eerst, anders vraagt een bezoeker zich af wat hij ziet */
.hero__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.hero__tekoop {
  display: inline-block;
  background: var(--rood);
  color: var(--wit);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero__adres {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zand);
  background: rgba(31, 51, 39, 0.72);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  margin-bottom: 0;
}

.hero__prijs {
  font-family: var(--kop-font);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--wit);
  margin: 0.2rem 0 0;
}

.hero__prijs small {
  font-family: var(--body-font);
  font-size: 0.55em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--goud);
}

.hero__acties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.kernfeiten {
  background: var(--groen-donker);
  color: var(--zand);
}

.kernfeiten ul {
  list-style: none;
  margin: 0;
  padding: 1.2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 1rem 1.5rem;
}

.kernfeiten li strong {
  display: block;
  font-family: var(--kop-font);
  font-size: 1.5rem;
  color: var(--wit);
}

.kernfeiten li span {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.75);
}

/* Intro */
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Personal note from the residents, just before the call to action. Its own
   background, otherwise it reads as part of the Locatie section above it. */
.bewoners-sectie .bewoners {
  max-width: 760px;
  margin-inline: auto;
}

/* The card stays light, so the label needs the brown instead of the gold that
   .sectie--groen would otherwise give it */
.bewoners-sectie .bewoners .label {
  color: var(--aarde);
}

.bewoners {
  margin: 1.8rem 0 0;
  padding: 1.4rem 1.6rem 0.6rem;
  border-left: 4px solid var(--goud);
  background: var(--wit);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--schaduw);
}

.bewoners .label {
  margin-bottom: 0.5rem;
}

.bewoners p {
  font-family: var(--kop-font);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--tekst);
}

.intro-grid .lead {
  font-size: 1.2rem;
}

.intro-grid figure {
  margin: 0;
  cursor: zoom-in;
  position: sticky;
  top: 90px;
  align-self: start;
}

.intro-grid figure img {
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.intro-grid figcaption {
  font-size: 0.8rem;
  color: var(--tekst-licht);
  margin-top: 0.6rem;
}

/* Sfeerbeelden: full-width photo strip between sections */
.sfeer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.sfeer figure {
  margin: 0;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  cursor: zoom-in;
}

.sfeer figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

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

.sfeer figure:hover img {
  transform: scale(1.03);
}

.sfeer figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.8rem 0.9rem 0.6rem;
  font-size: 0.85rem;
  color: var(--wit);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* Kenmerken */
.kenmerken {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1.2rem;
}

.kenmerken li {
  background: var(--wit);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--schaduw);
}

.kenmerken .icoon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--groen-licht);
  color: var(--groen-donker);
  margin-bottom: 0.8rem;
}

.kenmerken .icoon svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kenmerken h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.kenmerken p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--tekst-licht);
}

/* Galerij */
.galerij-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.galerij-filter button {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 79, 58, 0.3);
  background: var(--wit);
  color: var(--groen-donker);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.galerij-filter button:hover {
  background: var(--groen-licht);
}

.galerij-filter button[aria-pressed="true"] {
  background: var(--groen-donker);
  border-color: var(--groen-donker);
  color: var(--zand);
}

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

.galerij figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 3 / 2;
  background: var(--groen-licht);
}

.galerij figure[hidden] {
  display: none;
}

.galerij figure.groot {
  grid-column: span 2;
  grid-row: span 2;
}

.galerij img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.galerij figure:hover img {
  transform: scale(1.03);
}

.galerij figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.8rem 0.9rem 0.6rem;
  font-size: 0.85rem;
  color: var(--wit);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* Collapsed gallery: only the first photos are visible until "toon alles" */
.galerij.is-ingeklapt figure.is-verborgen {
  display: none;
}

/* Before main.js runs there is no .is-verborgen yet, so the grid would render
   all 66 photos and then collapse: a large layout shift. This keeps the first
   paint at the collapsed size. Keep the count in sync with data-initieel. */
.galerij.is-ingeklapt:not([data-js]) > figure:nth-of-type(n + 8) {
  display: none;
}

.galerij-acties {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.galerij-acties .knop {
  border-color: var(--groen-donker);
}

/* Slider: horizontal scroll-snap strip with arrows and dots */
.slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--groen-licht);
}

.slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.slider__track::-webkit-scrollbar {
  display: none;
}

.slider__track figure {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 3 / 2;
  cursor: zoom-in;
}

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

.slider__track figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.8rem 0.9rem 0.6rem;
  font-size: 0.85rem;
  color: var(--wit);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.slider__knop {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: none;
  background: rgba(246, 241, 231, 0.92);
  color: var(--groen-donker);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.slider__knop:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.slider__knop--vorige {
  left: 0.7rem;
}

.slider__knop--volgende {
  right: 0.7rem;
}

.slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.1rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  pointer-events: none;
}

.slider__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.15s ease, transform 0.15s ease;
}

.slider__dots span.is-actief {
  background: var(--wit);
  transform: scale(1.3);
}

.slider__teller {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(20, 35, 25, 0.55);
  color: var(--wit);
  pointer-events: none;
}

/* Floor plans inside a slider: show the whole drawing instead of cropping it */
.slider__track figure.slide--plattegrond {
  background: var(--wit);
}

.slider__track figure.slide--plattegrond img {
  object-fit: contain;
  padding: 0.6rem 0.6rem 2.6rem;
}

.slider__track figure.slide--plattegrond figcaption {
  color: var(--tekst);
  text-shadow: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
}

/* A slider with a single photo needs no controls */
.slider.is-enkel .slider__knop,
.slider.is-enkel .slider__dots,
.slider.is-enkel .slider__teller {
  display: none;
}

/* Lightbox */
dialog#lightbox {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  margin: 0;
  color: var(--zand);
}

dialog#lightbox::backdrop {
  background: rgba(20, 30, 22, 0.92);
}

dialog#lightbox figure {
  margin: 0;
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 3.5rem 4rem 1.5rem;
  touch-action: pan-y;
  user-select: none;
}

dialog#lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 7.5rem);
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

dialog#lightbox figcaption {
  text-align: center;
  padding-top: 0.8rem;
  font-size: 0.95rem;
}

dialog#lightbox .lightbox__teller {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(246, 241, 231, 0.65);
  margin-top: 0.2rem;
}

dialog#lightbox button {
  position: absolute;
  background: rgba(246, 241, 231, 0.12);
  color: var(--zand);
  border: 1px solid rgba(246, 241, 231, 0.3);
  border-radius: 50%;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

dialog#lightbox button:hover {
  background: rgba(246, 241, 231, 0.28);
}

dialog#lightbox [data-close] {
  top: 1rem;
  right: 1rem;
}

dialog#lightbox [data-vorige],
dialog#lightbox [data-volgende] {
  top: 50%;
  transform: translateY(-50%);
}

dialog#lightbox [data-vorige] {
  left: 1rem;
}

dialog#lightbox [data-volgende] {
  right: 1rem;
}

/* Luchtfoto's boven de video's */
.lucht-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.lucht-grid .slider {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lucht-grid p {
  color: rgba(246, 241, 231, 0.85);
}

/* 360-tour (Pannellum): poster + start button, viewer is created on click */
.tour__viewer {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1f3327;
  box-shadow: var(--schaduw);
}

.tour__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* hides the black nadir strip of the panoramas */
  filter: brightness(0.8);
}

.tour__start {
  position: absolute;
  inset: 0;
  margin: auto;
  width: max-content;
  height: max-content;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.6rem 0.8rem 0.9rem;
  border: none;
  border-radius: 999px;
  background: rgba(246, 241, 231, 0.95);
  color: var(--groen-donker);
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.tour__start:hover {
  transform: scale(1.04);
}

.tour__icoon {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--groen-donker);
  color: var(--zand);
  font-family: var(--kop-font);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.tour__melding {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  color: var(--zand);
}

.tour__pannellum {
  width: 100%;
  height: 100%;
}

.tour__viewer.is-actief {
  cursor: grab;
}

/* Pannellum's own chrome, toned down to the site palette */
.tour__viewer .pnlm-container {
  background: #1f3327;
  font-family: var(--body-font);
}

.tour__viewer .pnlm-load-box {
  background: rgba(31, 51, 39, 0.9);
  border-radius: var(--radius);
}

.tour__viewer .pnlm-about-msg {
  display: none !important;
}

.tour__titel {
  font-family: var(--kop-font);
  font-size: 1.3rem;
  color: var(--groen-donker);
  margin: 1rem 0 0.6rem;
}

.tour__scenes {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.tour__scene {
  flex: 0 0 auto;
  width: 132px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--wit);
  color: var(--tekst);
  font: inherit;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tour__scene img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.tour__scene span {
  display: block;
  padding: 0.35rem 0.5rem 0.45rem;
  line-height: 1.25;
}

.tour__scene:hover {
  transform: translateY(-2px);
}

.tour__scene[aria-selected="true"] {
  border-color: var(--goud);
}

@media (max-width: 760px) {
  .tour__viewer {
    aspect-ratio: 4 / 3;
  }

  .tour__scene {
    width: 108px;
    font-size: 0.72rem;
  }
}

/* Woningvideo: large click-to-play facade, the iframe is only created on click */
.sectie-kop--midden {
  margin-inline: auto;
  text-align: center;
}

.video-facade {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1f3327;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: transform 0.4s ease, filter 0.3s ease;
}

.video-facade:hover img {
  transform: scale(1.02);
  filter: brightness(0.75);
}

.video-facade__knop {
  position: absolute;
  inset: 0;
  margin: auto;
  width: max-content;
  height: max-content;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.6rem 0.9rem 1rem;
  border: none;
  border-radius: 999px;
  background: rgba(246, 241, 231, 0.95);
  color: var(--groen-donker);
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.video-facade:hover .video-facade__knop {
  transform: scale(1.04);
}

.video-facade__icoon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--groen-donker);
  position: relative;
}

.video-facade__icoon::after {
  content: "";
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.9rem;
  border-color: transparent transparent transparent var(--zand);
}

.video-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* The three drone clips sit three-up, so their play button has to be smaller */
.video-facade--klein {
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

.video-facade--klein .video-facade__knop {
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 0.55rem;
  font-size: 0.9rem;
}

.video-facade--klein .video-facade__icoon {
  width: 2rem;
  height: 2rem;
}

.video-facade--klein .video-facade__icoon::after {
  border-width: 0.4rem 0 0.4rem 0.65rem;
}

/* Video */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}

.video {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.video p {
  margin: 0;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
}

/* Indeling */
/* Two floor cards side by side; the attic spans the full width below them. */
.indeling {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

@media (min-width: 901px) {
  .indeling {
    grid-template-columns: repeat(2, 1fr);
  }
}

.verdieping {
  background: var(--wit);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--schaduw);
}

.verdieping .slider {
  margin-bottom: 1.2rem;
}

.verdieping ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.verdieping li {
  margin-bottom: 0.3rem;
}

/* The attic has no photos of its own, so instead of a half-empty card it gets a
   full-width one with the floor plan beside the text. */
.verdieping--breed {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(140px, 185px) 1fr;
  gap: 1.8rem;
  align-items: center;
}

.verdieping--breed > figure {
  margin: 0;
}

.verdieping--breed ul {
  margin-bottom: 0.6rem;
}

/* Side by side leaves too little room for the text on a narrow card */
@media (max-width: 700px) {
  .verdieping--breed {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    justify-items: start;
  }

  .verdieping--breed > figure {
    max-width: 210px;
  }
}

/* Plattegrond (direct child); slider figures inside .verdieping keep their own styling */
.verdieping > figure {
  margin: 1rem 0 0;
  cursor: zoom-in;
}

.verdieping > figure img {
  border: 1px solid var(--zand-donker);
  border-radius: 8px;
}

.verdieping > figure figcaption {
  font-size: 0.8rem;
  color: var(--tekst-licht);
  margin-top: 0.4rem;
}

/* Buiten */
.buiten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.kaart-item {
  background: var(--wit);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schaduw);
}

.kaart-item > img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.kaart-item .slider {
  border-radius: 0;
}

.kaart-item .tekst {
  padding: 1.2rem 1.4rem 1.4rem;
}

.kaart-item h3 {
  margin-bottom: 0.3rem;
}

.kaart-item p {
  margin: 0;
  color: var(--tekst-licht);
  font-size: 0.95rem;
}

/* Energie */
.energie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.energie-grid ul {
  padding-left: 1.2rem;
}

/* The electricity figures include charging an EV; say so before the numbers,
   otherwise the kWh reads as an alarmingly high household usage. */
.verbruik-let-op {
  margin: 0 0 1rem;
  padding: 0.85rem 1.1rem;
  border-left: 4px solid var(--goud);
  border-radius: 0 8px 8px 0;
  background: var(--groen-licht);
  color: var(--tekst);
  font-size: 0.95rem;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--wit);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schaduw);
  font-size: 0.95rem;
  color: var(--tekst);
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--zand-donker);
}

table.data th {
  background: var(--groen-licht);
  font-weight: 600;
  color: var(--groen-donker);
}

table.data td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

table.data tr:last-child td {
  border-bottom: none;
}

.noot {
  font-size: 0.85rem;
  color: var(--tekst-licht);
}

/* Omgeving */
.omgeving-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

/* Locatie */
#kaart {
  height: 460px;
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  z-index: 1;
}

.kaart-acties {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.kaart-acties label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

/* Makelaar / CTA */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.cta-kaart {
  background: var(--wit);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--schaduw);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  color: var(--tekst);
}

.cta-kaart .logo {
  height: 96px;
  width: auto;
}

/* Agency name in type, until a usable logo file is available */
.cta-merk {
  margin: 0;
  font-family: var(--kop-font);
  font-size: 1.9rem;
  line-height: 1.05;
  color: var(--groen-donker);
}

.cta-merk span {
  display: block;
  font-family: var(--body-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--aarde);
  margin-top: 0.3rem;
}

.cta-kaart .logo--funda {
  height: 40px;
}

.cta-kaart p {
  margin: 0;
  color: var(--tekst-licht);
}

.cta-kaart .hint {
  font-size: 0.85rem;
  color: var(--aarde);
}

/* Agency contact block: the phone number is the fastest route to a viewing */
.makelaar {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--tekst-licht);
}

.makelaar__tel {
  font-family: var(--kop-font);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--groen-donker);
  text-decoration: none;
}

.makelaar__tel:hover {
  color: var(--groen);
  text-decoration: underline;
}

.makelaar__noot {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--aarde);
  margin-bottom: 0.4rem;
}

/* WhatsApp is a second way to reach the agency, so it needs to be tappable */
.makelaar__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin: 0.35rem 0 0.7rem;
  padding: 0.4rem 0.85rem 0.4rem 0.6rem;
  border-radius: 999px;
  background: #25d366;
  color: var(--wit);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.makelaar__wa svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.makelaar__wa:hover,
.makelaar__wa:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* What the visitor finds on the agency's own listing */
.cta-lijst {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--tekst-licht);
  font-size: 0.95rem;
}

.cta-lijst li {
  margin-bottom: 0.35rem;
}

.placeholder-badge {
  display: inline-block;
  background: var(--goud);
  color: var(--groen-donker);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Social sharing: floating side bar on desktop/tablet, bottom bar on mobile */
.deel-balk {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.4rem;
  background: rgba(246, 241, 231, 0.96);
  border: 1px solid rgba(47, 79, 58, 0.12);
  border-radius: 999px;
  box-shadow: var(--schaduw);
  backdrop-filter: blur(6px);
}

/* Makelaarsknoppen bovenin de balk, met een scheiding naar de deelknoppen */
.deel-balk__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(47, 79, 58, 0.15);
}

.deel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.deel-cta svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* On the narrow desktop rail the icon alone has to carry the meaning */
.deel-cta span {
  display: none;
}

.deel-cta--neeskens {
  background: var(--groen-donker);
  color: var(--zand);
}

.deel-cta--funda {
  background: var(--funda-oranje);
  color: var(--wit);
}

.deel-cta:hover,
.deel-cta:focus-visible {
  transform: scale(1.08);
  filter: brightness(1.08);
}

.deel-balk__label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aarde);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 0.2rem;
}

.deel-balk ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.deel-balk li[hidden] {
  display: none;
}

.deel-knop {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--wit);
  color: var(--groen-donker);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.deel-knop svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.deel-knop:hover,
.deel-knop:focus-visible {
  color: var(--wit);
  transform: scale(1.08);
}

.deel-knop--whatsapp:hover,
.deel-knop--whatsapp:focus-visible { background: #25d366; }
.deel-knop--facebook:hover,
.deel-knop--facebook:focus-visible { background: #1877f2; }
.deel-knop--linkedin:hover,
.deel-knop--linkedin:focus-visible { background: #0a66c2; }
.deel-knop--x:hover,
.deel-knop--x:focus-visible { background: #000000; }
.deel-knop--telegram:hover,
.deel-knop--telegram:focus-visible { background: #26a5e4; }
.deel-knop--mail:hover,
.deel-knop--mail:focus-visible,
.deel-knop--link:hover,
.deel-knop--link:focus-visible,
.deel-knop--native:hover,
.deel-knop--native:focus-visible { background: var(--groen-donker); }

.deel-balk__melding {
  position: absolute;
  right: calc(100% + 0.6rem);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--groen-donker);
  color: var(--zand);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.deel-balk__melding.is-zichtbaar {
  opacity: 1;
}

/* Between tablet and wide desktop the fixed bar would overlap the content column */
@media (min-width: 761px) and (max-width: 1360px) {
  .container {
    width: min(var(--max-breedte), 100% - 2.5rem - 6.5rem);
  }
}

@media (max-width: 760px) {
  .deel-balk {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom));
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(47, 79, 58, 0.12);
  }

  /* On a phone the agency buttons get a readable label instead of an icon */
  .deel-balk__cta {
    flex-direction: row;
    gap: 0.4rem;
    padding: 0 0.5rem 0 0;
    border-bottom: none;
    border-right: 1px solid rgba(47, 79, 58, 0.15);
  }

  .deel-cta {
    width: auto;
    height: 2.4rem;
    padding: 0 0.9rem;
  }

  .deel-cta svg {
    display: none;
  }

  .deel-cta span {
    display: inline;
  }

  /* The "Delen" label costs width that the buttons need */
  .deel-balk__label {
    display: none;
  }

  .deel-balk ul {
    flex-direction: row;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .deel-balk ul::-webkit-scrollbar {
    display: none;
  }

  /* With the system share sheet available, WhatsApp and copy are enough here */
  .deel-balk.heeft-native li[data-mobiel="secundair"] {
    display: none;
  }

  .deel-balk__melding {
    right: auto;
    left: 50%;
    top: auto;
    bottom: calc(100% + 0.6rem);
    transform: translateX(-50%);
  }

  /* keep the footer readable above the bottom bar */
  .site-footer {
    padding-bottom: 5.5rem;
  }
}

/* Very narrow phones: shorten the agency buttons a little further */
@media (max-width: 380px) {
  .deel-cta {
    padding: 0 0.7rem;
    font-size: 0.75rem;
  }
}

/* Short desktop windows: a compact rail so nothing is clipped */
@media (min-width: 761px) and (max-height: 760px) {
  .deel-balk {
    gap: 0.25rem;
    padding: 0.45rem 0.35rem;
    max-height: calc(100vh - 1.5rem);
    overflow-y: auto;
    scrollbar-width: none;
  }

  .deel-balk::-webkit-scrollbar {
    display: none;
  }

  .deel-balk__label {
    display: none;
  }

  .deel-balk__cta {
    gap: 0.25rem;
    padding-bottom: 0.35rem;
  }

  .deel-balk ul {
    gap: 0.25rem;
  }

  .deel-knop,
  .deel-cta {
    width: 2.1rem;
    height: 2.1rem;
  }

  .deel-knop svg,
  .deel-cta svg {
    width: 1rem;
    height: 1rem;
  }
}

/* Footer */
.site-footer {
  background: #1f3327;
  color: rgba(246, 241, 231, 0.7);
  font-size: 0.85rem;
  padding: 2.5rem 0;
}

.site-footer a {
  color: var(--zand);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .intro-grid,
  .energie-grid,
  .omgeving-grid,
  .cta-grid,
  .lucht-grid {
    grid-template-columns: 1fr;
  }

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

  .galerij figure.groot {
    grid-column: span 2;
    grid-row: span 1;
  }

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

  .sfeer figure:first-child {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 3 / 2;
  }

  dialog#lightbox figure {
    padding: 3.5rem 0.5rem 1rem;
  }

  dialog#lightbox [data-vorige],
  dialog#lightbox [data-volgende] {
    top: auto;
    bottom: 4.5rem;
    transform: none;
    width: 2.4rem;
    height: 2.4rem;
  }

  dialog#lightbox figcaption {
    padding: 0.8rem 3.5rem 0;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .hoofdnav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: var(--zand);
    border-bottom: 1px solid rgba(47, 79, 58, 0.15);
    padding: 1rem 1.25rem;
  }

  .hoofdnav.is-open {
    display: block;
  }

  .hoofdnav ul {
    flex-direction: column;
    gap: 0.8rem;
  }

  .sectie {
    padding: 3rem 0;
  }

  .hero {
    min-height: clamp(520px, 70vh, 720px);
  }

  #kaart {
    height: 340px;
  }
}
