/* Property history: scoped additions; existing navigation and current inventory layout are retained. */
.sgph-eyebrow{margin:0 0 10px!important;color:#c9a24b!important;font-family:inherit;font-size:12px!important;font-weight:600;line-height:1.5;letter-spacing:.12em;text-transform:uppercase}
.sgph-notice{display:flex;align-items:center;justify-content:space-between;gap:clamp(20px,4vw,48px);margin:24px 0 32px;padding:clamp(20px,3vw,32px);border:1px solid #5b4b27;border-radius:12px;background:#121310;color:#eeeee8;box-sizing:border-box}
.sgph-notice>div{min-width:0;max-width:780px}.sgph-notice h2{margin:0 0 12px!important;font-size:clamp(22px,2.3vw,30px)!important;line-height:1.25!important;color:#fff!important;overflow-wrap:anywhere}.sgph-notice p{margin:0 0 12px;line-height:1.65;color:#d1d1c9;font-size:16px}.sgph-notice p:last-child{margin-bottom:0}.sgph-notice .sgph-date{font-size:13px;color:#aaa99f}.sgph-notice .bp-button{flex-shrink:0;white-space:nowrap;min-height:46px}
.sgph-empty-gallery{display:grid;justify-items:center;overflow:hidden;border:1px solid #34382f;border-radius:12px;background:#11120f;margin:24px 0 32px}.sgph-empty-gallery img{display:block;width:100%;height:auto;max-height:360px;object-fit:contain}.sgph-empty-gallery p{font-size:14px;line-height:1.5;color:#b8b9ae;margin:0 20px 24px;text-align:center}
.sgph-history-root .sg-archive-heading .sgph-history-intro{display:block!important;max-width:800px;margin:12px 0 24px!important;color:#c8c9be!important;font-size:17px;line-height:1.65}.sgph-history-root .sg-archive-heading{margin-bottom:24px}.sgph-history-root .sgph-eyebrow{display:block!important}
.sgph-history-filters{display:flex;align-items:end;flex-wrap:wrap;gap:16px;margin:28px 0 20px;padding:20px;border:1px solid #34382f;border-radius:12px;background:#11120f}.sgph-history-filters label{display:flex;flex:1 1 180px;flex-direction:column;gap:8px;min-width:0;color:#ddd;font-size:14px}.sgph-history-filters select{width:100%;min-height:46px;padding:10px 34px 10px 12px;border:1px solid #4a4d42;border-radius:6px;background:#1b1d18;color:#fff;font:inherit;font-size:16px;color-scheme:dark}.sgph-history-filters .bp-button{min-height:46px;white-space:nowrap}.sgph-history-filters>a{padding:12px;color:#d3af5c;white-space:nowrap}.sgph-results-count{margin:20px 0;color:#c8c9be;line-height:1.5}
.bp-root .sg-archive .sg-archive-results.sgph-history-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;width:100%;max-width:none;margin:0;padding:0}
.bp-root .sgph-history-root .sgph-history-grid .bp-property-card.sg-uniform-card{width:100%!important;max-width:none!important;min-width:0;min-height:182px;height:auto!important;margin:0!important;box-sizing:border-box}
.bp-root .sgph-history-root .sgph-history-grid .sg-uniform-card .sg-property-card__whole{height:100%!important;display:grid!important;grid-template-columns:116px minmax(0,1fr)!important;gap:14px!important;align-items:center!important;padding:12px!important;box-sizing:border-box}
.bp-root .sgph-history-root .sgph-history-grid .sg-card-photo{width:116px!important;height:150px!important;min-width:0;border-radius:6px}.bp-root .sgph-history-root .sgph-history-grid .sg-card-photo img{display:block;width:100%;height:100%;object-fit:cover}.bp-root .sgph-history-root .sgph-history-grid .sg-card-photo img[src*="property-placeholder"]{object-fit:contain;background:#11120f}
.bp-root .sgph-history-root .sgph-history-grid .sg-card-copy{display:flex!important;flex-direction:column!important;gap:5px!important;height:auto!important;min-width:0;padding:0!important}.bp-root .sgph-history-root .sgph-history-grid .bp-property-card.sg-uniform-card[data-sg-property-card] h3{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal!important;font-size:16px!important;line-height:1.35!important;max-height:none!important;height:auto!important;margin:0!important;overflow:hidden;overflow-wrap:anywhere}.sgph-history-root .sg-card-status{font-size:12px!important;line-height:1.4!important;white-space:normal!important}.sgph-history-root .sg-card-location,.sgph-history-root .sg-card-facts{font-size:13px!important;line-height:1.4!important}.sgph-history-root .sg-card-price{font-size:16px!important;line-height:1.4!important;white-space:normal!important}.sgph-history-root .sg-card-price small{display:block;color:#aaa;font-size:11px;font-weight:400;line-height:1.4}.sgph-history-root .bp-property-card__action{display:none!important}
.sgph-pagination{margin:32px 0}.sgph-pagination ul.page-numbers{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;list-style:none!important;margin:0!important;padding:0!important}.sgph-pagination li{margin:0;padding:0}.sgph-pagination a,.sgph-pagination span.page-numbers{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 12px;box-sizing:border-box;border:1px solid #4a4d42;border-radius:6px;color:#fff;text-decoration:none}.sgph-pagination span.current{background:#c9a24b;border-color:#c9a24b;color:#000}.sgph-pagination a:hover{border-color:#c9a24b;color:#d3af5c}
.sgph-history-cta{padding:clamp(24px,5vw,48px);margin:36px 0 24px;border:1px solid #5b4b27;border-radius:12px;background:#121310;text-align:center}.sgph-history-cta h2{font-size:clamp(23px,3vw,34px)!important;line-height:1.3!important;margin:0 auto 16px!important;max-width:850px;color:#fff!important}.sgph-history-cta p{max-width:700px;margin:0 auto 24px;color:#c8c9be;line-height:1.6}.sgph-history-cta .bp-button{display:inline-flex;min-height:46px;white-space:nowrap}.sgph-text-link{display:inline-block;margin:12px 20px;color:#d3af5c!important}.sgph-price-note{max-width:850px;margin:24px auto;text-align:center;color:#aaa99f;font-size:13px;line-height:1.7}
.sgph-history-root :is(a,button,select):focus-visible,.sgph-notice a:focus-visible{outline:2px solid #d3af5c;outline-offset:4px}
.sg-shared-property-page .bp-property-page :is(.sgsp-layout,.sgsp-main-column,.sgsp-contact,.bp-property-content,.bp-property-prose){min-width:0;max-width:100%;box-sizing:border-box}.sg-shared-property-page .bp-property-prose{overflow-wrap:anywhere}.sg-shared-property-page .bp-property-prose table{display:block;max-width:100%;overflow-x:auto}.sg-shared-property-page .bp-property-prose img{max-width:100%;height:auto}.sg-shared-property-page .bp-detail-list dd{min-width:0;overflow-wrap:anywhere}.sg-shared-property-page .bp-property-heading h1{overflow-wrap:anywhere}.sg-shared-property-page .bp-property-question__panel{min-width:0;max-width:100%}
@media(max-width:1250px){.bp-root .sg-archive .sg-archive-results.sgph-history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.sgph-notice{flex-direction:column;align-items:stretch;margin:18px 0 24px;gap:20px;padding:20px}.sgph-notice .bp-button{align-self:flex-start}.sgph-notice p{font-size:15px}.bp-root .sg-archive .sg-archive-results.sgph-history-grid{grid-template-columns:minmax(0,1fr);gap:14px}.sgph-history-filters{gap:14px;padding:16px}.sgph-history-filters label{flex-basis:100%}.sgph-history-filters .bp-button{flex:1}.sgph-history-root .sg-property-categories{flex-wrap:wrap!important;white-space:normal!important;overflow:visible!important}.sgph-history-root .sg-property-categories a{white-space:nowrap}.sgph-history-cta{padding:26px 20px}.sgph-history-cta .sgph-text-link{display:block;margin:20px 0 0}.sg-shared-property-page .sgsp-contact .bp-button{font-size:14px!important;white-space:nowrap!important}.sg-shared-property-page .bp-property-question__panel{overflow-wrap:anywhere}}
@media(max-width:380px){.bp-root .sgph-history-root .sgph-history-grid .sg-uniform-card .sg-property-card__whole{grid-template-columns:88px minmax(0,1fr)!important;gap:10px!important;padding:10px!important}.bp-root .sgph-history-root .sgph-history-grid .sg-card-photo{width:88px!important;height:140px!important}.bp-root .sgph-history-root .sgph-history-grid .bp-property-card.sg-uniform-card[data-sg-property-card] h3{font-size:15px!important}.sgph-notice{padding:18px}.sgph-notice .bp-button{font-size:14px!important;max-width:100%}}
@media(prefers-reduced-motion:reduce){.sgph-history-root *,.sgph-notice *{scroll-behavior:auto!important;transition:none!important}}

.bp-root .sg-archive .sg-archive-results.sgph-history-grid .bp-property-card.sg-uniform-card[data-sg-property-card] h3{-webkit-line-clamp:2!important;line-clamp:2!important;white-space:normal!important;max-height:none!important;height:auto!important;}

/* A visible six-property preview, reusing the existing archive card design. */
.sgph-preview{clear:both;margin-top:40px;padding-top:32px;border-top:1px solid #34382f;scroll-margin-top:110px}
.sgph-preview-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin:0 0 22px}
.sgph-preview-heading>div{min-width:0;max-width:760px}
.sgph-preview-heading h2{margin:0 0 12px!important;font-size:clamp(24px,2.4vw,32px)!important;line-height:1.25!important;color:#eeeee8!important}
.sgph-preview-heading p:not(.sgph-eyebrow){margin:0;color:#bdbfb5;font-size:16px;line-height:1.65}
.sgph-sort-note{color:#bdbfb5;font-size:13px;line-height:1.5;margin:0;flex-shrink:0}
.sgph-preview-heading>.sgph-sort-note{padding:8px 12px;border:1px solid #34382f;border-radius:20px;margin-top:4px}
.sgph-preview-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;margin-top:24px}
.sgph-preview-actions .bp-button{white-space:nowrap;min-height:46px;font-size:15px!important}
.sgph-history-return{display:flex;align-items:center;gap:18px;margin:12px 0 28px;padding:16px 18px;background:#121310;border:1px solid #34382f;border-radius:12px}
.sgph-history-return .bp-button{min-height:44px;white-space:nowrap;flex-shrink:0;font-size:15px!important}
.sgph-history-return>span{color:#bdbfb5;line-height:1.5;font-size:15px}
.sgph-history-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;margin-bottom:18px}
.sgph-history-toolbar .sgph-results-count{margin:0}
.sgph-history-root .sg-card-status{color:#d5b56d;overflow:visible!important;white-space:normal!important;text-overflow:clip!important}
@media(min-width:768px) and (max-width:1450px){.bp-root .sg-archive .sg-archive-results.sgph-history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){
 .sgph-preview{margin-top:28px;padding-top:24px}
 .sgph-preview-heading{display:block;margin-bottom:20px}
 .sgph-preview-heading>.sgph-sort-note{display:inline-block;margin-top:14px;font-size:12px}
 .sgph-preview-heading p:not(.sgph-eyebrow){font-size:15px}
 .sgph-preview-actions{flex-direction:column;gap:4px}
 .sgph-preview-actions .bp-button{font-size:14px!important;padding-inline:18px;max-width:100%;box-sizing:border-box}
 .sgph-preview-actions .sgph-text-link{margin:14px 0 0}
 .sgph-history-return{align-items:flex-start;flex-direction:column;gap:12px;margin:0 0 22px;padding:16px}
 .sgph-history-return>span{font-size:14px}
 .sgph-history-root .sg-archive-heading{display:block!important}
 .sgph-history-toolbar{margin-bottom:16px}
}

/* Current property CTAs: immediately after the available homes, left aligned. */
.bp-root .sg-archive .sg-contact-actions{display:grid!important;grid-template-columns:minmax(0,1.65fr) minmax(0,.9fr) minmax(0,1.15fr)!important;width:min(100%,640px)!important;max-width:640px!important;min-width:0!important;margin:20px 0 0!important;justify-content:start!important;align-items:stretch!important;gap:10px!important}
.bp-root .sg-archive .sg-contact-actions a.bp-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important;min-width:0!important;min-height:46px!important;max-width:100%;padding:9px 12px!important;box-sizing:border-box!important;white-space:nowrap!important;font-size:14px!important;line-height:1.25!important;gap:7px!important}
.bp-root .sg-archive .sg-contact-actions a.bp-button :is(span,svg){flex-shrink:0}
.sgph-preview-actions{justify-content:flex-start!important}
@media(max-width:600px){
 .bp-root .sg-archive .sg-contact-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:16px 0 0!important;width:100%!important;max-width:100%!important}
 .bp-root .sg-archive .sg-contact-actions>a:first-child{grid-column:1/-1!important}
 .bp-root .sg-archive .sg-contact-actions a.bp-button{font-size:14px!important;min-height:44px!important;padding-inline:9px!important}
 .sgph-preview-actions{align-items:flex-start!important}
}
@media(max-width:335px){.bp-root .sg-archive .sg-contact-actions a.bp-button{font-size:12.5px!important;padding-inline:6px!important;gap:4px!important}}

@media(max-width:319px){body.sgpa-page .sg-fa-tier-2{grid-template-columns:minmax(0,1fr)!important}}

/* Keep archive enquiry controls in the site's black-and-gold palette. */
.bp-root .sg-archive .sg-contact-actions a[href^="https://wa.me/"]{background:#1b1d18!important;color:#f0eee6!important;border:1px solid #8b7444!important;box-shadow:none!important}
.bp-root .sg-archive .sg-contact-actions a[href^="https://wa.me/"] :is(svg,path){color:#c9a24b!important;stroke:#c9a24b!important}
.bp-root .sg-archive .sg-contact-actions a[href^="https://wa.me/"]:hover{background:#2a2d24!important;border-color:#c9a24b!important}
@media(max-width:767px){.bp-root .sg-archive.sg-map-switch-past-results .sg-mobile-map-switch{display:none!important}}

/* SG unified action geometry: active results and history use matching grid edges. */
body.sgpa-page .sg-archive .sg-contact-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;width:calc((100% - 24px)*.38)!important;min-width:0!important;max-width:none!important;margin:20px 0 0!important;padding:0!important;align-items:stretch!important;justify-content:stretch!important}
body.sgpa-page .sg-archive .sg-contact-actions>a.bp-button{display:flex!important;justify-content:center!important;align-items:center!important;gap:5px!important;min-width:0!important;width:100%!important;min-height:52px!important;height:52px!important;box-sizing:border-box!important;padding:8px 6px!important;font-size:clamp(11px,1vw,14px)!important;font-weight:700!important;line-height:1.15!important;text-align:center!important;white-space:nowrap!important;border-radius:7px!important}
body.sgpa-page .sg-archive .sg-contact-actions>a.bp-button svg{width:17px!important;height:17px!important;flex:0 0 17px!important}
body.sgpa-page .sg-archive .sg-contact-actions>a[href^="https://wa.me/"]{background:#25d366!important;border:1px solid #25d366!important;color:#09180e!important}
body.sgpa-page .sg-archive .sg-contact-actions>a[href^="https://wa.me/"] :is(svg,path){color:#09180e!important;stroke:#09180e!important}
body.sgpa-page .sg-archive .sg-contact-actions>a[href^="https://wa.me/"]:hover{background:#1fbd5a!important;border-color:#1fbd5a!important}
body.sgpa-page .sg-archive .sgph-preview{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:40px 0 0!important;padding:30px 0 0!important}
body.sgpa-page .sg-archive .sgph-preview-heading{display:flex!important;align-items:start!important;justify-content:space-between!important;gap:20px!important}
body.sgpa-page .sg-archive .sgph-preview-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;justify-content:stretch!important;gap:10px!important;width:min(100%,520px)!important;max-width:520px!important;margin:24px 0 0!important;padding:0!important}
body.sgpa-page .sg-archive .sgph-preview-actions>a{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:100%!important;min-height:52px!important;height:52px!important;box-sizing:border-box!important;margin:0!important;padding:9px 10px!important;border-radius:7px!important;font-size:clamp(12px,1vw,14px)!important;font-weight:700!important;line-height:1.2!important;white-space:nowrap!important;text-align:center!important;text-decoration:none!important}
body.sgpa-page .sg-archive .sgph-preview-actions>a.sgph-text-link{background:#1b1d18!important;border:1px solid #b89950!important;color:#f1eee7!important}
body.sgpa-page .sg-archive .sgph-preview-actions>a.sgph-text-link:hover{background:#292d25!important;border-color:#d9b965!important}
@media(min-width:768px) and (max-width:1100px){body.sgpa-page .sg-archive .sg-contact-actions{width:calc((100% - 24px)*.50)!important}body.sgpa-page .sg-archive .sg-contact-actions>a.bp-button{font-size:11px!important}}
@media(max-width:767px){body.sgpa-page .sg-archive .sg-contact-actions{width:100%!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:16px 0 0!important}body.sgpa-page .sg-archive .sg-contact-actions>a:first-child{grid-column:auto!important}body.sgpa-page .sg-archive .sg-contact-actions>a.bp-button{font-size:clamp(10px,2.6vw,13px)!important;min-height:48px!important;height:48px!important;padding:8px 4px!important;gap:4px!important}body.sgpa-page .sg-archive .sg-contact-actions>a.bp-button svg{width:15px!important;height:15px!important;flex:0 0 15px!important}body.sgpa-page .sg-archive .sgph-preview{margin-top:28px!important;padding-top:24px!important}body.sgpa-page .sg-archive .sgph-preview-heading{display:block!important}body.sgpa-page .sg-archive .sgph-preview-actions{width:100%!important;max-width:none!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:20px!important}body.sgpa-page .sg-archive .sgph-preview-actions>a{min-height:48px!important;height:48px!important;font-size:clamp(10px,2.8vw,13px)!important;padding:8px 5px!important}}
@media(max-width:350px){body.sgpa-page .sg-archive .sg-contact-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}body.sgpa-page .sg-archive .sg-contact-actions>a:first-child{grid-column:1/-1!important}body.sgpa-page .sg-archive .sg-contact-actions>a.bp-button{font-size:12px!important}body.sgpa-page .sg-archive .sgph-preview-actions{grid-template-columns:minmax(0,1fr)!important}body.sgpa-page .sg-archive .sgph-preview-actions>a{font-size:13px!important}}

/* Match the two tablet grid ratios used by the original live listing workspace. */
@media(min-width:768px) and (max-width:1023.98px){body.sgpa-page .sg-archive .sg-contact-actions{width:calc((100% - 16px)*.50)!important}}
@media(min-width:1024px) and (max-width:1100px){body.sgpa-page .sg-archive .sg-contact-actions{width:calc((100% - 24px)*.40)!important}}
