/* M7 Catalogus: filterbalk, schuifregelaars, labels, raster en mobiel paneel. Kleuren via CSS-variabelen. */
.m7c {
	--m7c-ink: #004b4c;
	--m7c-accent: #dbbb80;
	--m7c-cream: #f7efe1;
	--m7c-muted: #6b7a7a;
	--m7c-line: #e6dfd2;
	--m7c-tag: #111;
	--m7c-gap: 24px;
	--m7c-cols: 3;
	--m7c-cols-t: 2;
	--m7c-cols-m: 1;
	--m7c-offset: 0px;
	--m7c-offset-mobile: 0px;
	box-sizing: border-box;
	width: 100%;
	max-width: 1220px;
	margin: 0 auto;
	padding: var(--m7c-offset) 20px 60px;
	color: var(--m7c-ink);
}
.m7c *, .m7c *::before, .m7c *::after { box-sizing: border-box; }
.m7c [hidden] { display: none !important; }

/* ---------- filters (desktop) ---------- */
.m7c-filters { margin: 0 0 28px; }
.m7c-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 56px; }
.m7c-row + .m7c-row { margin-top: 30px; }
.m7c-filter { border: 0; margin: 0; padding: 0; min-width: 0; }
.m7c-legend { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 0; margin: 0 0 14px; min-height: 26px; }
.m7c-title { font-weight: 700; font-size: 17px; color: var(--m7c-ink); }
.m7c-badge { display: inline-block; background: var(--m7c-accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.m7c-tag { display: inline-block; background: var(--m7c-tag); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; margin: 0 0 14px; }

/* schuifregelaar met twee knoppen */
.m7c-slider { position: relative; height: 22px; margin: 0 6px; }
.m7c-track { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px; background: var(--m7c-line); }
.m7c-fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 6px; background: var(--m7c-accent); }
.m7c-slider input[type=range] { position: absolute; left: -6px; right: -6px; width: calc(100% + 12px); top: 0; height: 22px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.m7c-slider input[type=range]::-webkit-slider-runnable-track { background: none; height: 22px; }
.m7c-slider input[type=range]::-moz-range-track { background: none; }
.m7c-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--m7c-accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: grab; }
.m7c-slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--m7c-accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: grab; }
.m7c-slider input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--m7c-ink); outline-offset: 2px; }
.m7c-values { text-align: center; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--m7c-muted); }

