/* Meu Site Imobi 16.0.62 — Portal Nacional V2
 * Camada visual isolada. Não substitui o CSS legado; apenas aprimora o portal público.
 */

body.msi-portal-public{
  --pn-blue:#123f78;
  --pn-blue-dark:#0b2d59;
  --pn-blue-soft:#eef5fc;
  --pn-ink:#142033;
  --pn-muted:#68758a;
  --pn-line:#e3e8ef;
  --pn-soft:#f7f9fc;
  --pn-white:#fff;
  font-family:"Inter",Arial,sans-serif;
  color:var(--pn-ink);
}

/* Cabeçalho: compacto, estável e com menos elementos competindo. */
.msi-portal-public .msi-portal-header{
  background:#0d376c;
  border-bottom:0;
  box-shadow:0 1px 0 rgba(255,255,255,.08);
}
.msi-portal-public .msi-portal-top .msi-portal-wrap{height:70px;grid-template-columns:190px 1fr auto;gap:22px}
.msi-portal-public .msi-portal-brand img{height:37px;max-width:184px}
.msi-portal-public .msi-portal-nav a{height:70px;padding:0 12px;font-size:13px;color:#dbe8f7}
.msi-portal-public .msi-portal-actions a{height:38px;border-radius:4px}
.msi-portal-public .msi-portal-actions .is-outline{background:#fff;color:#103c73;border-color:#fff}
.msi-portal-public .msi-portal-actions .is-outline:hover{background:#f1f6fc;color:#0b2d59}

/* HOME V2 */
.msi-portal-home-v2 .msi-portal-hero-v2{
  position:relative;
  min-height:525px;
  overflow:hidden;
  background:#17375c center/cover no-repeat;
  background-image:var(--portal-hero-image);
}
.msi-portal-home-v2 .msi-portal-hero-v2::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(6,29,58,.86) 0%,rgba(9,38,73,.72) 46%,rgba(8,28,54,.38) 100%);
}
.msi-portal-home-v2 .msi-portal-hero-v2::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:90px;
  background:linear-gradient(180deg,transparent,rgba(5,20,39,.20));
}
.msi-portal-home-v2 .msi-portal-hero-v2__content{
  position:relative;
  z-index:2;
  padding:74px 0 62px;
  color:#fff;
}
.msi-portal-home-v2 .msi-portal-hero-v2__copy{max-width:780px;margin-bottom:27px}
.msi-portal-home-v2 .msi-portal-hero-v2__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:13px;
  color:#dceafa;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.msi-portal-home-v2 .msi-portal-hero-v2__eyebrow::before{content:"";width:28px;height:2px;background:#fff;opacity:.75}
.msi-portal-home-v2 .msi-portal-hero-v2 h1{
  max-width:760px;
  margin:0;
  font-size:52px;
  line-height:1.06;
  letter-spacing:-.045em;
  color:#fff;
  font-weight:800;
  text-shadow:0 1px 6px rgba(0,0,0,.16);
}
.msi-portal-home-v2 .msi-portal-hero-v2__copy p{
  max-width:670px;
  margin:15px 0 0;
  color:#edf4fc;
  font-size:17px;
  line-height:1.55;
}

