/*
 * Detailpagina appartement. Structuur naar het voorbeeld van een accommodatiepagina (foto's, kerngegevens,
 * meescrollende kaart), vorm eigen: serif-koppen, diepgroen en een korenkleurige knop.
 */

/* Lettertypes (@font-face) staan in main.css */

.apt {
  --apt-deep: #33512b;
  --apt-deep-2: #1c3e21;
  --apt-leaf: #e7efd9;
  --apt-leaf-ink: #33512b;
  --apt-wheat: #e3a92f;
  --apt-wheat-ink: #312504;
  --apt-line: #e3dcc6;
  --apt-soft: #f7efd7;
  --apt-muted: #5b6a52;
  --apt-radius: 12px;
  --apt-ease: cubic-bezier(.25, 1, .5, 1);
  /* Zo ver valt de fotostrook over de onderkant van de grote foto */
  --strip-overlap: clamp(2.25rem, 4vw, 3rem);
}

.text-serif { font-family: var(--font-heading); font-weight: 600; letter-spacing: -.01em; }

/* Kopniveau kiesbaar in het panel: de opmaak hangt aan de classes */
:where(h1, h2, h3, h4, h5, h6, p):where(.apt-h2, .apt-highlight__title, .apt-acc__title, .apt-band__title) { margin-top: 0; }

/* ==========================================================================
   Kop: grote foto met de naam erop
   ========================================================================== */

/* Grote foto in een afgerond vlak met een marge rondom, zoals de hero van de homepage */
.apt-hero { --edge: clamp(1.25rem, 5.2vw, 5.5rem); position: relative; color: #fff; }
@media (min-width: 640px) and (max-width: 1199px) { .apt-hero { --edge: var(--gutter); } }
.apt-hero__media { position: relative; height: clamp(18rem, 52vw, 34rem); margin: .75rem var(--edge) 0; overflow: hidden; border-radius: 1rem; }
.apt-hero__img { width: 100%; height: 100%; object-fit: cover; }
/* Bij scrollen vervaagt de foto en zoomt hij licht in (--hero-p van 0 tot 1, gezet in templates/apartment.php);
   het inzoomen houdt de vage randen buiten beeld */
.apt-hero__img { filter: blur(calc(var(--hero-p, 0) * 14px)); transform: scale(calc(1 + var(--hero-p, 0) * .08)); will-change: filter, transform; }
@media (prefers-reduced-motion: reduce) { .apt-hero__img { filter: none; transform: none; will-change: auto; } }
/* De crème lijn-aar rechts over de foto (dezelfde als in de hero van de homepage), deels buiten de rand */
.apt-hero__aar { position: absolute; z-index: 1; top: -4%; right: -2%; height: 108%; aspect-ratio: 625 / 810; background: #f7efd7; opacity: .85; -webkit-mask: url(../images/aar-lijn-dun.svg) no-repeat center / contain; mask: url(../images/aar-lijn-dun.svg) no-repeat center / contain; pointer-events: none; }
@media (max-width: 639px) { .apt-hero__aar { height: 80%; right: -8%; -webkit-mask-image: url(../images/aar-lijn.svg); mask-image: url(../images/aar-lijn.svg); } }
.apt-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(10 31 14 / .75), rgb(10 31 14 / 0) 55%);
}

.apt-hero__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--strip-overlap) + clamp(.75rem, 2.5vw, 1.75rem));
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-inline: auto;
}

.apt-hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgb(0 0 0 / .25);
}


