/* =========================================================
   Bij-uns in de Weide — stijlsysteem
   Concept: "coulissenlandschap" — de Achterhoekse coulisses
   (lagen bosjes/houtwallen die achter elkaar wegschuiven,
   zoals coulissen in een theater) zijn het terugkerende
   visuele motief: als laagjes-band tussen secties en als
   sfeerbeeld in de hero.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Karla:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  /* Kleur — avondlicht over de essen, geen cliché aardetinten */
  --color-bg: #F2EEDD;
  /* linnen, warm groenig gebroken wit */
  --color-bg-alt: #E8E0C4;
  /* dieper zand, voor afwisselende vlakken */
  --color-ink: #212C1F;
  /* bosnacht — bijna zwart, groen ondertoon */
  --color-ink-soft: #3C4A38;
  /* zachtere inkt voor lopende tekst op licht */
  --color-forest: #33482F;
  /* hoofdgroen — houtwal */
  --color-forest-dp: #22301E;
  /* donker groen voor header/footer */
  --color-rust: #A24E2C;
  /* baksteen/roggeveld-rood, cta secundair */
  --color-rust-dp: #833F22;
  --color-heather: #7C5670;
  /* heideglooiing, gebruikt als accentlijn */
  --color-gold: #C08A2E;
  /* rijpe rogge, primaire cta */
  --color-gold-dp: #A6741F;
  --color-line: #CFC6A4;
  /* subtiele randen op crème */
  --color-white: #FBF9F1;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 3px;
  --shadow-soft: 0 6px 18px rgba(34, 26, 14, 0.10);
  --shadow-card: 0 2px 10px rgba(34, 26, 14, 0.08);

  --maxw: 1120px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Photo's */
.home-photo {
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(160, 135, 92, 0.22);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 10px 24px rgba(58, 44, 25, 0.12);
  background: var(--color-white);
}

.home-photo--4-3 {
  aspect-ratio: 4 / 3;
}

.home-photo--1-1 {
  aspect-ratio: 1 / 1;
}

.accommodation-photo {
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(160, 135, 92, 0.22);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 10px 24px rgba(58, 44, 25, 0.12);
  background: var(--color-white);
}

.accommodation-photo--4-3 {
  aspect-ratio: 4 / 3;
}

.accommodation-photo--1-1 {
  aspect-ratio: 1 / 1;
}

.accommodation-photo--3-4 {
  aspect-ratio: 3 / 4;
  object-position: center 18%;
}

a {
  color: var(--color-rust);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-rust-dp);
}

:focus-visible {
  outline: 3px solid var(--color-heather);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.3rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--color-heather);
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  display: inline-block;
  margin-bottom: 0.4em;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-gold);
  color: var(--color-ink);
  padding: 10px 16px;
  z-index: 200;
  font-family: var(--font-body);
  font-weight: 700;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-forest-dp);
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-soft);
}

.site-header__bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  /* this now controls spacing between EVERY item, including the logo */
  padding: 18px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
  font-family: var(--font-display);
  color: var(--color-white);
  text-decoration: none;
  line-height: 0;
  /* no margin-right needed — gap on the parent handles it */
}

.brand:hover {
  color: var(--color-gold);
}

.brand__image {
  height: clamp(64px, 7vw, 96px);
  width: clamp(64px, 7vw, 96px);
  object-fit: contain;
  display: block;
  margin: -10px 0;
  flex: none;
}

.brand:hover .brand__image {
  opacity: 0.92;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  /* same value as .site-header__bar gap, so spacing feels uniform */
  flex-wrap: nowrap;
  /* margin-left: auto removed */
}

.main-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.10);
  color: var(--color-gold);
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-gold);
  color: var(--color-ink);
  padding: 9px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.header__phone:hover {
  background: var(--color-gold-dp);
  color: var(--color-white);
}

.header__phone svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
  padding: 8px 10px;
  border-radius: var(--radius);
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-forest-dp);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 18px;
    box-shadow: var(--shadow-soft);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .site-header__bar {
    flex-wrap: wrap;
  }
}

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #4A5B3A 0%, #33482F 55%, #22301E 100%);
  color: var(--color-white);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 72px 24px 72px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.hero__pitch {
  max-width: 640px;
}

.hero__pitch .eyebrow {
  color: var(--color-gold);
}

.hero h1 {
  color: var(--color-white);
}

.hero__lede {
  font-size: 1.15rem;
  color: #E7E4D2;
  max-width: 52ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease;
}

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

