/* ------------------------------------------------------------------
   Tjongerhuisje aan het Tjongerpad
   Kleuren komen uit het huisje zelf: de saliegroene balken, de kalkwitte
   muren, de houten vloer en de baksteen van de gevel.
   ------------------------------------------------------------------ */

:root {
  --kalk:        #F6F2E8;
  --kalk-diep:   #EDE7D8;
  --papier:      #FDFBF6;
  --salie:       #6E7A5F;
  --salie-diep:  #414A36;
  --salie-licht: #93A083;
  --hout:        #B98C5E;
  --baksteen:    #A8553A;
  --inkt:        #2A2822;
  --inkt-zacht:  #5C584D;
  --lijn:        #DCD4C1;

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --mw: 1180px;
  --radius: 4px;
  --schaduw: 0 1px 2px rgba(42,40,34,.05), 0 8px 24px rgba(42,40,34,.07);
  --schaduw-diep: 0 2px 4px rgba(42,40,34,.06), 0 18px 48px rgba(42,40,34,.13);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1em; }
a { color: var(--salie-diep); }

.wrap { max-width: var(--mw); margin: 0 auto; padding: 0 24px; }
.smal { max-width: 720px; }

section { padding: clamp(56px, 8vw, 104px) 0; }
section + section { border-top: 1px solid transparent; }

.opschrift {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--salie);
  font-weight: 600;
  margin: 0 0 .9em;
}

/* ---------- knoppen ---------- */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  padding: .85em 1.6em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: .18s ease;
}
.knop-vol { background: var(--salie-diep); color: #fff; }
.knop-vol:hover { background: var(--inkt); transform: translateY(-1px); }
.knop-rand { background: transparent; color: var(--salie-diep); border-color: var(--salie); }
.knop-rand:hover { background: var(--salie-diep); color: #fff; }
.knop-breed { width: 100%; }
.knop:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- kop / navigatie ---------- */
.balk {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253,251,246,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--lijn);
}
.balk-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.merk { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; text-decoration: none; color: var(--inkt); line-height: 1.1; }
.merk small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--salie); font-weight: 600; }
.balk nav { margin-left: auto; display: flex; gap: 26px; }
.balk nav a { color: var(--inkt-zacht); text-decoration: none; font-size: .93rem; font-weight: 500; }
.balk nav a:hover { color: var(--salie-diep); }
.balk .knop { margin-left: 26px; padding: .6em 1.3em; }
.nav-knop { display: none; background: none; border: 0; cursor: pointer; margin-left: auto; padding: 8px; }
.nav-knop span { display: block; width: 22px; height: 2px; background: var(--inkt); margin: 4px 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; overflow: hidden; }
.hero img.achter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,40,34,.34) 0%, rgba(42,40,34,.05) 38%, rgba(42,40,34,.72) 100%);
}
/* let op: de zijpadding van .wrap moet blijven staan, anders plakt de
   titel op mobiel tegen de schermrand */
