/* house-for-sale-v1-styles.css — palette: brick, garden green, stone. */
:root{
  --paper:#FAFAF7; --ink:#1F2A25; --muted:#56615B;
  --green:#35624A; --stamp:#1F7A3A; --brick:#8E3A2C; --stone:#DAD7CE; --mist:#EEF2EF;
  --display:"Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body:"Source Serif 4", Georgia, "Times New Roman", serif;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
}
*,*::before,*::after{box-sizing:inherit}
html{scroll-behavior:smooth; scroll-padding-top:4.5rem}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0; background:var(--paper); color:var(--ink); font:1.0625rem/1.65 var(--body)}
img{max-width:100%; display:block}
h1,h2,h3{font-family:var(--display); line-height:1.15; font-weight:700}
h2{font-size:clamp(1.6rem,3.5vw,2.2rem); margin:0 0 .75rem}
h3{font-size:1.2rem; margin:0 0 .4rem}
a{color:var(--green)}
:focus-visible{outline:3px solid var(--brick); outline-offset:2px}

.wrap{max-width:62rem; margin:0 auto; padding:3.5rem 1.25rem}
.note{color:var(--muted); margin-top:0}

/* header */
.top{position:sticky; top:env(safe-area-inset-top,0px); z-index:5; display:flex; align-items:center; gap:1rem;
  padding:.7rem 1.25rem; background:rgba(250,250,247,.94); backdrop-filter:blur(6px); border-bottom:1px solid var(--stone)}
