/* Round 11: keep the familiar two-column property modal until phone widths. */
@media(min-width:680px) and (max-width:1100px){
 .property-detail-shell.open{display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
 .property-detail-modal{
  display:grid!important;grid-template-columns:minmax(0,48fr) minmax(0,52fr)!important;
  width:min(100% - 24px,1060px)!important;height:min(760px,calc(100dvh - 24px))!important;
  max-height:calc(100dvh - 24px)!important;overflow:hidden!important;
 }
 .property-detail-gallery{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;overflow:hidden!important}
 #propertyDetailMain,.property-detail-main{height:auto!important;min-height:0!important;flex:1 1 auto!important;max-height:none!important}
 .property-detail-photo-wrap{height:100%!important}
 .property-detail-thumbs{flex:0 0 auto!important}
 .property-detail-content{height:100%!important;max-height:100%!important;overflow-y:auto!important;padding:clamp(14px,2.2vw,26px)!important}
 .property-detail-keygrid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
 .property-detail-keygrid>*{min-width:0!important;padding:clamp(5px,1vw,11px)!important}
 .property-detail-keygrid strong{font-size:clamp(11px,1.4vw,18px)!important;overflow-wrap:anywhere!important}
 .property-detail-heading{margin-bottom:clamp(8px,1.2vw,18px)!important}
 .property-detail-heading h2{font-size:clamp(21px,3vw,32px)!important}
 .property-protection{font-size:clamp(10px,1.2vw,13px)!important}
}
@media(min-width:680px) and (max-width:760px){
 .property-detail-modal{grid-template-columns:minmax(0,46fr) minmax(0,54fr)!important}
 .property-detail-content{padding:12px!important}
 .property-detail-keygrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:679px){
 .property-detail-modal{display:block!important}
 .property-detail-gallery{display:flex!important;flex-direction:column!important}
 .property-detail-keygrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(prefers-reduced-motion:reduce){.property-detail-modal{scroll-behavior:auto!important}}
/* Unified backend progress indicators: progress and success green, errors red. */

/* A responsive layout must never reveal a closed property dialog. */
.property-detail-shell:not(.open){display:none!important;pointer-events:none!important}
/* Keep navigation behind an open dialog without changing the gallery/360 layering. */
body:has(#propertyDetailShell.open)>header.nav-wrap{z-index:0!important;isolation:isolate}