.hero-tekst { position: relative; z-index: 2; color: #fff; padding: 0 24px clamp(36px, 6vw, 68px); }
.hero-tekst h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); color: #fff; margin-bottom: .18em; text-shadow: 0 2px 20px rgba(0,0,0,.28); }
.hero-tekst .plek { font-size: clamp(1rem, 1.7vw, 1.2rem); opacity: .94; margin: 0 0 1.1em; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero-feiten { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 1.6em; }
.hero-feiten li {
  background: rgba(253,251,246,.16); border: 1px solid rgba(253,251,246,.34);
  backdrop-filter: blur(6px); padding: .4em 1em; border-radius: 999px; font-size: .88rem;
}
.hero .knop-vol { background: var(--papier); color: var(--inkt); }
.hero .knop-vol:hover { background: #fff; }

/* ---------- pitch ---------- */
.pitch { background: var(--kalk); }
.pitch p.groot {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  line-height: 1.45; color: var(--salie-diep); margin: 0;
}

/* ---------- kenmerken ---------- */
.kenmerken { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2px; background: var(--lijn); border: 1px solid var(--lijn); border-radius: var(--radius); overflow: hidden; margin-top: 36px; }
.kenmerk { background: var(--kalk); padding: 22px 18px; text-align: center; }
.kenmerk svg { width: 30px; height: 30px; color: var(--salie); stroke: currentColor; fill: none; stroke-width: 1.6; margin: 0 auto 10px; display: block; }
.kenmerk span { display: block; font-size: .88rem; color: var(--inkt-zacht); }

/* ---------- twee kolommen ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.duo.omgekeerd .duo-beeld { order: 2; }
.duo-beeld img { border-radius: var(--radius); box-shadow: var(--schaduw); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.duo-stapel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo-stapel img { aspect-ratio: 1; }
.duo-stapel img:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; }

/* ---------- galerij ---------- */
.galerij-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.filter {
  background: transparent; border: 1px solid var(--lijn); color: var(--inkt-zacht);
  padding: .45em 1.1em; border-radius: 999px; cursor: pointer; font: inherit; font-size: .88rem;
}
.filter[aria-pressed="true"] { background: var(--salie-diep); color: #fff; border-color: var(--salie-diep); }
/* Vaste rijhoogte in plaats van aspect-ratio per tegel: alleen zo sluit
   de grote tegel (2 kolommen x 2 rijen) exact aan op twee gewone rijen. */
.raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  grid-auto-rows: 195px;
  grid-auto-flow: dense;
  gap: 10px;
}
.tegel { position: relative; border: 0; padding: 0; background: var(--kalk-diep); cursor: zoom-in; overflow: hidden; border-radius: var(--radius); height: 100%; }
.tegel img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tegel:hover img { transform: scale(1.045); }
.tegel figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(42,40,34,.78));
  color: #fff; font-size: .82rem; text-align: left; opacity: 0; transition: opacity .25s;
}
.tegel:hover figcaption, .tegel:focus-visible figcaption { opacity: 1; }
.tegel.groot { grid-column: span 2; grid-row: span 2; }

/* lightbox */
.lichtbak { position: fixed; inset: 0; z-index: 200; background: rgba(28,27,22,.94); display: none; align-items: center; justify-content: center; }
.lichtbak[open], .lichtbak.aan { display: flex; }
.lichtbak img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 2px; }
.lichtbak figcaption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.82); font-size: .9rem; }
.lb-knop { position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; display: grid; place-items: center; }
.lb-vorige { left: 3vw; } .lb-volgende { right: 3vw; } .lb-sluit { top: 3vh; right: 3vw; }
.lb-knop:hover { background: rgba(255,255,255,.2); }

/* ---------- voorzieningen ---------- */
.voorz { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 34px 44px; }
.voorz h3 { font-size: 1.02rem; font-family: var(--sans); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--salie); margin-bottom: .7em; }
.voorz ul { list-style: none; padding: 0; margin: 0; }
.voorz li { padding: .34em 0 .34em 1.45em; position: relative; font-size: .96rem; color: var(--inkt-zacht); }
.voorz li::before { content: ""; position: absolute; left: 0; top: .82em; width: 7px; height: 7px; border-radius: 50%; background: var(--salie-licht); }

/* ---------- eerlijk-blok ---------- */
.eerlijk { background: var(--salie-diep); color: var(--kalk); }
.eerlijk h2 { color: #fff; }
.eerlijk ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.eerlijk li { padding-left: 30px; position: relative; color: rgba(246,242,232,.88); }
.eerlijk li::before { content: "—"; position: absolute; left: 0; color: var(--salie-licht); }

/* ---------- omgeving ---------- */
/* 6 plekken: bij 3 kolommen vullen ze precies twee rijen, geen lege cel */
.plekken { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 2px; background: var(--lijn); border: 1px solid var(--lijn); border-radius: var(--radius); overflow: hidden; }
.plek-kaart { background: var(--papier); padding: 26px 24px; }
.plek-kaart h3 { font-size: 1.1rem; margin-bottom: .18em; }
.plek-kaart .afstand { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hout); font-weight: 600; display: block; margin-bottom: .7em; }
.plek-kaart p { font-size: .93rem; color: var(--inkt-zacht); margin: 0; }

