@import url('portal-card.css?v=20260928-layout1');
body.publico-preview .portal-body .portal-grid{display:block!important}
body.publico-preview .portal-body>.container-portal{width:min(1800px,calc(100% - 40px));max-width:1800px}
body.publico-preview #sidebarFiltros{display:block!important;position:relative!important;top:auto!important;max-height:none!important;overflow:visible!important;margin:0 0 18px;z-index:850;border-radius:18px}
body.publico-preview #sidebarFiltros .sidebar-head{display:none}
body.publico-preview #sidebarFiltros form{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px;padding:14px;height:auto}
body.publico-preview #sidebarFiltros .sidebar-scroll{padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px;overflow:visible;flex:1;min-width:0}
body.publico-preview #sidebarFiltros .sidebar-section{margin:0;min-width:150px}
body.publico-preview #sidebarFiltros .sidebar-actions{padding:0;border:0;background:none}
body.publico-preview #sidebarFiltros .sidebar-actions-grid{display:flex;gap:8px}
body.publico-preview #sidebarFiltros .sidebar-actions-grid>*{padding:0 17px;min-height:42px}
.pm-filter{position:relative;min-width:98px;color:#173f35}
.pm-filter summary{list-style:none;min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 14px;border:1px solid #d8e7e0;border-radius:12px;background:#fff;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
.pm-filter summary::-webkit-details-marker{display:none}.pm-filter summary::after{content:'⌄';font-size:16px;color:#075e54}.pm-filter[open] summary,.pm-filter.is-active summary{border-color:#075e54;background:#edf7f3;color:#075e54}
.pm-filter[open]{z-index:3}.pm-filter>.sidebar-section{position:absolute;top:calc(100% + 8px);left:0;width:290px;background:#fff;padding:18px;border:1px solid #d8e7e0;border-radius:16px;box-shadow:0 15px 40px #133d3024;z-index:3}
.pm-filter .pm-filter-done{display:block;width:100%;margin-top:16px;border:0;border-radius:10px;background:#075e54;color:#fff;padding:9px;font-size:12px;font-weight:700}
body.publico-preview #sidebarFiltros .pm-filter-search{flex:1;min-width:180px;max-width:300px}.pm-filter-search label{display:none!important}.pm-filter-search input{min-height:42px!important}
body.publico-preview #toggleMobileFilters{display:none!important}
body.publico-preview #listagem{padding:0;background:transparent;box-shadow:none;border:0;overflow:visible}
body.publico-preview #listagem>.results-head{padding:4px 0 20px}
body.publico-preview #listagem .results-top{gap:12px;flex-wrap:wrap}
body.publico-preview #listagem .results-top>div:first-child{margin-right:auto}
body.publico-preview #listagem .results-top h1{font-size:24px}
body.publico-preview #listagem .results-top p{font-size:13px}
.pm-map-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid #075e54;border-radius:12px;background:#fff;color:#075e54;padding:10px 17px;font-weight:750;white-space:nowrap}
.pm-map-toggle[aria-pressed=true]{background:#075e54;color:#fff}
.pm-results-layout{display:block;min-width:0}.pm-results-list{min-width:0}
body.publico-preview #pmResultsList>.cards-wrap{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px;padding:0}
.pm-map-panel{min-width:0}.pm-map-panel[hidden]{display:none!important}
.pm-map-sticky{position:sticky;top:100px;border-radius:22px;overflow:hidden;border:1px solid #d5e4dd;background:#eef4f1}
#pmPropertyMap{height:calc(100dvh - 130px);min-height:550px;max-height:850px;z-index:0;background:#e5efea}
.pm-map-actions{position:absolute;top:16px;left:50%;transform:translateX(-50%);display:flex;gap:7px;z-index:600;max-width:94%;white-space:nowrap}
.pm-map-actions button,#pmMapRetry{border:1px solid #d2e2da;border-radius:30px;background:#fff;color:#075e54;padding:11px 16px;box-shadow:0 4px 15px #173f352b;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer}
.pm-map-actions #pmMapArea{background:#075e54;color:#fff;border-color:#075e54}
#pmMapPanel [hidden]{display:none!important}
#pmMapStatus{position:absolute;bottom:35px;left:14px;right:14px;z-index:600;background:#fff;padding:12px;border-radius:12px;color:#496358;font-size:12px;box-shadow:0 4px 16px #173f3522}
#pmMapRetry{position:absolute;bottom:90px;left:16px;z-index:600}
.pm-map-pin{border:0!important;background:transparent!important}.pm-map-pin span{display:block;white-space:nowrap;padding:7px 10px;background:#075e54;color:#fff;font-size:12px;font-weight:800;border-radius:20px;border:2px solid #fff;box-shadow:0 3px 12px #173f3533;text-align:center}.pm-map-pin.is-approximate span{background:#fff;color:#075e54;border-color:#075e54}.pm-map-pin.is-selected span{background:#093c36;color:#fff;transform:scale(1.08)}
.leaflet-marker-icon.pm-map-cluster{border-radius:50%;background:#075e54;color:#fff;border:4px solid #d5eadd;display:flex;align-items:center;justify-content:center;font-weight:850;box-shadow:0 3px 10px #173f3526}
.pm-portal-popup .leaflet-popup-content-wrapper{padding:0;border-radius:26px;overflow:hidden}.pm-portal-popup .leaflet-popup-content{margin:0!important;width:330px!important;max-width:calc(100vw - 64px)}.pm-portal-popup a.leaflet-popup-close-button{top:10px;right:10px;width:30px;height:30px;border-radius:50%;background:#fff;color:#173f35;z-index:3;box-shadow:0 2px 8px #0002}
.pm-portal-card{--pmax-1:#075e54;--pmax-2:#0da88d;--pmax-6:#0b3b33;--border:rgba(7,94,84,.09);--shadow:0 20px 45px rgba(10,35,30,.08);font-family:inherit;font-size:14px;line-height:1.5}
.pm-portal-card .imovel-card{margin:0}.pm-portal-card .imovel-card:hover{transform:none}.pm-portal-card .imovel-image{height:220px}.pm-portal-card .imovel-actions a{color:#fff;text-decoration:none}.pm-portal-card .imovel-actions a.btn-card-soft{color:#0b3b33}.pm-portal-card .imovel-meta .meta{min-width:0}.pm-portal-card .imovel-location{flex-wrap:wrap}.pm-portal-card .imovel-title{word-break:normal}.pm-portal-card .imovel-image img{margin:0}
.pm-popup-nav{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;background:#f2f7f4;border-bottom:1px solid #e1ebe5;font-size:12px;color:#244d3f}.pm-popup-nav button{border:1px solid #d5e3dc;border-radius:8px;background:#fff;color:#075e54;padding:5px 10px}.pm-popup-location{padding:8px 14px;background:#fff;color:#6a7b71;font-size:11px}.pm-popup-loading{padding:28px;color:#496358}
#pmResultsList .imovel-card.pm-highlight{outline:3px solid #0da88d;outline-offset:2px}
.pm-map-toggle:focus-visible,.pm-filter summary:focus-visible,.pm-map-panel button:focus-visible{outline:3px solid #71b79d;outline-offset:3px}
@media(min-width:1100px){.pm-results-layout.is-map-open{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}body.publico-preview .is-map-open #pmResultsList>.cards-wrap{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.publico-preview .is-map-open #pmResultsList .imovel-body{padding:15px}body.publico-preview .is-map-open #pmResultsList .imovel-title{font-size:20px}body.publico-preview .is-map-open #pmResultsList .imovel-price{font-size:24px}body.publico-preview .is-map-open #pmResultsList .imovel-meta{gap:5px}body.publico-preview .is-map-open #pmResultsList .card-actions{gap:6px}body.publico-preview .is-map-open #pmResultsList .card-actions a{font-size:12px;padding:9px 6px}}
@media(max-width:1099px){.pm-map-sticky{position:relative;top:0;margin-bottom:20px}#pmPropertyMap{height:65dvh;min-height:440px;max-height:650px}body.publico-preview #pmResultsList>.cards-wrap{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){body.publico-preview .portal-body>.container-portal{width:calc(100% - 24px)}body.publico-preview #pmResultsList>.cards-wrap{grid-template-columns:minmax(0,1fr)!important}body.publico-preview #sidebarFiltros form{padding:12px}body.publico-preview #sidebarFiltros .sidebar-scroll{flex-basis:100%;gap:7px}body.publico-preview #sidebarFiltros .pm-filter-search{flex-basis:100%;max-width:none}.pm-filter{position:static;flex:1;min-width:95px}.pm-filter summary{font-size:12px;padding:9px 10px}.pm-filter>.sidebar-section{top:auto;left:12px!important;right:12px;width:auto!important;margin-top:8px!important}.pm-filter[open]>.sidebar-section{z-index:5}body.publico-preview #sidebarFiltros .sidebar-actions{width:100%}body.publico-preview #sidebarFiltros .sidebar-actions-grid{justify-content:flex-end}body.publico-preview #listagem .results-top>div:first-child{flex-basis:100%}body.publico-preview #listagem .order-box{flex:1;min-width:0}body.publico-preview #listagem .order-box .form-select{min-width:0;width:100%;font-size:12px}#pmPropertyMap{min-height:480px;height:70dvh}.pm-portal-popup .leaflet-popup-content{width:310px!important}.pm-portal-card .imovel-title{font-size:22px}.pm-map-actions button{font-size:11px;padding:10px 12px}}

body.publico-preview #sidebarFiltros .pm-filter-search{display:none!important}
body.publico-preview .hero{padding-top:12px;padding-bottom:0}body.publico-preview .hero-shell{padding:12px;border-radius:22px}body.publico-preview .hero-search{padding:12px}
.pm-image-unavailable::after{content:"Imagem indisponível";position:absolute;inset:0;display:grid;place-items:center;color:#71897e;font-size:13px;background:#eaf2ee}.pm-image-unavailable .imovel-badge,.pm-image-unavailable .imovel-tag{z-index:1}

/* Interaction refinement: the list owns desktop scrolling; cards do not move the map. */
.pm-centered-card:not([open]){display:none!important}
.pm-centered-card[open]{display:block;position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;padding:0;width:360px;max-width:calc(100vw - 40px);max-height:min(790px,84dvh);border:1px solid #dbe7e0;border-radius:24px;background:#fff;box-shadow:0 18px 70px #0b302b55;overflow:visible;z-index:2000;color:#173f35}
.pm-centered-body{max-height:min(790px,84dvh);overflow:auto;overscroll-behavior:contain;border-radius:24px;scrollbar-width:thin}
.pm-centered-close{position:absolute;right:10px;top:10px;z-index:5;width:34px;height:34px;display:grid;place-items:center;border:1px solid #dce8e1;border-radius:50%;background:#fff;color:#173f35;font-size:25px;line-height:1;box-shadow:0 3px 12px #173f3533;cursor:pointer}
.pm-centered-close:focus-visible{outline:3px solid #0da88d;outline-offset:2px}
.pm-centered-body>.pm-popup-nav{padding-right:52px;min-height:48px}
.pm-centered-card .pm-portal-card .imovel-card{border:0;box-shadow:none}
.pm-centered-card .pm-portal-card .imovel-body{padding:15px}
.pm-centered-card .pm-portal-card .imovel-title{min-height:0;font-size:22px;margin-bottom:6px}
.pm-centered-card .pm-portal-card .imovel-image{height:clamp(115px,23dvh,210px)}
.pm-centered-card .pm-portal-card .imovel-price{font-size:26px;margin-bottom:12px}
.pm-centered-card .pm-portal-card .imovel-construtora{margin-bottom:10px}
.pm-centered-card .pm-portal-card .imovel-location{font-size:12px}
.pm-centered-card .pm-portal-card .imovel-meta{margin-bottom:12px}
@media(min-width:1100px){
 html.pm-map-fixed,body.publico-preview.pm-map-fixed{overflow:hidden!important;overscroll-behavior:none}
 .pm-map-fixed .pm-results-layout.is-map-open{height:var(--pm-split-height,60dvh);min-height:0;overflow:hidden;align-items:stretch}
 .pm-map-fixed .is-map-open #pmResultsList{height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:3px 8px 8px 3px;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#a9cbbd transparent}
 .pm-map-fixed .pm-map-panel,.pm-map-fixed .pm-map-sticky{height:100%;min-height:0;position:relative;top:0;margin:0}
 .pm-map-fixed #pmPropertyMap{height:100%!important;min-height:0!important;max-height:none!important}
}
@media(max-width:1099px){
 body.publico-preview #toggleMobileFilters{display:inline-flex!important;align-items:center;justify-content:center;min-height:42px;gap:7px}
 body.publico-preview #sidebarFiltros:not(.active){display:none!important}
 body.publico-preview #sidebarFiltros.active{display:block!important}
 body.publico-preview #sidebarFiltros .pm-filter>.sidebar-section{position:static!important;width:auto!important;min-width:0;box-shadow:none;margin-top:8px;padding:12px;border-radius:12px}
 body.publico-preview #sidebarFiltros .pm-filter[open]{flex-basis:100%}
 .pm-centered-card[open]{width:340px;max-width:calc(100vw - 40px);max-height:78dvh;border-radius:22px}
 .pm-centered-body{max-height:78dvh;border-radius:22px}
 .pm-centered-card .pm-portal-card .imovel-image{height:clamp(90px,18dvh,150px)}
 .pm-centered-card .pm-portal-card .imovel-body{padding:13px}
 .pm-centered-card .pm-portal-card .imovel-title{font-size:20px}
 .pm-centered-card .pm-portal-card .imovel-price{font-size:24px}
 .pm-centered-card .pm-portal-card .imovel-meta .meta{padding:7px 4px}
}

@media(min-width:1100px) and (max-height:720px){body.publico-preview.pm-map-fixed .hero-shell,body.publico-preview.pm-map-fixed .hero-search{padding:7px}body.publico-preview.pm-map-fixed #sidebarFiltros form{padding:8px}body.publico-preview.pm-map-fixed #sidebarFiltros{margin-bottom:10px}body.publico-preview.pm-map-fixed #listagem>.results-head{padding-bottom:10px}body.publico-preview.pm-map-fixed .portal-body{padding-top:8px}}

/* Keep the desktop search aligned with the filters and property results. */
@media(min-width:1100px){body.publico-preview .hero>.container-portal{width:min(1800px,calc(100% - 40px));max-width:1800px}}
