/* Blokken van de module accommodations. Gebruikt de variabelen van het thema (--navy, --line, --radius, …). */

.acc-icon { flex: 0 0 auto; width: 22px; height: 22px; color: var(--navy); }

/* Feiten als icoon met label: Kerngegevens, Voorzieningen en de kaarten */
.acc-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.acc-facts__item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.acc-facts--key { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acc-facts--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px 24px; }
.acc-facts--small { gap: 4px 14px; font-size: 14px; color: var(--muted); }
.acc-facts--small .acc-icon { width: 18px; height: 18px; }

/* Fotogalerij: één verhouding, vegen met scroll-snap, pijltjes en teller via gallery.js */
.acc-gallery { position: relative; }
.acc-gallery__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--radius); }
.acc-gallery__track::-webkit-scrollbar { display: none; }
.acc-gallery__slide { flex: 0 0 88%; scroll-snap-align: start; aspect-ratio: var(--acc-ratio, 3 / 2); overflow: hidden; border-radius: var(--radius); background: var(--sky-light); }
@media (min-width: 800px) { .acc-gallery__slide { flex-basis: 100%; } }
.acc-gallery__slide a, .acc-gallery__slide picture { display: block; width: 100%; height: 100%; }
.acc-gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.acc-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--navy); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.acc-gallery__nav:disabled { opacity: .35; cursor: default; }
.acc-gallery__nav--prev { left: 12px; }
.acc-gallery__nav--next { right: 12px; }
.acc-gallery__count { position: absolute; right: 12px; bottom: 12px; margin: 0; padding: 2px 10px; border-radius: 999px; background: rgba(15, 23, 42, .7); color: #fff; font-size: 13px; }
@media (hover: none) { .acc-gallery__nav { display: none; } }

/* Kaarten */
.acc-cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.acc-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.acc-card__media { aspect-ratio: 3 / 2; background: var(--sky-light); }
.acc-card__media picture, .acc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.acc-card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.acc-card__title { margin: 0; font-size: 21px; }
.acc-card__link { text-decoration: none; color: inherit; }
.acc-card__link::after { content: ""; position: absolute; inset: 0; } /* de hele kaart is klikbaar */
.acc-card__link:focus-visible { outline: none; }
.acc-card:focus-within { outline: 3px solid var(--jersey); outline-offset: 2px; }
.acc-card__text { margin: 0; color: var(--muted); }
.acc-card__price { margin: auto 0 0; font-weight: 700; color: var(--navy); }

/* Ligging en huisregels */
.acc-location__address { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; }
.acc-dl { margin: 0 0 18px; display: grid; gap: 0; max-width: 640px; }
.acc-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.acc-dl dt { font-weight: 600; }
.acc-dl dd { margin: 0; text-align: right; }
.acc-rich { max-width: 760px; }

/* Veelgestelde vragen */
.acc-faq__item { max-width: 760px; border-bottom: 1px solid var(--line); }
.acc-faq__q { padding: 14px 32px 14px 0; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.acc-faq__q::-webkit-details-marker { display: none; }
.acc-faq__q::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; color: var(--navy); }
.acc-faq__item[open] .acc-faq__q::after { content: "−"; }
.acc-faq__a { padding: 0 0 14px; }
.acc-faq__a > :first-child { margin-top: 0; }

/*
 * Woningpagina (blok acc_page). Gsm: het mozaïek is een rij om door te vegen (alle foto's) en de boekkaart staat onder
 * de inhoud. Vanaf 800 px: één grote foto en vier kleine (de andere enkel in de lightbox, knop "Alle foto's").
 * Vanaf 1000 px: inhoud links, de boekkaart rechts en vast bij het scrollen (sticky).
 */
.acc-mosaic { position: relative; }
.acc-mosaic__grid { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--radius); }
.acc-mosaic__grid::-webkit-scrollbar { display: none; }
.acc-mosaic__item { flex: 0 0 88%; aspect-ratio: 3 / 2; scroll-snap-align: start; overflow: hidden; border-radius: var(--radius); background: var(--sky-light); }
.acc-mosaic__item a, .acc-mosaic__item picture { display: block; width: 100%; height: 100%; }
.acc-mosaic__item img { width: 100%; height: 100%; object-fit: cover; }
.acc-mosaic__all { position: absolute; right: 14px; bottom: 14px; padding: 8px 14px; border: 0; border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
@media (min-width: 800px) {
    .acc-mosaic__grid { display: grid; overflow: hidden; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 2 / 1; }
    .acc-mosaic__item { aspect-ratio: auto; border-radius: 0; }
    .acc-mosaic__item:first-child { grid-row: span 2; }
    .acc-mosaic__item--more { display: none; }
    .acc-mosaic--n1 .acc-mosaic__grid { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 5 / 2; }
    .acc-mosaic--n2 .acc-mosaic__grid, .acc-mosaic--n3 .acc-mosaic__grid { grid-template-columns: 2fr 1fr; }
    .acc-mosaic--n2 .acc-mosaic__item:nth-child(2) { grid-row: span 2; }
    .acc-mosaic--n4 .acc-mosaic__item:nth-child(4) { grid-row: span 2; }
    .acc-mosaic__item img { transition: transform .4s ease; }
    .acc-mosaic__item a:hover img { transform: scale(1.03); }
}
@media (min-width: 800px) and (prefers-reduced-motion: reduce) { .acc-mosaic__item img { transition: none; } }
.acc-page__body { display: grid; gap: 32px; margin-top: 28px; }
.acc-page__main { min-width: 0; }
.acc-page__text { margin-top: 24px; padding: 0; max-width: 720px; }
.acc-page__h { margin: 40px 0 18px; }
.acc-page__more { margin-top: 16px; }
.acc-page__more > summary { cursor: pointer; font-weight: 700; text-decoration: underline; }
.acc-page__more > .acc-facts { margin-top: 14px; }
.acc-dl--two { max-width: none; }
@media (min-width: 640px) { .acc-dl--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
@media (min-width: 1000px) {
    .acc-page__body--aside { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
    .acc-page__aside { position: sticky; top: calc(var(--header-h, 0px) + 20px); }
}
