
/* CPN Real Estate v1.6.18 — The sheet scrolls INSIDE its own rounded bounds. */
@media (max-width:699px) {
  .cpn-ui-portal.cpn-ui-mobile .cpn-ui-popover {
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    overscroll-behavior:contain!important;
    max-height:min(76dvh,640px)!important;
    width:calc(100vw - 20px)!important;
    max-width:calc(100vw - 20px)!important;
    border-radius:24px!important;
    padding:13px 12px 12px!important;
    touch-action:pan-y;
  }
  .cpn-ui-portal.cpn-ui-mobile .cpn-ui-popup-heading {
    position:relative;flex:0 0 auto;
    padding:8px 9px 13px;
    margin:0 0 6px;
  }
  .cpn-ui-portal.cpn-ui-mobile [data-cpn-ui-content] {
    display:block;
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding:4px 3px 7px;
    border-radius:0 0 13px 13px;
  }
  .cpn-ui-portal.cpn-ui-mobile [data-cpn-ui-content]::-webkit-scrollbar { display:none; }
  .cpn-ui-portal.cpn-ui-mobile .cpn-ui-options { min-width:0; }
}
/* Headline, address, and price now immediately follow the image gallery. */
.cpn-re.cpn-re-single .cpn-re-gallery { margin-bottom:18px!important; }
.cpn-re.cpn-re-single .cpn-re-property-header {
  margin:0 0 22px!important;
  padding:17px 2px 19px;
  border-bottom:1px solid var(--cpn-line,#dce5f0);
  align-items:center;
  gap:14px 22px;
}
.cpn-re.cpn-re-single .cpn-re-property-header > div:first-child{flex:1 1 350px;min-width:0;}
.cpn-re.cpn-re-single .cpn-re-property-header h1{overflow-wrap:anywhere;line-height:1.2!important;letter-spacing:-.03em;}
.cpn-re.cpn-re-single .cpn-re-single-price{flex:none;max-width:100%;}
@media(max-width:619px){
  .cpn-re.cpn-re-single .cpn-re-property-header{align-items:flex-start;}
  .cpn-re.cpn-re-single .cpn-re-single-price{font-size:clamp(24px,6vw,33px)!important;}
}