.btn-primary {
  background: var(--color-gold);
  color: var(--color-ink);
}

.btn-primary:hover {
  background: var(--color-gold-dp);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--color-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.btn-rust {
  background: var(--color-rust);
  color: var(--color-white);
}

.btn-rust:hover {
  background: var(--color-rust-dp);
}

/* ---------- Layout sections ---------- */
.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__head {
  max-width: 640px;
  margin-bottom: 36px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Fotoplekhouder ---------- */
.photo-placeholder {
  position: relative;
  background: repeating-linear-gradient(135deg, #DCD3AE, #DCD3AE 10px, #D3C89B 10px, #D3C89B 20px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-ink-soft);
  overflow: hidden;
}

.photo-placeholder--16-9 {
  aspect-ratio: 16 / 9;
}

.photo-placeholder--4-3 {
  aspect-ratio: 4 / 3;
}

.photo-placeholder--1-1 {
  aspect-ratio: 1 / 1;
}

.photo-placeholder--3-4 {
  aspect-ratio: 3 / 4;
}

.photo-placeholder__label {
  background: rgba(251, 249, 241, 0.92);
  border: 1px dashed var(--color-rust);
  padding: 10px 16px;
  margin: 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 88%;
}

.photo-placeholder__label strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-rust);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

/* ---------- Kaarten / voorzieningen ---------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

@media (max-width: 560px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-line);
}

.feature-list svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--color-forest);
  margin-top: 3px;
}

/* ---------- Prijstabel ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 14px 18px 0;
  color: var(--color-ink);
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-line);
}

.price-table thead th {
  background: var(--color-forest-dp);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
}

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

.price-table tbody tr:nth-child(even) {
  background: var(--color-bg);
}

.price-note {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  margin-top: 10px;
}

/* ---------- Boeking placeholder (makkelijk te vervangen) ---------- */
.booking-widget-slot {
  border: 2px dashed var(--color-heather);
  border-radius: var(--radius);
  background: var(--color-white);
  padding: 40px 24px;
  text-align: center;
  color: var(--color-ink-soft);
}

.booking-widget-slot strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-heather);
  margin-bottom: 6px;
}

.booking-widget-slot code {
  display: inline-block;
  margin-top: 10px;
  background: var(--color-bg-alt);
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 0.82rem;
}

/* ---------- Huisregels ---------- */
.rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.rules-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.rules-list .rule-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rules-list h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

/* ---------- Omgeving ---------- */
.route-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px;
}

@media (max-width: 560px) {
  .route-card {
    grid-template-columns: 1fr;
  }
}

.route-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-forest);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.route-card .tag--fiets {
  background: var(--color-rust);
}

.route-card .tag--wandel {
  background: var(--color-forest);
}

/* ---------- Formulier ---------- */
.form-grid {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  font-weight: 700;
  color: var(--color-ink);
  font-size: 0.92rem;
}

.form-row .hint {
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  font-weight: 400;
}

.form-row input,
.form-row textarea,
.form-row select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 13px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--color-heather);
}

.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) {
  .form-two {
    grid-template-columns: 1fr;
  }
}

.form-status {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  background: #E4EFDD;
  color: #33482F;
  border: 1px solid #B9CFA9;
}

.form-status--error {
  background: #F6E2DA;
  color: #833F22;
  border: 1px solid #E0AF97;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-details {
  display: grid;
  gap: 16px;
}

.contact-details .big-phone {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--color-ink);
}

.contact-details .big-phone a {
  color: var(--color-rust);
  text-decoration: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: #CBD1C4;
  padding: 48px 0 28px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.site-footer a {
  color: #CBD1C4;
}

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

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #8E9587;
}

/* ---------- Pagina-hero (niet-home) ---------- */
.page-hero {
  background: var(--color-forest-dp);
  color: var(--color-white);
  padding: 56px 0 0;
}

.page-hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 40px;
}

.page-hero .eyebrow {
  color: var(--color-gold);
}

.page-hero h1 {
  color: var(--color-white);
}

.page-hero p {
  color: #E7E4D2;
  max-width: 60ch;
}

/* ---------- Divider met kleine houtwal-tekst ---------- */
.quote-block {
  border-left: 3px solid var(--color-heather);
  padding-left: 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-ink);
  margin: 28px 0;
}

/* stub-pagina (privacy) */
.stub-box {
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--color-ink-soft);
  background: var(--color-white);
}