/* Busca principal simplificada: só o essencial aparece. */
.msi-portal-home-search{
  width:min(990px,100%);
  background:#fff;
  border-radius:7px;
  box-shadow:0 18px 44px rgba(4,20,39,.24);
  overflow:hidden;
  color:var(--pn-ink);
}
.msi-portal-home-search__purpose{display:flex;align-items:center;height:46px;border-bottom:1px solid #e7ebf1;background:#fbfcfe}
.msi-portal-home-search__purpose label{position:relative;height:46px;display:flex;align-items:center;cursor:pointer}
.msi-portal-home-search__purpose input{position:absolute;opacity:0;pointer-events:none}
.msi-portal-home-search__purpose span{height:46px;padding:0 20px;display:flex;align-items:center;color:#69778b;font-size:13px;font-weight:700;position:relative}
.msi-portal-home-search__purpose input:checked+span{color:var(--pn-blue)}
.msi-portal-home-search__purpose input:checked+span::after{content:"";position:absolute;left:16px;right:16px;bottom:-1px;height:3px;background:var(--pn-blue)}
.msi-portal-home-search__fields{display:grid;grid-template-columns:minmax(260px,1.65fr) minmax(165px,.8fr) auto;gap:10px;padding:14px}
.msi-portal-home-search__field{height:50px;border:1px solid #d8e0ea;border-radius:5px;background:#fff;display:flex;align-items:center;min-width:0}
.msi-portal-home-search__field i{width:42px;text-align:center;color:#708199;flex:none}
.msi-portal-home-search__field input,.msi-portal-home-search__field select{width:100%;height:48px;border:0;background:transparent;color:#344054;padding:0 12px 0 0;outline:0;font-size:13px;min-width:0}
.msi-portal-home-search__field:focus-within{border-color:#5b8ec7;box-shadow:0 0 0 3px rgba(18,63,120,.08)}
.msi-portal-home-search__submit{height:50px;padding:0 24px;border:0;border-radius:5px;background:var(--pn-blue);color:#fff;font-size:13px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;white-space:nowrap}
.msi-portal-home-search__submit:hover{background:var(--pn-blue-dark)}
.msi-portal-home-search__more{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 14px 13px;color:#667085;font-size:11px}
.msi-portal-home-search__more a{color:var(--pn-blue);font-weight:700;text-decoration:none}
.msi-portal-home-search__more nav{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.msi-portal-home-search__more nav a{color:#54647a;font-weight:600}

/* Números do portal como faixa, não como cards. */
.msi-portal-home-v2 .msi-portal-market-strip{background:#fff;border-bottom:1px solid var(--pn-line)}
.msi-portal-home-v2 .msi-portal-market-strip__inner{min-height:72px;display:flex;align-items:center;justify-content:center;gap:0}
.msi-portal-home-v2 .msi-portal-market-strip__item{min-width:180px;padding:0 28px;text-align:center;border-right:1px solid var(--pn-line)}
.msi-portal-home-v2 .msi-portal-market-strip__item:last-child{border-right:0}
.msi-portal-home-v2 .msi-portal-market-strip__item strong{display:block;color:#1b2b43;font-size:19px;line-height:1.1}
.msi-portal-home-v2 .msi-portal-market-strip__item span{display:block;margin-top:4px;color:#7a8798;font-size:10px;text-transform:uppercase;letter-spacing:.055em;font-weight:700}

/* Cabeçalhos das seções: editorial, sem caixas. */
.msi-portal-home-v2 .msi-portal-home-section{padding:58px 0;background:#fff}
.msi-portal-home-v2 .msi-portal-home-section.is-soft{background:var(--pn-soft);border-top:1px solid #edf1f5;border-bottom:1px solid #edf1f5}
.msi-portal-home-v2 .msi-portal-home-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
.msi-portal-home-v2 .msi-portal-home-head__copy small{display:block;margin-bottom:6px;color:var(--pn-blue);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.075em}
.msi-portal-home-v2 .msi-portal-home-head__copy h2{margin:0;color:#18283f;font-size:29px;line-height:1.15;letter-spacing:-.025em}
.msi-portal-home-v2 .msi-portal-home-head__copy p{margin:7px 0 0;color:#6f7b8c;font-size:13px;line-height:1.5}
.msi-portal-home-v2 .msi-portal-home-head>a{color:var(--pn-blue);font-size:12px;font-weight:750;text-decoration:none;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}

/* Um único bloco de imóveis com abas, evitando duas vitrines empilhadas. */
.msi-portal-home-v2 .msi-portal-feed-tabs{display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--pn-line);margin:-2px 0 22px}
.msi-portal-home-v2 .msi-portal-feed-tabs button{position:relative;height:43px;padding:0;border:0;background:transparent;color:#78869a;font:700 12px/1 "Inter",sans-serif;cursor:pointer}
.msi-portal-home-v2 .msi-portal-feed-tabs button.is-active{color:var(--pn-blue)}
.msi-portal-home-v2 .msi-portal-feed-tabs button.is-active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:var(--pn-blue)}
.msi-portal-home-v2 .msi-portal-feed-panel[hidden]{display:none!important}
.msi-portal-home-v2 .msi-portal-property-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
.msi-portal-home-v2 .msi-portal-property-card{border-radius:5px;border:1px solid #e0e5ec;background:#fff}
.msi-portal-home-v2 .msi-portal-property-card__media{aspect-ratio:16/11}
.msi-portal-home-v2 .msi-portal-property-card__body{padding:13px 14px 15px}
.msi-portal-home-v2 .msi-portal-property-card h3{font-size:15px;min-height:37px}
.msi-portal-home-v2 .msi-portal-property-card__company{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Cidades viram uma lista editorial, não um mosaico de cartões. */
.msi-portal-home-v2 .msi-portal-location-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--pn-line);border-bottom:1px solid var(--pn-line);background:#fff}
.msi-portal-home-v2 .msi-portal-location-list a{min-width:0;min-height:77px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none;border-right:1px solid var(--pn-line);border-bottom:1px solid var(--pn-line)}
.msi-portal-home-v2 .msi-portal-location-list a:nth-child(4n){border-right:0}
.msi-portal-home-v2 .msi-portal-location-list a:hover{background:#fafcff}
.msi-portal-home-v2 .msi-portal-location-list__name{min-width:0}
.msi-portal-home-v2 .msi-portal-location-list__name strong{display:block;color:#213149;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msi-portal-home-v2 .msi-portal-location-list__name span{display:block;margin-top:3px;color:#8b97a7;font-size:10px}
.msi-portal-home-v2 .msi-portal-location-list b{color:#5f6f83;font-size:12px;font-weight:700;white-space:nowrap}

/* Anunciantes como faixa de marcas. */
.msi-portal-home-v2 .msi-portal-brand-rail{display:flex;align-items:stretch;border-top:1px solid var(--pn-line);border-bottom:1px solid var(--pn-line);overflow-x:auto;background:#fff;scrollbar-width:thin}
.msi-portal-home-v2 .msi-portal-brand-rail>a{flex:1 0 150px;min-width:0;min-height:104px;padding:13px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;text-decoration:none;border-right:1px solid var(--pn-line)}
.msi-portal-home-v2 .msi-portal-brand-rail>a:last-child{border-right:0}
.msi-portal-home-v2 .msi-portal-brand-rail>a:hover{background:#fbfcfe}
.msi-portal-home-v2 .msi-portal-brand-rail__logo{height:48px;display:flex;align-items:center;justify-content:center;margin-bottom:8px;width:100%}
.msi-portal-home-v2 .msi-portal-brand-rail__logo img{max-height:44px;max-width:128px;width:auto;height:auto;object-fit:contain}
.msi-portal-home-v2 .msi-portal-brand-rail__logo span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#edf4fb;color:var(--pn-blue);font-size:14px;font-weight:800}
.msi-portal-home-v2 .msi-portal-brand-rail strong{max-width:100%;font-size:11px;color:#344054;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msi-portal-home-v2 .msi-portal-brand-rail small{margin-top:2px;color:#98a2b3;font-size:9px}


/* Principais buscas: bloco editorial de links, sem cards. */
.msi-portal-home-v2 .msi-portal-popular-searches{padding:52px 0 58px;background:#fff;border-top:1px solid var(--pn-line)}
.msi-portal-home-v2 .msi-portal-popular-searches h2{margin:0 0 25px;color:#17263a;font-size:27px;line-height:1.2;letter-spacing:-.02em;font-weight:750}
.msi-portal-home-v2 .msi-portal-popular-searches ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:58px;row-gap:0}
.msi-portal-home-v2 .msi-portal-popular-searches li{min-width:0;margin:0;padding:0}
.msi-portal-home-v2 .msi-portal-popular-searches a{display:block;padding:6px 0;color:#27364a;font-size:12.5px;line-height:1.45;text-decoration:none;white-space:normal}
.msi-portal-home-v2 .msi-portal-popular-searches a:hover{color:var(--pn-blue);text-decoration:underline;text-underline-offset:3px}

/* CTA final horizontal, simples. */
.msi-portal-home-v2 .msi-portal-home-cta{padding:46px 0;background:#0e3568;color:#fff}
.msi-portal-home-v2 .msi-portal-home-cta .msi-portal-wrap{display:flex;align-items:center;justify-content:space-between;gap:32px}
.msi-portal-home-v2 .msi-portal-home-cta small{display:block;margin-bottom:6px;color:#b9d2ed;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.075em}
.msi-portal-home-v2 .msi-portal-home-cta h2{max-width:770px;margin:0;color:#fff;font-size:27px;line-height:1.18;letter-spacing:-.02em}
.msi-portal-home-v2 .msi-portal-home-cta p{margin:7px 0 0;color:#d4e2f1;font-size:12px}
.msi-portal-home-v2 .msi-portal-home-cta a{height:43px;padding:0 16px;border-radius:4px;background:#fff;color:#0d376c;text-decoration:none;display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:800;white-space:nowrap}

/* Listagens do portal: busca e cabeçalho mais leves. */
.msi-portal-public .msi-portal-list-hero{background:#f7f9fc;padding:30px 0 22px}
.msi-portal-public .msi-portal-list-hero .msi-portal-wrap>div:first-child{margin-bottom:16px}
.msi-portal-public .msi-portal-search--advanced.is-compact{box-shadow:none;border:1px solid #dde4ec;border-radius:5px;overflow:hidden;background:#fff}
.msi-portal-public .msi-portal-search--advanced.is-compact .msi-portal-search__fields{background:#f5f7fa}
.msi-portal-public .msi-portal-list{padding-top:29px}
.msi-portal-public .msi-portal-list__head{border-bottom:1px solid var(--pn-line);padding-bottom:14px;margin-bottom:21px}

/* Página de anunciantes também sem blocos pesados. */
.msi-portal-public .msi-portal-page{background:#fff}
.msi-portal-public .msi-portal-page-head{max-width:760px;margin-bottom:26px}
.msi-portal-public .msi-portal-company-grid{border-top:1px solid var(--pn-line);border-bottom:0;background:#fff}
.msi-portal-public .msi-portal-company-grid article{min-height:90px;padding:16px 14px}

/* Rodapé mais institucional. */
.msi-portal-public .msi-portal-footer{background:#081f3d;padding-top:44px}
.msi-portal-public .msi-portal-footer__grid{padding-bottom:38px}
.msi-portal-public .msi-portal-footer__bottom{border-top-color:rgba(255,255,255,.10)}

@media(max-width:1100px){
  .msi-portal-home-v2 .msi-portal-property-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .msi-portal-home-v2 .msi-portal-location-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .msi-portal-home-v2 .msi-portal-location-list a:nth-child(4n){border-right:1px solid var(--pn-line)}
  .msi-portal-home-v2 .msi-portal-location-list a:nth-child(2n){border-right:0}
}

@media(max-width:860px){
  .msi-portal-home-v2 .msi-portal-popular-searches ul{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:34px}
  .msi-portal-public .msi-portal-top .msi-portal-wrap{height:64px;grid-template-columns:1fr auto}
  .msi-portal-public .msi-portal-brand img{height:34px}
  .msi-portal-home-v2 .msi-portal-hero-v2{min-height:0}
  .msi-portal-home-v2 .msi-portal-hero-v2__content{padding:55px 0 48px}
  .msi-portal-home-v2 .msi-portal-hero-v2 h1{font-size:42px}
  .msi-portal-home-v2 .msi-portal-hero-v2__copy p{font-size:15px}
  .msi-portal-home-search__fields{grid-template-columns:1fr 1fr}
  .msi-portal-home-search__field:first-child{grid-column:1/3}
  .msi-portal-home-search__submit{grid-column:1/3}
  .msi-portal-home-v2 .msi-portal-market-strip__inner{justify-content:space-around}
  .msi-portal-home-v2 .msi-portal-market-strip__item{min-width:0;flex:1;padding:0 16px}
  .msi-portal-home-v2 .msi-portal-property-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .msi-portal-home-v2 .msi-portal-home-cta .msi-portal-wrap{align-items:flex-start;flex-direction:column}
}

@media(max-width:560px){
  .msi-portal-home-v2 .msi-portal-popular-searches{padding:38px 0 42px}
  .msi-portal-home-v2 .msi-portal-popular-searches h2{margin-bottom:18px;font-size:22px}
  .msi-portal-home-v2 .msi-portal-popular-searches ul{grid-template-columns:1fr}
  .msi-portal-home-v2 .msi-portal-popular-searches a{padding:7px 0;font-size:13px}
  .msi-portal-home-v2 .msi-portal-hero-v2::before{background:rgba(5,29,57,.78)}
  .msi-portal-home-v2 .msi-portal-hero-v2__content{padding:42px 0 36px}
  .msi-portal-home-v2 .msi-portal-hero-v2 h1{font-size:34px;line-height:1.08}
  .msi-portal-home-v2 .msi-portal-hero-v2__copy{margin-bottom:22px}
  .msi-portal-home-v2 .msi-portal-hero-v2__copy p{font-size:14px}
  .msi-portal-home-search{border-radius:5px}
  .msi-portal-home-search__purpose label{flex:1}
  .msi-portal-home-search__purpose span{width:100%;justify-content:center;padding:0 8px;font-size:12px}
  .msi-portal-home-search__fields{grid-template-columns:1fr;padding:10px;gap:8px}
  .msi-portal-home-search__field:first-child,.msi-portal-home-search__submit{grid-column:auto}
  .msi-portal-home-search__more{align-items:flex-start;flex-direction:column;gap:8px;padding:2px 10px 11px}
  .msi-portal-home-search__more nav{gap:10px}
  .msi-portal-home-v2 .msi-portal-market-strip__inner{min-height:66px}
  .msi-portal-home-v2 .msi-portal-market-strip__item{padding:0 7px}
  .msi-portal-home-v2 .msi-portal-market-strip__item strong{font-size:15px}
  .msi-portal-home-v2 .msi-portal-market-strip__item span{font-size:8px}
  .msi-portal-home-v2 .msi-portal-home-section{padding:42px 0}
  .msi-portal-home-v2 .msi-portal-home-head{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:18px}
  .msi-portal-home-v2 .msi-portal-home-head__copy h2{font-size:24px}
  .msi-portal-home-v2 .msi-portal-feed-tabs{gap:18px;overflow-x:auto}
  .msi-portal-home-v2 .msi-portal-feed-tabs button{white-space:nowrap}
  .msi-portal-home-v2 .msi-portal-property-grid{grid-template-columns:1fr}
  .msi-portal-home-v2 .msi-portal-location-list{grid-template-columns:1fr}
  .msi-portal-home-v2 .msi-portal-location-list a,.msi-portal-home-v2 .msi-portal-location-list a:nth-child(2n),.msi-portal-home-v2 .msi-portal-location-list a:nth-child(4n){border-right:0}
  .msi-portal-home-v2 .msi-portal-home-cta{padding:38px 0}
  .msi-portal-home-v2 .msi-portal-home-cta h2{font-size:23px}
}
