/* ==========================================================================
   Qadman — Renovatie & verbouw (/renovatie) and the swipe quote (/renovatie/offerte)
   Uses the tokens of qadman.css (--qd-*). All classes start with .qd-rv-.
   ========================================================================== */

/* ---------------------------------------------------------------- icons */
.qd-rv-ico { width: 2.2rem; height: 2.2rem; color: var(--qd-gold-ink); flex: none; }
.qd-rv-ico--stars, .qd-rv-ico--euro { display: inline-flex; gap: .15rem; width: auto; height: auto; align-items: center; }
.qd-rv-ico--stars svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: var(--qd-gold); stroke-width: 1.4; stroke-linejoin: round; }
.qd-rv-ico--stars svg.on { fill: var(--qd-gold); }
.qd-rv-ico--euro b { font: 700 1.05rem var(--qd-body); color: rgba(42,36,32,.18); }
.qd-rv-ico--euro b.on { color: var(--qd-gold-ink); }
.qd-rv-ico--size { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; }
.qd-rv-ico--size i { display: block; width: calc(2.2rem * var(--s)); height: calc(2.2rem * var(--s)); border: 1.6px solid var(--qd-gold-ink); border-radius: 3px; }

/* ---------------------------------------------------------------- landing */
.qd-rv-hero { position: relative; min-height: min(78vh, 46rem); display: grid; align-items: end; overflow: hidden; background: var(--qd-dark); }
.qd-rv-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.qd-rv-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,23,20,.25) 0%, rgba(28,23,20,.35) 40%, rgba(28,23,20,.86) 100%); }
.qd-rv-hero__in { position: relative; z-index: 1; padding: 6rem var(--qd-pad) clamp(2.5rem, 7vh, 4.5rem); max-width: 52rem; color: var(--qd-sand); }
.qd-rv-hero__in .qd-label { color: #E2C99A; }
.qd-rv-hero h1 { margin-top: .9rem; color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; }
.qd-rv-hero h1 em { font-style: normal; color: #E2C99A; }
.qd-rv-hero p { margin-top: 1.1rem; max-width: 38rem; font-size: 1.08rem; color: rgba(243,238,230,.92); }
.qd-rv-hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.qd-rv-btn-light { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.qd-rv-btn-light:hover { background: rgba(255,255,255,.1); }
.qd-rv-hero__note { font-size: .82rem !important; letter-spacing: .06em; opacity: .85; }

.qd-rv-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 2rem; padding: 1.6rem var(--qd-pad); background: var(--qd-sand); border-bottom: 1px solid var(--qd-line); }
.qd-rv-trust > div { display: flex; gap: .8rem; align-items: center; }
.qd-rv-trust .qd-rv-ico { width: 1.9rem; height: 1.9rem; }
.qd-rv-trust b { display: block; font-size: .9rem; }
.qd-rv-trust span { font-size: .82rem; color: var(--qd-muted); line-height: 1.35; }
@media (max-width: 900px) { .qd-rv-trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .qd-rv-trust { grid-template-columns: 1fr; } }

.qd-rv-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 960px) { .qd-rv-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .qd-rv-services { grid-template-columns: minmax(0, 1fr); } }
.qd-rv-service { display: flex; flex-direction: column; background: #fff; text-decoration: none; border: 1px solid var(--qd-line); border-radius: 14px; overflow: hidden; transition: transform .35s var(--qd-ease), box-shadow .35s var(--qd-ease); }
.qd-rv-service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(42,36,32,.45); }
.qd-rv-service__media { aspect-ratio: 4 / 3; background: var(--qd-mist); overflow: hidden; display: grid; place-items: center; }
.qd-rv-service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--qd-ease); }
.qd-rv-service:hover .qd-rv-service__media img { transform: scale(1.04); }
.qd-rv-service__media.is-icon { background: radial-gradient(circle at 30% 20%, #fff 0%, var(--qd-sand) 60%, var(--qd-mist) 100%); }
.qd-rv-service__media.is-icon .qd-rv-ico { width: 4.2rem; height: 4.2rem; stroke-width: 1.1; }
.qd-rv-service__body { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: .35rem; }
.qd-rv-service__body b { font: 500 1.2rem var(--qd-display); letter-spacing: .02em; }
.qd-rv-service__body span { color: var(--qd-muted); font-size: .92rem; }
.qd-rv-service__body em { font-style: normal; margin-top: .4rem; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--qd-gold-ink); }

.qd-rv-work { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 960px) { .qd-rv-work { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qd-rv-work figure { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; }
.qd-rv-work img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.qd-rv-work figcaption { padding: .8rem 1rem 1rem; font-size: .86rem; color: var(--qd-muted); }
.qd-rv-work figcaption b { display: block; color: var(--qd-ink); font-size: .95rem; margin-bottom: .15rem; }

.qd-rv-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 72rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 860px) { .qd-rv-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .qd-rv-steps { grid-template-columns: 1fr; } }
.qd-rv-steps li { color: var(--qd-muted); font-size: .92rem; }
.qd-rv-steps span { display: grid; place-items: center; width: 3rem; height: 3rem; margin: 0 auto .8rem; border: 1px solid var(--qd-gold); border-radius: 50%; font: 500 1.2rem var(--qd-display); color: var(--qd-gold-ink); }
.qd-rv-steps b { display: block; color: var(--qd-ink); margin-bottom: .3rem; }

.qd-rv-faq { max-width: 50rem; margin: 0 auto; }
.qd-rv-faq .qd-title { margin-bottom: 1.4rem; }
.qd-rv-faq details { border-top: 1px solid var(--qd-line); padding: 1rem 0; }
.qd-rv-faq details:last-child { border-bottom: 1px solid var(--qd-line); }
.qd-rv-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.qd-rv-faq summary::after { content: "+"; color: var(--qd-gold-ink); font-size: 1.3rem; line-height: 1; }
.qd-rv-faq details[open] summary::after { content: "–"; }
.qd-rv-faq p { margin-top: .6rem; color: var(--qd-muted); }
.qd-rv-final { text-align: center; }
.qd-rv-final p { margin: 1rem auto 1.8rem; color: rgba(243,238,230,.85); }

/* ---------------------------------------------------------------- wizard */
.qd-rv-wizard-page { min-height: calc(100vh - 140px); padding: clamp(1rem, 3vh, 2.2rem) var(--qd-pad) 2rem; background: linear-gradient(180deg, var(--qd-sand), var(--qd-paper) 22rem); }
.qd-rv-form { position: relative; max-width: 50rem; margin: 0 auto; }
.qd-rv-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.qd-rv-top__back { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--qd-line); text-decoration: none; background: #fff; font-size: 1.1rem; flex: none; }
.qd-rv-progress { flex: 1; height: 6px; border-radius: 6px; background: rgba(42,36,32,.1); overflow: hidden; }
.qd-rv-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--qd-gold), #D4B27A); border-radius: 6px; transition: width .45s var(--qd-ease); }
.qd-rv-top__count { font-size: .78rem; font-weight: 600; letter-spacing: .1em; color: var(--qd-muted); min-width: 3.5rem; text-align: right; }

.qd-rv-stage { position: relative; }
.qd-rv-card { background: #fff; border-radius: 22px; padding: clamp(1.3rem, 4vw, 2.4rem); box-shadow: 0 24px 60px -34px rgba(42,36,32,.45), 0 0 0 1px rgba(42,36,32,.06); }
.qd-rv-card + .qd-rv-card { margin-top: 1.2rem; } /* without JS: all cards under each other */
.qd-rv-q { font-size: clamp(1.55rem, 4.2vw, 2.25rem); line-height: 1.12; margin-top: .5rem; }
.qd-rv-hint { margin-top: .5rem !important; color: var(--qd-muted); font-size: .95rem; }

/* JS mode: one card at a time, sliding */
.qd-rv-js .qd-rv-card + .qd-rv-card { margin-top: 0; }
.qd-rv-js .qd-rv-card { display: none; }
.qd-rv-js .qd-rv-card.is-on { display: block; animation: qd-rv-in .42s var(--qd-ease) both; }
.qd-rv-js .qd-rv-card.is-on.from-left { animation-name: qd-rv-in-left; }
@keyframes qd-rv-in { from { opacity: 0; transform: translateX(46px) rotate(.6deg); } to { opacity: 1; transform: none; } }
@keyframes qd-rv-in-left { from { opacity: 0; transform: translateX(-46px) rotate(-.6deg); } to { opacity: 1; transform: none; } }
.qd-rv-js .qd-rv-card.is-dragging { animation: none; transition: none; }
.qd-rv-js .qd-rv-card.is-shake { animation: qd-rv-shake .4s; }
@keyframes qd-rv-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@media (prefers-reduced-motion: reduce) { .qd-rv-js .qd-rv-card.is-on { animation: none; } }

/* Tiles */
.qd-rv-tiles { display: grid; gap: .8rem; margin-top: 1.4rem; }
.qd-rv-tiles--photo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qd-rv-tiles--icon { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.qd-rv-tiles--icon.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .qd-rv-tiles--photo { grid-template-columns: repeat(2, minmax(0, 1fr)); } .qd-rv-tiles--icon, .qd-rv-tiles--icon.is-3 { grid-template-columns: 1fr 1fr; } }
.qd-rv-tile { position: relative; display: flex; flex-direction: column; border-radius: 14px; border: 1.5px solid var(--qd-line); background: #fff; cursor: pointer; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s var(--qd-ease); -webkit-tap-highlight-color: transparent; }
.qd-rv-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -18px rgba(42,36,32,.5); }
.qd-rv-tile input { position: absolute; opacity: 0; pointer-events: none; }
.qd-rv-tile:has(input:focus-visible) { outline: 2px solid var(--qd-gold); outline-offset: 2px; }
.qd-rv-tile:has(input:checked) { border-color: var(--qd-gold); box-shadow: 0 0 0 3px rgba(176,141,87,.22); }
.qd-rv-tile__media { aspect-ratio: 4 / 3; background: var(--qd-mist); display: grid; place-items: center; overflow: hidden; }
.qd-rv-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--qd-ease); }
.qd-rv-tile:has(input:checked) .qd-rv-tile__media img { transform: scale(1.05); }
.qd-rv-tile__media.is-icon { background: radial-gradient(circle at 30% 20%, #fff 0%, var(--qd-sand) 60%, var(--qd-mist) 100%); }
.qd-rv-tile__media.is-icon .qd-rv-ico { width: 3rem; height: 3rem; stroke-width: 1.15; }
.qd-rv-tile__label { padding: .7rem .8rem .8rem; font-weight: 600; font-size: .92rem; line-height: 1.25; }
.qd-rv-tile__tick { position: absolute; top: .55rem; right: .55rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: rgba(255,255,255,.92); border: 1.5px solid var(--qd-line); opacity: .9; }
.qd-rv-tile__tick .qd-rv-ico { width: 1rem; height: 1rem; color: transparent; stroke-width: 2.4; }
.qd-rv-tile:has(input:checked) .qd-rv-tile__tick { background: var(--qd-gold); border-color: var(--qd-gold); }
.qd-rv-tile:has(input:checked) .qd-rv-tile__tick .qd-rv-ico { color: #fff; }
.qd-rv-tile--icon { align-items: center; text-align: center; padding: 1.2rem .8rem 1.1rem; gap: .55rem; justify-content: center; }
.qd-rv-tile--icon .qd-rv-tile__label { padding: 0; }
.qd-rv-tile__sub { font-size: .8rem; color: var(--qd-muted); line-height: 1.35; }
.qd-rv-tile--icon:has(input:checked) { background: #FBF7F0; }

/* Chips (detail questions, contact preference) */
.qd-rv-chiphead { display: flex; align-items: center; gap: .8rem; }
.qd-rv-chiphead__media { width: 3.2rem; height: 3.2rem; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--qd-sand); flex: none; }
.qd-rv-chiphead__media img { width: 100%; height: 100%; object-fit: cover; }
.qd-rv-chiphead__media .qd-rv-ico { width: 1.8rem; height: 1.8rem; }
.qd-rv-chiphead .qd-label { color: var(--qd-gold-ink); }
.qd-rv-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.qd-rv-chip { position: relative; cursor: pointer; }
.qd-rv-chip input { position: absolute; opacity: 0; pointer-events: none; }
.qd-rv-chip span { display: inline-flex; align-items: center; gap: .45rem; padding: .75rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--qd-line); background: #fff; font-weight: 500; font-size: .93rem; transition: all .2s; }
.qd-rv-chip span::before { content: ""; width: .95rem; height: .95rem; border-radius: 50%; border: 1.5px solid rgba(42,36,32,.3); transition: all .2s; flex: none; }
.qd-rv-chip input:checked + span { border-color: var(--qd-gold); background: #FBF7F0; }
.qd-rv-chip input:checked + span::before { background: var(--qd-gold); border-color: var(--qd-gold); box-shadow: inset 0 0 0 2.5px #FBF7F0; }
.qd-rv-chip input:focus-visible + span { outline: 2px solid var(--qd-gold); outline-offset: 2px; }
.qd-rv-pref { border: 0; padding: 0; margin: 1.2rem 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.qd-rv-pref legend { width: 100%; margin-bottom: .5rem; font: 600 .72rem var(--qd-body); letter-spacing: .14em; text-transform: uppercase; color: var(--qd-muted); }

/* Photos */
.qd-rv-drop { position: relative; display: grid; justify-items: center; gap: .35rem; margin-top: 1.4rem; padding: 2rem 1rem; border: 1.5px dashed rgba(138,106,56,.55); border-radius: 16px; background: #FBF7F0; cursor: pointer; text-align: center; transition: background .2s; }
.qd-rv-drop:hover, .qd-rv-drop.is-over { background: var(--qd-sand); }
.qd-rv-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.qd-rv-drop span { color: var(--qd-muted); font-size: .88rem; }
.qd-rv-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .6rem; margin-top: .9rem; }
.qd-rv-thumbs figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--qd-mist); }
.qd-rv-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.qd-rv-thumbs button { position: absolute; top: .3rem; right: .3rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 0; background: rgba(42,36,32,.75); color: #fff; cursor: pointer; font-size: .9rem; line-height: 1; }

/* Navigation */
.qd-rv-nav { position: sticky; bottom: 0; z-index: 5; margin-top: 1rem; padding: .8rem 0 calc(.8rem + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(248,245,240,0), var(--qd-paper) 35%); }
.qd-rv-nav__row { display: flex; align-items: center; gap: .8rem; }
.qd-rv-prev, .qd-rv-skip { border: 0; background: none; cursor: pointer; font: 600 .78rem var(--qd-body); letter-spacing: .16em; text-transform: uppercase; color: var(--qd-muted); padding: .9rem .4rem; }
.qd-rv-prev:hover, .qd-rv-skip:hover { color: var(--qd-ink); }
.qd-rv-next { margin-left: auto; }
.qd-rv-next[disabled] { opacity: .45; cursor: not-allowed; }
.qd-rv-next.is-busy .qd-btn__arrow { animation: qd-rv-spin 1s linear infinite; }
@keyframes qd-rv-spin { to { transform: rotate(360deg); } }
.qd-rv-swipehint { text-align: center; font-size: .78rem; color: var(--qd-muted); margin-top: .4rem !important; }
.qd-rv-error { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 10px; background: #FBEDEA; color: #8A2C1B; font-size: .92rem; }
.qd-rv-form > .qd-rv-error { margin: 0 0 1rem; }
:not(.qd-rv-js) > .qd-rv-form .qd-rv-prev, :not(.qd-rv-js) > .qd-rv-form .qd-rv-skip { display: none; }

.qd-rv-done { text-align: center; padding-top: 2.6rem; padding-bottom: 2.6rem; }
.qd-rv-done h1, .qd-rv-done h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 1rem 0 .7rem; }
.qd-rv-done p { color: var(--qd-muted); max-width: 30rem; margin: 0 auto 1.6rem !important; }
.qd-rv-done__ok { display: inline-grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: 50%; background: var(--qd-gold); }
.qd-rv-done__ok .qd-rv-ico { color: #fff; width: 2.2rem; height: 2.2rem; stroke-width: 2.2; }
.qd-rv-done.is-on .qd-rv-done__ok { animation: qd-rv-pop .55s var(--qd-ease) both; }
@keyframes qd-rv-pop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } to { transform: none; opacity: 1; } }

/* The closing block stays dark in every design (the light themes repaint .qd-section--dark). */
.qd-rv-final.qd-rv-final { background: #2A2420 !important; color: #F3EEE6 !important; }
.qd-rv-final.qd-rv-final .qd-title { color: #F3EEE6 !important; }
.qd-rv-final.qd-rv-final .qd-title em { color: #D9BD8A !important; }
.qd-rv-final.qd-rv-final p { color: rgba(243,238,230,.85) !important; }

.qd-rv-sub { margin-top: 1.3rem !important; font: 600 .72rem var(--qd-body); letter-spacing: .14em; text-transform: uppercase; color: var(--qd-muted); }

/* ---------------------------------------------------------------- quote to sign (/offerte/{token} and on site) */
.qd-of { max-width: 52rem; margin: 0 auto; display: grid; gap: 1.2rem; }
.qd-of__admin { font-size: .85rem; color: var(--qd-muted); text-align: center; }
.qd-of__admin a { color: var(--qd-gold-ink); }
.qd-of__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.qd-of__badge { padding: .4rem .8rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.qd-of__badge.is-ok { background: #E8F1E5; color: #3B5E35; }
.qd-of__badge.is-late { background: #FBEDEA; color: #8A2C1B; }
.qd-of__lines { width: 100%; border-collapse: collapse; margin-top: 1.4rem; font-size: .95rem; }
.qd-of__lines th { text-align: left; font: 600 .7rem var(--qd-body); letter-spacing: .14em; text-transform: uppercase; color: var(--qd-muted); padding: .6rem 0; border-bottom: 1.5px solid var(--qd-ink); }
.qd-of__lines td { padding: .85rem 0; border-bottom: 1px solid var(--qd-line); vertical-align: top; }
.qd-of__lines td b { display: block; }
.qd-of__lines td span { display: block; font-size: .85rem; color: var(--qd-muted); margin-top: .15rem; }
.qd-of__lines .r { text-align: right; white-space: nowrap; padding-left: .8rem; }
@media (max-width: 560px) { .qd-of__lines th:nth-child(2), .qd-of__lines td:nth-child(2), .qd-of__lines th:nth-child(3), .qd-of__lines td:nth-child(3) { display: none; } }
.qd-of__tot { margin: 1rem 0 0 auto; max-width: 20rem; display: grid; gap: .35rem; }
.qd-of__tot div { display: flex; justify-content: space-between; gap: 1rem; color: var(--qd-muted); }
.qd-of__tot dt, .qd-of__tot dd { margin: 0; }
.qd-of__tot .is-big { margin-top: .4rem; padding-top: .6rem; border-top: 1.5px solid var(--qd-ink); color: var(--qd-ink); font-weight: 700; font-size: 1.15rem; }
.qd-of__note { margin-top: 1.2rem !important; padding: .9rem 1rem; background: var(--qd-sand); border-left: 3px solid var(--qd-gold); font-size: .9rem; color: var(--qd-muted); }
.qd-of__pdf { margin-top: 1rem !important; font-size: .9rem; }
.qd-of__pad { position: relative; margin-top: 1rem; height: 200px; border: 1.5px dashed rgba(138,106,56,.55); border-radius: 14px; background: #fff; touch-action: none; }
.qd-of__pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.qd-of__padline { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 2.6rem; border-bottom: 1px solid var(--qd-line); font-size: .75rem; color: var(--qd-muted); pointer-events: none; padding-bottom: .2rem; }
.has-sig .qd-of__padline { color: transparent; }
.qd-of__pad .qd-rv-skip { position: absolute; top: .2rem; right: .4rem; }
.qd-of__sigimg { max-width: 260px; margin: 1rem auto 0; border-bottom: 1px solid var(--qd-line); }

/* Photos always fill their frame exactly (Safari/iOS does not resolve height:100% of an image inside a grid box with aspect-ratio). */
.qd-rv-service__media, .qd-rv-tile__media, .qd-rv-chiphead__media { position: relative; }
.qd-rv-service__media img, .qd-rv-tile__media img, .qd-rv-chiphead__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qd-rv-service__media img { object-position: center 45%; }

/* ---------------------------------------------------------------- own work: tabs, gallery, lightbox */
.qd-rv-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 1.2rem; scrollbar-width: none; }
.qd-rv-tabs::-webkit-scrollbar { display: none; }
.qd-rv-tabs button { flex: none; border: 1.5px solid var(--qd-line); background: #fff; border-radius: 999px; padding: .6rem 1.05rem; font: 600 .85rem var(--qd-body); color: var(--qd-ink); cursor: pointer; }
.qd-rv-tabs button small { color: var(--qd-muted); font-weight: 500; margin-left: .2rem; }
.qd-rv-tabs button[aria-selected="true"] { background: var(--qd-dark); border-color: var(--qd-dark); color: #fff; }
.qd-rv-tabs button[aria-selected="true"] small { color: rgba(255,255,255,.7); }
.qd-rv-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 960px) { .qd-rv-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .qd-rv-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; } }
.qd-rv-shot { position: relative; display: block; padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--qd-mist); cursor: zoom-in; }
.qd-rv-shot[hidden] { display: none; }
.qd-rv-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--qd-ease); }
.qd-rv-shot:hover img { transform: scale(1.05); }
.qd-rv-shot__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .8rem .7rem; background: linear-gradient(180deg, rgba(28,23,20,0), rgba(28,23,20,.78)); color: #fff; text-align: left; }
.qd-rv-shot__cap b { display: block; font-size: .82rem; line-height: 1.25; }
.qd-rv-shot__cap span { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-top: .15rem; }
.qd-rv-more { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; justify-content: center; margin-top: 1.6rem; }
.qd-rv-more .qd-more { background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font: 600 .85rem var(--qd-body); }
.qd-rv-lb { position: fixed; inset: 0; z-index: 3000; background: rgba(20,17,15,.94); display: grid; place-items: center; padding: 3.5rem 1rem 1rem; }
.qd-rv-lb[hidden] { display: none; }
.qd-rv-lb figure { margin: 0; max-width: min(1100px, 100%); width: 100%; }
.qd-rv-lb img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 10px; }
.qd-rv-lb figcaption { color: #F3EEE6; margin-top: .8rem; display: grid; gap: .2rem; text-align: center; }
.qd-rv-lb figcaption span { opacity: .8; font-size: .92rem; }
.qd-rv-lb figcaption small { opacity: .55; font-size: .78rem; }
.qd-rv-lb__x { position: absolute; top: .8rem; right: 1rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.qd-rv-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.qd-rv-lb__nav.is-prev { left: .8rem; } .qd-rv-lb__nav.is-next { right: .8rem; }
@media (max-width: 640px) { .qd-rv-lb__nav { top: auto; bottom: 1rem; transform: none; } }

/* edit mode: an invisible photo layer on icon cards, so "Afbeelding vervangen" can add a real photo */
.qd-rv-addphoto { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 1; }

/* service page (/renovatie/<slug>) */
.qd-rv-hero--sub { min-height: min(62vh, 36rem); }
.qd-rv-page { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 5vw, 4rem); max-width: 72rem; margin: 0 auto; align-items: start; }
@media (max-width: 900px) { .qd-rv-page { grid-template-columns: minmax(0, 1fr); } }
.qd-rv-page__text h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 2rem 0 .6rem; }
.qd-rv-page__text h2:first-child { margin-top: 0; }
.qd-rv-page__text p { color: var(--qd-muted); line-height: 1.75; }
.qd-rv-page__box { position: sticky; top: 110px; padding: 1.5rem; border-radius: 16px; background: var(--qd-sand); }
.qd-rv-page__box b { font: 500 1.2rem var(--qd-display); }
.qd-rv-page__box ol { margin: .8rem 0 1.2rem; padding-left: 1.2rem; color: var(--qd-muted); line-height: 1.8; font-size: .93rem; }