/* ---------- reviews ---------- */
.reviews { background: var(--kalk); }
.score-blok { display: flex; align-items: baseline; gap: 14px; margin-bottom: 34px; }
.score-groot { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--salie-diep); }
.score-blok span { color: var(--inkt-zacht); font-size: .95rem; }
.review-rij { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.review {
  background: var(--papier); border: 1px solid var(--lijn); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column;
}
.review blockquote { margin: 0 0 18px; font-size: .96rem; color: var(--inkt-zacht); line-height: 1.6; }
.review footer { margin-top: auto; font-size: .88rem; display: flex; justify-content: space-between; align-items: center; }
.review .naam { font-weight: 600; }
.review .cijfer { background: var(--salie-diep); color: #fff; border-radius: 999px; padding: .15em .7em; font-size: .8rem; font-weight: 600; }
.review .datum { color: var(--inkt-zacht); opacity: .75; font-size: .8rem; }

/* ---------- praktisch / vragen ---------- */
.kolommen-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 44px; }
.feitenlijst { list-style: none; padding: 0; margin: 0; }
.feitenlijst li { display: flex; justify-content: space-between; gap: 18px; padding: .75em 0; border-bottom: 1px solid var(--lijn); font-size: .95rem; }
.feitenlijst li span:first-child { color: var(--inkt-zacht); }
.feitenlijst li span:last-child { font-weight: 600; text-align: right; }
details.vraag { border-bottom: 1px solid var(--lijn); }
details.vraag summary { cursor: pointer; padding: 1em 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.vraag summary::-webkit-details-marker { display: none; }
details.vraag summary::after { content: "+"; color: var(--salie); font-size: 1.3rem; line-height: 1; }
details.vraag[open] summary::after { content: "–"; }
details.vraag p { color: var(--inkt-zacht); font-size: .95rem; padding-bottom: .6em; margin: 0; }

/* ---------- boekpaneel ---------- */
.boek-strook { background: var(--kalk); }
.boek-grid { display: grid; grid-template-columns: 1fr 420px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.paneel {
  background: var(--papier); border: 1px solid var(--lijn); border-radius: 8px;
  padding: 28px; box-shadow: var(--schaduw-diep); position: sticky; top: 92px;
}
.paneel .vanaf { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--lijn); }
.paneel .vanaf b { font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.paneel .vanaf span { color: var(--inkt-zacht); font-size: .92rem; }
.veld { margin-bottom: 16px; }
.veld label { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--inkt-zacht); font-weight: 600; margin-bottom: .45em; }
.veld input, .veld select, .veld textarea {
  width: 100%; padding: .72em .85em; border: 1px solid var(--lijn); border-radius: var(--radius);
  font: inherit; font-size: .95rem; background: #fff; color: var(--inkt);
}
.veld input:focus, .veld select:focus, .veld textarea:focus { outline: 2px solid var(--salie-licht); outline-offset: 1px; border-color: var(--salie); }
.veld-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.schakel { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--kalk); border-radius: var(--radius); margin-bottom: 16px; }
.schakel input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--salie-diep); flex: none; }
.schakel label { font-size: .92rem; cursor: pointer; }
.schakel label b { display: block; margin-bottom: 2px; }
.schakel label small { color: var(--inkt-zacht); }

