/* MGM Home Teasers 1.0.0 – samme udseende som "Homes of the week" (nis-homes / nis-home) */
.nis-homes{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px;margin:8px 0 18px}
.nis-homes.nis-homes-1{grid-template-columns:minmax(0,1fr)}
.nis-home{display:flex;flex-direction:column;background:#fff;border:1px solid #e4e7eb;border-radius:12px;overflow:hidden;text-decoration:none!important;color:inherit;box-shadow:0 2px 10px rgba(17,24,39,.06);transition:box-shadow .2s}
.nis-home:hover{box-shadow:0 6px 18px rgba(17,24,39,.14)}
.nis-home-img{display:block;aspect-ratio:3/2;background:#dfe6ee;overflow:hidden}
.nis-home-img img{width:100%;height:100%;object-fit:cover;display:block;margin:0!important}
.nis-home-body{display:flex;flex-direction:column;gap:4px;padding:12px 14px 14px;flex-grow:1}
.nis-home-town{font-size:12px;font-weight:700;color:#c0392b;text-transform:uppercase;letter-spacing:.05em}
.nis-home-title{font-size:16px;font-weight:700;color:#111;line-height:1.3}
.nis-home-facts{font-size:13px;color:#52606d}
.nis-home-price{margin-top:auto;padding-top:6px;font-size:18px;font-weight:800;color:#12305a}
.nis-home-cta{font-size:13px;font-weight:600;color:#12305a}

/* Energimærke (Real Decreto 390/2021, art. 17.3) og "via PropertyList" */
.mgm-home-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:0}
.mgm-home-meta:empty{display:none}
.mgm-home-energy{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:#52606d;line-height:1}
.mgm-home-energy b{display:inline-block;min-width:18px;padding:3px 5px;border-radius:3px;color:#fff;font-size:11px;font-weight:800;text-align:center}
.mgm-energy-a b{background:#00843d}.mgm-energy-b b{background:#4caf2c}.mgm-energy-c b{background:#a5c916;color:#1d2a00}
.mgm-energy-d b{background:#f2d200;color:#3a3000}.mgm-energy-e b{background:#f5a623;color:#3a2400}
.mgm-energy-f b{background:#e8631c}.mgm-energy-g b{background:#d7191c}
.mgm-home-via{font-size:11px;color:#8a949e}

/* Bolig, der ikke findes længere */
.mgm-home-gone{background:#f7f8fa;border-style:dashed;box-shadow:none;align-self:start}
.mgm-home-gone:hover{box-shadow:none}
.mgm-home-gone .nis-home-title{font-size:15px;color:#52606d}
.mgm-home-gone .nis-home-cta{margin-top:6px;text-decoration:underline}

.mgm-homes-all{margin:0 0 24px}
.mgm-homes-slot:empty{display:none}
