:root {
  --sand: #f6f1e7;
  --sand-2: #ece4d3;
  --ink: #1f2a2e;
  --muted: #5d6b6f;
  --sea: #1f5f74;
  --sea-dark: #164758;
  --dune: #7a8f5b;
  --free: #e3efd9;
  --free-ink: #2f4a1f;
  --bar: #e6d9c3;
  --bar-ink: #8a7a62;
  --line: #ddd3c1;
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; margin-top: 1.5em; }

/* ---------- Top bar ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  color: #fff;
}
.brand { color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.topbar nav { display: flex; gap: 22px; align-items: center; }
.topbar nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .92; }
.topbar nav a:hover { opacity: 1; text-decoration: underline; }
.link-btn {
  background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
  font-weight: 500; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px;
}
.topbar .link-btn { color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 6px 14px; text-decoration: none; }
.topbar .link-btn:hover { background: rgba(255,255,255,.15); }
@media (max-width: 720px) {
  .topbar nav a { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,30,.45) 0%, rgba(10,25,30,.05) 35%, rgba(10,25,30,.65) 100%); }
.hero-text { position: relative; color: #fff; padding: 0 clamp(16px, 4vw, 48px) clamp(40px, 8vh, 80px); max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; margin: 0 0 12px; opacity: .9; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); margin-bottom: .3em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); margin: 0 0 28px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font: 600 1rem var(--sans);
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-dark); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.08); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-ghost-dark { color: var(--ink); border-color: var(--line); background: transparent; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Facts ---------- */
.facts {
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: #fff; border-bottom: 1px solid var(--line);
}
.facts div { padding: 20px 12px; text-align: center; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--sea); }
.facts span { font-size: .85rem; color: var(--muted); }
@media (max-width: 720px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts div:nth-child(3) { border-right: 0; }
  .facts div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px); max-width: 1200px; margin: 0 auto; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.section-head p { margin: 0; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }

/* ---------- Calendar ---------- */
.cal-wrap { background: #fff; border-radius: var(--radius); padding: clamp(16px, 3vw, 32px); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0,0,0,.25); }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
#cal-range { font-weight: 600; text-transform: capitalize; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.icon-btn:hover:not([disabled]) { background: var(--sand); }
.icon-btn[disabled] { opacity: .35; cursor: default; }
.calendar { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 36px); }
@media (max-width: 960px) { .calendar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .calendar { grid-template-columns: 1fr; } }
.month-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 4px 12px; }
.month h3 { font-family: var(--serif); font-size: 1.15rem; margin: 0; text-transform: capitalize; }
.month-badge { font-size: .75rem; font-weight: 600; color: var(--free-ink); background: var(--free); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.month-badge:empty { visibility: hidden; }
.month-badge.full { background: var(--bar); color: var(--bar-ink); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.dow { font-size: .7rem; color: var(--muted); text-align: center; padding-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.dow.weekend { color: var(--sea); font-weight: 600; }
.day {
  position: relative; height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: .92rem; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums;
}
.day .num {
  position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; transition: background .15s, color .15s, box-shadow .15s;
}
/* Booked stays: one continuous bar; changeover days get half a bar. */
.day.bar::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 0; right: 0; background: var(--bar); }
.day.bar-pm::before { left: 50%; }
.day.bar-am::before { right: 50%; }
.day.bar-start::before { border-top-left-radius: 999px; border-bottom-left-radius: 999px; }
.day.bar-start:not(.bar-pm)::before { left: 4px; }
.day.bar-end::before { border-top-right-radius: 999px; border-bottom-right-radius: 999px; }
.day.bar-end:not(.bar-am)::before { right: 4px; }
.day.bar-day .num { color: var(--bar-ink); }
/* Bookable arrival days */
.day.checkin { cursor: pointer; }
.day.checkin .num { font-weight: 600; color: var(--sea); box-shadow: inset 0 0 0 1.5px rgba(31, 95, 116, .35); background: #fff; }
.day.checkin:hover .num, .day.checkin:focus-visible .num { background: var(--sea); color: #fff; box-shadow: none; }
.day.checkin:focus-visible { outline: none; }
.day.today .num { box-shadow: inset 0 0 0 2px var(--ink); }
.day.past .num { color: #c9c2b5; }
.calendar.loading .day:not(.empty) { opacity: .45; }
.cal-status { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.cal-status.error { color: #9a3b2a; }
.legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .85rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { display: inline-block; flex: none; }
.sw-free { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.sw-checkin { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(31, 95, 116, .5); }
.sw-booked { width: 30px; height: 14px; border-radius: 999px; background: var(--bar); }
.sw-change { width: 15px; height: 14px; margin-left: 15px; border-radius: 999px 0 0 999px; background: var(--bar); }
.sw-today { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink); }
.cal-cta { margin-top: 24px; }

/* ---------- About & gallery ---------- */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 1.2em 0 0; }
.ticks li { padding-left: 26px; position: relative; margin-bottom: 6px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--dune); border-bottom: 2px solid var(--dune); transform: rotate(-45deg); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery button { padding: 0; border: 0; background: var(--sand-2); border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery button:first-child { grid-column: span 3; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .more { position: relative; }
.gallery .more::after {
  content: attr(data-more); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15,30,35,.55); color: #fff; font-weight: 600; font-size: 1.1rem;
}

/* ---------- Location ---------- */
.location { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 900px) { .location { grid-template-columns: 1fr; } }
.map { width: 100%; min-height: 360px; border: 0; border-radius: var(--radius); background: var(--sand-2); }

/* ---------- Private ---------- */
.private { border-top: 1px solid var(--line); }
.private-content { background: #fff; border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); box-shadow: 0 1px 0 var(--line); }
.private-content h3:first-child { margin-top: 0; }
.private-content ol, .private-content ul { padding-left: 1.3em; }
.private-content li { margin-bottom: 4px; }
.private-content table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.private-content th, .private-content td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.private-content label { display: block; cursor: pointer; }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  padding: 40px clamp(16px, 4vw, 48px); background: var(--ink); color: #d9dfe0; font-size: .95rem;
}
.footer a { color: #fff; }
.footer strong { color: #fff; }

/* ---------- Dialogs ---------- */
.dialog { border: 0; border-radius: var(--radius); padding: 28px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); }
.dialog::backdrop { background: rgba(15,25,30,.55); }
.dialog h2 { font-size: 1.6rem; margin-bottom: 4px; }
.dialog label { display: block; font-weight: 500; margin: 18px 0 6px; }
.dialog input { width: 100%; padding: 12px 14px; font: inherit; border: 1px solid var(--line); border-radius: 10px; }
.dialog input:focus { outline: 2px solid var(--sea); outline-offset: 1px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer; }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle:focus-visible { outline: 2px solid var(--sea); }
.pw-toggle .eye-closed, .pw-toggle[aria-pressed="true"] .eye-open { display: none; }
.pw-toggle[aria-pressed="true"] .eye-closed { display: block; }
.error { color: #9a3b2a; min-height: 1.4em; margin: 8px 0 0; font-size: .9rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(5,12,15,.92); }
.lightbox img { max-width: calc(100vw - 120px); max-height: calc(100vh - 60px); object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox img { max-width: 100vw; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}
@media (max-width: 600px) {
  .month h3 { display: none; }
  .month-head { justify-content: center; }
}
.cal-status:empty { display: none; }

/* ---------- Clickable days & price panel ---------- */
button.day { background: none; border: 0; padding: 0; font: inherit; width: 100%; cursor: pointer; color: var(--ink); }
button.day:hover .num { background: var(--sand); }
button.day:focus-visible { outline: none; }
button.day:focus-visible .num { box-shadow: inset 0 0 0 2px var(--sea); }
.day.option .num { box-shadow: inset 0 0 0 1.5px var(--sea); color: var(--sea); font-weight: 600; }
.day.selected .num, button.day.selected:hover .num { background: var(--sea); color: #fff; font-weight: 600; box-shadow: none; }

.price-panel { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--sand); }
.pp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp-head h3 { margin: 0; font-size: 1.1rem; }
.pp-head h3::first-letter { text-transform: uppercase; }
.pp-close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.pp-body p { margin: 10px 0 0; }
.pp-persons { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .9rem; color: var(--muted); }
.pp-persons select { font: inherit; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.pp-list { margin-top: 12px; display: grid; gap: 8px; }
.pp-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px;
  background: #fff; border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--ink);
  border: 1px solid transparent; transition: border-color .15s;
}
.pp-row:hover { border-color: var(--sea); }
.pp-when { display: flex; flex-direction: column; line-height: 1.3; }
.pp-when strong { font-weight: 600; }
.pp-when span { font-size: .85rem; color: var(--muted); }
.pp-price { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.pp-go { color: var(--sea); font-weight: 600; font-size: .9rem; }
.pp-note { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font: inherit; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--sea); background: #fff; color: var(--sea); cursor: pointer; }
.chip:hover { background: var(--sea); color: #fff; }
@media (max-width: 600px) {
  .pp-row { grid-template-columns: 1fr auto; }
  .pp-go { display: none; }
}
.pp-when strong { white-space: nowrap; }
@media (max-width: 600px) {
  .pp-row { gap: 10px; padding: 12px; }
  .pp-when strong { font-size: .92rem; }
  .pp-price { font-size: 1.05rem; }
}

/* ---------- Hero "drone flight" ---------- */
/* Slow glide over the aerial photo; a real video (CONFIG.heroVideo) replaces it when set. */
.hero-img { transform-origin: 50% 50%; animation: drone-glide 22s ease-in-out infinite alternate; will-change: transform; }
/* Fly in towards the dunes and the sea.
   Keep |translate| below (scale-1)/(2*scale) so the photo never shows an edge. */
@keyframes drone-glide {
  from { transform: scale(1.1) translate3d(3%, 3%, 0); }
  to   { transform: scale(1.38) translate3d(-5%, -6%, 0); }
}
/* Portrait screens only show a narrow strip of the photo: glide sideways across it. */
@media (max-aspect-ratio: 1/1) {
  .hero-img { animation-name: drone-glide-portrait; animation-duration: 20s; }
  @keyframes drone-glide-portrait {
    from { transform: scale(1.25) translate3d(9%, 2%, 0); }
    to   { transform: scale(1.4) translate3d(-12%, -3%, 0); }
  }
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-video.playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; }
  .hero-video { display: none; }
}

/* ---------- Cleaning checklist (private) ---------- */
.clean-intro { margin: 0 0 20px; font-size: 1.05rem; }
.clean-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.clean-card { background: var(--sand); border-radius: 12px; padding: 16px 18px; }
.clean-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { margin: 0; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; line-height: 1.4; }
.checklist input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--sea); }
.checklist label:has(input:checked) { color: var(--muted); text-decoration: line-through; }
.clean-tip { margin: 20px 0 0; padding: 12px 16px; border-left: 3px solid var(--dune); background: var(--sand); border-radius: 0 8px 8px 0; }
.private-content .checklist { padding-left: 0; }
.clean-actions { display: flex; justify-content: flex-end; margin-top: 18px; }

/* ---------- "Te huur via Elly Oostdijk Recreatie" ---------- */
.rent-badge {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 22px;
  background: rgba(255,255,255,.94); color: var(--ink); text-decoration: none;
  padding: 8px 16px 8px 18px; border-radius: 14px; box-shadow: 0 8px 24px -12px rgba(0,0,0,.5);
  font-size: .85rem; font-weight: 600; transition: transform .15s;
}
.rent-badge:hover { transform: translateY(-1px); }
.rent-badge img { height: 58px; width: auto; }

.rent-band {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 3vw, 36px);
  width: min(calc(1200px - 2 * clamp(16px, 4vw, 48px)), calc(100% - 2 * clamp(16px, 4vw, 48px)));
  margin: clamp(32px, 5vw, 56px) auto 0; padding: 22px clamp(16px, 3vw, 32px);
  background: #fff; border-radius: var(--radius); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0,0,0,.25);
}
.rent-band-logo img { height: 72px; width: auto; display: block; }
.rent-band h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin: 0 0 4px; }
.rent-band p { margin: 0; color: var(--muted); }
@media (max-width: 720px) {
  .rent-band { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

.cal-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.eo-mini img { height: 52px; width: auto; display: block; }

.footer-logo { background: #fff; border-radius: 12px; padding: 8px 12px; display: inline-flex; }
.footer-logo img { height: 52px; width: auto; display: block; }
.footer { justify-content: flex-start; }
.footer-info { flex: 1 1 280px; }