/* Fotostrook */
/* Valt over de onderkant van de grote foto heen, met een witte rand en een zachte schaduw om elke foto */
.apt-strip { position: relative; z-index: 2; margin-top: calc(-1 * var(--strip-overlap)); padding: 0; background: transparent; }
.apt-strip__inner { display: grid; grid-template-columns: repeat(5, 1fr) minmax(7.5rem, .75fr); gap: clamp(.75rem, 1.6vw, 1.125rem); }
.apt-strip__item,
.apt-strip__more {
  padding: 0;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 0 0 3px #fff, 0 6px 12px -6px rgb(10 31 14 / .35);
  background: none;
  overflow: hidden;
  cursor: pointer;
}
.apt-strip__item img { width: 100%; height: 7.5rem; object-fit: cover; opacity: 1; transition: opacity .15s var(--apt-ease), transform .3s var(--apt-ease); }
.apt-strip__item:hover img { transform: scale(1.04); }
.apt-strip__more {
  min-width: 5.5rem;
  border: 0;
  background: #f7efd7;
  color: var(--color-text);
  transition: background-color .2s var(--apt-ease);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
}
.apt-strip__more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .375rem; }
.apt-strip__more svg { flex: none; opacity: .85; }
.apt-strip__more:hover { background: #f7efd7; }

@media (max-width: 699px) {
  .apt-strip__inner { grid-template-columns: repeat(3, 1fr) .9fr; }
  .apt-strip__item:nth-child(n + 4) { display: none; }
  .apt-strip__item img { height: 5.5rem; }
}

/* ==========================================================================
   Kerngegevens: één regel tekst met een icoon per gegeven
   ========================================================================== */

.apt-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem 2.25rem;
  margin: clamp(1.75rem, 4vw, 2.25rem) 0 0;
  padding: 0 0 clamp(1.75rem, 4vw, 2.25rem);
  border-bottom: 1px solid var(--apt-line);
  list-style: none;
  color: var(--color-text);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
}
.apt-facts__item { display: inline-flex; align-items: center; gap: .75rem; }
.apt-facts__item strong { font-weight: 700; }
.apt-facts__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--apt-leaf);
  color: var(--apt-leaf-ink);
}
.apt-facts__icon svg { width: 1.25rem; height: 1.25rem; }

/* ==========================================================================
   Twee kolommen: inhoud en de meescrollende kaart
   ========================================================================== */

.apt-body { display: grid; gap: 2.5rem; padding-top: clamp(2rem, 5vw, 3rem); }

@media (min-width: 960px) {
  /* Zelfde kolommen als het blok Reserveren eronder (raster van Tommy: 2/3 en 1/3 met 30px ertussen),
     zodat de tekst en de kaart rechts precies boven het boekformulier en het overzicht staan */
  .apt-body { grid-template-columns: calc((100% + 30px) * 2 / 3 - 30px) minmax(0, 1fr); column-gap: 30px; row-gap: 3.5rem; align-items: start; }
}

.apt-section { padding-bottom: clamp(2rem, 5vw, 3rem); }
.apt-h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.2; margin: 0 0 1rem; text-wrap: balance; }

.apt-intro { max-width: 65ch; }
.apt-intro p { font-size: 1.0625rem; line-height: 1.75; }
.apt-intro p + p { margin-top: 1rem; }

/* Hoogtepunt (honden): opvallend pilvormig vlak in bladgroen, rond beeld met witte rand en een korenkleurig pootje */
.apt-highlight {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  /* Niet over de hele kolom: zo breed als de inhoud, maar minimaal ca. 670px (smaller scherm: de kolombreedte) */
  width: fit-content;
  min-width: min(100%, 42rem);
  max-width: 100%;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: .75rem 1rem .75rem .75rem;
  border-radius: 1rem;
  background: #f7efd7;
  color: var(--apt-leaf-ink);
}
.apt-highlight__img,
.apt-highlight__icon {
  flex: none;
  width: 5.5rem;
  height: 5.5rem;
  border: 4px solid #fff;
  border-radius: 50%;
}
.apt-highlight__img { object-fit: cover; }
.apt-highlight__icon { display: grid; place-items: center; background: #fff; color: var(--apt-leaf-ink); }
.apt-highlight__body { flex: 1; min-width: 0; margin-right: .75rem; }
.apt-highlight__title {
  margin: 0 0 .25rem;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--apt-leaf-ink);
}
.apt-highlight__text { margin: 0; color: var(--apt-leaf-ink); opacity: .85; line-height: 1.45; }
.apt-highlight__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--apt-wheat);
  color: var(--apt-wheat-ink);
  transform: rotate(-12deg);
}
.apt-highlight__badge svg { width: 1.625rem; height: 1.625rem; }

