/* Compact shared pages. The photo homepage keeps its established viewport layout. */
body:not(:has(.home)) #main{padding-bottom:0}
body:not(:has(.home)) .page{min-height:0;padding-top:30px;padding-bottom:28px}
body:not(:has(.home)) .page-head{margin-bottom:22px}
body:not(:has(.home)) .section-rule{margin-top:28px;padding-top:24px}
body:not(:has(.home)) .formwrap>p{margin-top:12px;margin-bottom:22px}
body:not(:has(.home)) .section-caption{margin-top:27px;margin-bottom:17px}
body:not(:has(.home)) .post-submit{margin-top:22px;padding-bottom:0}
body:not(:has(.home))>.site-legal-footer{min-height:0;padding:10px 20px;gap:8px 22px}
.about-page .about-faq{margin-top:24px}
.about-page .about-faq-group{margin-top:20px}
.about-page .about-faq-group+.about-faq-group{margin-top:24px;padding-top:20px}
.about-page .about-faq-group h3{margin-bottom:12px}
.about-page .faq-item summary{min-height:50px;padding:12px 17px}
.about-page .faq-item p{padding:16px 17px 18px;line-height:1.65}
.about-page .about-actions{margin-top:20px;gap:20px;flex-wrap:wrap}
.about-page .about-actions .report-link{margin-top:0}
body:has(.beta-page) .beta-page{justify-content:flex-start}
.listing-detail .detail-top{margin-bottom:14px}
.listing-detail .listing-information{margin-top:22px}
.profile-page .profile-listings{margin-top:26px;padding-top:24px}
.agents-page .agent-cards{margin-top:22px}
.agents-page{padding-bottom:92px!important}
.agent-post-action{position:fixed;left:20px;bottom:20px;z-index:29;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:12px 18px;border:2px solid var(--navy,#19324d);border-radius:26px;background:var(--navy,#19324d);color:var(--paper,#f8f6f0);box-shadow:0 4px 16px #19324d22;text-decoration:none;font-size:13px;font-weight:500;white-space:nowrap}
.agent-post-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.agent-post-action:is(:hover,:focus-visible){background:var(--paper,#f8f6f0);color:var(--navy,#19324d);outline-offset:3px}
.portal-body .portal-main{min-height:0;padding-top:28px;padding-bottom:28px}
.portal-body .portal-narrow{margin-top:12px;margin-bottom:12px}
.portal-body .portal-page-heading{margin-bottom:22px}
@media(max-width:760px){
 body:not(:has(.home)) #main{padding-bottom:calc(var(--bottom) + 28px)}
 body:not(:has(.home)) .page{padding-top:24px;padding-bottom:18px;min-height:0}
 body:not(:has(.home)) .page-head{margin-bottom:20px}
 body:not(:has(.home))>.site-legal-footer{position:fixed;left:0;right:0;bottom:var(--bottom);z-index:30;box-sizing:border-box;height:28px;min-height:0;margin:0;padding:4px 8px;gap:12px;flex-wrap:nowrap;background:var(--canvas);border-top:1px solid var(--line)}
 body:not(:has(.home))>.site-legal-footer a{font-size:10px;line-height:1.2;white-space:nowrap;text-underline-offset:2px}
 body:not(:has(.home))>.site-legal-footer .fair-housing-link{gap:4px}
 body:not(:has(.home))>.site-legal-footer .fair-housing-link svg{width:12px;height:12px}
 .about-page .about-faq{margin-top:22px}
 .about-page .about-faq-group+.about-faq-group{margin-top:22px;padding-top:18px}
 .about-page .faq-item{margin-top:8px}
 .about-page .faq-item summary{padding:12px 15px;font-size:14px}
 .about-page .faq-item p{padding:16px 15px 18px;font-size:13px}
 .about-page .about-actions{margin-top:18px;gap:16px}
 .agent-post-action{left:14px;bottom:calc(var(--bottom) + 40px);padding:11px 15px;font-size:12px}
 .agents-page{padding-bottom:82px!important}
 .portal-body{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
 .portal-body .portal-main{padding-top:24px;padding-bottom:20px}
 .portal-body .portal-footer{position:fixed;left:0;right:0;bottom:calc(64px + env(safe-area-inset-bottom));height:28px;z-index:29;box-sizing:border-box;display:flex;align-items:center;padding:4px 8px;margin:0;font-size:10px;gap:12px;background:var(--paper)}
}
/* Shared card actions keep the existing desktop layout. */
.simple-property .card-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:8px}
.simple-property .card-actions>a,.simple-property .card-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;margin:0;padding:4px 0;background:transparent;border:0;border-radius:2px;color:var(--navy,#19324d);font-size:13px;font-weight:500;line-height:1.25;text-decoration:none;cursor:pointer}
.simple-property .card-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}
.simple-property .card-actions :is(a,button):is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:4px}
.simple-property .card-actions :is(a,button):focus-visible{outline:2px solid var(--navy,#19324d);outline-offset:3px}
.simple-property .card-contact-toggle[aria-expanded=true] svg{transform:rotate(45deg)}
.simple-property .card-contact-panel[hidden]{display:none!important}
@media(max-width:760px){
/* Compact card essentials and two clearly defined actions. */
.simple-property .card-heading{margin-bottom:12px}
.simple-property .card-address .post-meta{margin:5px 0 0;font-size:10px;line-height:1.4;color:var(--muted,#63717e)}
.simple-property .home-specs{margin-top:10px;padding:9px 10px;gap:18px}
.simple-property .home-specs .highlight,.simple-property .home-specs .highlight:last-child{font-size:12px;color:var(--ink,#23384b)}
.simple-property .card-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.simple-property .card-actions>a,.simple-property .card-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;margin:0;padding:8px 12px;background:var(--surface,#eaf0f6);border:1px solid transparent;border-radius:8px;color:var(--navy,#19324d);font-size:12px;font-weight:500;line-height:1.25;text-decoration:none;cursor:pointer}
.simple-property .card-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}
.simple-property .card-actions :is(a,button):is(:hover,:focus-visible,:active){background:var(--navy,#19324d);color:var(--paper,#f8f6f0);text-decoration:none}
.simple-property .card-actions :is(a,button):focus-visible{outline:2px solid var(--navy,#19324d);outline-offset:3px}
.simple-property .card-contact-toggle[aria-expanded=true]{border-color:var(--navy,#19324d)}
.simple-property .card-contact-toggle[aria-expanded=true] svg{transform:rotate(45deg)}
.simple-property .card-contact-panel{margin-top:10px;padding:10px 10px 6px}
.simple-property .card-contact-panel[hidden]{display:none!important}
.simple-property .card-contact-panel .contact-actions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:center;gap:2px;margin:4px 0 0;width:100%}
.simple-property .card-contact-panel .contact-actions>button,.simple-property .card-contact-panel .contact-actions>a{display:flex;align-items:center;justify-content:center;min-width:0;width:100%;height:44px;min-height:44px;padding:0;border:0;border-radius:7px}
.simple-property .card-contact-panel .contact-actions :is(.contact-share,.contact-report) svg{width:20px;height:20px;stroke-width:1.6}
}
@media(max-width:760px){.portal-body .portal-mobile-nav{height:calc(64px + env(safe-area-inset-bottom));box-sizing:border-box}}
.draft-identity{display:flex;align-items:center;gap:9px;margin:0 0 22px;padding:12px 15px;background:var(--surface);border:1px solid var(--line);border-radius:8px;color:var(--navy);font-size:13px}.draft-identity strong{font-size:16px;font-weight:600}.draft-identity svg{width:16px;height:16px;margin-left:auto;fill:none;stroke:currentColor;stroke-width:1.6}
/* Brand artwork retains its colors; contact controls use a quiet surface on hover. */
.contact-actions .contact-brand-image,.contact-actions .filled-contact-icon,.contact-actions.compact .filled-contact-icon{display:block;width:32px;height:32px;flex:none;stroke:none!important;overflow:visible}
.contact-actions .contact-brand-image{object-fit:contain}
.contact-actions .phone-device{width:30px;height:34px}
.contact-app-icon.whatsapp-brand{display:flex;align-items:center;justify-content:center;width:34px;height:34px;padding:4px;background:#25d366;border-radius:8px;box-sizing:border-box}
.contact-app-icon.whatsapp-brand img{display:block;width:26px;height:26px;filter:brightness(0) invert(1)}
.contact-actions .filled-contact-icon *{stroke:none!important}
.contact-actions .gmail-brand{width:34px;height:34px}
.contact-actions button:is(:hover,:focus-visible,:active),.agent-card .contact-actions button:is(:hover,:focus-visible,:active),.contact-actions a.contact-website:is(:hover,:focus-visible,:active){background:var(--surface-deep,#dde7ef)!important;color:var(--navy)!important;outline-offset:2px}
/* The mobile navigation and legal row share the same bottom stack on every page. */
@media(max-width:760px){
 body:not(:has(.home)):not(.portal-body){padding-bottom:0!important}
 body:not(:has(.home)) #main{padding-bottom:calc(82px + env(safe-area-inset-bottom))}
 body>.bottom-nav{bottom:calc(24px + env(safe-area-inset-bottom));height:58px;padding:4px 10px 2px;border:0;background:var(--canvas);box-shadow:none}
 body>.bottom-nav a{min-height:48px}
 body:not(:has(.home))>.site-legal-footer{position:fixed;left:0;right:0;bottom:0;height:calc(24px + env(safe-area-inset-bottom));min-height:0;margin:0;padding:0 8px env(safe-area-inset-bottom);gap:12px;background:var(--canvas);border:0}
 body:not(:has(.home))>.site-legal-footer a{font-size:10px;line-height:1.2;color:var(--navy);white-space:nowrap}
 .agent-post-action{bottom:calc(94px + env(safe-area-inset-bottom))}
 .portal-body{padding-bottom:calc(82px + env(safe-area-inset-bottom))}
 .portal-body .portal-footer{bottom:0;height:calc(24px + env(safe-area-inset-bottom));padding:0 8px env(safe-area-inset-bottom);gap:12px;font-size:10px;border:0}
 .portal-body .portal-mobile-nav{bottom:calc(24px + env(safe-area-inset-bottom));height:58px;padding:4px 8px 2px;background:var(--paper);border:0}
}

.about-page>.body-copy{margin-top:0}
.listings-page .filter-bar{margin-top:0}

@media(max-width:760px){
/* The shaded filter area meets the header without a duplicate border or spacer. */
body:not(:has(.home)) .page.listings-page{padding-top:0}
body:has(.listings-page)>header{border-bottom:0}
.listings-page .filter-bar{border:0;box-shadow:none;margin-top:0;margin-bottom:8px}
.listings-page>.active-filters:empty{display:none}

}
