/* Full-width house choice above the frame; name and price inside the details card. */
.hmodel-heading{margin-bottom:28px}
.hmodel-heading h2{margin:0;font:400 clamp(32px,3vw,46px)/1.12 var(--serif);letter-spacing:-.035em;text-align:left}
.hmodel-gallery{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(340px,1fr);grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"photo heading" "photo details" "photo booking";gap:16px;align-items:stretch}
.hmodel-visual{display:contents}
.hmodel-header{grid-area:heading;min-width:0;display:block}
.hmodel-identity{flex:0 0 auto;min-width:0}
.hmodel-identity h3{font:400 36px/1.1 var(--serif);letter-spacing:-.025em;margin:0}
.hmodel-selected-price{margin:8px 0 0;color:#354b2d;font:500 20px/1.3 var(--sans);letter-spacing:-.025em}
.hmodel-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:100%;margin:0;gap:4px;padding:4px;border:0;border-radius:99px;background:#e9ece5}
.hmodel-choice{flex:0 1 auto;min-width:0;min-height:44px;padding:10px 12px;border:0;border-radius:99px;background:transparent;color:var(--ink);font:400 13px/1.35 var(--sans);text-align:center;white-space:nowrap;transition:background .2s,color .2s,box-shadow .2s}
.hmodel-choice[aria-checked=true]{background:#fff;color:#354b2d;box-shadow:0 2px 10px #1c301008}
.hmodel-choice:hover:not([aria-checked=true]){background:#ffffff70;color:#354b2d}
.hmodel-choice:focus-visible{outline:2px solid #5c754c;outline-offset:2px}
.hmodel-carousel{grid-area:photo;position:relative;min-width:0;min-height:0;aspect-ratio:3/2;overflow:hidden;border-radius:30px;background:#e7eae3;isolation:isolate;touch-action:pan-y pinch-zoom}
.hmodel-open{display:block;position:absolute;inset:0;padding:0;width:100%;height:100%;background:none;cursor:grab;touch-action:pan-y pinch-zoom}
.hmodel-open img{width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}
.hmodel-carousel.is-dragging,.hmodel-carousel.is-dragging .hmodel-open{cursor:grabbing}
.hmodel-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#16231870;color:#fff;backdrop-filter:blur(8px);transition:background .2s}
.hmodel-prev{left:20px}.hmodel-next{right:20px}.hmodel-prev svg{transform:rotate(180deg)}.hmodel-arrow:hover{background:#162318b3}
.hmodel-summary{grid-area:details;min-width:0;display:flex;flex-direction:column;gap:24px;padding:32px;border-radius:30px;background:#eceee8}
.hmodel-facts{display:flex;flex-wrap:wrap;gap:24px 40px;margin:0}
.hmodel-facts dt{font:400 12px/1.5 var(--sans);color:#72776c;margin:0 0 5px}
.hmodel-facts dd{font:500 19px/1.3 var(--sans);margin:0;color:#192116}
.hmodel-specifications{min-width:0}
.hmodel-spec-tabs{display:flex;align-items:stretch;justify-content:flex-start;gap:24px;padding:0;border-bottom:1px solid #d8ded1}
.hmodel-spec-tab{position:relative;flex:0 0 auto;min-width:0;min-height:44px;padding:10px 0 12px;border:0;border-radius:0;background:transparent;color:#666b60;font:500 14px/1.35 var(--sans);text-align:left;white-space:nowrap;transition:color .2s}
.hmodel-spec-tab::after{content:'';position:absolute;right:0;bottom:-1px;left:0;height:2px;border-radius:2px;background:#354b2d;transform:scaleX(0);transform-origin:left;transition:transform .2s ease}
.hmodel-spec-tab[aria-selected=true]{color:#354b2d}
.hmodel-spec-tab[aria-selected=true]::after{transform:scaleX(1)}
.hmodel-spec-tab:hover{color:#354b2d}
/* Both panels share a grid cell: switching preserves the card and button height. */
.hmodel-spec-panels{display:grid;margin-top:18px}
.hmodel-spec-panel{grid-area:1/1;min-width:0;color:#4e5c44;font:400 14px/1.6 var(--sans)}
.hmodel-spec-panel[aria-hidden=true]{visibility:hidden;pointer-events:none}
.hmodel-spec-panel p{margin:0}
.hmodel-construction{display:grid;gap:10px;margin:0}
.hmodel-construction>div{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;align-items:baseline}
.hmodel-construction dt{color:#72776c;font-size:12px}
.hmodel-construction dd{margin:0;overflow-wrap:break-word}
.hmodel-spec-tab:focus-visible,.hmodel-spec-panel:focus-visible{outline:2px solid #5c754c;outline-offset:3px}
.hmodel-details{min-width:0}
.hmodel-plan{position:relative;display:grid;grid-template-columns:164px minmax(0,1fr) 18px;align-items:center;gap:16px;min-height:188px;width:100%;padding:12px;background:#fafbf7;border:0;border-radius:20px;text-align:left}
.hmodel-plan img{display:block;width:164px;height:164px;object-fit:contain;mix-blend-mode:multiply;transition:transform .25s}
.hmodel-plan:hover img{transform:scale(1.035)}
.hmodel-plan-copy{display:flex;flex-direction:column;gap:6px}
.hmodel-plan-label{font:500 14px/1.4 var(--sans);color:#273820}
.hmodel-plan-hint{font:400 11px/1.5 var(--sans);color:#72776c}
.hmodel-plan-expand{width:18px;height:18px;color:#354b2d}
.hmodel-detail-empty{margin:0;font:400 14px/1.65 var(--sans);color:#626b59}
.hmodel-book{grid-area:booking;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:56px;margin:0;padding:16px 22px;border:0;border-radius:999px;background:#354b2d;color:#fff;font:500 14px/1.4 var(--sans);text-align:left;transition:background .2s}
.hmodel-book svg{flex-shrink:0}.hmodel-book:hover{background:#496538}
.hmodel-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;padding:30px;color:#73806a;font:400 14px/1.5 var(--sans);text-align:center}
.hmodel-empty svg{width:72px;height:72px;fill:none;stroke:#89957e;stroke-width:1}
.houses-section [hidden]{display:none!important}
.hmodel-plan:focus-visible,.hmodel-book:focus-visible,.hmodel-carousel:focus-visible{outline:2px solid #6c8b52;outline-offset:4px}
.hmodel-open:focus-visible{outline:2px solid white;outline-offset:-6px}
.hmodel-arrow:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:1100px){
 .hmodel-gallery{grid-template-columns:minmax(0,1.45fr) minmax(320px,1fr);gap:12px}
 .hmodel-summary{padding:26px}
 .hmodel-plan{grid-template-columns:112px minmax(0,1fr) 16px;gap:10px;min-height:144px}.hmodel-plan img{width:112px;height:120px}
}
@media(max-width:900px){
 .hmodel-gallery{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"heading" "photo" "details" "booking";gap:16px}
 .hmodel-carousel{height:auto}
 .hmodel-summary{gap:24px}
 .hmodel-plan{max-width:500px}
}
@media(max-width:650px){
 .hmodel-heading{margin-bottom:24px}

 .hmodel-identity h3{font-size:32px}
 .hmodel-selected-price{font-size:20px}

 .hmodel-choice{padding:10px 8px;font-size:13px}
 .hmodel-carousel{border-radius:24px}
 .hmodel-summary{padding:24px;border-radius:24px}
 .hmodel-facts{gap:24px 36px}.hmodel-facts dd{font-size:18px}
 .hmodel-plan{grid-template-columns:112px minmax(0,1fr) 18px;gap:12px;min-height:140px;padding:12px}
 .hmodel-plan img{width:112px;height:112px}
 .hmodel-plan-label{font-size:13px}.hmodel-plan-hint{font-size:11px}
 .hmodel-arrow{display:none}
 .hmodel-book{padding-inline:20px;font-size:13px}
}
@media(max-width:360px){
 .hmodel-choice{padding-inline:6px}
 .hmodel-summary{padding:20px}
 .hmodel-spec-tabs{gap:20px}
 .hmodel-spec-tab{font-size:13px}
 .hmodel-construction>div{grid-template-columns:72px minmax(0,1fr);gap:8px}
 .hmodel-plan{grid-template-columns:90px minmax(0,1fr) 16px;gap:8px}.hmodel-plan img{width:90px;height:105px}
 .hmodel-plan-label{font-size:12px}.hmodel-plan-hint{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.hmodel-choice,.hmodel-spec-tab,.hmodel-spec-tab::after,.hmodel-arrow,.hmodel-plan img,.hmodel-book{transition:none}.hmodel-plan:hover img{transform:none}}
/* Preserve the section gap below the mobile viewing button. */
@media(max-width:700px){.houses-section+.interior-section{margin-top:68px}}

/* Stick only over the photo; its wrapper ends before the house details. */
@media screen and (max-width:700px){
 .hmodel-gallery{grid-template-areas:"visual" "details" "booking"}
 .hmodel-visual{display:block;grid-area:visual;min-width:0}
 .hmodel-visual>.hmodel-header{position:sticky;top:var(--mobile-header-height,80px);z-index:30}
 .hmodel-visual>.hmodel-carousel{margin-top:16px}
}
