/* Oak & Avenue V85.5 — consistent editorial layouts, no empty right rail */
html body .cms-section:has(> [data-listings="buy"]),html body .cms-section:has(> [data-listings="rent"]){width:100%!important;max-width:none!important;box-sizing:border-box!important;padding:clamp(28px,4vw,65px) clamp(18px,4.5vw,90px)!important}
html body .cms-section .oa-v85-listing-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;max-width:none!important;box-sizing:border-box!important;gap:clamp(20px,2.5vw,38px)!important;margin:28px 0 0!important;align-items:stretch!important}
html body .oa-v85-listing-grid>.oa-v85-item{min-width:0!important;width:100%!important;grid-column:span 1!important}
html body .oa-v85-listing-grid>.oa-v85-showcase{grid-column:1/-1!important}
html body .oa-v85-listing-grid .cms-card{display:flex!important;flex-direction:column!important;width:100%!important;height:100%!important;box-sizing:border-box!important;border:1px solid #e5e0d5!important;border-radius:2px!important;overflow:hidden!important;background:#fcfaf5!important;box-shadow:none!important}
html body .oa-v85-listing-grid .cms-photo{display:block!important;position:relative!important;flex:none!important;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:16/10!important;overflow:hidden!important;background:#e9e5db!important}
html body .oa-v85-listing-grid .cms-photo img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
html body .oa-v85-listing-grid .cms-card-body{padding:clamp(17px,2vw,27px)!important;flex:1!important}
html body .oa-v85-listing-grid .cms-card-body h3{font-size:clamp(19px,1.6vw,25px)!important;line-height:1.25!important}
html body .oa-v85-listing-grid .cms-listing-address{font-size:clamp(14px,1.1vw,17px)!important;line-height:1.5!important}
html body .oa-v85-listing-grid .cms-card-body strong{font-size:clamp(18px,1.65vw,24px)!important;color:#24231f!important}
/* Showcase: one full-width card, equal image and content columns */
html body .oa-v85-listing-grid>.oa-v85-showcase .cms-card{display:grid!important;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)!important;min-height:clamp(340px,37vw,540px)!important;align-items:stretch!important}
html body .oa-v85-listing-grid>.oa-v85-showcase .cms-photo{aspect-ratio:auto!important;height:100%!important;min-height:340px!important;max-height:none!important;align-self:stretch!important}
html body .oa-v85-listing-grid>.oa-v85-showcase .cms-card-body{padding:clamp(25px,4vw,65px)!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;gap:10px!important;background:#f0ece3!important}
html body .oa-v85-listing-grid>.oa-v85-showcase .cms-card-body:before{content:'FEATURED PROPERTY';font:700 11px/1.5 Arial,sans-serif;letter-spacing:.18em;color:#8e7447}
html body .oa-v85-listing-grid>.oa-v85-showcase .cms-card-body>*{max-width:100%!important}
html body .oa-v85-listing-grid>.oa-v85-showcase .cms-listing-headline{font-size:clamp(25px,2.7vw,42px)!important;line-height:1.14!important}
html body .oa-v85-listing-grid>.oa-v85-showcase .cms-listing-address{font-size:clamp(17px,1.5vw,23px)!important}
html body .oa-v85-listing-grid>.oa-v85-showcase .cms-card-body strong{font-size:clamp(22px,2vw,32px)!important}
/* Gallery: the main photo gets approximately half the page, smaller images fill the other half */
html body #detail{max-width:none!important;width:100%!important;padding:0 clamp(14px,3.5vw,70px)!important;box-sizing:border-box!important;margin:22px auto!important}
html body #detail .oa-v85-gallery-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;width:100%!important;height:clamp(360px,54vw,750px)!important;gap:10px!important}
html body #detail .oa-v85-gallery-grid button{grid-column:auto!important;grid-row:auto!important;display:block!important;position:relative!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;padding:0!important;aspect-ratio:auto!important;cursor:zoom-in!important;overflow:hidden!important;background:#262626!important;border:0!important}
html body #detail .oa-v85-gallery-grid button:first-child{grid-column:1/3!important;grid-row:1/3!important}
html body #detail .oa-v85-gallery-grid button img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;pointer-events:none!important}
html body #detail .oa-v85-gallery-grid button:focus-visible{outline:3px solid #b69b67!important;outline-offset:-3px!important}
html body .oa-v85-lightbox[hidden]{display:none!important}
html body .oa-v85-lightbox:not([hidden]){position:fixed!important;inset:0!important;z-index:2147483647!important;width:100vw!important;height:100vh!important;height:100dvh!important;padding:42px 0 68px!important;box-sizing:border-box!important;background:#090a0b!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
html body .oa-v85-lightbox>.oa-v85-full-image{display:block!important;width:100%!important;height:100%!important;max-width:100vw!important;max-height:calc(100dvh - 110px)!important;min-width:0!important;min-height:0!important;object-fit:contain!important;flex:1 1 auto!important}
html body .oa-v85-lightbox .oa-v85-prev,html body .oa-v85-lightbox .oa-v85-next{position:absolute!important;top:50%!important;transform:translateY(-50%)!important;z-index:5!important;background:rgba(12,12,12,.7)!important;border-radius:50%!important;font-size:30px!important}
html body .oa-v85-lightbox .oa-v85-close{position:absolute!important;right:14px!important;top:10px!important;z-index:6!important}
html body .oa-v85-lightbox .oa-v85-count{position:absolute!important;bottom:52px!important;left:0!important;right:0!important;text-align:center!important;color:#fff!important}
html body .oa-v85-lightbox .oa-v85-strip{position:absolute!important;bottom:6px!important;left:12px!important;right:12px!important;display:flex!important;justify-content:center!important;max-height:44px!important;overflow-x:auto!important}
html body.oa-v85-gallery-open{overflow:hidden!important}
html body:has(#detail) header{background:#222624!important;color:#f6f0e5!important}
html body:has(#detail) header nav a,html body:has(#detail) header .oa-header-phone{color:#f6f0e5!important}
@media(max-width:760px){html body .cms-section .oa-v85-listing-grid{grid-template-columns:1fr!important;gap:22px!important}html body .oa-v85-listing-grid>.oa-v85-showcase{grid-column:1!important}html body .oa-v85-listing-grid>.oa-v85-showcase .cms-card{display:flex!important;flex-direction:column!important;min-height:0!important}html body .oa-v85-listing-grid>.oa-v85-showcase .cms-photo{height:auto!important;min-height:0!important;aspect-ratio:16/10!important}html body .oa-v85-listing-grid>.oa-v85-showcase .cms-card-body{padding:24px!important}html body #detail .oa-v85-gallery-grid{height:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto!important;gap:7px!important}html body #detail .oa-v85-gallery-grid button{height:auto!important;aspect-ratio:4/3!important}html body #detail .oa-v85-gallery-grid button:first-child{grid-column:1/-1!important;grid-row:auto!important;aspect-ratio:16/11!important}html body .oa-v85-lightbox:not([hidden]){padding:48px 0 68px!important}html body .oa-v85-lightbox>.oa-v85-full-image{max-height:calc(100dvh - 116px)!important}}
/* Fill the secondary gallery area even when there are fewer than five photos. */
html body #detail .oa-v85-gallery-grid:has(>button:nth-child(4):last-child)>button:nth-child(4){grid-column:3/5!important}
html body #detail .oa-v85-gallery-grid:has(>button:nth-child(3):last-child)>button:nth-child(2){grid-column:3/5!important}
html body #detail .oa-v85-gallery-grid:has(>button:nth-child(3):last-child)>button:nth-child(3){grid-column:3/5!important}
html body #detail .oa-v85-gallery-grid:has(>button:nth-child(2):last-child)>button:nth-child(2){grid-column:3/5!important;grid-row:1/3!important}
html body #detail .oa-v85-gallery-grid:has(>button:first-child:last-child)>button:first-child{grid-column:1/-1!important}
/* Search results use the same editorial layout and width. */
html body .oa-search-results-wrap,html body #oa-search-results{width:100%!important;max-width:none!important;box-sizing:border-box!important}
html body #oa-search-results.oa-v85-listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body #oa-search-results.oa-v85-listing-grid>.oa-v85-showcase{grid-column:1/-1!important}
html body:has([data-listings="buy"]) header,html body:has([data-listings="rent"]) header{background:#222624!important;color:#f6f0e5!important}
html body:has([data-listings="buy"]) header nav a,html body:has([data-listings="rent"]) header nav a{color:#f6f0e5!important}
@media(max-width:760px){html body #oa-search-results.oa-v85-listing-grid{grid-template-columns:1fr!important}html body #detail .oa-v85-gallery-grid button:not(:first-child){grid-column:auto!important;grid-row:auto!important}html body #detail .oa-v85-gallery-grid button:first-child{grid-column:1/-1!important;grid-row:auto!important}}