/* ---------- Sfeerbeelden-carousel (schuivend fotorijtje) ----------
   4 foto's tegelijk zichtbaar, zelfde formaat/ratio als .grid-4 met
   .accommodation-photo--1-1 / .photo-placeholder--1-1. Elke 5 seconden
   schuift alles één plek naar links: de linker foto verdwijnt, rechts
   komt de volgende in beeld. Naadloos doorlopend dankzij vier
   gekloonde slides aan het eind van de track (in de HTML gemarkeerd
   met aria-hidden, zodat schermlezers ze niet dubbel voorlezen).
   ------------------------------------------------------------------ */
.photo-carousel {
  position: relative;
}

.photo-carousel__viewport {
  overflow: hidden;
}

.photo-carousel__track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s ease;
  will-change: transform;
}

.photo-carousel__slide {
  flex: 0 0 calc((100% - 60px) / 4);
  /* 4 zichtbaar, 3 tussenruimtes van 20px — zelfde maatvoering als .grid-4 */
}

@media (max-width: 900px) {
  .photo-carousel__slide {
    flex: 0 0 calc((100% - 20px) / 2);
    /* 2 per rij, zelfde breakpoint als .grid-4 */
  }
}

@media (max-width: 560px) {
  .photo-carousel__slide {
    flex: 0 0 100%;
    /* 1 per rij, zelfde breakpoint als .grid-4 */
  }
}

.photo-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(33, 44, 31, 0.55);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.photo-carousel__arrow:hover,
.photo-carousel__arrow:focus-visible {
  background: rgba(33, 44, 31, 0.85);
}

.photo-carousel__arrow--prev {
  left: -14px;
}

.photo-carousel__arrow--next {
  right: -14px;
}

.photo-carousel__arrow svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 560px) {
  .photo-carousel__arrow--prev {
    left: 4px;
  }

  .photo-carousel__arrow--next {
    right: 4px;
  }
}

/* =========================================================
   Beschikbaarheidskalender (prijzen.html)
   Maandoverzicht op basis van beschikbaarheid.php, dat de
   iCal-feed van een Google Agenda uitleest. Puur weergave —
   geen boeking/betaling. Hergebruikt bestaande kleur- en
   componentvariabelen, geen nieuwe kleuren.

   Compacter/overzichtelijker gemaakt (max-breedte + gecentreerd,
   in plaats van de volle sectiebreedte), en vrije dagen krijgen
   een duidelijke groene "vrij"-tint (afgeleid van --color-forest,
   als lichte rgba-wash) zodat vrij/bezet in één oogopslag
   te onderscheiden is.
   ========================================================= */
.avail-calendar {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px;
  max-width: 512px;
  margin: 0 auto;
}

.avail-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.avail-calendar__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-ink);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1;
}

.avail-calendar__nav-btn:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-heather);
}

.avail-calendar__nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.avail-calendar__month {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-ink);
  text-align: center;
  min-width: 11ch;
}

.avail-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.avail-calendar__weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  padding-bottom: 4px;
}

.avail-calendar__day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.82rem;
  background: var(--color-bg);
  color: var(--color-ink-soft);
}

.avail-calendar__day--outside {
  background: transparent;
  visibility: hidden;
}

/* Vrij: duidelijke groene wash (lichte rgba-versie van --color-forest,
   #33482F -> rgb(51,72,47)) + vetgedrukt bosgroen cijfer, zodat "vrij"
   in één oogopslag opvalt ten opzichte van "bezet". */
.avail-calendar__day--free {
  background: rgba(51, 72, 47, 0.10);
  color: var(--color-forest);
  border: 1px solid rgba(51, 72, 47, 0.22);
  font-weight: 700;
}

/* Bezet: bewust gedempt/grijzig met doorgestreepte cijfers, zodat het
   duidelijk "niet beschikbaar" oogt naast de groene vrije dagen. */
.avail-calendar__day--busy {
  background: var(--color-bg-alt);
  color: var(--color-ink-soft);
  opacity: 0.7;
  text-decoration: line-through;
  text-decoration-color: var(--color-rust);
  border: 1px solid var(--color-line);
}

.avail-calendar__day--today {
  border: 2px solid var(--color-gold);
}

.avail-calendar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--color-ink-soft);
}

.avail-calendar__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.avail-calendar__legend-swatch {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  border: 1px solid var(--color-line);
}

