.dhover-bac-production{max-width:680px;padding:clamp(.625rem,1.5vw,1rem);border:1px solid #dedede;border-radius:12px;background:#fff;color:#222;font:inherit}
.dhover-bac__label,.dhover-bac__choices legend{display:block;font-weight:650;margin:1.1rem 0 .5rem}
.dhover-bac__input-wrap{display:flex;align-items:center;gap:.65rem;border:1px solid #999;border-radius:6px;padding:.35rem .75rem;max-width:340px}
.dhover-bac__input-wrap input{width:100%;border:0!important;box-shadow:none!important;padding:.6rem 0;font:inherit}
.dhover-bac__hint,.dhover-bac__intro{line-height:1.55}
.dhover-bac__choices{border:0;padding:0;margin:1.25rem 0}
.dhover-bac__choices label{display:block;margin:.65rem 0}
.dhover-bac__button{cursor:pointer;border:0;border-radius:6px;padding:.85rem 1.2rem;background:#222;color:#fff;font:inherit;font-weight:650}
.dhover-bac__result{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid #ddd}
.dhover-bac__eyebrow{margin-bottom:.25rem}
.dhover-bac__price{font-size:clamp(2rem,6vw,3rem);font-weight:750;line-height:1.1;margin:.25rem 0 1.25rem}
.dhover-bac__result dl{margin:0}
.dhover-bac__result dl div{display:flex;justify-content:space-between;gap:1rem;padding:.7rem 0;border-bottom:1px solid #eee}
.dhover-bac__result dd{margin:0;text-align:right;font-weight:600}
.dhover-bac__total{font-weight:750}
.dhover-bac__disclaimer{font-size:.88em;line-height:1.5;margin-top:1.5rem;color:#555}
.dhover-bac__error{color:#a00;margin-top:.75rem}
.dhover-bac__city-info{margin-top:1.5rem;padding:1rem 1.1rem;background:#f6f6f4;border-radius:8px;line-height:1.55}
.dhover-bac__city-info h3{margin:.1rem 0 .65rem;font-size:1.15rem}
.dhover-bac__city-info details{margin-top:.8rem}
.dhover-bac__city-info summary{cursor:pointer;font-weight:650}
.dhover-bac__list-note,.dhover-bac__source{font-size:.9em;color:#555}
.dhover-bac__places{columns:2;column-gap:2rem;padding-left:1.2rem}
.dhover-bac__places li{break-inside:avoid;margin:.2rem 0}
.dhover-bac__places small{color:#666}
@media(max-width:520px){.dhover-bac__places{columns:1}.dhover-bac__result dl div{align-items:flex-start}}
.dhover-bac__select{display:block;width:100%;max-width:none;border:1px solid #999;border-radius:6px;padding:.75rem;font:inherit;background:#fff;color:inherit}
.dhover-bac__municipality-wrap[hidden]{display:none}

/* Compact formulier en toegankelijke info-tooltips */
.dhover-bac__question{display:flex;align-items:center;gap:.5rem;margin-top:1.1rem}
.dhover-bac__question .dhover-bac__label{margin:0}
.dhover-bac__info{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;cursor:help;vertical-align:middle;outline-offset:3px}
.dhover-bac__info-icon{display:inline-flex;align-items:center;justify-content:center;width:1.15rem;height:1.15rem;border:1px solid currentColor;border-radius:50%;font-family:Arial,sans-serif;font-size:.75rem;font-weight:700;line-height:1}
.dhover-bac__tooltip{position:absolute;z-index:20;left:50%;bottom:calc(100% + .65rem);width:min( min(18rem, 75vw), 18rem);padding:.7rem .85rem;border-radius:6px;background:#222;color:#fff;font-size:.85rem;font-weight:400;line-height:1.45;box-shadow:0 3px 12px #0002;opacity:0;visibility:hidden;transform:translate(-50%,.25rem);transition:opacity .15s ease,transform .15s ease;pointer-events:none}
.dhover-bac__tooltip:after{content:"";position:absolute;top:100%;left:50%;border:.4rem solid transparent;border-top-color:#222;transform:translateX(-50%)}
.dhover-bac__info:hover .dhover-bac__tooltip,.dhover-bac__info:focus .dhover-bac__tooltip,.dhover-bac__info:focus-within .dhover-bac__tooltip{opacity:1;visibility:visible;transform:translate(-50%,0)}
.dhover-bac__choices legend{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.dhover-bac__choices legend .dhover-bac__info{font-weight:400}
.dhover-bac__input-wrap{max-width:none}
.dhover-bac__input-wrap input{min-width:0}
.dhover-bac__municipality-wrap .dhover-bac__label{margin-top:1rem}
.dhover-bac__choices{margin:1.1rem 0}

/* Detailoverzicht: afzonderlijke kostenposten met ruimte voor toelichtingen. */
.dhover-bac__cost-heading{margin:1.25rem 0 .35rem;font-size:1.15rem}
.dhover-bac__result dl.dhover-bac__cost-breakdown{margin-top:.5rem}
.dhover-bac__cost-breakdown dt{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
.dhover-bac__cost-breakdown .dhover-bac__info{font-weight:400}
.dhover-bac__cost-breakdown .dhover-bac__subtotal{border-top:1px solid #bbb;font-weight:700;margin-top:.35rem}
.dhover-bac__cost-breakdown .dhover-bac__total{border-top:2px solid #222;font-size:1.05em;margin-top:.25rem}
.dhover-bac__cost-breakdown .dhover-bac__tooltip{width:min(18rem,75vw);white-space:normal}
@media(max-width:520px){.dhover-bac__cost-breakdown dl div{gap:.75rem}.dhover-bac__cost-breakdown dt{max-width:72%}}

.dhover-bac__benefit-row--none dt,.dhover-bac__benefit-row--none dd{color:#777}


/* v0.3.7: kostenoverzicht compacter en visueel ondergeschikt aan het aankoopbudget. */
.dhover-bac__cost-heading{font-size:1rem;margin:1rem 0 .2rem;font-weight:500}
.dhover-bac__result dl.dhover-bac__cost-breakdown{font-size:.86em}
.dhover-bac__result dl.dhover-bac__cost-breakdown div{padding:.3rem 0}
.dhover-bac__cost-breakdown dt,.dhover-bac__cost-breakdown dd{font-weight:400}
.dhover-bac__cost-breakdown .dhover-bac__subtotal,.dhover-bac__cost-breakdown .dhover-bac__total{font-weight:400}
.dhover-bac__cost-breakdown .dhover-bac__total{font-size:1em}


/* v0.3.8: selectievelden op volle breedte en duidelijkere scheiding in het resultaat. */
.dhover-bac__select{max-width:none;width:100%}
.dhover-bac__municipality-wrap{margin-bottom:1.5rem}
.dhover-bac__price{padding-bottom:0;margin-bottom:0;border-bottom:0}


/* v0.3.12: zoekbudget-toelichting onder het bedrag; kostenoverzicht in lichtgrijs paneel. */
.dhover-bac__search-note{margin:1rem 0 1.25rem;padding:0;background:transparent;border-radius:0;line-height:1.55;font-size:.92em}
.dhover-bac__cost-panel{margin-top:0;padding:1rem 1.1rem;background:#f6f6f4;border-radius:8px;border-top:1px solid #ddd}
.dhover-bac__cost-panel .dhover-bac__cost-heading{margin-top:0}
.dhover-bac__cost-panel .dhover-bac__cost-breakdown div:last-child{border-bottom:0}
.dhover-bac__municipality-question{margin-top:0;margin-bottom:.45rem}
.dhover-bac__region-note{margin:.55rem 0 1.5rem;font-size:.82em;line-height:1.5;color:#888;width:100%;background:none;border:0;padding:0}

/* v0.3.18: tooltips op smartphones centraal tonen en binnen de schermhoogte houden. */
@media(max-width:520px){
  .dhover-bac__info .dhover-bac__tooltip,
  .dhover-bac__cost-breakdown .dhover-bac__tooltip{
    position:fixed;
    z-index:9999;
    top:50%;
    left:50%;
    right:auto;
    bottom:auto;
    width:calc(100vw - 2rem);
    max-width:360px;
    max-height:calc(100dvh - 2rem);
    overflow-y:auto;
    box-sizing:border-box;
    padding:.9rem 1rem;
    transform:translate(-50%,-48%);
  }
  .dhover-bac__info:hover .dhover-bac__tooltip,
  .dhover-bac__info:focus .dhover-bac__tooltip,
  .dhover-bac__info:focus-within .dhover-bac__tooltip{
    transform:translate(-50%,-50%);
  }
  .dhover-bac__tooltip:after{display:none}
}


/* v0.3.19: maximale aankoopprijs extra benadrukken in het kostenoverzicht. */
.dhover-bac__cost-breakdown .dhover-bac__purchase-row dt,
.dhover-bac__cost-breakdown .dhover-bac__purchase-row dd{font-weight:700}

/* v0.4.0: afzonderlijke financieringsbronnen en eigen middelen voor kosten. */
.dhover-bac__section-heading{margin:.2rem 0 1rem;font-size:1.2rem}
.dhover-bac__input-wrap{margin-bottom:.65rem}
.dhover-bac__financial-row{font-size:.9em;color:#555}
.dhover-bac__disclaimer{font-size:.85em;line-height:1.5;margin-top:1.5rem;color:#666}

/* v0.4.2: afzonderlijke kredietkosten in het kostenoverzicht. */
.dhover-bac__credit-heading{border-top:1px solid #bbb;margin-top:.8rem;padding-top:.65rem;font-weight:650}
.dhover-bac__credit-heading dt{font-weight:650!important}
.dhover-bac__grand-total{border-top:2px solid #222;margin-top:.35rem;font-weight:750}
.dhover-bac__grand-total dt,.dhover-bac__grand-total dd{font-weight:750!important}
.dhover-bac__credit-choices{margin-top:.8rem}


/* v0.4.7: gelijke lettergrootte voor de kostenopsplitsing; kernbedragen extra benadrukt. */
.dhover-bac__result dl.dhover-bac__cost-breakdown{font-size:1rem}
.dhover-bac__cost-breakdown .dhover-bac__grand-total,
.dhover-bac__cost-breakdown .dhover-bac__purchase-row{font-size:1.1em;font-weight:750}
.dhover-bac__cost-breakdown .dhover-bac__grand-total dt,
.dhover-bac__cost-breakdown .dhover-bac__grand-total dd,
.dhover-bac__cost-breakdown .dhover-bac__purchase-row dt,
.dhover-bac__cost-breakdown .dhover-bac__purchase-row dd{font-weight:750}

/* Alle meldingen delen dezelfde typografie; kleur kan per soort melding verschillen. */
.dhover-bac__message{font-family:inherit;font-size:.88em;line-height:1.5}
.dhover-bac__budget-warning,.dhover-bac__error--insufficient{padding:.75rem 1rem;border-left:4px solid;border-radius:4px}
.dhover-bac__budget-warning{margin:1rem 0 0;border-color:#32824a;background:#edf7ef;color:#245433}
.dhover-bac__error--insufficient{margin:.75rem 0 0;border-color:#c47a00;background:#fff4df;color:#704600}
.dhover-bac__large-budget-note[hidden]{display:none!important}
.dhover-bac__disclaimer[hidden]{display:none!important}
.dhover-bac-production > .dhover-bac__disclaimer{margin-top:3rem!important}
.dhover-bac__print-button{display:inline-flex;align-items:center;margin-top:1rem;padding:.7rem 1rem;border:1px solid #555;border-radius:6px;background:#fff;color:#222;font:inherit;font-weight:600;cursor:pointer}
.dhover-bac-print-root{display:none!important}

@media print{
  @page{margin:14mm}
  body.dhover-bac-printing{display:block!important;margin:0!important;background:#fff!important}
  body.dhover-bac-printing>*:not(.dhover-bac-print-root){display:none!important}
  body.dhover-bac-printing>.dhover-bac-print-root{display:block!important;position:static!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;background:#fff!important;color:#111!important;box-shadow:none!important}
  .dhover-bac-print-root .dhover-bac__print-title{margin:0 0 .5rem;font-size:18pt;line-height:1.2}
  .dhover-bac-print-root .dhover-bac__print-context{margin:.25rem 0 1rem;font-size:10pt;line-height:1.4}
  .dhover-bac-print-root .dhover-bac__result{display:block!important;margin:0!important;padding:0!important;border:0!important}
  .dhover-bac-print-root .dhover-bac__price{font-size:25pt;line-height:1.1}
  .dhover-bac-print-root .dhover-bac__search-note{font-size:10pt;line-height:1.4;color:#222}
  .dhover-bac-print-root .dhover-bac__result dl div{break-inside:avoid;page-break-inside:avoid}
  .dhover-bac-print-root .dhover-bac__info,.dhover-bac-print-root .dhover-bac__print-button{display:none!important}
  .dhover-bac-print-root .dhover-bac__disclaimer{margin:1.25rem 0 0!important;padding:.75rem 0 0;border-top:1px solid #888;font-size:9pt;line-height:1.4;color:#222}
  .dhover-bac-print-root .dhover-bac__budget-warning{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}