/* keuzes */
.m7c-group { display: flex; flex-direction: column; align-items: flex-start; }
.m7c-select-wrap select { min-width: 220px; max-width: 100%; padding: 9px 36px 9px 14px; border: 1px solid var(--m7c-ink); border-radius: 30px; background: #fff; color: var(--m7c-ink); font: inherit; font-size: 14px; }
.m7c-options { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.m7c-check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--m7c-ink); cursor: pointer; margin: 0 22px 8px 0; }
.m7c-options .m7c-check { margin: 0; }
.m7c-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--m7c-ink); cursor: pointer; }
.m7c-count { font-size: 12px; color: var(--m7c-muted); }
.m7c-off { opacity: .45; cursor: default; }
.m7c-submit { margin-top: 18px; padding: 10px 22px; border: 0; border-radius: 30px; background: var(--m7c-accent); color: var(--m7c-ink); font-weight: 700; cursor: pointer; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- resultaatbalk en labels ---------- */
.m7c-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 22px; min-height: 34px; }
.m7c-result { font-weight: 700; font-size: 15px; margin-right: 6px; }
.m7c-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m7c-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 0; border-radius: 30px; background: var(--m7c-cream); color: var(--m7c-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.m7c-chip:hover { background: var(--m7c-accent); }
.m7c-chip-x { font-size: 16px; line-height: 1; }
.m7c-clear { padding: 6px 4px; border: 0; background: none; color: var(--m7c-ink); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ---------- raster ---------- */
.m7c-grid { display: grid; grid-template-columns: repeat(var(--m7c-cols), minmax(0, 1fr)); gap: var(--m7c-gap); transition: opacity .2s; }
.m7c-item { min-width: 0; display: flex; }
.m7c-item > .elementor { width: 100%; }
.m7c-loading .m7c-grid { opacity: .45; pointer-events: none; }
.m7c-empty { padding: 40px 0; text-align: center; font-weight: 600; }
.m7c-more { display: flex; justify-content: center; padding: 30px 0 0; }
.m7c-more-btn { padding: 12px 28px; border: 0; border-radius: 30px; background: var(--m7c-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.m7c-loading-more .m7c-more-btn { opacity: .5; }
.m7c-pages { display: flex; gap: 20px; justify-content: center; padding: 24px 0; }
.m7c-card { padding: 24px; border-radius: 20px; background: #fff; width: 100%; }
.m7c-card-title { font-weight: 700; color: var(--m7c-ink); }

/* knoppen en paneel die alleen mobiel gebruikt worden */
.m7c-open, .m7c-backdrop, .m7c-panel-head, .m7c-panel-foot { display: none; }

@media (max-width: 1024px) {
	.m7c { padding-top: var(--m7c-offset-mobile); }
	.m7c-grid { grid-template-columns: repeat(var(--m7c-cols-t), minmax(0, 1fr)); }
	.m7c-open { display: inline-flex; align-items: center; gap: 10px; position: fixed; left: 16px; bottom: 16px; z-index: 60; padding: 14px 22px; border: 0; border-radius: 40px; background: var(--m7c-accent); color: var(--m7c-ink); font: inherit; font-size: 15px; font-weight: 700; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); cursor: pointer; }
	.m7c-open-icon { width: 18px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
	.m7c-open-icon::after { content: ""; position: absolute; left: 3px; right: 3px; top: 3px; border-top: 2px solid currentColor; }
	.m7c-open-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--m7c-ink); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
	.m7c-backdrop { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .45); }
	.m7c-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; max-height: 86vh; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #fff; border-radius: 24px 24px 0 0; transform: translateY(105%); transition: transform .28s ease; box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); }
	.m7c-is-open .m7c-panel { transform: none; }
	.m7c-panel-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; padding: 18px 22px; background: #fff; border-bottom: 1px solid var(--m7c-line); }
	.m7c-panel-title { font-weight: 800; font-size: 18px; }
	.m7c-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--m7c-cream); color: var(--m7c-ink); font-size: 22px; line-height: 1; cursor: pointer; }
	.m7c-filters { margin: 0; padding: 20px 22px 8px; }
	.m7c-row { grid-template-columns: 1fr; gap: 26px; }
	.m7c-legend { justify-content: flex-start; }
	.m7c-panel-foot { display: block; position: sticky; bottom: 0; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--m7c-line); }
	.m7c-apply { width: 100%; padding: 14px; border: 0; border-radius: 12px; background: var(--m7c-accent); color: var(--m7c-ink); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
	html.m7c-noscroll, html.m7c-noscroll body { overflow: hidden; }
	.m7c:not(.m7c-js) .m7c-panel { position: static; transform: none; box-shadow: none; }
	.m7c:not(.m7c-js) .m7c-open { display: none; }
}
@media (max-width: 767px) {
	.m7c { padding-left: 14px; padding-right: 14px; }
	.m7c-grid { grid-template-columns: repeat(var(--m7c-cols-m), minmax(0, 1fr)); }
}

/* Knoppen: thema-stijlen voor hover/focus (roze) niet laten doorschemeren */
.m7c button.m7c-apply, .m7c button.m7c-apply:hover, .m7c button.m7c-apply:focus, .m7c button.m7c-apply:active,
.m7c button.m7c-open, .m7c button.m7c-open:hover, .m7c button.m7c-open:focus, .m7c button.m7c-open:active,
.m7c button.m7c-more-btn:hover, .m7c button.m7c-more-btn:focus, .m7c button.m7c-submit:hover, .m7c button.m7c-submit:focus { background: var(--m7c-accent); color: var(--m7c-ink); border: 0; box-shadow: none; }
.m7c button.m7c-more-btn, .m7c button.m7c-more-btn:hover, .m7c button.m7c-more-btn:focus { color: #fff; }
.m7c button.m7c-open { box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.m7c button.m7c-close:hover, .m7c button.m7c-close:focus { background: var(--m7c-accent); color: var(--m7c-ink); }
.m7c button.m7c-chip:hover, .m7c button.m7c-chip:focus { background: var(--m7c-accent); color: var(--m7c-ink); }
.m7c button.m7c-clear:hover, .m7c button.m7c-clear:focus { background: none; color: var(--m7c-ink); }
.m7c button:focus-visible { outline: 2px solid var(--m7c-ink); outline-offset: 2px; }

/* Lijsten met een enkel filter (Casino, Digitale PR): op mobiel geen paneel, filters gewoon boven de lijst */
.m7c-nobar .m7c-bar { display: none; }
@media (max-width: 1024px) {
	.m7c-inline .m7c-open, .m7c-inline .m7c-backdrop, .m7c-inline .m7c-panel-head, .m7c-inline .m7c-panel-foot { display: none !important; }
	.m7c-inline .m7c-panel { position: static; transform: none; box-shadow: none; max-height: none; overflow: visible; border-radius: 0; background: transparent; }
	.m7c-inline .m7c-filters { padding: 0 0 18px; }
}

/* Losse filters naast een kop (deel="filters") */
.m7c-part { color: var(--m7c-ink, #004b4c); --m7c-ink: #004b4c; --m7c-accent: #dbbb80; --m7c-muted: #6b7a7a; --m7c-tag: #111; }
.m7c-part .m7c-filters { margin: 0; }
.m7c-part .m7c-row { display: block; }
.m7c-part.m7c-bare .m7c-tag { display: none; }
.m7c-part .m7c-check { font-size: 15px; }

/* In een Elementor-container (ruimte="nee"): geen eigen breedte of zijmarges, de container bepaalt de opmaak */
.m7c.m7c-flush { max-width: none; padding-left: 0; padding-right: 0; padding-bottom: 0; }
