/* City listings page + listing page (mockup build) */
.ofh-city-page,.ofh-listing-page{--g:#1f9d55;--gd:#17803f;--line:#e0e8f1}
.ofh-housing-banner[style*="--ofh-banner"]{background:linear-gradient(90deg,rgba(9,46,84,.92),rgba(9,46,84,.55)),var(--ofh-banner) center/cover no-repeat}
.ofh-lp-band{padding:18px 0 14px!important}.ofh-lp-band .ofh-housing-breadcrumb{margin:0}
/* tabs */
.ofh-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:22px 0 0;overflow-x:auto}
.ofh-tabs__tab{padding:9px 16px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ofh-navy);font-weight:700;font-size:13px;text-decoration:none;white-space:nowrap}
.ofh-tabs__tab:hover{border-color:var(--ofh-blue)}.ofh-tabs__tab.is-active{background:var(--ofh-blue);border-color:var(--ofh-blue);color:#fff}
/* layout */
.ofh-city-layout{grid-template-columns:300px minmax(0,1fr)!important}
.ofh-city-filters{padding:0!important;border:0!important;background:transparent!important;display:flex;flex-direction:column;gap:18px}
.ofh-map-wrap{position:relative;border-radius:13px;overflow:hidden;border:1px solid var(--line);background:#e8eef5}
.ofh-map{height:260px;width:100%;z-index:0}
.ofh-map-search{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:500;background:#fff;color:var(--ofh-blue);border:1px solid var(--ofh-blue);border-radius:999px;padding:8px 16px;font-weight:800;font-size:13px;cursor:pointer;box-shadow:0 4px 14px rgba(9,46,84,.18)}
.ofh-map-clear{position:absolute;top:10px;right:10px;z-index:500;background:#fff;border-radius:8px;padding:5px 10px;font-size:12px;font-weight:700;text-decoration:none;color:var(--ofh-navy)}
.ofh-pin{width:200px}.ofh-pin img{display:block;width:100%;height:auto;border-radius:6px;margin-bottom:6px}.ofh-pin a{font-weight:800;color:var(--ofh-navy)}.ofh-pin p{margin:2px 0 0}
.ofh-refine{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px;display:flex;flex-direction:column;gap:18px}
.ofh-city-filters>h2{font-size:18px;margin:0}
.ofh-refine fieldset{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.ofh-refine legend{font-weight:800;font-size:14px;color:var(--ofh-navy);padding:0;margin-bottom:6px}
.ofh-check{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--ofh-text);cursor:pointer}
.ofh-check input{width:16px;height:16px;accent-color:var(--ofh-blue);margin:0}.ofh-check em{margin-left:auto;font-style:normal;color:#7b8da0;font-size:13px}
.ofh-rent-range{display:flex;align-items:center;gap:8px}.ofh-rent-range input{width:100%;min-width:0;padding:9px 10px;border:1px solid #cfd9e5;border-radius:8px;font:inherit}
/* results head */
.ofh-housing-results-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.ofh-housing-count{font-size:22px;margin:0;color:var(--ofh-navy);letter-spacing:-.4px}
.ofh-housing-sort{display:flex;align-items:center;gap:8px;font-size:14px}
/* badges */
.ofh-badges{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.ofh-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:800;line-height:1.2}
.ofh-badge--hud{background:#e5f6ec;color:var(--gd);border:1px solid #b9e3c9}.ofh-badge--hud:before{content:"✓"}
.ofh-badge--afford{background:#e8f0fc;color:#0b4fa8;border:1px solid #c5d8f4}
.ofh-badge--pet{background:#e8f0fc;color:#0b4fa8;border:1px solid #c5d8f4}
.ofh-hud-label{display:inline-block;margin-top:4px;font-size:11px;font-weight:800;letter-spacing:.4px;color:#5a6f84;text-transform:uppercase}
/* card */
.ofh-lc-list{display:flex;flex-direction:column;gap:16px}
.ofh-lc{position:relative;display:grid;grid-template-columns:260px minmax(0,1fr);min-width:0;background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}
.ofh-lc__photo{position:relative;display:block;background:#e8eef5;min-height:190px;width:100%;overflow:hidden}
.ofh-lc__photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ofh-lc__nophoto,.ofh-gallery__none{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#6b8096;font-weight:700;font-size:13px;background:#eaf0f7}
.ofh-lc__nophoto svg,.ofh-gallery__none svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ofh-lc__tag{position:absolute;left:10px;top:10px;background:rgba(9,46,84,.88);color:#fff;font-size:11px;font-weight:800;padding:4px 9px;border-radius:6px;z-index:2}
.ofh-lc__body{padding:16px 18px;display:flex;flex-direction:column;min-width:0}
.ofh-lc__title{margin:0;font-size:18px;letter-spacing:-.3px;padding-right:38px}.ofh-lc__title a{color:var(--ofh-navy);text-decoration:none}
.ofh-lc__address{margin:4px 0 0;font-size:13px;color:#5a6f84}
.ofh-lc__facts{display:flex;flex-wrap:wrap;gap:14px;margin:6px 0 0;font-size:13px;color:var(--ofh-text);font-weight:600}
.ofh-lc__price{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-top:auto;padding-top:12px}
.ofh-lc__rent{margin:0;font-size:22px;font-weight:800;color:var(--ofh-navy)}.ofh-lc__rent small{font-size:13px;font-weight:600;color:#5a6f84}
.ofh-lc__btn{background:var(--ofh-blue);color:#fff;text-decoration:none;font-weight:800;font-size:14px;padding:10px 20px;border-radius:8px;white-space:nowrap}.ofh-lc__btn:hover{background:#0753a8}
.ofh-lc__via{margin:8px 0 0;font-size:11px;color:#8a9bad}
/* heart */
.ofh-heart{position:absolute;top:12px;right:12px;z-index:3;width:34px;height:34px;border-radius:50%;border:0;background:#fff;box-shadow:0 2px 8px rgba(9,46,84,.18);cursor:pointer;display:grid;place-items:center;padding:0}
.ofh-heart svg{width:19px;height:19px;fill:none;stroke:#c1384e;stroke-width:2}.ofh-heart.is-saved svg{fill:#e0425c;stroke:#e0425c}
.ofh-heart--inline{position:static;flex:none;box-shadow:none;border:1px solid var(--line)}
/* listing page */
.ofh-lp{padding-top:22px;padding-bottom:50px}
.ofh-listing-page .ofh-lp{padding-top:6px}
.ofh-lp__grid{display:block}
.ofh-lp__summary{margin-top:24px}
.ofh-gallery{display:grid;grid-template-columns:2.7fr 1fr;grid-template-rows:repeat(3,1fr);gap:8px;height:clamp(280px,34vw,520px);border-radius:13px;overflow:hidden;position:relative}
.ofh-gallery.is-single{display:block}
.ofh-gallery button{border:0;padding:0;background:#e8eef5;cursor:zoom-in;position:relative;overflow:hidden}
.ofh-gallery img{width:100%;height:100%;object-fit:cover;display:block}
.ofh-gallery__main{grid-row:1/4}.ofh-gallery__none{position:relative;min-height:220px;border-radius:13px}
.ofh-gallery__count{position:absolute;right:10px;bottom:10px;background:rgba(9,46,84,.85);color:#fff;font-size:12px;font-weight:800;padding:3px 9px;border-radius:6px}
.ofh-lp__titlerow{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.ofh-lp__titlerow h1{margin:0;font-size:clamp(24px,2.4vw,32px);letter-spacing:-.8px;flex:1 1 260px;color:var(--ofh-navy)}
.ofh-lp__rent strong{font-size:26px;color:var(--ofh-navy)}.ofh-lp__rent small{color:#5a6f84;font-weight:600}
.ofh-lp__address{margin:6px 0 4px;color:#5a6f84}
.ofh-lp__facts{margin:10px 0 0}
.ofh-lp__cta{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.ofh-btn{display:inline-flex;justify-content:center;align-items:center;gap:6px;padding:13px 22px;border-radius:9px;font-weight:800;font-size:15px;text-decoration:none;flex:1 1 200px;text-align:center;border:2px solid var(--ofh-blue)}
.ofh-btn--primary{background:var(--ofh-blue);color:#fff}.ofh-btn--ghost{background:#fff;color:var(--ofh-blue)}
.ofh-hud{border:2px solid #cfe0f4;background:#f3f8fe;border-radius:13px;padding:18px 20px;margin-top:6px}
.ofh-hud h2{margin:0 0 12px;font-size:18px;color:var(--ofh-navy)}
.ofh-hud__row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ofh-hud__row span{display:block;font-size:12px;font-weight:800;color:#5a6f84}.ofh-hud__row strong{font-size:17px;color:var(--ofh-navy)}
.ofh-hud__meta{font-size:13px;color:#5a6f84;margin:12px 0 8px}.ofh-hud__notice{font-size:12px;line-height:1.55;color:#4d6176;margin:8px 0 14px}.ofh-hud__none{font-weight:700;color:var(--ofh-navy);margin:0 0 6px}
.ofh-hud .ofh-header__cta{display:flex;justify-content:center;background:var(--g)!important;color:#fff!important;border-radius:9px;padding:14px 20px;font-weight:800;text-decoration:none}
.ofh-hud .ofh-header__cta:hover{background:var(--gd)!important}
.ofh-hud--assist .ofh-btn{width:100%;flex:none}
.ofh-lp__credit{font-size:12px;color:#7b8da0;margin:14px 0 0}.ofh-lp__credit a{color:inherit}
.ofh-lp__tabs{margin-top:34px;border-top:1px solid var(--line);padding-top:6px}
.ofh-lp__tablist{display:flex;gap:6px;border-bottom:1px solid var(--line);overflow-x:auto}
.ofh-lp__tablist button{background:none;border:0;border-bottom:3px solid transparent;padding:14px 16px;font:inherit;font-weight:800;color:#5a6f84;cursor:pointer;white-space:nowrap}
.ofh-lp__tablist button[aria-selected=true]{color:var(--ofh-blue);border-bottom-color:var(--ofh-blue)}
.ofh-lp__panel{padding:22px 0;color:var(--ofh-text);line-height:1.7;max-width:900px}
.ofh-lp__dl{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin:0}.ofh-lp__dl div{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 14px}.ofh-lp__dl dt{font-size:12px;font-weight:800;color:#7b8da0}.ofh-lp__dl dd{margin:2px 0 0;font-weight:700;color:var(--ofh-navy)}
.ofh-lp__amen{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px 18px}.ofh-lp__amen li:before{content:"✓ ";color:var(--g);font-weight:800}
.ofh-property-back{display:inline-block;margin-top:10px;font-weight:700;color:var(--ofh-blue);text-decoration:none}
/* lightbox */
.ofh-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(5,15,28,.94);display:flex;align-items:center;justify-content:center}.ofh-lightbox[hidden]{display:none}
.ofh-lightbox img{max-width:min(92vw,1200px);max-height:84vh;object-fit:contain}
.ofh-lightbox button{position:absolute;background:rgba(255,255,255,.12);color:#fff;border:0;cursor:pointer;border-radius:50%;width:46px;height:46px;font-size:30px;line-height:1}
.ofh-lightbox__x{top:18px;right:18px}.ofh-lightbox__prev{left:18px;top:50%}.ofh-lightbox__next{right:18px;top:50%}.ofh-lightbox__n{position:absolute;bottom:18px;left:0;right:0;text-align:center;color:#fff;font-weight:700;margin:0}
/* responsive */
@media(max-width:1000px){.ofh-city-layout{grid-template-columns:1fr!important}}
@media(max-width:640px){.ofh-lc{grid-template-columns:1fr}.ofh-lc__photo{aspect-ratio:16/10;min-height:0}.ofh-hud__row{grid-template-columns:1fr}.ofh-map{height:220px}.ofh-gallery{aspect-ratio:4/3}}

/* icons + reference polish */
.ofh-ico{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px;margin-right:6px}
.ofh-lc__facts span,.ofh-lp__facts span{display:inline-flex;align-items:center}
.ofh-lp__address{display:flex;align-items:center}.ofh-lp__address .ofh-ico{color:#c1384e;margin-right:6px}
.ofh-lp__rent{text-align:right}.ofh-lp__rent .ofh-hud-label{display:block;margin-top:2px}
.ofh-hud h2{display:flex;align-items:center}.ofh-hud h2 .ofh-ico{width:22px;height:22px;margin-right:10px}
.ofh-hud .ofh-header__cta:before{content:"✓";display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;color:var(--g);font-size:14px;margin-right:10px}
.ofh-hud .ofh-header__cta:after{content:"›";margin-left:12px;font-size:20px}
.ofh-btn .ofh-ico{margin-right:8px}
.ofh-lp-band .ofh-housing-breadcrumb a{text-decoration:none}

.ofh-gallery.is-single button{display:block;width:100%;height:100%}
.ofh-gallery.is-single{height:clamp(280px,34vw,520px)}
.ofh-hud a.ofh-header__cta::before{content:"✓"!important;display:inline-grid!important;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;color:var(--g);font-size:14px;margin-right:10px;position:static!important;inset:auto!important;transform:none!important}
.ofh-hud a.ofh-header__cta::after{content:"›"!important;margin-left:12px;font-size:20px;position:static!important;inset:auto!important}

/* Boxed hero + light breadcrumb (reference) */
.ofh-housing-page>.ofh-housing-banner.ofh-city-wrap,.ofh-housing-page>.ofh-housing-banner.ofh-lp-band{background:none;padding:18px 0 0;color:inherit;overflow:visible}
.ofh-housing-page>.ofh-housing-banner.ofh-lp-band{padding-bottom:0}
.ofh-city-hero{min-height:230px;display:flex;flex-direction:column;justify-content:center;padding:34px 42px;border-radius:10px;color:#fff;background:linear-gradient(90deg,rgba(7,24,50,.82) 0%,rgba(7,24,50,.55) 50%,rgba(7,24,50,.1) 100%),var(--ofh-banner,none) center/cover no-repeat,#0b3560}
.ofh-city-hero h1{margin:0 0 12px;line-height:1.12;letter-spacing:-.6px;color:#fff;font-size:inherit}
.ofh-city-hero h1 span{display:block;font-size:clamp(17px,1.6vw,22px);font-weight:500;letter-spacing:-.2px}
.ofh-city-hero h1 strong{display:block;font-size:clamp(28px,3vw,40px);font-weight:800;color:var(--ofh-yellow,#ffcc42)}
.ofh-city-hero p{max-width:560px;margin:0;font-size:14px;line-height:1.55;color:#fff}
.ofh-housing-hero-plain{color:#fff}
.ofh-crumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:11px;color:#52657a;margin:12px 0 0}.ofh-crumbs a{color:#52657a;text-decoration:none}.ofh-crumbs a:hover{color:var(--ofh-blue)}.ofh-crumbs [aria-current]{color:var(--ofh-navy);font-weight:600}
.ofh-lp__crumbs{margin:0 0 14px}
.ofh-search-btn{background:var(--ofh-blue)!important;color:#fff!important;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.ofh-search-btn .ofh-ico{margin:0;width:15px;height:15px}
@media(max-width:640px){.ofh-city-hero{padding:26px 22px;min-height:190px}}
/* detail page columns (reference) */
.ofh-lp__cols{display:grid;grid-template-columns:1.15fr 1fr;gap:34px;margin-top:30px;align-items:start}
.ofh-lp__col h2{font-size:17px;margin:0 0 12px;color:var(--ofh-navy)}
.ofh-lp__table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);font-size:13px}
.ofh-lp__table th,.ofh-lp__table td{text-align:left;padding:9px 12px;border:1px solid var(--line);vertical-align:top}
.ofh-lp__table th{width:36%;font-weight:600;color:#44586d;background:#fafcfe}.ofh-lp__table td{color:var(--ofh-navy)}
.ofh-lp__desc{margin-top:20px;color:var(--ofh-text);line-height:1.7;font-size:14px}.ofh-lp__desc h3{font-size:15px;margin:0 0 6px}
.ofh-lp__contact{margin-top:22px}.ofh-lp__contact p{font-size:13px;color:#52657a;line-height:1.55;margin:0 0 12px}
.ofh-lp__contact .ofh-btn{display:flex;width:100%;margin-top:8px;padding:11px 18px;font-size:14px}
.ofh-lp__important{margin-top:30px;background:#eef5fc;border:1px solid #d3e2f3;border-radius:10px;padding:16px 22px}
.ofh-lp__important h2{display:flex;align-items:center;font-size:15px;margin:0 0 8px;color:var(--ofh-navy)}
.ofh-lp__important ul{margin:0;padding-left:20px;font-size:12px;line-height:1.7;color:#44586d}
.ofh-lp__important .ofh-ico{color:var(--ofh-blue)}
@media(max-width:900px){.ofh-lp__cols{grid-template-columns:1fr}}
.ofh-housing-page>.ofh-housing-banner.ofh-city-wrap{padding-bottom:30px}
.ofh-city-page .ofh-housing-topsearch{margin-top:0}
.ofh-housing-page>.ofh-housing-banner.ofh-lp-band{padding-top:16px}

.ofh-lp__tabs{margin-top:28px}
.ofh-lp__panel .ofh-lp__table{max-width:760px}
.ofh-lp__contactbox{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px 22px;margin-top:10px}
.ofh-lp__contactbox h2{font-size:17px;margin:0 0 6px;color:var(--ofh-navy)}.ofh-lp__contactbox p{margin:0}
.ofh-lp__contactbtns{display:flex;gap:10px}.ofh-lp__contactbox .ofh-btn{margin:0;flex:1}
@media(max-width:760px){.ofh-lp__contactbox{grid-template-columns:1fr}.ofh-lp__contactbtns{flex-direction:column}}
/* A supplied photo failed to load; keep the original layout and explain the empty state. */
.ofh-photo-unavailable{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;text-align:center;background:#eaf0f7;color:#536d88;font-size:14px;font-weight:700;line-height:1.5}
.ofh-gallery__main:disabled{cursor:default;opacity:1}
.ofh-gallery__main img[hidden],.ofh-lc__photo img[hidden]{display:none}
.ofh-lightbox__error{color:#fff;text-align:center;padding:60px;max-width:650px}

/* ==== v10: inner pages follow the global site grid, header/footer and button behaviour ==== */
/* Same content width + side padding as the homepage / info pages (1600px, --ofh-gutter). */
.ofh-housing-page .ofh-container{max-width:1600px;width:100%;margin-inline:auto;padding-inline:var(--ofh-gutter);box-sizing:border-box}
/* Global header (same values as body:not(.home) in header-global.css) - undo the old 1280px housing override. */
body:has(.ofh-housing-page,.ofhv-shell,.ofhc-page,.ofh-start) .ofh-header__inner{max-width:1600px;padding:18px var(--ofh-gutter);gap:22px;min-height:96px}
/* Global footer (footer.css) - undo the old 1280px housing override. */
body:has(.ofh-housing-page,.ofhv-shell,.ofhc-page,.ofh-start) .ofh-footer{margin:0;padding:0;border-radius:0}
body:has(.ofh-housing-page,.ofhv-shell,.ofhc-page,.ofh-start) .ofh-footer>.ofh-container{max-width:1600px;padding:42px clamp(24px,4.3vw,69px) 30px}
/* Breadcrumb sits on the same left edge as the content, full width. */
.ofh-crumbs{width:100%;font-size:12px}
/* Hero lock (reference): city photo, left-to-right navy overlay, white line + site yellow city name. */
.ofh-city-hero{background:linear-gradient(90deg,rgba(6,22,52,.8) 0%,rgba(6,22,52,.5) 45%,rgba(6,22,52,.06) 100%),var(--ofh-banner,none) center/cover no-repeat,#0b3560}
.ofh-city-hero h1 strong{color:var(--ofh-yellow)}
/* One button hover for every inner-page button: same skewed sweep as .ofh-header__cta. */
.ofh-btn,.ofh-lc__btn,.ofh-search-btn{position:relative;isolation:isolate;overflow:hidden;transition:color .25s ease,border-color .25s ease,background-color .25s ease;cursor:pointer}
.ofh-btn::before,.ofh-lc__btn::before,.ofh-search-btn::before{content:'';position:absolute;left:-12%;top:0;width:0;height:100%;transform:skewX(-20deg);pointer-events:none;z-index:-1;transition:width .7s cubic-bezier(.77,0,.175,1)}
.ofh-btn--primary::before,.ofh-lc__btn::before,.ofh-search-btn::before{background:var(--ofh-navy)}
.ofh-btn--ghost::before{background:var(--ofh-blue)}
.ofh-btn:hover::before,.ofh-btn:focus-visible::before,.ofh-lc__btn:hover::before,.ofh-lc__btn:focus-visible::before,.ofh-search-btn:hover::before,.ofh-search-btn:focus-visible::before{width:130%}
.ofh-btn--primary:hover,.ofh-btn--primary:focus-visible{background:var(--ofh-blue);border-color:var(--ofh-navy);color:#fff}
.ofh-btn--ghost:hover,.ofh-btn--ghost:focus-visible{background:#fff;border-color:var(--ofh-blue);color:#fff}
.ofh-lc__btn:hover,.ofh-lc__btn:focus-visible{background:var(--ofh-blue);color:#fff}
.ofh-search-btn,.ofh-search-btn:hover,.ofh-search-btn:focus-visible{background:var(--ofh-blue)!important;color:#fff!important;border:0!important;min-height:50px;font-size:13px;font-weight:800;padding-inline:22px;border-radius:8px}
.ofh-btn .ofh-ico,.ofh-search-btn .ofh-ico{position:relative;z-index:1}
@media(prefers-reduced-motion:reduce){.ofh-btn,.ofh-lc__btn,.ofh-search-btn,.ofh-btn::before,.ofh-lc__btn::before,.ofh-search-btn::before{transition:none!important}}
/* Filter tabs: same hover language (outline to blue). */
.ofh-tabs__tab{transition:background-color .25s ease,border-color .25s ease,color .25s ease}
.ofh-tabs__tab:hover{border-color:var(--ofh-blue);color:var(--ofh-blue)}.ofh-tabs__tab.is-active:hover{color:#fff}
.ofh-gallery{grid-template-columns:minmax(0,2.7fr) minmax(0,1fr);max-width:100%}.ofh-gallery button,.ofh-gallery img{min-width:0;max-width:100%}

/* ==== v11: exact reference lock (city + listing mockup) ==== */
/* filter pills: filled light-blue inactive, deep-blue active */
.ofh-tabs{gap:10px;padding-top:18px}
.ofh-tabs__tab{background:#e3ecf7;border:0;color:var(--ofh-navy);padding:9px 18px;font-weight:700;font-size:13px}
.ofh-tabs__tab:hover{background:#d3e2f4;color:var(--ofh-navy)}
.ofh-tabs__tab.is-active,.ofh-tabs__tab.is-active:hover{background:#0b3f8f;color:#fff}
/* sidebar: plain, no card; square option boxes like the mockup */
.ofh-refine{background:transparent;border:0;border-radius:0;padding:0;gap:20px}
.ofh-city-filters>h2{font-size:17px;margin:4px 0 0}
.ofh-check input[type=radio],.ofh-check input[type=checkbox]{-webkit-appearance:none;appearance:none;width:15px;height:15px;border:1.5px solid #8ea3b8;border-radius:3px;background:#fff;display:inline-grid;place-content:center;flex:none}
.ofh-check input:checked{background:var(--ofh-blue);border-color:var(--ofh-blue)}
.ofh-check input:checked::after{content:'';width:8px;height:4px;border:2px solid #fff;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px)}
/* detail page: gallery proportions (big photo left, three thumbs right) */
.ofh-gallery{grid-template-columns:minmax(0,1.75fr) minmax(0,1fr);height:clamp(300px,34vw,520px)}
/* detail page: two columns - tabbed Property Details left, Location + Contact right */
.ofh-lp__cols{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:32px;margin-top:28px;align-items:start}
.ofh-lp__col h2{font-size:17px;margin:0 0 12px;color:var(--ofh-navy)}
.ofh-lp__col--main .ofh-lp__tabs{margin-top:0;border-top:0;padding-top:0}
.ofh-lp__tablist{gap:2px}.ofh-lp__tablist button{padding:10px 14px;font-size:14px}
.ofh-lp__panel{max-width:none;padding:16px 0 0}
.ofh-lp__table{width:100%;max-width:none}
.ofh-lp__col--side .ofh-area-map iframe{height:190px;border-radius:8px}
.ofh-lp__contact{margin-top:22px}
.ofh-lp__contact .ofh-btn{display:flex;width:100%;margin-top:10px}
.ofh-lp__important h2{gap:10px}.ofh-lp__i{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--ofh-blue);color:#fff;font:800 13px/1 var(--ofh-font)}
@media(max-width:900px){.ofh-lp__cols{grid-template-columns:1fr}}
.ofh-lp__cols>*{min-width:0}@media(max-width:900px){.ofh-lp__cols{grid-template-columns:minmax(0,1fr)}}

/* ==== v12: proportions measured from the reference mockup (kept in step at every desktop width) ==== */
/* city hero: wide and short, text block left, proportions scale with the hero width */
.ofh-housing-page>.ofh-housing-banner.ofh-city-wrap{padding:8px 0 0}
.ofh-city-hero{container-type:inline-size;box-sizing:border-box;width:100%;height:clamp(230px,calc((min(100vw,1600px) - 2*var(--ofh-gutter,48px))/3.52),380px);padding:0 clamp(22px,3.3cqw,52px);border-radius:7px;justify-content:center}
.ofh-city-hero h1{margin:0 0 clamp(8px,1.6cqw,24px)}
.ofh-city-hero h1 span{font-size:clamp(17px,2.9cqw,30px);font-weight:500;line-height:1.25;letter-spacing:0}
.ofh-city-hero h1 strong{font-size:clamp(30px,4.4cqw,62px);line-height:1.12;font-weight:800;letter-spacing:-.5px}
.ofh-city-hero p{font-size:clamp(14px,2cqw,21px);line-height:1.55;font-weight:500;max-width:min(65cqw,720px);color:#fff}
@media(max-width:640px){.ofh-city-hero{height:auto;min-height:230px;padding-block:28px}}
/* breadcrumbs: blue links like the reference */
.ofh-crumbs{gap:9px;font-size:13px;margin:12px 0 0;color:#2f5e9e}.ofh-crumbs a{color:#2764b3}.ofh-crumbs a:hover{color:var(--ofh-navy)}.ofh-crumbs [aria-current]{color:#6b8bb8;font-weight:500}
.ofh-crumbs span[aria-hidden]{color:#2f5e9e}
.ofh-city-wrap+.ofh-container,.ofh-city-wrap~.ofh-housing-topsearch{margin-top:14px}
.ofh-lp-band .ofh-crumbs{margin:0;color:#3a5a85}.ofh-lp-band .ofh-crumbs a{color:#3a5a85}.ofh-lp-band .ofh-crumbs [aria-current]{color:#1c3558;font-weight:600}
.ofh-housing-page>.ofh-housing-banner.ofh-lp-band{padding:16px 0 0!important}
.ofh-lp{padding-top:14px}
/* listing card: photo inset inside the white card, rounded; facts divided by thin lines */
.ofh-lc{grid-template-columns:minmax(210px,36%) minmax(0,1fr);padding:7px;gap:0;border-radius:12px;box-shadow:0 4px 18px rgba(9,46,84,.05)}
.ofh-lc__photo{border-radius:9px;min-height:170px}
.ofh-lc__body{padding:10px 14px 10px 18px}
.ofh-lc__facts span+span{border-left:1px solid #cfd9e5;margin-left:12px;padding-left:12px}
.ofh-lc__facts{gap:0}
.ofh-badge--pet .ofh-ico{width:13px;height:13px;margin-right:0}
/* listing gallery: reference ratio (about 1.9:1, big photo ~72%, three thumbs ~28%), capped on huge screens */
.ofh-gallery{grid-template-columns:minmax(0,2.64fr) minmax(0,1fr);gap:7px;border-radius:12px;height:clamp(280px,calc((min(100vw,1600px) - 2*var(--ofh-gutter,48px))/1.9),600px)}
.ofh-gallery.is-single{height:clamp(280px,calc((min(100vw,1600px) - 2*var(--ofh-gutter,48px))/1.9),600px)}
/* listing title row: large bold title left, price right */
.ofh-lp__summary{margin-top:20px}
.ofh-lp__titlerow h1{font-size:clamp(26px,3.2vw,46px);letter-spacing:-1px;font-weight:800}
.ofh-lp__rent strong{font-size:clamp(22px,2.2vw,32px)}
.ofh-lp__address{font-size:clamp(15px,1.2vw,18px);margin:8px 0 10px}

.ofh-lp__loc{position:relative}
.ofh-lp__locaddr{position:absolute;right:12px;bottom:12px;max-width:52%;background:#fff;border-radius:8px;padding:8px 12px;box-shadow:0 4px 14px rgba(9,46,84,.18);font-size:12px;line-height:1.4;color:var(--ofh-navy);display:flex;flex-direction:column;gap:3px}
.ofh-lp__locaddr a{color:var(--ofh-blue);font-weight:800;text-decoration:none}

/* ==== v14: housing pages start below a normal-flow white header (no overlay on the breadcrumb/hero) ==== */
body:has(.ofh-housing-page,.ofhv-shell,.ofhc-page,.ofh-start) .ofh-header:not(.is-scroll-header):not(.is-drawer-open){position:relative;top:auto;left:auto;right:auto;z-index:950;background:#fff;border-bottom:1px solid #e4ebf2;box-shadow:none}
body:has(.ofh-housing-page,.ofhv-shell,.ofhc-page,.ofh-start) .ofh-header.is-scroll-header.is-over-dark{background:#fff}
/* mobile: the desktop card/gallery rules above must not undo the single-column layout */
@media(max-width:640px){
 .ofh-lc{grid-template-columns:minmax(0,1fr)}
 .ofh-lc__photo{min-height:0;aspect-ratio:16/10}
 .ofh-lc__body{padding:12px 6px 8px}
 .ofh-gallery{height:auto;aspect-ratio:4/3}
 .ofh-gallery.is-single{height:auto;aspect-ratio:4/3}
}

/* ==== v16 ==== */
/* No-photo listing: the gallery is only as tall as its placeholder (no empty band below it). */
.ofh-gallery:has(>.ofh-gallery__none){display:block;height:auto;aspect-ratio:auto}
.ofh-gallery>.ofh-gallery__none{position:relative;min-height:clamp(200px,24vw,320px)}
/* Logged-in admin bar: the housing header is in normal flow, so the old fixed-offset (top:32px/46px) must not shift it. */
body.admin-bar:has(.ofh-housing-page,.ofhv-shell,.ofhc-page,.ofh-start) .ofh-header:not(.is-scroll-header):not(.is-drawer-open){top:auto!important}

.ofh-hud__vlink{margin:12px 0 0;text-align:center;font-size:13px;color:#52657a}.ofh-hud__vlink a{color:var(--ofh-blue);font-weight:700}.ofh-hud__vlink a:hover{color:var(--ofh-navy)}
