﻿/* Homepage only: copy and complete artwork stay in normal document flow. */
.housing-home .hero-commerce-grid { grid-template-columns: clamp(210px, 18vw, 264px) minmax(0, 1fr); align-items: start; gap: clamp(14px, 1.4vw, 22px); }
.housing-home .department-menu { display: block; min-width: 0; box-shadow: 0 12px 30px rgba(21,34,56,.06); }
.housing-home .department-title { background: linear-gradient(110deg,#eaa21d,#ffda43); color: #152238; min-height: 50px; }
.housing-home .department-link { min-height: 42px; padding-inline: 8px; font-size: 12px; }
.housing-home .department-link > span { overflow-wrap: anywhere; }
.housing-home .department-link small { font-size: 10px; }
.housing-home .department-item:focus-within .department-flyout { opacity: 1; visibility: visible; transform: translateX(0); }
.housing-banner { container: housing-banner / inline-size; display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); align-items: center; width: 100%; min-width: 0; overflow: hidden; border: 1px solid rgba(216,138,22,.1); border-radius: 24px; background: #fff9ef; color: #152238; box-shadow: 0 14px 36px rgba(21,34,56,.07); }
.housing-backdrop { grid-column: 2; grid-row: 1; display: block; width: 100%; height: auto; min-width: 0; max-width: 100%; object-fit: contain; align-self: center; }
.housing-copy { grid-column: 1; grid-row: 1; min-width: 0; padding: clamp(20px,2.6cqi,34px); }
.housing-eyebrow { display: inline-flex; padding: 7px 11px; background: #fceaca; border-radius: 10px; color: #80500b; text-transform: uppercase; letter-spacing: .055em; font-size: 10px; font-weight: 800; }
.housing-copy h1 { margin: 16px 0 13px; color: #152238; font-family: Georgia,'Times New Roman',serif; font-size: clamp(29px,4.6cqi,58px); font-weight: 700; line-height: 1.04; letter-spacing: -.04em; overflow-wrap: anywhere; }
.housing-copy h1 > span { display: block; color: #b16b0c; }
.housing-copy .housing-subtitle { margin: 0 0 12px; font-size: clamp(15px,1.75cqi,22px); font-weight: 800; line-height: 1.4; color: #152238; overflow-wrap: anywhere; }
.housing-copy .housing-description { margin: 0; color: #526277; font-size: clamp(12px,1.25cqi,14px); line-height: 1.65; }
.housing-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; padding: 0; margin: 20px 0 22px; gap: 8px; }
.housing-features li { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; color: #152238; font-size: 10px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.housing-features li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 20%,#fff8d1,#ffdf75); border: 1px solid #ffe6a0; }
.housing-features svg { width: 21px; height: 21px; stroke-width: 1.7; }
.housing-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.housing-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; max-width: 100%; padding: 11px 15px; border-radius: 999px; font-weight: 800; font-size: 11px; line-height: 1.4; text-align: center; text-decoration: none; overflow-wrap: anywhere; transition: background .2s; }
.housing-button svg { width: 16px; height: 16px; flex-shrink: 0; }
.housing-button-primary { color: #152238; background: linear-gradient(110deg,#eda415,#d88a16); border: 1px solid #d88a16; box-shadow: 0 7px 18px rgba(216,138,22,.2); }
.housing-button-primary:hover { background: #eeb23e; color: #152238; }
.housing-button-secondary { color: #152238; background: #fff; border: 1.5px solid #152238; }
.housing-button-secondary:hover { color: #152238; background: #dceffc; }
.housing-button:focus-visible { outline: 3px solid #152238; outline-offset: 3px; }
/* Respond to actual banner width, including when browser zoom changes it. */
@container housing-banner (max-width: 680px) {
    .housing-copy { grid-column: 1 / -1; grid-row: 1; padding: 24px; }
    .housing-copy h1 { font-size: clamp(30px,7.4cqi,44px); }
    .housing-copy h1 > span { display: inline; }
    .housing-copy .housing-subtitle { font-size: clamp(16px,3.6cqi,21px); }
    .housing-copy .housing-description { font-size: 13px; }
    .housing-backdrop { grid-column: 1 / -1; grid-row: 2; width: 100%; max-height: 380px; }
    .housing-features { max-width: 420px; }
    .housing-button { flex: 1 1 160px; font-size: 12px; }
}
@media (min-width: 901px) and (max-width: 1199px) {
    .housing-home .hero-commerce-grid { grid-template-columns: 200px minmax(0,1fr); }
    .housing-home .department-link { font-size: 11px; gap: 5px; padding-inline: 5px; }
}
@media (max-width: 900px) {
    .housing-home .hero-commerce-grid { grid-template-columns: minmax(0,1fr); }
    /* Category navigation remains in the unchanged mobile menu. */
    .housing-home .department-menu { display: none; }
    .housing-banner { border-radius: 20px; }
}
@media (max-width: 380px) {
    .housing-copy { padding: 20px 16px; }
    .housing-actions { flex-direction: column; }
    .housing-button { flex: 0 1 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .housing-button { transition: none; } }

.housing-carousel { min-width: 0; width: 100%; }
.housing-carousel-viewport { width: 100%; overflow-x: auto; overflow-y: hidden; border-radius: 24px; scroll-snap-type: x mandatory; }
.housing-carousel[data-enhanced] .housing-carousel-viewport { overflow: hidden; transition: height .35s ease; touch-action: pan-y pinch-zoom; }
.housing-carousel-track { display: flex; align-items: flex-start; width: 100%; transition: transform .65s ease; }
.housing-carousel-slide { flex: 0 0 100%; width: 100%; min-width: 0; scroll-snap-align: start; }
.housing-artwork-slide { overflow: hidden; border-radius: 24px; background: #fff9ef; }
.housing-artwork { position: relative; }
.housing-artwork img { display: block; width: 100%; height: auto; }
.housing-artwork-link { position: absolute; top: 82.6%; height: 10%; border-radius: 999px; }
.housing-artwork-primary { left: 3.5%; width: 16.5%; }
.housing-artwork-secondary { left: 21%; width: 14%; }
.housing-oneplus-slide .housing-artwork-link { top: 80%; height: 10.5%; }
.housing-oneplus-slide .housing-artwork-primary { left: 3.7%; width: 16%; }
.housing-oneplus-slide .housing-artwork-secondary { left: 20.4%; width: 14.6%; }
.housing-artwork-link span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.housing-artwork-link:focus-visible { outline: 3px solid #152238; outline-offset: 3px; }
.housing-artwork-mobile-actions { display: none; }
.housing-carousel-controls { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 0 2px; }
.housing-carousel-controls[hidden] { display: none; }
.housing-carousel-controls > button { min-width: 40px; min-height: 40px; padding: 7px 12px; border-radius: 999px; border: 1px solid #e9dbc5; background: #fff9ef; color: #152238; cursor: pointer; font: inherit; font-size: 13px; }
.housing-carousel-controls button:focus-visible { outline: 2px solid #152238; outline-offset: 3px; }
.housing-carousel-dots { display: flex; align-items: center; gap: 4px; }
.housing-carousel-dots button { display: grid; place-items: center; width: 32px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.housing-carousel-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #b8b7b3; }
.housing-carousel-dots button[aria-current='true']::before { width: 22px; border-radius: 8px; background: #b16b0c; }
@media (max-width: 680px) {
    .housing-artwork-link { display: none; }
    .housing-artwork-mobile-actions { display: flex; padding: 16px; }
    .housing-artwork-mobile-actions .housing-button { flex: 1 1 145px; }
}
@media (prefers-reduced-motion: reduce) {
    .housing-carousel-track, .housing-carousel[data-enhanced] .housing-carousel-viewport { transition: none; }
}
