/* Oct 5 listing pass: left-aligned price/address, inquiry inside the listing-agent card, wider location map. Loaded last on public pages.
   Same root prefix as listing-reference.css so these rules outrank the older property-page layers. */

/* ===== Price and address under the gallery, aligned with the main photo's left edge ===== */
/* Flex-wrap keeps Save / Share / Compare on the right while they fit and drops them beneath the address when they don't. */
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 32px;margin:24px 0 26px}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-summary-main{flex:1 1 440px;min-width:0;max-width:none;text-align:left}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-summary .aw-lpx-meta{justify-content:flex-start}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-actions{position:relative;display:flex;flex:none;align-items:center;gap:10px}
@media (max-width:759px){
 html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-summary{gap:14px;margin:16px 0 18px}
 html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
}

/* ===== Inquiry form inside the listing professional card ===== */
/* An open form leaves the sticky rail in the page flow so every field is reachable with ordinary page scrolling. */
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-rail.is-asking .aw-lpx-rail-stick{position:static;max-height:none;overflow:visible}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-pro.is-asking :is(.aw-lpx-pro-photo,.aw-lpx-pro-teaser){display:none!important}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-ask-toggle[aria-expanded=true]{border-color:var(--lpx-line-strong)!important;background:var(--lpx-card)!important;color:var(--lpx-link)!important}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-ask-toggle[aria-expanded=true]:hover{border-color:var(--lpx-blue)!important;background:var(--lpx-tint)!important}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-pro-inquiry{scroll-margin:calc(var(--lpx-top) + 16px) 0 16px}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-pro-inquiry:not([hidden]){display:grid;gap:16px;margin:18px 0 0;padding:18px 0 0;border-top:1px solid var(--lpx-line)}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-inquiry-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-inquiry-head h3{color:var(--lpx-ink)!important;font:700 21px/1.2 'Source Sans 3',system-ui,sans-serif!important;letter-spacing:-.01em}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-inquiry-head h3:focus{outline:none}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-inquiry-head p{margin:4px 0 0!important;color:var(--lpx-muted)!important;font:400 15px/1.4 'Source Sans 3',system-ui,sans-serif!important}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-inquiry-close{display:grid!important;place-items:center;flex:none;width:44px!important;height:44px!important;min-height:44px!important;margin:-9px -10px 0 0!important;padding:0!important;border:0!important;border-radius:50%!important;background:none!important;box-shadow:none!important;color:var(--lpx-ink)!important;cursor:pointer}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-inquiry-close:hover{background:var(--lpx-cool)!important}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-pro-links{display:grid;margin-top:10px}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-pro.is-asking .aw-lpx-pro-links{margin-top:18px}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-pro-links .aw-lpx-outline-button{width:100%;min-height:50px!important;border-color:var(--lpx-line-strong)!important}

/* ===== Location: wide map, compact schools (or access) beside it, documents directly beneath it ===== */
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-lower{display:block;margin-top:var(--lpx-gap)}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-area{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,380px);grid-template-rows:auto 1fr;grid-template-areas:'map side' 'docs side';gap:20px 24px;align-items:start;min-width:0}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-map-block{grid-area:map;min-width:0}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-side-card{grid-area:side;min-width:0}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-map{position:relative;height:clamp(480px,38vw,560px)!important;min-height:0!important;margin:0!important;border:1px solid var(--lpx-line)!important;border-radius:8px!important;overflow:hidden}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-docs{grid-area:docs;box-sizing:border-box;min-width:0;padding:16px 20px 18px;border:1px solid var(--lpx-line);border-radius:10px;background:var(--lpx-card);scroll-margin-top:calc(var(--lpx-top) + 16px)}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-docs .aw-lpx-card-head{margin-bottom:12px}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-docs .aw-lpx-head-icon{width:28px;height:30px}
html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-docs h2{font-size:22px!important;letter-spacing:-.01em!important}

/* ===== Tablet: schools below the map; the professional card spans both columns while the form is open ===== */
@media (max-width:1099px){
 html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-area{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:'map' 'side' 'docs'}
 html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-map{height:clamp(380px,52vw,460px)!important}
 html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-pro :is(.aw-lpx-pro-links,.aw-lpx-direct){grid-column:1}
 html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-pro-photo{grid-row:2/span 4}
 html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-pro.is-asking{display:block}
 html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-pro.is-asking>:not(h2){max-width:640px}
}

/* ===== Phone ===== */
@media (max-width:759px){
 html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-area{gap:16px}
 html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-map{height:340px!important}
 html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-docs{padding:14px 14px 16px}
 html[data-aw-theme] body.pm-public main .aw-reference-property.aw-lp.aw-lpx .aw-lpx-docs h2{font-size:20px!important}
}