.rekening { margin: 20px 0; font-size: .93rem; }
.rekening .rij { display: flex; justify-content: space-between; gap: 14px; padding: .42em 0; color: var(--inkt-zacht); }
.rekening .rij span:first-child { border-bottom: 1px dotted var(--lijn); flex: 1; }
.rekening .totaal { display: flex; justify-content: space-between; border-top: 2px solid var(--inkt); margin-top: .7em; padding-top: .7em; font-weight: 700; font-size: 1.12rem; color: var(--inkt); }
.rekening .kleintje { font-size: .8rem; color: var(--inkt-zacht); margin-top: .7em; line-height: 1.5; }
.leeg-melding { color: var(--inkt-zacht); font-size: .92rem; text-align: center; padding: 18px 0; }

/* ---------- kalender ---------- */
.kal-kop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kal-kop button { background: none; border: 1px solid var(--lijn); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--inkt); font-size: 1rem; }
.kal-kop button:hover:not(:disabled) { border-color: var(--salie); background: var(--kalk); }
.kal-kop button:disabled { opacity: .3; cursor: not-allowed; }
.kal-maanden { display: grid; gap: 30px; }
.kal-maand h4 { font-family: var(--serif); font-size: 1.05rem; text-align: center; margin: 0 0 10px; }
.kal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.kal-dagnaam { text-align: center; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--inkt-zacht); padding: 4px 0; font-weight: 600; }
.kal-dag {
  aspect-ratio: 1; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: .85rem;
  border-radius: var(--radius); color: var(--inkt); display: grid; place-items: center; position: relative;
}
.kal-dag:hover:not(:disabled) { background: var(--kalk-diep); }
.kal-dag:disabled { color: var(--lijn); cursor: not-allowed; }
.kal-dag.bezet { color: #C0B8A4; text-decoration: line-through; cursor: not-allowed; }
.kal-dag.leeg { visibility: hidden; }
.kal-dag.gekozen { background: var(--salie-diep); color: #fff; font-weight: 600; }
.kal-dag.tussen { background: var(--kalk-diep); border-radius: 0; }
.kal-legenda { display: flex; gap: 20px; justify-content: center; margin-top: 16px; font-size: .78rem; color: var(--inkt-zacht); }
.kal-legenda i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
/* de legenda laat een echt dagcijfer zien, zodat "vrij" en "bezet" er
   precies zo uitzien als in de kalender zelf */
.kal-legenda b { display: inline-block; margin-right: 6px; font-weight: 400; }
.kal-legenda .legenda-vrij { color: var(--inkt); }
.kal-legenda .legenda-bezet { color: #C0B8A4; text-decoration: line-through; }

/* ---------- voet ---------- */
footer.voet { background: var(--inkt); color: rgba(246,242,232,.72); padding: 64px 0 34px; font-size: .92rem; }
footer.voet a { color: var(--kalk); }
.voet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 36px; margin-bottom: 42px; }
.voet-grid h4 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1em; }
.voet-grid ul { list-style: none; padding: 0; margin: 0; }
.voet-grid li { padding: .25em 0; }
.voet-onder { border-top: 1px solid rgba(246,242,232,.16); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .83rem; opacity: .7; }

/* ---------- melding ---------- */
.melding { padding: 14px 18px; border-radius: var(--radius); font-size: .9rem; margin-bottom: 16px; }
.melding.let-op { background: #FBF0E4; border: 1px solid #E8C9A4; color: #7A4B1E; }
.melding.goed { background: #EDF2E7; border: 1px solid #C2D2B2; color: #3F5230; }

/* ---------- responsief ---------- */
@media (max-width: 900px) {
  .boek-grid { grid-template-columns: 1fr; }
  .paneel { position: static; }
  .duo { grid-template-columns: 1fr; }
  .duo.omgekeerd .duo-beeld { order: 0; }
  .balk nav { display: none; }
  .balk nav.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--papier); border-bottom: 1px solid var(--lijn); padding: 18px 24px; gap: 14px;
  }
  .nav-knop { display: block; }
  .balk .knop { display: none; }
  .tegel.groot { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .raster { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 130px; }
  .lb-vorige { left: 8px; } .lb-volgende { right: 8px; }
  .paneel { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
