/* Vakantiewoning Schiermonnikoog — Ostrea Zeezicht
   1:1 nagebouwd van de Joomla/Astroid/SP Page Builder-site (2021). */

@font-face {
  font-family: "Thorce";
  src: url("../fonts/lettertype-thorce-webfont.woff2") format("woff2"),
       url("../fonts/lettertype-thorce-webfont.woff") format("woff");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Armata";
  src: url("../fonts/armata-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --licht: #e8f1fa;
  --donker: #336d74;
  --petrol: #436c73;
  --blauw: #5aa0d6;
  --grijsblauw: #6e939b;
  --zacht: #63949c;
  --kalender: #60889a;
  --groen: #68de8a;
  --mint: #7ac49e;
  --kop: "Thorce", "Armata", sans-serif;
  --tekst: "Armata", sans-serif;
  --container: 1140px;
  /* Breedtes zoals de oude site: Astroid-kop/-voet = Bootstrap .container,
     SP Page Builder-rijen = .sppb-row-container (1320 vanaf 1380px). */
  --kopbreed: 100%;
  --rij: 100%;
}
@media (min-width: 576px)  { :root { --kopbreed: 540px;  --rij: 540px; } }
@media (min-width: 768px)  { :root { --kopbreed: 720px;  --rij: 720px; } }
@media (min-width: 992px)  { :root { --kopbreed: 960px;  --rij: 960px; } }
@media (min-width: 1200px) { :root { --kopbreed: 1140px; --rij: 1140px; } }
@media (min-width: 1380px) { :root { --rij: 1320px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: #fff;
  color: rgb(44, 46, 54);
  font-family: var(--tekst);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--kop); font-weight: 400; margin: 0; }
p { margin: 0 0 1rem; }
p, .tekst li { font-family: var(--tekst); color: var(--petrol); font-size: 16px; }
.tekst a { color: var(--petrol); text-decoration: underline; }
.tekst a:hover { color: var(--blauw); }
.tekst ul { margin: 0 0 1rem; padding-left: 1.5rem; }
.tekst li p { margin: 0; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skiplink { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: .5rem 1rem; }
.skiplink:focus { left: 1rem; }
:target { scroll-margin-top: 50px; }

/* Knop (SP Page Builder .sppb-btn) */
.knop {
  display: inline-block;
  padding: 20px 80px 20px 20px;
  border-radius: 8px;
  background: var(--grijsblauw) url("../images/left-arrow.svg") no-repeat 95% center / 40px;
  color: #fff;
  font-family: var(--kop);
  font-size: 18px;
  font-weight: 200;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: pre-line;
  transition: background-color .15s ease-in-out;
}
.knop:hover, .knop:focus-visible { background-color: var(--donker); color: #fff; }

/* ───────────── Kop ───────────── */
.kop { background: var(--licht); height: 160px; position: relative; z-index: 20; }
.kop__binnen {
  height: 100%;
  max-width: var(--kopbreed);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px 8px;
}
.kop__logo { flex-shrink: 0; }
.kop__logo img { max-height: 160px; width: auto; }
.kop__logo-groot { height: 122px; }
.kop__logo-mobiel { display: none; height: 60px; }
.kop__nav ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.kop__nav a {
  display: block;
  padding: 0 16px;
  font-family: var(--kop);
  font-size: 24px;
  line-height: 1.7;
  color: var(--donker);
  text-decoration: none;
}
.kop > .kop__binnen .kop__nav { margin-right: 8px; }
.kop__nav a:hover, .kop__nav a:focus-visible { color: var(--blauw); }
.kop__burger { display: none; }

/* Plakkende kop (verschijnt na het scrollen) */
.plakkop {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: 50px;
  background: var(--licht);
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  transform: translateY(-110%);
  transition: transform .25s ease;
}
.plakkop.is-zichtbaar { transform: none; }
.plakkop__binnen {
  height: 100%;
  max-width: var(--kopbreed);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}
.plakkop__logo img { height: 40px; width: auto; }
.plakkop .kop__nav a { font-size: 24px; line-height: 50px; }

/* Mobiel menu */
.mobielmenu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--licht);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobielmenu[hidden] { display: none; }
.mobielmenu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.mobielmenu a {
  display: block;
  padding: 10px 20px;
  font-family: var(--kop);
  font-size: 30px;
  color: var(--donker);
  text-decoration: none;
}
.mobielmenu__sluit {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 48px;
  height: 48px;
  border: 0;
  background: none;
  font-size: 44px;
  line-height: 1;
  color: var(--donker);
  cursor: pointer;
}
html.menu-open { overflow: hidden; }

/* ───────────── Video ───────────── */
.video {
  position: relative;
  height: 100vh;
  max-height: 800px;
  overflow: hidden;
  background: #9db7c9;
}
.video__film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ───────────── Over (intro) ───────────── */
/* flow-root: de negatieve marge van het logo mag niet het hele witte vlak over de video trekken */
.intro { position: relative; z-index: 2; display: flow-root; background: #fff; text-align: center; }
.intro__binnen {
  position: relative;
  z-index: 1;
  max-width: 746px;
  margin: -103.5px auto -140px; /* logo (207px) voor de helft over de video */
  padding: 0 15px;
}
.intro__logo { width: 207px; margin: 0 auto; }
.intro h1 { padding: 30px 0; color: var(--donker); font-size: 70px; line-height: 40px; }
.intro h2 { padding: 0 0 50px; color: var(--blauw); font-size: 35px; line-height: 40px; }
.intro .tekst p { line-height: 1.7; }
.knoprij {
  margin-top: 50px;
  padding-top: 100px;
  min-height: 215px;
  background: url("../images/iester-licht-b.svg") no-repeat center center / 50%;
}
.intro::after {
  content: "";
  display: block;
  height: 235px;
  background: url("../images/border-intro.svg") no-repeat bottom center / 100%;
  position: relative;
  bottom: -1px;
}

/* ───────────── Omgeving + De woning ───────────── */
.ontdek {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 562fr) minmax(0, 393fr);
  gap: 0 30px;
  padding-left: 200px;
  background: var(--licht);
}
.ontdek__tekst { align-self: center; padding: 50px 0; }
.ontdek__tekst .tekst { max-width: 90ch; }
.ontdek .oester { width: 95px; }
.ontdek h2 { padding: 10px 0 20px; color: var(--grijsblauw); font-size: 50px; line-height: 55px; }
.ontdek .tekst h3 { margin-bottom: 8px; padding: 30px 0 10px; color: var(--blauw); font-size: 35px; line-height: 40px; }
.ontdek .tekst ul { padding-left: 40px; }
.ontdek__rechts { margin: -200px 0 -228px; position: relative; z-index: 1; }
.ontdek__vuurtoren { width: 100%; }
.woning { background: var(--petrol); padding: 50px 50px 0; }
.woning h3 { margin-bottom: 8px; padding: 0 0 20px; color: #fff; font-size: 50px; line-height: 40px; }
.woning .tekst p { color: #fff; }
.woning .tekst a { color: #fff; }
.woning h4 { margin: 0 0 8px; color: #fff; font-size: 20px; line-height: 30px; }
.plattegronden { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.plattegronden li { margin: 0; }
.plattegronden img { width: 150px; height: 150px; object-fit: cover; }
.woning__knop {
  padding: 100px 50px;
  text-align: center;
  background: var(--petrol) url("../images/iester-licht-b.svg") no-repeat center / 55%;
  border-bottom-left-radius: 50px;
}

/* ───────────── Foto's ───────────── */
.fotos { position: relative; z-index: 1; background: var(--licht); }
.fotos__kop {
  min-height: 300px;
  background: url("../images/foto-bg.svg") no-repeat 0 50% / cover;
  text-align: center;
}
.fotos__kop h2 { padding-top: 120px; color: var(--blauw); font-size: 50px; line-height: 55px; }
.slider { position: relative; margin-top: -62px; overflow: hidden; }
.slider__spoor {
  display: flex;
  list-style: none;
  margin: 0 0 0 -15px;
  padding: 0;
  transition: transform .5s ease;
  will-change: transform;
  touch-action: pan-y;
}
.slider__item { flex: 0 0 25%; padding-left: 15px; }
.slider__item a { display: block; height: 400px; }
.slider__item img { width: 100%; height: 100%; object-fit: cover; }
.slider__pijl {
  position: absolute;
  top: 50%;
  width: 100px;
  height: 50px;
  margin: -25px 40px 0;
  border: 0;
  background: no-repeat left center / 60px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
}
.slider__pijl--vorige { left: 0; background-image: url("../images/left-slider.svg"); }
.slider__pijl--volgende { right: 0; background-image: url("../images/right-slider.svg"); background-position: right center; }
.slider:hover .slider__pijl, .slider__pijl:focus-visible { opacity: 1; }
@media (hover: none) { .slider__pijl { opacity: 1; } }

/* ───────────── Welkom ───────────── */
.welkom {
  padding: 250px 15px;
  background: var(--licht) var(--bg, none) no-repeat center / cover;
}
.welkom__kaart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--rij);
  min-height: 500px;
  margin: 0 auto;
  padding-left: 15px;
  background: #fff;
  border-bottom-left-radius: 30px;
}
.welkom__tekst { align-self: center; padding: 0 60px; }
.welkom h3 { padding: 10px 0 20px; color: var(--donker); font-size: 50px; line-height: 55px; }
.welkom__foto { min-height: 500px; background: var(--foto, none) no-repeat 50% 50% / cover; }

/* ───────────── Kenmerken ───────────── */
.kenmerken {
  position: relative;
  padding: 50px 0;
  min-height: 520px;
  background: var(--licht) var(--bg, none) no-repeat center / cover;
}
.kenmerken__carrousel {
  position: relative;
  height: 540px;
  margin-top: -120px;
  overflow: hidden;
}
.kenmerken__cirkel {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 500px;
  height: 500px;
  margin-left: -250px;
  border-radius: 50%;
  background: url("../images/bg-circle.png") no-repeat center / contain;
  text-align: center;
}
.kenmerken__cirkel .oester { width: 150px; height: 100px; margin: 89px auto 0; }
.kenmerken__kop { color: var(--blauw); font-size: 35px; line-height: 40px; }
.kenmerken__golf { position: absolute; left: 31px; top: 382px; width: 437px; }
.kenmerken__spoor {
  position: absolute;
  top: 290px;
  left: 50%;
  width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.kenmerken__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 440px;
  margin-left: -220px;
  font-family: var(--kop);
  font-size: 25px;
  line-height: 30px;
  color: var(--grijsblauw);
  text-align: center;
  filter: blur(2px);
  opacity: .55;
  transition: transform .6s ease, filter .6s ease, opacity .6s ease;
}
.kenmerken__item.is-actief { filter: none; opacity: 1; }
.kenmerken__pijlen {
  position: absolute;
  top: 512px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.kenmerken__pijl {
  width: 29px;
  height: 14px;
  border: 0;
  padding: 0;
  background: url("../images/pijl-groen.svg") no-repeat center / contain;
  cursor: pointer;
}
.kenmerken__pijl--volgende { background-image: url("../images/pijl-groen-rechts.svg"); }

/* ───────────── Reserveren ───────────── */
.reserveren { padding: 50px 15px; background: var(--licht); }
.reserveren__kaart {
  max-width: var(--rij);
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border-radius: 30px;
  text-align: center;
}
.reserveren h2 {
  margin-top: 50px;
  padding-top: 30px;
  min-height: 165px;
  color: var(--donker);
  font-size: 50px;
  line-height: 50px;
  background: url("../images/iester-licht-b.svg") no-repeat center center / 28%;
}
.reserveren h3 { margin-bottom: 30px; padding: 0; color: var(--zacht); font-size: 25px; line-height: 30px; }
.boeking { text-align: left; }
/* Reserveringsmodule (PJ) — zoals custom.css van de oude site */
#abWrapper_1 { font-family: var(--tekst) !important; }
#abWrapper_1 .abMenu { background-color: var(--licht) !important; }
#abWrapper_1 td.abCalendarMonth {
  background-color: var(--kalender) !important;
  border-right: solid 1px var(--kalender) !important;
  border-bottom: solid 1px var(--kalender) !important;
  font-family: var(--kop) !important;
}
#abWrapper_1 td.abCalendarMonthPrev,
#abWrapper_1 td.abCalendarMonthNext { background-color: #4e7283 !important; }
.abWrapper .abMenu { height: 40px !important; }
.abWrapper .abMenuNav { float: left; margin: 0 !important; padding: 0; }
.abWrapper .abMenuNav li,
.abWrapper .abMenuNav li a {
  display: block !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0;
  line-height: 30px;
  color: #fff !important;
}
.abWrapper .abMenuNav li a { padding: 0 5px 0 0; }
.abMenuNavPrev { background-color: var(--donker); color: #fff !important; }
.abMenuNavNext { background-color: var(--mint); color: #fff !important; }
.boeking table { width: 100%; }

/* ───────────── Footer ───────────── */
.voet { background: #fff; }
.voet__top {
  min-height: 200px;
  background: var(--licht) url("../images/footer-top.svg") no-repeat center bottom / 100%;
}
.voet__midden { max-width: calc(var(--kopbreed) + 30px); margin: 0 auto; padding: 0 15px; }
.voet__rij { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; }
.voet__kol--logo img { width: 174px; margin: 0 auto; }
.voet__kol--breed { grid-column: span 2; align-self: center; }
.voet__kol ul { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.voet__kol li { padding: 0 0 20px; font-family: var(--tekst); color: var(--petrol); }
.voet__kol a { color: var(--petrol); text-decoration: underline; overflow-wrap: anywhere; }
.voet__kol a:hover { color: var(--blauw); }
.voet__kol .knop { color: #fff; text-decoration: none; }
.nieuwsbrief { padding-top: 5px; }
.nieuwsbrief p { color: var(--petrol); }
.nieuwsbrief__velden { display: flex; gap: 20px; align-items: stretch; }
.nieuwsbrief input[type="email"] {
  flex: 1 1 auto;
  width: 0;
  max-width: 493px;
  min-height: 45px;
  padding: 8px 12px;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  font: 15px/1.4 Arial, sans-serif;
  color: #333;
}
.nieuwsbrief button {
  flex: 0 0 auto;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--grijsblauw);
  color: #fff;
  font-family: var(--kop);
  font-weight: 200;
  font-size: 18px;
  line-height: 1.25;
  cursor: pointer;
}
.nieuwsbrief button:hover { background: var(--donker); }
.nieuwsbrief__melding {
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 3px;
  background: var(--grijsblauw);
  color: #fff;
  font-family: var(--kop);
}
.nieuwsbrief__form.is-klaar .nieuwsbrief__velden { display: none; }
.voet__copyright { margin: 30px 0 0; padding: 0 15px; text-align: center; font-size: 13px; color: var(--petrol); }
.voet__copyright a { color: var(--petrol); }
.voet__onder {
  min-height: 450px;
  margin-top: 12px;
  background: var(--foto, none) no-repeat center / cover;
}

.naarboven {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--groen);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.naarboven.is-zichtbaar { opacity: 1; visibility: visible; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 11, 11, .85);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.lightbox button {
  position: absolute;
  border: 0;
  background: none;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  padding: 10px 16px;
}
.lightbox__sluit { top: 10px; right: 10px; }
.lightbox__vorige { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__volgende { right: 10px; top: 50%; transform: translateY(-50%); }

/* ───────────── Responsive ───────────── */
@media (max-width: 1199px) {
  .kop .kop__nav a { font-size: 18px; }
  .ontdek { padding-left: 50px; }
  .slider__item { flex-basis: 33.3333%; }
}

@media (max-width: 991px) {
  .kop { height: 100px; }
  .kop__binnen, .plakkop__binnen { max-width: none; padding: 0 20px; }
  .kop__logo-groot { display: none; }
  .kop__logo-mobiel { display: block; }
  .kop__nav { display: none; }
  .kop__burger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
  }
  .kop__burger span, .kop__burger span::before, .kop__burger span::after {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    background: var(--donker);
    border-radius: 2px;
    position: relative;
  }
  .kop__burger span::before { position: absolute; top: -9px; }
  .kop__burger span::after { position: absolute; top: 9px; }

  .intro h1 { font-size: 52px; line-height: 56px; }
  .intro h2 { font-size: 28px; line-height: 34px; }

  /* Tablet: tekst en woning onder elkaar (naast elkaar werd het veel te lang) */
  .ontdek { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .ontdek__tekst { padding: 40px 40px 50px; }
  .ontdek__tekst .tekst { max-width: none; }
  .ontdek__rechts { margin: 0; }
  .ontdek__vuurtoren { width: min(100%, 520px); margin: 0 0 -1px auto; }
  .ontdek h2, .woning h3, .welkom h3, .fotos__kop h2, .reserveren h2 { font-size: 40px; line-height: 46px; }
  .woning { padding: 40px 40px 0; }
  .woning__knop { padding: 80px 40px; background-size: auto 70%; }

  /* Foto's-kop: golflijnen boven de titel i.p.v. er dwars doorheen */
  .fotos__kop { min-height: 0; padding-bottom: 90px; background: #fff url("../images/foto-bg.svg") no-repeat 0 0 / 140% auto; }
  .fotos__kop h2 { padding-top: calc(140vw * 250 / 1585 + 10px); }
  .welkom { padding: 120px 15px; }
  /* buren van het actieve kenmerk vallen op tablet over de cirkel */
  .kenmerken__item:not(.is-actief) { opacity: 0; }

  /* Footer onder elkaar: 3 kolommen is op tablet te krap */
  .voet__rij { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .voet__kol--logo { margin-bottom: 30px; }
  .voet__kol--leeg { display: none; }
  .voet__kol--breed { grid-column: auto; margin-top: 30px; }
  .nieuwsbrief__velden { max-width: 520px; margin: 0 auto; }
  .welkom__tekst { padding: 40px; }
}

@media (max-width: 767px) {
  .video { height: 60vh; min-height: 320px; }
  .intro__binnen { margin-top: -75px; margin-bottom: -60px; } /* logo 150px → helft */
  .intro__logo { width: 150px; }
  .intro h1 { font-size: 40px; line-height: 44px; padding: 20px 0; }
  .intro h2 { font-size: 24px; line-height: 30px; padding-bottom: 30px; }
  .knoprij { background-size: 80%; padding-top: 70px; min-height: 180px; margin-top: 20px; }
  .intro::after { height: 120px; }

  .ontdek__tekst { padding: 30px 20px 50px; }
  .ontdek .tekst h3 { font-size: 28px; line-height: 34px; }
  .ontdek__vuurtoren { width: 100%; } /* heel beeld: top + golfrand naar het petrolvlak */
  .woning { padding: 40px 20px 0; }
  .woning__knop { padding: 60px 20px; border-bottom-left-radius: 30px; }
  .ontdek h2, .woning h3, .welkom h3, .fotos__kop h2, .reserveren h2 { font-size: 34px; line-height: 40px; }

  .fotos__kop { padding-bottom: 80px; background-size: 170% auto; }
  .fotos__kop h2 { padding-top: calc(170vw * 250 / 1585 + 10px); }
  .slider__item { flex-basis: 85%; }
  .slider__item a { height: 360px; }

  .welkom { padding: 60px 15px 140px; }
  .welkom__kaart { grid-template-columns: minmax(0, 1fr); padding-left: 0; border-bottom-left-radius: 30px; overflow: hidden; }
  .welkom__tekst { padding: 30px 20px; }
  .welkom__foto { min-height: 320px; }

  .kenmerken { min-height: 0; padding-bottom: 20px; overflow: hidden; }
  .kenmerken__carrousel { width: 560px; left: 50%; transform: translateX(-50%) scale(.66); transform-origin: top center; margin-top: 0; margin-bottom: -184px; }

  .reserveren { padding: 30px 10px; }
  .reserveren__kaart { padding: 20px 10px; border-radius: 20px; }
  .reserveren h2 { background-size: 70%; margin-top: 20px; }
  .reserveren h3 { font-size: 21px; line-height: 26px; }
  .boeking { overflow-x: auto; }

  .voet__top { min-height: 90px; }
  .nieuwsbrief__velden { flex-direction: column; gap: 10px; }
  .nieuwsbrief input[type="email"] { width: 100%; max-width: none; }
  .voet__onder { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slider__spoor, .kenmerken__item, .plakkop { transition: none; }
}

/* Foutpagina */
.foutpagina { max-width: 716px; margin: 0 auto; padding: 100px 20px 60px; text-align: center; }
.foutpagina h1 { color: var(--donker); font-size: 50px; line-height: 55px; margin-bottom: 30px; }