.avail-calendar__legend-swatch--free {
  background: rgba(51, 72, 47, 0.10);
  border-color: rgba(51, 72, 47, 0.22);
}

.avail-calendar__legend-swatch--busy {
  background: var(--color-bg-alt);
}

.avail-calendar__status {
  font-size: 0.78rem;
  color: var(--color-ink-soft);
  margin-top: 12px;
  text-align: right;
}

.avail-calendar__loading {
  text-align: center;
  padding: 28px 0;
  color: var(--color-ink-soft);
  font-style: italic;
}

.avail-calendar__error {
  border: 2px dashed var(--color-heather);
  border-radius: var(--radius);
  background: var(--color-white);
  padding: 32px 24px;
  text-align: center;
  color: var(--color-ink-soft);
}

.avail-calendar__error strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-heather);
  margin-bottom: 6px;
}

@media (max-width: 560px) {
  .avail-calendar {
    max-width: 100%;
    padding: 14px;
  }

  .avail-calendar__day {
    font-size: 0.76rem;
  }
}


/* ---------- Fullscreen photo viewer ---------- */
body.lightbox-open {
  overflow: hidden;
}

.photo-carousel__slide img {
  cursor: zoom-in;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.photo-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.photo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 27, 21, 0.78);
  cursor: zoom-out;
}

