/* Property details have one scroll owner: the content between header and actions. */
html.property-modal-open{overflow:hidden;overscroll-behavior:none;scroll-behavior:auto}
.marketplace-page #propertyModal{padding:20px;align-items:center;overflow:hidden;overscroll-behavior:contain}
.marketplace-page #propertyModal>.modal-card{
  display:flex;flex-direction:column;width:min(1180px,100%);height:min(960px,calc(100dvh - 40px));
  max-height:calc(100dvh - 40px);min-height:0;padding:0;overflow:hidden;
  background:#fff;backdrop-filter:none;transform:none!important;animation:none;border-radius:24px;
}
.marketplace-page #propertyModal .modal-topbar{
  position:relative;top:auto;flex:0 0 auto;gap:16px;margin:0;padding:18px 24px;
  background:#fff;backdrop-filter:none;border-bottom:1px solid #dfe7e2;
}
.marketplace-page #propertyModal .modal-topbar>div{min-width:0}
.marketplace-page #propertyModal .modal-topbar h3{margin:8px 0 0;font-size:clamp(19px,2vw,27px);line-height:1.25;overflow-wrap:anywhere}
.marketplace-page #propertyModal .modal-topbar h3:focus{outline:none}
.marketplace-page #propertyModal .modal-feed-return{flex:0 0 auto;min-height:44px}
.marketplace-page #propertyModal .modal-grid{
  flex:1 1 auto;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
  scroll-behavior:auto;scroll-padding-block:20px;overflow-anchor:none;touch-action:auto;
  padding:24px;gap:24px;align-content:start;-webkit-overflow-scrolling:touch;
}
.marketplace-page #propertyModal .modal-visual{position:static;top:auto;align-self:start;min-width:0;max-height:none;overflow:visible}
.marketplace-page #propertyModal .modal-image{animation:none;transform:none;will-change:auto}
.marketplace-page #propertyModal .modal-gallery-grid{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:3px;scrollbar-width:thin}
.marketplace-page #propertyModal .gallery-thumb{flex:0 0 92px;min-width:0;gap:5px;font-size:11px}
.marketplace-page #propertyModal .gallery-thumb img{width:100%;height:64px;object-fit:cover;border-radius:8px}
.marketplace-page #propertyModal .modal-copy{min-width:0;padding-bottom:0}
.marketplace-page #propertyModal .modal-action-bar{
  position:static!important;inset:auto!important;flex:0 0 auto;display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0!important;
  padding:12px 24px!important;border:0;border-top:1px solid #dfe7e2;border-radius:0;
  background:#fff;box-shadow:none;z-index:auto;
}
.marketplace-page #propertyModal .modal-action-bar>*{min-width:0;min-height:48px;padding:10px!important;font-size:12px!important;white-space:normal}
@media(max-width:820px){
  .marketplace-page #propertyModal{padding:0;align-items:stretch}
  .marketplace-page #propertyModal>.modal-card{height:100dvh;max-height:100dvh;border-radius:0}
  .marketplace-page #propertyModal .modal-topbar{padding:calc(14px + env(safe-area-inset-top)) 16px 14px;align-items:flex-start}
  .marketplace-page #propertyModal .modal-state-row{display:none}
  .marketplace-page #propertyModal .modal-topbar h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:19px}
  .marketplace-page #propertyModal .modal-topbar .eyebrow{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:65vw}
  .marketplace-page #propertyModal .modal-grid{grid-template-columns:minmax(0,1fr);padding:16px;gap:20px}
  .marketplace-page #propertyModal .modal-image{height:clamp(220px,50vw,360px)}
  .marketplace-page #propertyModal .modal-gallery-head{align-items:flex-start;flex-direction:column;gap:4px}
  .marketplace-page #propertyModal .modal-gallery-head span{text-align:left;font-size:12px}
  .marketplace-page #propertyModal .modal-action-bar{gap:6px;padding:10px 8px calc(10px + env(safe-area-inset-bottom))!important}
  .marketplace-page #propertyModal .modal-action-bar>*{font-size:11px!important;padding:9px 5px!important}
}
