/* Match the house asset's neutral backdrop without darkening its rectangular bounds. */
.house-hero{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:30px;padding:34px 4.4% 23px;background:#edefef;color:var(--ink);min-width:0}
.house-main{min-width:0}
.house-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;position:relative;z-index:1}
.house-heading .eyebrow{font-size:9px;color:var(--muted);letter-spacing:.14em}
.house-heading h1{font-family:Archivo,Arial,sans-serif;font-weight:400;font-size:clamp(30px,3.1vw,49px);line-height:1.12;letter-spacing:-.04em;margin:12px 0 0}
.house-heading>p{font-size:11px;line-height:1.8;color:var(--muted);padding-top:18px;flex:none}
.house-map{position:relative;width:min(100%,calc((100svh - 275px)*1.33333));max-width:900px;min-width:480px;margin:5px auto 0;isolation:isolate;aspect-ratio:4/3}
.house-map>img{position:absolute;inset:8%;display:block;width:84%;height:84%;mix-blend-mode:normal}
/* Fixed text with a directional arrow, inspired by 21st.dev's Directional Text Button. */
.house-spot{position:absolute;display:flex;align-items:center;min-height:44px;min-width:44px;padding:0;border:0;background:none;color:var(--accent);font-family:Archivo,Arial,sans-serif;font-size:13px;font-weight:500;line-height:1.2;white-space:nowrap;transform:translateY(-50%);z-index:2;cursor:pointer;text-decoration:none}
.spot-face{display:flex;align-items:center;gap:9px;min-height:44px;padding:7px 0;color:inherit;transition:color .25s}
.spot-word{position:relative;display:block}
.spot-arrow{position:relative;display:block;flex:none;width:23px;height:23px;border:1px solid var(--accent);border-radius:50%;overflow:hidden;background:var(--accent);color:#fff;transition:background .25s,border-color .25s,color .25s}
.spot-arrow::before,.spot-arrow::after{content:"";position:absolute;inset:4px;background:currentColor;-webkit-mask:url('assets/icons/arrow-up-right.svg') center/contain no-repeat;mask:url('assets/icons/arrow-up-right.svg') center/contain no-repeat;transition:transform .38s cubic-bezier(.2,.75,.25,1),opacity .3s}
.spot-arrow::after{transform:translate(-120%,120%);opacity:0}
.house-spot:focus-visible{outline:2px solid var(--muted);outline-offset:4px}
.house-spot:focus-visible .spot-face{color:var(--accent-hover)}
.house-spot:focus-visible .spot-arrow,.house-spot:active .spot-arrow{background:var(--accent);border-color:var(--accent);color:#fff}
.house-spot:focus-visible .spot-arrow::before{transform:translate(120%,-120%);opacity:0}
.house-spot:focus-visible .spot-arrow::after{transform:translate(0,0);opacity:1}
.house-spot:active .spot-face{color:var(--accent-hover)}
.spot-balkon{left:1%;top:40%}
.spot-wohnen{left:1%;top:72%}
.spot-bad{right:1%;top:26%}
.spot-treppe{right:1%;top:48%}
.spot-kueche{right:1%;top:71%}
.spot-eingang{left:1%;right:auto;top:89%}
.room-guides{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.room-guide{fill:none;stroke:var(--muted);stroke-width:1;stroke-opacity:.38;vector-effect:non-scaling-stroke;transition:stroke-opacity .3s,stroke .3s}
.house-map:has(.spot-bad:focus-visible) .guide-bad,.house-map:has(.spot-balkon:focus-visible) .guide-balkon,.house-map:has(.spot-wohnen:focus-visible) .guide-wohnen,.house-map:has(.spot-kueche:focus-visible) .guide-kueche,.house-map:has(.spot-treppe:focus-visible) .guide-treppe,.house-map:has(.spot-eingang:focus-visible) .guide-eingang{stroke:var(--focus);stroke-opacity:.9;stroke-dasharray:1;animation:room-guide-reveal .55s cubic-bezier(.2,.75,.25,1)}
@media(hover:hover) and (pointer:fine){
 .house-spot:hover .spot-face{color:var(--accent-hover)}
 .house-spot:hover .spot-arrow{background:var(--accent);border-color:var(--accent);color:#fff}
 .house-spot:hover .spot-arrow::before{transform:translate(120%,-120%);opacity:0}
 .house-spot:hover .spot-arrow::after{transform:translate(0,0);opacity:1}
 .house-map:has(.spot-bad:hover) .guide-bad,.house-map:has(.spot-balkon:hover) .guide-balkon,.house-map:has(.spot-wohnen:hover) .guide-wohnen,.house-map:has(.spot-kueche:hover) .guide-kueche,.house-map:has(.spot-treppe:hover) .guide-treppe,.house-map:has(.spot-eingang:hover) .guide-eingang{stroke:var(--focus);stroke-opacity:.9;stroke-dasharray:1;animation:room-guide-reveal .55s cubic-bezier(.2,.75,.25,1)}
}
@keyframes room-guide-reveal{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
.house-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:9px;line-height:1.6;padding:4px 0 13px;border-bottom:1px solid var(--line)}
.house-caption>span:first-child{display:flex;gap:7px;align-items:center}
.caption-dot{width:5px;height:5px;border-radius:50%;background:var(--focus)}
.hero-shop{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:24px;align-self:center;min-width:0;color:var(--accent-hover);box-shadow:0 8px 34px #3d281b04}
.shop-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:21px}
.shop-card-top .eyebrow{font-size:8px;color:var(--muted)}
.shop-symbol{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font-size:19px}
.hero-shop h2{font-family:Archivo,Arial,sans-serif;font-size:30px;line-height:1.1;letter-spacing:-.055em;font-weight:400}
.hero-shop>p{font-size:11px;color:var(--muted);line-height:1.85;margin-top:19px}
.shop-materials{display:flex;align-items:center;justify-content:center;padding:28px 0;gap:0}
.shop-materials img{width:72px;height:78px;object-fit:cover;border:3px solid var(--paper);box-shadow:0 4px 9px #3d281b17;transform:rotate(-12deg)}
.shop-materials img:nth-child(2){margin-inline:-10px;z-index:1;transform:rotate(4deg)}
.shop-materials img:nth-child(3){transform:rotate(15deg)}
.shop-main-link{display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--accent);color:#fff;padding:15px 18px;border-radius:5px;font-size:12px;min-height:48px;transition:background .2s,transform .2s}
.shop-main-link:hover{background:var(--accent);transform:translateY(-2px)}
.shop-main-link>span{font-size:19px}
.shop-shortcuts{display:grid;gap:11px;padding-top:23px;font-size:9px;color:var(--muted)}
.shop-shortcuts span:before{content:'✓';margin-right:9px;color:var(--focus)}
.shop-trade-link{display:block;border-top:1px solid var(--line);padding-top:18px;margin-top:23px;font-size:9px;color:var(--muted);line-height:1.6;text-decoration:underline;text-underline-offset:4px}
.site-header .header-contact{font-size:12px;display:inline-block;min-height:44px;padding-block:14px}
.house-room-preview{width:min(950px,calc(100% - 32px));max-height:90dvh;padding:0;border:0;border-radius:9px;background:#f5f5ed;color:var(--accent-hover);overflow:auto}
.house-room-preview::backdrop{background:#39261bc0;backdrop-filter:blur(7px)}
.house-room-preview[open]{animation:room-appear .3s ease-out}
.house-room-preview[open]::backdrop{animation:backdrop-appear .3s ease-out}
.house-room-close{position:absolute;top:14px;right:14px;z-index:2;width:44px;height:44px;border:1px solid var(--page-alt);border-radius:50%;background:#fffaf4e8;font-size:25px;display:grid;place-items:center}
.house-room-picture{position:relative;aspect-ratio:1.85;background:var(--line);overflow:hidden}
.house-room-picture img{width:100%;height:100%;object-fit:cover}
.house-room-picture img[data-focus="entry"]{object-position:50% 100%;transform:scale(1.25);transform-origin:50% 100%}
.house-room-picture>span{position:absolute;left:16px;bottom:16px;font-size:9px;background:#fffaf4f0;padding:7px 10px}
.house-room-details{padding:29px 35px}
.house-room-details .eyebrow{font-size:9px;color:var(--muted);margin-bottom:15px}
.house-room-details h2{font-size:36px}
.house-room-details>p:not(.eyebrow){font-size:12px;color:var(--muted);line-height:1.8;max-width:700px;margin-top:15px}
.house-room-details>.house-room-status{font-size:10px!important}
.house-room-actions{display:flex;flex-wrap:wrap;align-items:center;gap:25px;margin-top:23px}
@keyframes room-appear{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
@keyframes backdrop-appear{from{opacity:0}to{opacity:1}}
@media(min-width:1700px){
 .house-hero{grid-template-columns:minmax(0,1fr) 330px;gap:50px;padding-top:45px}
 .hero-shop{padding:29px}.hero-shop h2{font-size:34px}.hero-shop>p{font-size:13px}
 .shop-materials{padding-block:35px}.shop-materials img{width:86px;height:94px}
 .house-heading h1{font-size:53px}.house-heading>p{font-size:12px}
 .house-caption{font-size:11px}
}
@media(max-width:1100px){
 .house-hero{grid-template-columns:minmax(0,1fr) 245px;gap:20px;padding-inline:3%;padding-top:27px}
 .hero-shop{padding:21px}.hero-shop h2{font-size:27px}.house-heading>p{display:none}
 .house-map{min-width:0;width:100%;margin-top:15px}.house-heading h1{font-size:37px}
 .house-caption{font-size:8px}
 .shop-materials img{width:64px;height:70px}
}
@media(max-width:800px){
 .house-hero{display:flex;flex-direction:column;gap:22px;padding:30px 20px 26px}
 .house-heading h1{font-size:36px;margin-top:13px}.house-heading .eyebrow{font-size:8px}
 .house-map{width:min(100%,600px);margin-top:14px}
 .house-caption{font-size:8px;padding-bottom:10px}
 .hero-shop{width:100%;display:grid;grid-template-columns:1fr auto;gap:10px 25px;border-radius:9px;padding:22px}
 .shop-card-top{margin:0;grid-column:1/-1}.shop-card-top .eyebrow{font-size:8px}.shop-symbol{display:none}
 .hero-shop h2{font-size:25px;align-self:center}.hero-shop h2 br{display:none}
 .hero-shop>p{margin-top:0;font-size:11px;grid-row:3;max-width:440px}
 .shop-materials,.shop-shortcuts{display:none}
 .shop-main-link{grid-column:2;grid-row:2 / span 2;align-self:center;gap:30px;white-space:nowrap;font-size:12px;min-width:145px}
 .shop-trade-link{grid-column:1/-1;font-size:9px;margin-top:5px;padding-top:14px}
 .site-header .header-contact{font-size:11px}.house-spot{font-size:12px}.spot-face{padding:7px 0;gap:8px}
 .house-room-preview{width:calc(100% - 24px)}.house-room-picture{aspect-ratio:1.35}
 .house-room-details{padding:24px}.house-room-details h2{font-size:31px}
 .house-room-actions{gap:18px}.house-room-actions .button{width:100%;justify-content:center}
 .house-room-actions .text-link{font-size:11px}
}
@media(max-width:430px){
 .house-hero{padding:25px 16px 24px;gap:20px}
 .house-heading h1{font-size:31px;letter-spacing:-.04em}
 .house-heading .eyebrow{font-size:7px;letter-spacing:.12em}
 .house-map{width:100%;margin-top:18px}.house-spot{font-size:11px;min-height:44px}.spot-face{padding:7px 0;gap:6px}
 .spot-arrow{width:20px;height:20px}.spot-arrow::before,.spot-arrow::after{font-size:13px}
 .house-caption{font-size:7px;gap:8px}.hero-shop{padding:20px;gap:12px}.hero-shop h2{font-size:24px}
 .hero-shop>p{grid-column:1/-1;grid-row:auto}
 .shop-main-link{grid-column:1/-1;grid-row:auto;min-height:48px;margin-top:3px}
 .shop-trade-link{margin-top:2px;padding-top:12px}.site-header{padding-inline:16px;gap:12px}
 .brand img{width:96px}.header-actions{gap:8px}.site-header .header-contact{font-size:10px}
 .house-room-close{right:10px;top:10px}
}
@media(max-width:430px){
 .spot-eingang{top:92%}
}
@media(max-width:380px){
 .spot-eingang{top:95%}
 .house-map{margin-bottom:8px}
}
@media(prefers-reduced-motion:reduce){
 .house-spot,.spot-face,.spot-arrow,.spot-arrow::before,.spot-arrow::after,.room-guide,.shop-main-link{animation:none!important;transition:none!important}
 .house-spot:hover .spot-face,.house-spot:active .spot-face,.shop-main-link:hover{transform:none}
 .house-room-preview[open],.house-room-preview[open]::backdrop{animation:none}
}

/* Fade only empty outer margins; keep the complete house/platform visible. */
.house-map>img{-webkit-mask-image:linear-gradient(to right,transparent,#000 3%,#000 97%,transparent),linear-gradient(to bottom,transparent,#000 1%,#000 99%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent,#000 3%,#000 97%,transparent),linear-gradient(to bottom,transparent,#000 1%,#000 99%,transparent);mask-composite:intersect}