.photo-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(94vw, 1400px);
  height: min(90vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.photo-lightbox__figure {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.photo-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(88vw, 1320px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  background: var(--color-white);
  pointer-events: auto;
  user-select: none;
}

.photo-lightbox__close,
.photo-lightbox__arrow {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(251, 249, 241, 0.28);
  background: rgba(33, 44, 31, 0.82);
  color: var(--color-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.photo-lightbox__close:hover,
.photo-lightbox__close:focus-visible,
.photo-lightbox__arrow:hover,
.photo-lightbox__arrow:focus-visible {
  background: var(--color-forest);
}

.photo-lightbox__close {
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.photo-lightbox__close:hover,
.photo-lightbox__close:focus-visible {
  transform: scale(1.04);
}

.photo-lightbox__arrow {
  top: 50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.photo-lightbox__arrow:hover,
.photo-lightbox__arrow:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.photo-lightbox__arrow svg {
  width: 24px;
  height: 24px;
}

.photo-lightbox__arrow--prev {
  left: 12px;
}

.photo-lightbox__arrow--next {
  right: 12px;
}

@media (max-width: 700px) {
  .photo-lightbox {
    padding: 12px;
  }

  .photo-lightbox__dialog {
    width: 100%;
    height: 92vh;
  }

  .photo-lightbox__image {
    max-width: 94vw;
    max-height: 82vh;
    border-radius: var(--radius);
  }

  .photo-lightbox__close {
    top: 4px;
    right: 4px;
    width: 42px;
    height: 42px;
  }

  .photo-lightbox__arrow {
    width: 44px;
    height: 44px;
  }

  .photo-lightbox__arrow--prev {
    left: 4px;
  }

  .photo-lightbox__arrow--next {
    right: 4px;
  }
}

/* =========================================================
   MOBILE FIXES — combined & cleaned up (replaces v1, v2, v3)
   Append this single block to the end of style.css instead
   of the three separate files. Only affects small/medium
   screens via clamp() and media queries — desktop (≈1120px+)
   renders exactly as before.

   Two small HTML tweaks are still needed, both optional but
   recommended — see the comments inline below.
   ========================================================= */

/* ---------- Safety net ----------
   Never let any element push the whole page into horizontal
   scroll, whatever the cause. */
html,
body {
  overflow-x: hidden;
}

/* ---------- Fluid spacing tokens ----------
   Spacing scales continuously with viewport width instead of
   jumping at fixed breakpoints. */
:root {
  --space-section: clamp(2rem, 1.2rem + 3.5vw, 4rem);
  /* was 64px fixed */
  --space-container: clamp(1rem, 0.6rem + 1.8vw, 1.5rem);
  /* was 24px fixed */
  --space-hero-y: clamp(2.25rem, 1.4rem + 3.8vw, 4.5rem);
  --space-grid-gap: clamp(0.9rem, 0.5rem + 1.8vw, 1.75rem);
}

.container {
  padding-left: var(--space-container);
  padding-right: var(--space-container);
}

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.hero__inner {
  padding-top: var(--space-hero-y);
  padding-bottom: var(--space-hero-y);
}

.grid-2 {
  gap: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  /* was fixed 48px */
}

.grid-3,
.grid-4 {
  gap: var(--space-grid-gap);
}

.page-hero {
  padding-top: clamp(2rem, 1.3rem + 3vw, 3.5rem);
}

.page-hero__inner {
  padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

/* ---------- Fluid typography ---------- */
.hero__lede {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
}

.quote-block {
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.25rem);
  padding-left: clamp(14px, 3vw, 22px);
  margin: clamp(18px, 3vw, 28px) 0;
}

.contact-details .big-phone {
  font-size: clamp(1.5rem, 1.1rem + 3vw, 2.1rem);
}

.price-note {
  font-size: clamp(0.82rem, 0.75rem + 0.3vw, 0.9rem);
}

/* CTAs stack only once they'd actually collide, not at a fixed width */
.hero__ctas {
  flex-wrap: wrap;
}

.hero__ctas .btn {
  flex: 1 1 200px;
  justify-content: center;
}

/* ---------- Header: extra breathing room on phone widths ---------- */
@media (max-width: 430px) {
  .site-header__bar {
    gap: 12px;
  }

  .brand__image {
    height: 52px;
    width: 52px;
    margin: -4px 0;
  }

  .nav-toggle {
    padding: 7px 10px;
    font-size: 0.9rem;
  }
}

/* ---------- Photo carousel: 4 → 3 → 2 → 1, staggered so no
   width lands in an awkward gap ---------- */
@media (max-width: 1000px) {
  .photo-carousel__slide {
    flex: 0 0 calc((100% - 40px) / 3);
  }
}

@media (max-width: 720px) {
  .photo-carousel__slide {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (max-width: 460px) {
  .photo-carousel__slide {
    flex: 0 0 100%;
  }
}

/* ---------- Home page 3-photo row ----------
   Optional HTML change in index.html: replace

     <div class="grid-3" style="grid-template-columns:repeat(3,1fr);">

   with:

     <div class="grid-3 home-quote-photos">

   (drops the inline style, which otherwise blocks the
   responsive rules below since inline styles beat media
   queries). Staggered at 540/360 so a ~412px phone (Pixel 7
   etc.) gets 2 comfortable squares instead of 3 tiny ones. */
.home-quote-photos {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 540px) {
  .home-quote-photos {
    grid-template-columns: 1fr 1fr;
    gap: clamp(10px, 3vw, 14px);
  }
}

@media (max-width: 360px) {
  .home-quote-photos {
    grid-template-columns: 1fr;
  }
}

/* ---------- Feature list: mid-step so it doesn't jump straight
   from 2 columns to 1 at 560 ---------- */
@media (max-width: 700px) {
  .feature-list {
    gap: 8px 16px;
  }
}

/* ---------- Route cards: a bit less padding once stacked ---------- */
@media (max-width: 640px) {
  .route-card {
    padding: 14px;
  }
}

/* ---------- Availability calendar: fluid cell sizing ---------- */
.avail-calendar {
  padding: clamp(14px, 3vw, 20px);
}

.avail-calendar__day {
  font-size: clamp(0.74rem, 0.65rem + 0.4vw, 0.82rem);
}

/* =========================================================
   Price table (prijzen.html)
   ========================================================= */

/* Scroll fallback, found automatically via :has() — no wrapper
   div required. Only kicks in if the table genuinely can't
   fit even after shrinking below. */
.container:has(> .price-table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Optional HTML change in prijzen.html, if you'd rather have an
   explicit scroll wrapper instead of relying on :has():

     <div class="table-scroll">
       <table class="price-table">...</table>
     </div>
*/
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .price-table {
    min-width: 0;
    /* let it shrink to fit — do NOT force a min-width here,
                     that's what clipped the table off-screen before */
  }

  .price-table th,
  .price-table td {
    padding: 11px 12px;
    font-size: 0.92rem;
  }
}

/* Below ~480px: fixed column widths so "Periode" gets more room
   than the short price columns. Text already wraps naturally. */
@media (max-width: 480px) {
  .price-table {
    table-layout: fixed;
    font-size: 0.8rem;
  }

  .price-table th,
  .price-table td {
    padding: 8px 7px;
    word-break: break-word;
  }

  .price-table th:first-child,
  .price-table td:first-child {
    width: 34%;
  }

  .price-table th:not(:first-child),
  .price-table td:not(:first-child) {
    width: 22%;
  }

  .price-table caption {
    padding: 12px 4px 0;
    font-size: 1rem;
  }
}