.brand{font:700 1.15rem var(--display); color:var(--brick); text-decoration:none; white-space:nowrap}
.top nav{display:flex; gap:.2rem; margin-left:auto; font-family:var(--display)}
.top nav a{display:flex; align-items:center; gap:.35rem; padding:.35rem .55rem; border-radius:6px; text-decoration:none; color:var(--ink); font-size:.95rem; white-space:nowrap}
.top nav a:hover, .top nav a.active{background:var(--mist)}
.top nav svg{width:1.15rem; height:1.15rem; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.top nav .nav-cta{color:#fff; background:var(--green); font-weight:700}
.top nav .nav-cta:hover, .top nav .nav-cta.active{background:var(--green); filter:brightness(1.1)}
@media (max-width:1060px) and (min-width:641px){.top nav a span{display:none} .top nav .nav-cta span{display:inline}}
.owner-link{font:600 .85rem var(--display); color:var(--paper); background:var(--brick); padding:.3rem .6rem; border-radius:4px; text-decoration:none; white-space:nowrap}
.owner-link[hidden]{display:none}
.langs button{font:600 .9rem var(--display); border:1px solid var(--stone); background:none; padding:.2rem .5rem; border-radius:4px; cursor:pointer}
.langs button[aria-pressed="true"]{background:var(--ink); color:var(--paper)}
/* phones: the menu becomes a tab bar at the bottom of the screen, icon above label, always in reach of the thumb */
@media (max-width:640px){
  .top nav{position:fixed; left:0; right:0; bottom:0; z-index:6; margin:0; gap:0; justify-content:space-around;
    padding:.3rem .2rem calc(.3rem + env(safe-area-inset-bottom,0px)); background:rgba(250,250,247,.97); border-top:1px solid var(--stone); backdrop-filter:blur(6px)}
  .top nav a{flex:1 1 0; flex-direction:column; gap:.15rem; padding:.3rem 0; font-size:.68rem; min-width:0}
  .top nav svg{width:1.35rem; height:1.35rem}
  .top nav .nav-overview{display:none}
  .top nav .nav-cta{background:none; color:var(--green)}
  .top nav .nav-cta:hover, .top nav .nav-cta.active{background:var(--mist); filter:none}
  body{padding-bottom:4.2rem}
  .top{backdrop-filter:none; background:var(--paper)}   /* a backdrop-filter would pin the fixed tab bar inside the header */
}

/* maintenance banner (build.py --maintenance) */
.maint{margin:0; padding:.75rem 1.25rem; background:#FFF3C4; color:var(--ink); border-bottom:1px solid #E5C926; text-align:center; font:500 1rem/1.4 var(--display)}
.maint a{color:var(--brick); font-weight:700; white-space:nowrap}

/* hero = the board */
.hero{display:grid; grid-template-columns:1.4fr 1fr; min-height:min(78vh,44rem)}
.hero-photo{background:var(--stone) 50% 30%/cover no-repeat}   /* keep the facade in view rather than the street */
.board{background:var(--brick); color:#fff; padding:clamp(1.5rem,4vw,3rem); display:flex; flex-direction:column; justify-content:center; gap:.4rem}
.board-for{font:700 clamp(3.2rem,9vw,6rem)/.95 var(--display); margin:0; letter-spacing:-.02em}
.board-town{font:500 1.35rem var(--display); margin:0 0 1rem; opacity:.9}
.board-price{margin:0; font-size:1.1rem}
.board-price strong{display:block; font:700 clamp(2rem,5vw,2.8rem) var(--display)}
.board-epc{margin:.8rem 0 1.4rem}
.board-contact{display:flex; flex-wrap:wrap; gap:.6rem}
.board .btn{background:#fff; color:var(--brick)}
.board .btn-ghost{background:transparent; color:#fff; border-color:#fff}
@media (max-width:760px){.hero{grid-template-columns:1fr} .hero-photo{min-height:52vw}}

/* "Zonder immo" stamp: looks like an agency label, says the opposite. Small in the sticky header, large on the hero photo. */
.stamp{display:inline-flex; flex-direction:column; align-items:center; margin:0; color:var(--stamp); background:rgba(255,255,255,.92);
  border:3px solid var(--stamp); box-shadow:inset 0 0 0 2px #fff, inset 0 0 0 4px var(--stamp); border-radius:4px;
  font:700 1rem/1 var(--display); text-transform:uppercase; letter-spacing:.08em; transform:rotate(-7deg); white-space:nowrap}
.stamp-sm{padding:.3rem .55rem; font-size:.8rem; border-width:2px; box-shadow:inset 0 0 0 1px #fff, inset 0 0 0 2px var(--stamp)}
.stamp-lg{position:absolute; top:clamp(.6rem,2.5vw,1.5rem); right:clamp(.6rem,2.5vw,1.5rem); padding:.5rem .85rem .45rem;   /* top right: keeps the window posters and the door free */
  font-size:clamp(.95rem,2.2vw,1.6rem); box-shadow:inset 0 0 0 2px #fff, inset 0 0 0 4px var(--stamp), 0 6px 18px rgba(0,0,0,.25)}
.stamp-lg small{margin-top:.3rem; font:600 clamp(.55rem,1vw,.75rem)/1 var(--display); letter-spacing:.06em}
.hero-photo{position:relative}
@media (max-width:640px){.stamp-sm{font-size:.9rem; padding:.35rem .6rem}}
@media (max-width:640px){.stamp-lg{top:.3rem; right:.3rem; font-size:.78rem; padding:.3rem .55rem .28rem} .stamp-lg small{font-size:.5rem; margin-top:.2rem}}

.epc{display:inline-flex; flex-wrap:wrap; align-items:center; gap:.4rem .6rem; font-family:var(--display)}
.epc > *{white-space:nowrap}
.epc b{display:inline-block; min-width:2.6rem; text-align:center; padding:.15rem .5rem; border-radius:3px; color:#fff; font-size:1.25rem}
.epc-note{font-size:1.35rem; font-weight:700; color:#fff}
/* EPC scale on the board: coloured bands with a white marker at the score */
.epc-scale{position:relative; max-width:22rem; margin-top:2.1rem}
.epc-bands{display:flex; height:1.5rem; border:1px solid rgba(255,255,255,.85); border-radius:3px; overflow:hidden}
.epc-bands span{display:flex; align-items:center; justify-content:center; font:700 .75rem var(--display); color:#fff; text-shadow:0 0 2px rgba(0,0,0,.45)}
.epc-marker{position:absolute; top:-.2rem; bottom:-.2rem; width:3px; margin-left:-1.5px; background:#fff; box-shadow:0 0 0 1px rgba(0,0,0,.35)}
.epc-marker span{position:absolute; bottom:100%; left:50%; transform:translateX(-50%); margin-bottom:.2rem; font:700 .8rem var(--display); color:#fff; white-space:nowrap}

.btn{display:inline-block; font:700 1rem var(--display); padding:.75rem 1.2rem; border-radius:6px; border:2px solid transparent;
  background:var(--green); color:#fff; text-decoration:none; cursor:pointer}
.btn:hover{filter:brightness(1.08)}

.intro{font-size:1.3rem; max-width:40rem; margin:0 0 2.5rem}
/* summary: one sentence, key figures, strong points */
.summary{padding-top:2.5rem; padding-bottom:2rem}
.summary .intro{margin-bottom:1.5rem}
.keyfacts{list-style:none; padding:0; margin:0 0 1.2rem; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,2fr) minmax(0,1.6fr); gap:.6rem}
@media (max-width:1000px){.keyfacts{grid-template-columns:repeat(4,minmax(0,1fr))} .keyfacts li.wide{grid-column:span 2}}
@media (max-width:560px){.keyfacts{grid-template-columns:1fr 1fr}}
.keyfacts li{display:flex; flex-direction:column; gap:.15rem; padding:.8rem .9rem; background:var(--mist); border-radius:6px}
.keyfacts strong{font:700 1.5rem/1.1 var(--display); color:var(--ink)}
.keyfacts strong small{font:600 .85rem var(--display); color:var(--muted); white-space:nowrap}   /* e.g. the EPC score next to the label */
.keyfacts span{font:500 .9rem/1.25 var(--display); color:var(--muted)}
.highlights{list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:.45rem}
.highlights li{font:600 .9rem var(--display); color:var(--stamp); background:#E7F3EA; border:1px solid #BFDDC6; border-radius:999px; padding:.3rem .75rem}
.highlights li::before{content:"\2713\00a0"}

/* photos: one small card per area, grouped per level */
.level-title{font-size:1rem; color:var(--muted); margin:1.8rem 0 .6rem; text-transform:uppercase; letter-spacing:.06em}
.cards{display:grid; grid-template-columns:repeat(auto-fill,minmax(11rem,1fr)); gap:.9rem}
@media (max-width:420px){.cards{grid-template-columns:1fr 1fr; gap:.7rem}}
.card h4{font:700 1rem/1.2 var(--display); margin:.45rem 0 .15rem}
.card p{margin:0; font-size:.92rem; line-height:1.4; color:var(--muted)}
.card details{margin-top:.35rem}   /* "Meer uitleg" under an area: extra facts that don't fit one line */
.card summary{cursor:pointer; font:500 .85rem var(--display); color:var(--green)}
.card details p{margin:.35rem 0 0}
button.gallery{position:relative; display:block; width:100%; padding:0; border:0; background:var(--stone); cursor:zoom-in; aspect-ratio:1/1; overflow:hidden; border-radius:4px}   /* square: most photos are portrait */
button.gallery img{width:100%; height:100%; object-fit:cover}
/* strip cards: two photos side by side, spanning two columns; more photos scroll sideways (swipe) */
.card-strip{grid-column:span 2}
.card-wide{grid-column:span 2} .card-wide button.gallery{aspect-ratio:4/3}   /* landscape photo shown whole */
.strip{display:flex; gap:.4rem; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:thin}
.strip button.gallery{flex:0 0 calc(50% - .2rem); scroll-snap-align:start}
/* more than two photos: a slice of the third peeks in at the right edge, so it is clear you can swipe */
.strip-more button.gallery{flex-basis:calc(42% - .2rem)}
.strip-3 button.gallery{flex-basis:calc(33.333% - .27rem)}   /* exactly three photos: all visible at once, no swiping */
/* computers (>= 900px) only: a row of more than three items takes the full page width and lays its photos out
   at the size of the other cards' photos, wrapping when needed, so there is no sideways scrollbar.
   Phones never reach this width, so the mobile layout is untouched. */
@media (min-width:900px){
  .card-strip-more{grid-column:1 / -1}
  .card-strip-more .strip{display:grid; grid-template-columns:repeat(auto-fill,minmax(11rem,1fr)); overflow:visible}
  .card-strip-more h4 small.n{display:none}   /* "7 foto's →" means "swipe": not needed when all photos are visible */
  /* every photo the size of a normal card photo: a row of n items (n <= 3) spans exactly n columns with the page
     grid's gap; longer rows (above) wrap at the same column size; the park is no longer double width */
  .card-strip:not(.card-strip-more){grid-column:span var(--n,2)}
  .card-strip .strip{display:grid; grid-template-columns:repeat(var(--n,2),minmax(0,1fr)); gap:.9rem; overflow:visible}
  .card-strip-more .strip{grid-template-columns:repeat(auto-fill,minmax(11rem,1fr))}
  .card-wide{grid-column:auto} .card-wide button.gallery{aspect-ratio:1/1}
}
/* "Goed om te weten" tile: the last item of a photo row, with the area's extra text */
button.infotile{cursor:pointer; background:var(--mist); border:1px solid var(--stone); color:var(--ink); text-align:left; padding:.6rem .65rem; display:flex; flex-direction:column; gap:.3rem}
.infotile .it-h{font:700 .72rem/1.2 var(--display); color:var(--green); text-transform:uppercase; letter-spacing:.03em}
.infotile .it-t{font:400 .84rem/1.35 var(--body)}
.infotile .it-m{margin-top:auto; font:600 .8rem var(--display); color:var(--green)}
.strip-3 .infotile{padding:.55rem .55rem; justify-content:center} .strip-3 .infotile .it-t{display:none}   /* a third of the width: no room for a preview */
.strip-3 .infotile .it-m{margin-top:.4rem}
.lb-text{max-width:36rem; min-height:50vh; margin:0 auto; padding:2.5rem 1.6rem 1rem; display:flex; flex-direction:column; justify-content:center; gap:.8rem}
.lb-text b{font:700 1rem var(--display); color:#9fd3b3; text-transform:uppercase; letter-spacing:.04em}
.lb-text p{margin:0; font:400 1.2rem/1.55 var(--body)}
.lb-text[hidden], #lbImg[hidden]{display:none}
/* the photo count of a swipe row sits next to the title, not on the first photo (which made it look like a group cover) */
.card h4 small.n{font:500 .8rem var(--display); color:var(--green); white-space:nowrap}
#lbImg{touch-action:pan-y}
.count{position:absolute; right:.4rem; bottom:.4rem; font:600 .75rem var(--display); color:#fff; background:rgba(0,0,0,.6); padding:.15rem .45rem; border-radius:3px}
.ph{display:flex; align-items:center; justify-content:center; width:100%; height:100%; color:var(--muted); font-family:var(--display)}

/* key/value lists (features, neighbourhood) */
.groups{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,26rem),1fr)); gap:1.5rem 2.5rem}
.group h3{font-size:1.05rem; margin:0 0 .4rem; color:var(--brick)}
.kv{display:grid; grid-template-columns:minmax(0,12.5rem) minmax(0,1fr); margin:0}
.kv dt, .kv dd{padding:.5rem 0; border-bottom:1px solid var(--stone)}
.kv dt{font:600 .95rem/1.4 var(--display); color:var(--muted); padding-right:1rem; overflow-wrap:anywhere; hyphens:auto}
.kv dd{margin:0; overflow-wrap:anywhere; line-height:1.45}
.kv details{margin-top:.2rem}
.kv summary{cursor:pointer; font:500 .85rem var(--display); color:var(--green)}
.kv details p{margin:.35rem 0 0; font-size:.92rem; color:var(--muted)}
.kv details a{color:var(--green); font-weight:500}
@media (max-width:480px){.kv{grid-template-columns:minmax(0,8rem) minmax(0,1fr)} .kv dt{font-size:.88rem}}

/* visit */
.visit{background:var(--mist); max-width:none}
.visit > *{max-width:40rem; margin-left:auto; margin-right:auto}
form{display:flex; flex-direction:column; gap:1rem}
label{display:flex; flex-direction:column; gap:.25rem; font:500 .95rem var(--display)}
input,textarea{font:1rem var(--body); padding:.6rem .7rem; border:1px solid #B9B6AC; border-radius:4px; background:#fff; color:var(--ink)}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:1rem}
@media (max-width:560px){.grid2{grid-template-columns:1fr}}
.slots{border:0; padding:0; margin:0; display:flex; flex-direction:column; gap:.4rem}
.slots label{flex-direction:row; align-items:center; gap:.6rem; padding:.6rem .8rem; background:#fff; border:1px solid var(--stone); border-radius:4px; cursor:pointer}
.slots label:has(input:checked){border-color:var(--green); box-shadow:inset 0 0 0 1px var(--green)}
.slots .free{margin-left:auto; font:600 .85rem var(--display); color:var(--green); white-space:nowrap}
.slots label.full{opacity:.55; cursor:not-allowed} .slots label.full .free{color:var(--brick)}
.slots label.interest{border-style:dashed; border-color:var(--green); background:var(--mist)}
.slots label.interest small{display:block; margin-top:.15rem; font-size:.85rem; color:var(--muted)}
.slots .slot-day{margin:.6rem 0 0; font:600 .95rem var(--display)}
.slots .slot-day::first-letter{text-transform:uppercase}
.slots .slot-day:first-of-type{margin-top:0}
.slots .slot-note{margin:.2rem 0 0; font-size:.9rem; line-height:1.45; color:var(--muted)}
select{font:1rem var(--body); padding:.55rem .6rem; border:1px solid #B9B6AC; border-radius:4px; background:#fff; color:var(--ink); max-width:8rem}
.consent{flex-direction:row; align-items:flex-start; gap:.6rem; font:400 .95rem var(--body)}
.consent input{margin-top:.3rem}
.hp{position:absolute; left:-9999px}
.form-msg{margin:0; font-family:var(--display)}
.invite-note{margin:0; padding:.6rem .8rem; border-left:3px solid var(--green); background:rgba(53,98,74,.08); font-family:var(--display)}
.visit-mail{margin-top:1.2rem; font-family:var(--display)}
.offer{margin-top:2rem; padding:1.1rem 1.2rem; border:1px solid color-mix(in srgb, var(--muted) 30%, transparent); border-radius:10px}
.offer h3{margin:0 0 .4rem}.offer p{margin:0 0 .9rem; color:var(--muted)}
.form-msg.err{color:var(--brick)} .form-msg.ok{color:var(--green)}


.foot{color:var(--muted); font-size:.9rem; padding-top:0}

dialog{border:0; padding:0; max-width:min(96vw,80rem); background:#111; color:#fff}
dialog::backdrop{background:rgba(0,0,0,.8)}
dialog figure{margin:0} dialog img{max-height:82vh; margin:0 auto}
dialog figcaption{padding:.6rem 1rem; font-family:var(--display)}
.lb-controls{display:flex; gap:.5rem; justify-content:space-between; align-items:center; padding:0 1rem 1rem}
.lb-controls .lb-arrow{width:3.2rem; height:2.6rem; padding:0; display:flex; align-items:center; justify-content:center}
.lb-arrow svg{width:1.6rem; height:1.6rem; fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round}
.lb-cap{display:block; margin-top:.25rem; font:500 .92rem var(--display)}
.lb-next{display:block; margin-top:.2rem; font:500 .8rem var(--display); opacity:.75}
.lb-pos{float:right; opacity:.6; font-size:.85rem; font-variant-numeric:tabular-nums}
.lb-controls button{font:600 .95rem var(--display); background:#fff; color:#111; border:0; padding:.5rem .9rem; border-radius:4px; cursor:pointer}