@media (max-width: 599px) {
  .apt-highlight { align-items: flex-start; gap: 1rem; padding: 1rem; border-radius: 20px; }
  .apt-highlight__img, .apt-highlight__icon { width: 4.25rem; height: 4.25rem; border-width: 3px; }
  .apt-highlight__badge { position: absolute; top: -.75rem; right: -.5rem; width: 2.75rem; height: 2.75rem; }
}

/* Voorzieningen (Algemeen): twee kolommen met een icoon per regel */
.apt-amenities__list {
  display: grid;
  gap: .25rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) { .apt-amenities__list { grid-template-columns: 1fr 1fr; } }
.apt-amenities__item { display: flex; align-items: flex-start; gap: 1rem; padding: .625rem 0; line-height: 1.45; }
.apt-amenities__icon { flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; color: var(--color-text); margin-top: .0625rem; }

/* Inventaris: inklapbaar (native details), opengeklapt in kolommen */
.apt-acc { border-top: 1px solid var(--apt-line); border-bottom: 1px solid var(--apt-line); }
.apt-acc__summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 4rem;
  padding: .75rem 0;
  list-style: none;
  cursor: pointer;
}
.apt-acc__summary::-webkit-details-marker { display: none; }
.apt-acc__title { margin: 0; font-size: clamp(1.375rem, 2.5vw, 1.625rem); line-height: 1.2; }
.apt-acc__meta {
  display: inline-grid;
  place-items: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 .5rem;
  border-radius: 999px;
  background: var(--color-yellow-soft, #feedc5);
  color: var(--color-yellow-ink, #614902);
  font-size: .8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.apt-acc__icon {
  position: relative;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: auto;
  border-radius: 50%;
  background: var(--apt-soft);
  transition: background-color .15s var(--apt-ease), transform .25s var(--apt-ease);
}
.apt-acc__icon::before,
.apt-acc__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: .875rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transform: translate(-50%, -50%);
  transition: transform .25s var(--apt-ease);
}
.apt-acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.apt-acc[open]:not(.is-closing) .apt-acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
/* De inhoud komt zacht in beeld bij het openklappen, en vervaagt bij het dichtklappen */
.apt-acc__body { transition: opacity .3s var(--apt-ease); }
.apt-acc[open] .apt-acc__body { animation: apt-acc-in .4s var(--apt-ease); }
.apt-acc.is-closing .apt-acc__body { opacity: 0; }
@keyframes apt-acc-in { from { opacity: 0; transform: translateY(-.375rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .apt-acc[open] .apt-acc__body { animation: none; } }
.apt-acc__summary:hover .apt-acc__icon { background: var(--apt-line); }
.apt-acc__summary:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; border-radius: 4px; }

.apt-acc__body { padding: .25rem 0 1.5rem; }
.apt-acc[open] .apt-acc__body { animation: apt-acc-in .25s var(--apt-ease); }
@keyframes apt-acc-in { from { opacity: 0; transform: translateY(-4px); } }

/* Lijst in kolommen, compact: stipje in plaats van scheidingslijnen */
.apt-acc__body--list ul { margin: 0; padding: 0; list-style: none; column-gap: 2rem; }
@media (min-width: 600px) { .apt-acc__body--list ul { columns: 2; } }
@media (min-width: 1100px) { .apt-acc__body--list ul { columns: 3; } }
/* Elk punt op een eigen regel met een subtiel lijntje eronder (ook per kolom) */
.apt-acc__body--list li {
  position: relative;
  padding: .625rem 0 .625rem 1.125rem;
  border-bottom: 1px solid var(--apt-line);
  line-height: 1.45;
  break-inside: avoid;
}
/* Laatste punt van elke kolom: geen lijntje (gemarkeerd door het script in templates/apartment.php) */
.apt-acc__body--list li.is-column-end { border-bottom: 0; }
.apt-acc__body--list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(.625rem + .55em);
  width: .375rem;
  height: .375rem;
  border-radius: 50%;
  background: var(--color-brand);
}
.apt-acc__body p { margin: 0 0 .75rem; max-width: 65ch; }

/* Boekmodule: eigen rij over de volle breedte, met een lichte achtergrond */
.apt-booking { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: #f7efd7; }
.apt-booking__head { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); text-align: center; }
.apt-booking__eyebrow { margin: 0 0 .375rem; line-height: 1.6; letter-spacing: normal; color: var(--color-accent); font-size: 1.0625rem; font-weight: 600; }
.apt .apt-booking__title { margin: 0 0 .75rem; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.apt-booking__text { max-width: 40rem; margin: 0 auto; color: var(--apt-muted); font-size: clamp(1rem, 1.6vw, 1.125rem); line-height: 1.55; text-wrap: balance; }
.apt-booking .b-tommy { padding: 0; scroll-margin-top: 1.5rem; }
#reserveren { scroll-margin-top: 1.5rem; }

/* Kaart rechts */
.apt-aside { display: none; }
@media (min-width: 960px) {
  /* Schuift mee onder de kopbalk als die in beeld is (--header-offset, gezet door snippets/header.php) */
  .apt-aside { display: block; position: sticky; top: calc(var(--header-offset, 0px) + 1.5rem); transition: top .35s cubic-bezier(.22, 1, .36, 1); margin-bottom: 2.5rem; container-type: inline-size; }
}
.apt-card { padding: clamp(1.75rem, 3vw, 2.25rem); border-radius: .75rem; background: var(--apt-deep); color: #fff; }
.apt-card__title { margin: 0 0 .5rem; color: var(--apt-wheat); font-size: 1.5rem; line-height: 1.2; }
.apt-card__text { margin: 0 0 1.25rem; color: rgb(255 255 255 / .85); line-height: 1.5; }
.apt-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: .4rem;
  background: linear-gradient(90deg, #3f9b45 0%, #6a8f3d 50%, #6a8f3d 100%) 100% 0 / 200% 100% no-repeat;
  background-color: #6a8f3d;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-position .5s cubic-bezier(.22, 1, .36, 1), transform .15s var(--apt-ease);
}
.apt-card__button::after { content: ""; flex: none; width: .85rem; height: .85rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") no-repeat center / contain; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.apt-card__button:is(:hover, :focus-visible) { background-position: 0 0; color: #fff; }
.apt-card__button:is(:hover, :focus-visible)::after { transform: translate(3px, -3px); }
.apt-card__button:active { transform: translateY(1px); }
.apt-card__button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.apt-card__contact { margin: 1.25rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .18); color: rgb(255 255 255 / .85); font-size: .9375rem; line-height: 1.5; }
.apt-card__contact a { color: #fff; }

/* Kaart rechts op crème: donkere tekst, olijfgroene knop met witte tekst */
.apt-card { background: #f7efd7; color: var(--color-text); }
.apt-card .apt-card__title { color: var(--apt-deep); }
.apt-card .apt-card__text,
.apt-card .apt-card__contact { color: var(--color-text); }
.apt-card .apt-card__contact { border-top-color: rgb(51 81 43 / .15); }
.apt-card .apt-card__contact a { color: var(--color-accent); font-weight: 600; }
.apt-card__contact p { margin: 0; }
/* Met foto: rond portretje links van naam en telefoon */
.apt-card__person--photo { display: flex; align-items: center; gap: .875rem; }
.apt-card .apt-card__name { font-weight: 600; }
/* Bel ons en Mail ons: tekstlinks onder elkaar, iconen in één kolom; het nummer en adres klein ernaast */
.apt-card__actions { display: grid; gap: .375rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.apt-card .apt-card__action { display: grid; grid-template-columns: 1.125rem 1fr; align-items: center; gap: .625rem; color: var(--color-accent); font-weight: 600; text-decoration: none; transition: color .2s var(--apt-ease); }
.apt-card .apt-card__action svg { justify-self: center; }
.apt-card .apt-card__action span { min-width: 0; overflow-wrap: anywhere; }
.apt-card .apt-card__action:is(:hover, :focus) { color: var(--btn-fill-primary, #6a8f3d); text-decoration: none; }
/* Knoptekst die toch moet afbreken, blijft gecentreerd */
.apt-card .apt-card__button { text-align: center; line-height: 1.25; }

/* Smallere kaart (kleine desktopschermen, rechterkolom smaller dan 384px): minder binnenruimte, kleinere knoptekst,
   en de foto boven naam, telefoon en e-mail, zodat nummer en adres op één regel blijven */
@container (max-width: 24rem) {
  .apt-card { padding: 1.5rem; }
  .apt-card__title { font-size: 1.3125rem; }
  .apt-card .apt-card__button { padding: .625rem 1rem; font-size: .9375rem; }
  .apt-card__person--photo { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .apt-card__photo { width: 3.5rem; height: 3.5rem; }
  .apt-card .apt-card__action span { overflow-wrap: normal; }
}
.apt-card__photo { flex: none; width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff; }
.apt-card .apt-card__button { background: linear-gradient(90deg, #3f9b45 0%, #6a8f3d 50%, #6a8f3d 100%) 100% 0 / 200% 100% no-repeat; background-color: #6a8f3d; color: #fff; }
.apt-card .apt-card__button:is(:hover, :focus-visible) { background-position: 0 0; }
:is(.apt-card, .apt-mobilebar) .apt-card__button::before { display: none; }
.apt-card .apt-card__button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* Balk onderin op mobiel */
.apt-mobilebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: #f7efd7;
  color: var(--color-text);
  box-shadow: 0 -1px 0 rgb(97 73 2 / .14);
  transition: transform .25s var(--apt-ease);
}
.apt-mobilebar__title { font-size: 1.25rem; }
/* Op de zachtgele balk: donkergroene knop met witte tekst en een kalendericoon (vorm zoals "Boek nu" in de header) */
.apt-mobilebar .apt-card__button { --btn-fill: var(--btn-fill-primary); gap: .5rem; min-height: 2.75rem; padding: 0 1.125rem; background-color: #6a8f3d; color: #fff; font-weight: 600; white-space: nowrap; }
.apt-mobilebar .apt-card__button:hover { background: var(--btn-fill-primary); color: #fff; }
.apt-mobilebar .apt-card__button svg { flex: none; }
.apt-mobilebar.is-hidden { transform: translateY(110%); }
@media (min-width: 960px) { .apt-mobilebar { display: none; } }


/* ==========================================================================
   Reviews van dit appartement: carrousel (snippets/apartment-reviews.php)
   ========================================================================== */

.apt-reviews { padding: clamp(2.5rem, 6vw, 4rem) 0; background: #fff; }
.apt-reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.apt-reviews__head .apt-h2 { margin-bottom: .375rem; }
.apt-reviews__summary { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin: 0; color: var(--apt-muted); }
.apt-reviews__summary strong { color: var(--color-text, #33512b); font-size: 1.125rem; }
.apt-reviews__stars { display: inline-flex; gap: .125rem; }
.apt-reviews__stars svg { fill: #dfe5df; }
.apt-reviews__stars svg.is-on { fill: var(--apt-wheat); }
.apt-reviews__nav { display: flex; gap: .5rem; }
.apt-reviews__nav[hidden] { display: none; }
.apt-reviews__arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ced7cf; border-radius: 50%; background: #fff; color: var(--color-text, #33512b); cursor: pointer; transition: border-color .2s var(--apt-ease), background-color .2s var(--apt-ease), opacity .2s var(--apt-ease); }
.apt-reviews__arrow:hover:not(:disabled) { border-color: var(--apt-muted); background: var(--apt-soft); }
.apt-reviews__arrow:disabled { opacity: .35; cursor: default; }

/* De rij: horizontaal scrollen met snap; 1 kaart (met een stukje van de volgende) op mobiel, 2 op tablet, 3 op desktop */
.apt-reviews__track {
  --per-view: 1.12;
  /* Houvast voor verborgen teksten (sr-only, absoluut): anders vallen die buiten de rij en scrolt de pagina zijwaarts */
  position: relative;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0 0 .5rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.apt-reviews__track::-webkit-scrollbar { display: none; }
.apt-reviews__track:focus { outline: none; }
@media (min-width: 40rem) { .apt-reviews__track { --per-view: 2; } }
@media (min-width: 64rem) { .apt-reviews__track { --per-view: 3; gap: 1.5rem; } }
.apt-reviews__slide { flex: 0 0 calc((100% - (var(--per-view) - 1) * 1rem) / var(--per-view)); scroll-snap-align: start; transition: flex-basis .45s cubic-bezier(.22, 1, .36, 1); }
@media (min-width: 64rem) { .apt-reviews__slide { flex-basis: calc((100% - 2 * 1.5rem) / 3); } }
/* Opengeklapte review: breder in plaats van hoger (desktop twee kaarten breed, kleiner scherm de hele rij) */
.apt-reviews__slide.is-open { flex-basis: 100%; }
@media (min-width: 64rem) { .apt-reviews__slide.is-open { flex-basis: calc((100% - 2 * 1.5rem) / 3 * 2 + 1.5rem); } }
@media (prefers-reduced-motion: reduce) { .apt-reviews__slide { transition: none; } }
.apt-reviews__card { display: flex; flex-direction: column; gap: .875rem; height: 100%; margin: 0; padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--apt-radius); background: #f7efd7; }
/* Citaat zonder de standaardstijl (grijze lijn, inspringing) van de browser en van Tommy's Bootstrap */
.apt .apt-reviews__text { flex: 1; margin: 0; padding: 0; border: 0; font-size: inherit; }
.apt-reviews__text p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
/* Lange reviews: na 7 regels afgekapt (alleen met JavaScript, dat de knop "Lees de hele review" toont);
   uitgeklapt worden alle kaarten zo hoog als de langste review */
.apt-reviews.is-clamped .apt-reviews__slide:not(.is-unclamped) .apt-reviews__text.is-long p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.apt-reviews__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-top: .875rem; border-top: 1px solid rgb(97 73 2 / .16); }
.apt-reviews__by { display: flex; flex-direction: column; gap: .125rem; margin: 0; }
.apt-reviews__name { font-size: 1.125rem; }
.apt-reviews__by time { color: var(--apt-muted); font-size: .875rem; }
.apt-reviews__more { flex: none; padding: 0; border: 0; background: none; color: var(--apt-leaf-ink); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.apt-reviews__more[hidden] { display: none; }
.apt-reviews__more { min-height: 1.5rem; line-height: 1.5rem; }
.apt-reviews__more:hover { color: var(--color-accent, #33512b); }
.apt-reviews__more::after { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-left: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2rem) rotate(45deg); transition: transform .25s var(--apt-ease); }
.apt-reviews__slide.is-open .apt-reviews__more::after { transform: translateY(.05rem) rotate(-135deg); }
.apt-reviews__all { margin: 1.5rem 0 0; }
@media (prefers-reduced-motion: reduce) { .apt-reviews__track { scroll-behavior: auto; } }

/* ==========================================================================
   Groene band: spelregels en contact
   ========================================================================== */

/* Groen afgerond vlak met marge rondom, zoals de ervaringen op de homepage */
.apt-band { --edge: clamp(1.25rem, 5.2vw, 5.5rem); margin: 0 var(--edge) clamp(3rem, 6vw, 5rem); padding: clamp(2.5rem, 6vw, 4rem) 0; border-radius: .5rem; background: #74944a; color: #fff; }
@media (min-width: 640px) and (max-width: 1199px) { .apt-band { --edge: var(--gutter); } }
.apt-band > .container { width: min(100% - 2 * clamp(1.25rem, 4vw, 3.5rem), var(--container)); }
.apt-band__inner { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .apt-band__inner--map { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3.5rem; align-items: start; } }
.apt-band__title { margin: 0 0 1rem; color: #fff; font-size: 1.75rem; line-height: 1.2; }
.apt-band__list { list-style: none; margin: 0; padding: 0; }
.apt-band__list li { padding: .625rem 0; border-top: 1px solid rgb(255 255 255 / .22); color: #fff; line-height: 1.45; }
.apt-band__link { margin: 1rem 0 0; color: #fff; }
.apt-band a { color: #fff; font-weight: 600; text-decoration-color: rgb(255 255 255 / .5); }

/* Statische kaart (OpenStreetMap, ingekleurd) met een eigen markering in het midden */
.apt-map { margin: 0; }
.apt-map__frame { position: relative; overflow: hidden; border-radius: var(--apt-radius); background: var(--apt-deep-2); aspect-ratio: 16 / 9; }
.apt-map__img { width: 100%; height: 100%; object-fit: cover; }
.apt-map__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 54px;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 3px 3px rgb(10 31 14 / .35));
}
.apt-map__pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 18px;
  height: 6px;
  border-radius: 50%;
  background: rgb(10 31 14 / .25);
  transform: translateX(-50%);
}
.apt-map__credit {
  position: absolute;
  right: .375rem;
  bottom: .375rem;
  padding: .125rem .375rem;
  border-radius: 4px;
  background: rgb(255 255 255 / .8);
  color: #2a3d2d;
  font-size: .6875rem;
}
.apt-band .apt-map__credit a { color: inherit; font-weight: 500; }
.apt-map__caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-top: 1rem; }
.apt-map__address { color: rgb(255 255 255 / .9); }
.apt-band .apt-map__route {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1px solid rgb(255 255 255 / .4);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s var(--apt-ease), border-color .15s var(--apt-ease);
}
.apt-band .apt-map__route:hover { background: rgb(255 255 255 / .1); border-color: #fff; }

/* ==========================================================================
   Alle foto's (native dialog): donker, rustig ritme, en één foto groot met vorige/volgende
   ========================================================================== */

/* Achter de dialog scrolt de pagina niet mee */
html.has-dialog { overflow: hidden; }

.apt-photos {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0a1f0e;
  color: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.apt-photos::-webkit-scrollbar { display: none; }
.apt-photos::backdrop { background: #0a1f0e; }
.apt-photos[open] { animation: apt-fade .25s var(--apt-ease); }
@keyframes apt-fade { from { opacity: 0; } }

.apt-photos__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  background: linear-gradient(to bottom, rgb(10 31 14 / .95) 60%, rgb(10 31 14 / 0));
}
.apt-photos__title { margin: 0; font-size: 1.375rem; }
.apt-photos__title span { font-family: var(--font-body); font-size: .9375rem; font-weight: 500; color: rgb(255 255 255 / .65); letter-spacing: 0; }

.apt-photos__close,
.apt-viewer__nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / .25);
  border-radius: 50%;
  background: rgb(255 255 255 / .08);
  color: #fff;
  cursor: pointer;
  transition: background-color .15s var(--apt-ease), border-color .15s var(--apt-ease);
}
.apt-photos__close:hover,
.apt-viewer__nav:hover { background: rgb(255 255 255 / .18); border-color: rgb(255 255 255 / .5); }
.apt-photos :focus-visible { outline: 3px solid var(--apt-wheat); outline-offset: 2px; }

/* Raster: liggend over de volle breedte, vierkant in paren */
.apt-photos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: dense;
  gap: .625rem;
  width: min(100% - 2 * var(--gutter), 70rem);
  margin: 0 auto;
  padding: .25rem 0 3rem;
}
.apt-photos__tile {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgb(255 255 255 / .05);
  cursor: zoom-in;
}
.apt-photos__tile--wide { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.apt-photos__tile--half { aspect-ratio: 1; }
.apt-photos__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .5s var(--apt-ease), transform .6s var(--apt-ease);
  scroll-margin-top: 5rem;
}
.apt-photos__tile img.is-loaded { opacity: 1; transform: scale(1); }
.apt-photos__tile:hover img.is-loaded { transform: scale(1.03); }

@media (max-width: 599px) {
  .apt-photos__grid { gap: .375rem; }
  .apt-photos__tile { border-radius: 6px; }
}

/* Eén foto groot */
.apt-photos.is-viewing { overflow: hidden; }
.apt-photos.is-viewing .apt-photos__grid { visibility: hidden; }
.apt-viewer {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 5rem var(--gutter) 1.5rem;
  background: #0a1f0e;
  animation: apt-fade .2s var(--apt-ease);
}
.apt-viewer[hidden] { display: none; }
.apt-viewer__img {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  max-width: 100%;
  max-height: calc(100dvh - 9rem);
  border-radius: 8px;
  object-fit: contain;
}
.apt-viewer__nav--prev { grid-column: 1; grid-row: 1; }
.apt-viewer__nav--next { grid-column: 3; grid-row: 1; }
.apt-viewer__count { grid-column: 2; grid-row: 2; margin: 0; text-align: center; color: rgb(255 255 255 / .7); font-variant-numeric: tabular-nums; }
.apt-viewer__back {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: start;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid rgb(255 255 255 / .25);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.apt-viewer__back:hover { background: rgb(255 255 255 / .1); }

@media (max-width: 599px) {
  .apt-viewer { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto; padding-inline: .75rem; }
  .apt-viewer__img { grid-column: 1 / -1; max-height: calc(100dvh - 12rem); }
  .apt-viewer__nav--prev { grid-column: 1; grid-row: 2; justify-self: start; }
  .apt-viewer__nav--next { grid-column: 2; grid-row: 2; justify-self: end; }
  .apt-viewer__count { grid-column: 1 / -1; grid-row: 2; }
  .apt-viewer__back { grid-row: 3; justify-self: center; }
}

/* Ruimte voor de vaste balk op mobiel: onderaan de footer, zodat de balk niets bedekt */
@media (max-width: 959px) {
  body:has(.apt-mobilebar) .site-footer { padding-bottom: calc(1.5rem + 4.5rem + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .apt *, .apt *::before, .apt *::after { transition: none !important; animation: none !important; }
  .apt-photos__tile img { opacity: 1; transform: none; }
}
/* Titel binnen het afgeronde fotovlak, met dezelfde ruimte als op de homepage */
.apt-hero__bar.container { left: var(--edge); right: var(--edge); width: auto; margin: 0; padding-inline: clamp(1rem, 3vw, 2.5rem); }
/* Fotostrook binnen het fotovlak, gelijk met de titel */
.apt-strip { --edge: clamp(1.25rem, 5.2vw, 5.5rem); }
@media (min-width: 640px) and (max-width: 1199px) { .apt-strip { --edge: var(--gutter); } }
.apt-strip .apt-strip__inner { width: auto; margin-inline: calc(var(--edge) + clamp(1rem, 3vw, 2.5rem)); }
.apt-band__more { margin: 1.5rem 0 0; }
