/* Meu Site Imobi 16.1.35 — EXCLUSIVO do Portal de Imóveis da Rede. */
body.msi-portal-public .msi-portal-visited-badge[hidden],
body.msi-portal-public .msi-favorites-page__empty[hidden],
body.msi-portal-public [data-msi-phone-reveal][hidden],
body.msi-portal-public .msi-calc-form__error[hidden],
body.msi-portal-public .msi-calc-results__content[hidden],
body.msi-portal-public .msi-calc-results__placeholder[hidden]{display:none!important}

/* Hover apenas nos CARDS da listagem, nunca nos cards de detalhes. */
body.msi-portal-public.msi-portal-property-v2 .msi-portal-detail__gallery,
body.msi-portal-public.msi-portal-property-v2 .msi-portal-detail__headline,
body.msi-portal-public.msi-portal-property-v2 .msi-portal-detail__features,
body.msi-portal-public.msi-portal-property-v2 .msi-portal-detail__section,
body.msi-portal-public.msi-portal-property-v2 .msi-public-info-section,
body.msi-portal-public.msi-portal-property-v2 .msi-portal-detail__aside,
body.msi-portal-public.msi-portal-property-v2 .msi-portal-property-card,
body.msi-portal-public.msi-portal-property-v2 .msi-portal-property-card:hover,
body.msi-portal-public.msi-portal-property-v2 .msi-portal-detail__gallery:hover,
body.msi-portal-public.msi-portal-property-v2 .msi-portal-detail__headline:hover,
body.msi-portal-public.msi-portal-property-v2 .msi-portal-detail__features:hover,
body.msi-portal-public.msi-portal-property-v2 .msi-portal-detail__section:hover,
body.msi-portal-public.msi-portal-property-v2 .msi-public-info-section:hover,
body.msi-portal-public.msi-portal-property-v2 .msi-portal-detail__aside:hover{
  box-shadow:none!important;transition:none!important;transform:none!important;
}
/* The detail gallery itself must not zoom with the pointer. */
body.msi-portal-property-v2 .msi-portal-detail__gallery a:hover img,
body.msi-portal-property-v2 .msi-portal-property-card:hover img{transform:none!important;transition:none!important}

/* Publicidade na grade ocupa a mesma largura disponível que na lista. */
body.msi-portal-results-page .msi-portal-results-v2__list.is-grid > .msi-portal-inline-ad,
body.msi-portal-results-page .msi-portal-results-v2__list.is-list > .msi-portal-inline-ad{
 grid-column:1/-1!important;width:min(100%,910px)!important;max-width:100%!important;
 justify-self:center;min-width:0;margin:12px auto 20px;box-sizing:border-box;
}
body.msi-portal-results-page .msi-portal-results-v2__list.is-grid > .msi-portal-inline-ad>a,
body.msi-portal-results-page .msi-portal-results-v2__list.is-list > .msi-portal-inline-ad>a{
 width:100%;height:auto;aspect-ratio:91/30;overflow:hidden;display:block;
}
body.msi-portal-results-page .msi-portal-inline-ad img{object-fit:contain;background:#f4f7fb}

/* The visited label uses the user's local browsing history. */
body.msi-portal-public .msi-portal-result-row,
body.msi-portal-public .msi-portal-property-card{position:relative}
body.msi-portal-public .msi-portal-visited-badge{
 position:absolute;z-index:9;top:12px;left:12px;display:inline-flex;align-items:center;justify-content:center;
 background:#fff;color:#203247;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:700;
 box-shadow:0 2px 8px rgba(15,23,42,.09);pointer-events:none;
}
body.msi-portal-public .msi-portal-property-card .msi-portal-visited-badge{top:12px;left:12px}
body.msi-portal-public .msi-portal-result-row .msi-portal-visited-badge{top:12px;left:12px}
body.msi-portal-public .msi-portal-visited-badge + .msi-portal-result-row__content{min-width:0}

/* 3 contact actions with phone disclosure only after lead registration. */
body.msi-portal-property-v2 .msi-portal-detail__aside .msi-portal-lead.msi-portal-contact-1635{display:grid;gap:13px;min-width:0}
body.msi-portal-property-v2 .msi-portal-contact-1635 label{display:grid;gap:6px;margin:0;min-width:0;font-size:13px;font-weight:700;color:#34465b}
body.msi-portal-property-v2 .msi-portal-contact-1635 label>input,
body.msi-portal-property-v2 .msi-portal-contact-1635 label>textarea{
 width:100%;min-width:0;box-sizing:border-box;background:#fff;border:1px solid #bdccdd;border-radius:13px;
 font:inherit;font-weight:400;font-size:14px;color:#1d2c3f;padding:12px 13px;
}
body.msi-portal-property-v2 .msi-portal-contact-1635 label>input{height:48px}
body.msi-portal-property-v2 .msi-portal-contact-1635 label>textarea{min-height:112px;line-height:1.55;resize:vertical}
body.msi-portal-property-v2 .msi-portal-contact-1635__pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}
body.msi-portal-property-v2 .msi-portal-contact-1635__actions{display:grid;gap:10px}
body.msi-portal-property-v2 .msi-portal-contact-1635__actions>button,
body.msi-portal-property-v2 .msi-portal-contact-1635__actions>a{
 width:100%;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;
 min-height:47px;padding:10px 14px;margin:0;border-radius:999px;text-align:center;text-decoration:none;
 font-size:14px;font-weight:700;line-height:1.3;cursor:pointer;border:1px solid transparent;
 box-shadow:none!important;
}
body.msi-portal-property-v2 .msi-portal-contact-1635__send{background:#1476c8;color:#fff}
body.msi-portal-property-v2 .msi-portal-contact-1635__whatsapp{background:#168347;color:#fff}
body.msi-portal-property-v2 .msi-portal-contact-1635__reveal{background:#fff;border-color:#a8bacd!important;color:#24344b}
body.msi-portal-property-v2 .msi-portal-contact-1635__number{padding:14px 16px;background:#e6f7ed;color:#146b3b;border-radius:14px;overflow-wrap:anywhere}
body.msi-portal-property-v2 .msi-portal-contact-1635__number span{display:block;margin-bottom:4px;font-size:12px;font-weight:700}
body.msi-portal-property-v2 .msi-portal-contact-1635__number a{color:#126fba;font-size:19px;font-weight:700}
body.msi-portal-property-v2 .msi-portal-contact-1635 .msi-portal-lead__feedback{font-size:13px;line-height:1.5}
body.msi-portal-property-v2 .msi-portal-contact-1635>small{font-size:12px;color:#68788e;line-height:1.5}

/* Favorites look like real property cards and never make up unavailable data. */
body.msi-portal-favorites-page .msi-favorites-page{padding:40px 0 76px;min-height:58vh;background:#f6f8fb}
body.msi-portal-favorites-page .msi-favorites-page h1{margin:0 0 12px;font-size:36px;line-height:1.14;color:#13243a}
body.msi-portal-favorites-page .msi-favorites-page>div>p{max-width:960px;margin:0 0 18px;color:#61738a;font-size:15px;line-height:1.6}
body.msi-portal-favorites-page .msi-favorites-page__count{margin:0 0 18px;font-weight:700;font-size:13px;color:#4e6179}
body.msi-portal-favorites-page .msi-favorites-page__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
body.msi-portal-favorites-page .msi-favorites-card{position:relative;min-width:0;overflow:hidden;background:#fff;border:1px solid #dfe6ef;border-radius:18px;box-shadow:none!important;transition:box-shadow .2s}
@media(hover:hover) and (pointer:fine){body.msi-portal-favorites-page .msi-favorites-card:hover{box-shadow:0 10px 24px rgba(15,23,42,.09)!important}}
body.msi-portal-favorites-page .msi-favorites-card__link{display:block;color:inherit;text-decoration:none}
body.msi-portal-favorites-page .msi-favorites-card__media{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:4/3;background:#e9eff5;color:#8a98a9}
body.msi-portal-favorites-page .msi-favorites-card__media>img{display:block;width:100%;height:100%;object-fit:cover}
body.msi-portal-favorites-page .msi-favorites-card__media>i{font-size:48px}
body.msi-portal-favorites-page .msi-favorites-card__content{display:grid;gap:8px;padding:13px}
body.msi-portal-favorites-page .msi-favorites-card__content strong{font-size:14px;font-weight:500;line-height:1.3;color:#66758a;max-height:3.9em;overflow:hidden}
body.msi-portal-favorites-page .msi-favorites-card__content b{font-size:22px;line-height:1.1;color:#15263b}
body.msi-portal-favorites-page .msi-favorites-card__content small{font-size:13px;line-height:1.3;color:#53677d}
body.msi-portal-favorites-page .msi-favorites-card__remove{position:absolute;top:10px;right:10px;width:44px;height:44px;display:grid;place-items:center;border:1px solid #e2e8f0;border-radius:50%;background:#fff;color:#ef4f1c;font-size:19px;cursor:pointer}
body.msi-portal-favorites-page .msi-favorites-page__empty{max-width:550px;text-align:center;margin:42px auto;padding:32px;border:1px solid #e2e8f0;border-radius:22px;background:#fff}
body.msi-portal-favorites-page .msi-favorites-page__empty>i{font-size:34px;color:#5d86bb}
body.msi-portal-favorites-page .msi-favorites-page__empty h2{font-size:22px;color:#1d2e44}
body.msi-portal-favorites-page .msi-favorites-page__empty p{font-size:14px;color:#62758c}
body.msi-portal-favorites-page .msi-favorites-page__empty>a{display:inline-flex;margin-top:8px;background:#1474ca;color:#fff;border-radius:999px;padding:12px 18px;font-weight:700;text-decoration:none}

/* Three calculators: separate screens, coherent forms, no forced hover animation. */
body.msi-portal-calculators-page .msi-calc-page{background:#f5f8fc;padding:18px 0 66px;min-height:65vh}
body.msi-portal-calculators-page .msi-calc-breadcrumb{font-size:12px;color:#62758d;margin-bottom:18px;display:flex;gap:7px;align-items:center;flex-wrap:wrap}
body.msi-portal-calculators-page .msi-calc-breadcrumb a{color:#587ba3}
body.msi-portal-calculators-page .msi-calc-heading{display:flex;align-items:start;justify-content:space-between;gap:24px;margin-bottom:20px}
body.msi-portal-calculators-page .msi-calc-heading h1{font-size:36px;line-height:1.12;letter-spacing:-.035em;color:#102238;margin:0 0 16px}
body.msi-portal-calculators-page .msi-calc-heading p{font-size:17px;line-height:1.6;color:#576d85;max-width:790px;margin:0}
body.msi-portal-calculators-page .msi-calc-heading__icon{height:112px;width:112px;flex:0 0 112px;display:grid;place-items:center;border-radius:50%;background:#e8f0fb;color:#1477ca;font-size:43px}
body.msi-portal-calculators-page .msi-calc-notice{display:flex;gap:12px;align-items:start;border-radius:14px;background:#e2effd;padding:14px 18px;margin:22px 0;color:#193b62;font-size:13px;line-height:1.65;max-width:850px}
body.msi-portal-calculators-page .msi-calc-notice i{font-size:16px;margin-top:2px}
body.msi-portal-calculators-page .msi-calc-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
body.msi-portal-calculators-page .msi-calc-form,
body.msi-portal-calculators-page .msi-calc-results{min-width:0;padding:22px;background:#fff;border:1px solid #dfe7f2;border-radius:18px;box-shadow:none!important}
body.msi-portal-calculators-page .msi-calc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}
body.msi-portal-calculators-page .msi-calc-field{display:block;min-width:0}
body.msi-portal-calculators-page .msi-calc-field>span{display:block;font-size:13px;font-weight:700;color:#20364f;margin-bottom:8px}
body.msi-portal-calculators-page .msi-calc-field__input{height:50px;display:flex;align-items:center;gap:8px;border:1px solid #a6b9d0;border-radius:14px;background:#fff;padding:0 13px}
body.msi-portal-calculators-page .msi-calc-field__input:focus-within{outline:2px solid rgba(21,117,202,.17);border-color:#1476ca}
body.msi-portal-calculators-page .msi-calc-field__input input{width:100%;min-width:0;border:0!important;outline:0;background:transparent;font:inherit;font-size:15px;color:#162a40;height:100%;padding:0}
body.msi-portal-calculators-page .msi-calc-field__input small{font-size:13px;color:#69809b}
body.msi-portal-calculators-page .msi-calc-field__help{display:block;font-size:12px;line-height:1.45;color:#647b98;margin-top:6px}
body.msi-portal-calculators-page .msi-calc-field--wide{grid-column:1/-1}
body.msi-portal-calculators-page .msi-calc-subtitle{grid-column:1/-1;font-size:16px;font-weight:700;color:#132940;padding-top:8px;border-bottom:1px solid #edf1f6;padding-bottom:10px}
body.msi-portal-calculators-page .msi-calc-switch{display:inline-flex;gap:4px;padding:4px;background:#eef2f7;border-radius:999px}
body.msi-portal-calculators-page .msi-calc-switch button{height:42px;padding:0 16px;border:0;border-radius:999px;background:transparent;color:#20354d;font-size:13px;font-weight:700;cursor:pointer}
body.msi-portal-calculators-page .msi-calc-switch button.is-active{background:#1376c9;color:#fff}
body.msi-portal-calculators-page .msi-calc-form__actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
body.msi-portal-calculators-page .msi-calc-form__actions button{border-radius:999px;min-height:48px;padding:9px 12px;font-size:13px;font-weight:700;cursor:pointer}
body.msi-portal-calculators-page .msi-calc-submit{background:#1376c9;color:#fff;border:1px solid #1376c9}
body.msi-portal-calculators-page .msi-calc-example{background:#fff;color:#193751;border:1px solid #adbed2}
body.msi-portal-calculators-page .msi-calc-form__error{margin-top:12px;padding:12px;background:#fff1f0;color:#b22520;border-radius:12px;font-size:13px}
body.msi-portal-calculators-page .msi-calc-results h2{font-size:24px;margin:0 0 18px;color:#17273b}
body.msi-portal-calculators-page .msi-calc-results__placeholder{font-size:14px;color:#64768c}
body.msi-portal-calculators-page .msi-calc-stat-grid{display:grid;gap:12px;grid-template-columns:1fr 1fr}
body.msi-portal-calculators-page .msi-calc-stat{display:grid;gap:7px;padding:14px;background:#f6f9fd;border-radius:12px;min-width:0}
body.msi-portal-calculators-page .msi-calc-stat small{font-size:12px;color:#576e85}
body.msi-portal-calculators-page .msi-calc-stat strong{font-size:20px;line-height:1.15;overflow-wrap:anywhere;color:#173251}
body.msi-portal-calculators-page .msi-calc-stat span{font-size:11px;color:#6a8097}
body.msi-portal-calculators-page .msi-calc-stat-note{font-size:12px;line-height:1.6;color:#617890;margin-top:18px}
body.msi-portal-calculators-page .msi-calc-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:24px}
body.msi-portal-calculators-page .msi-calc-directory__item{display:flex;flex-direction:column;gap:8px;padding:24px 20px;border:1px solid #e1e7ef;border-radius:18px;background:#fff;text-decoration:none;color:#17283a}
body.msi-portal-calculators-page .msi-calc-directory__item>i{font-size:22px;color:#1378c9}
body.msi-portal-calculators-page .msi-calc-directory__item h2{margin:0;font-size:20px}
body.msi-portal-calculators-page .msi-calc-directory__item p{font-size:13px;line-height:1.6;color:#5b7188;flex:1;margin:0}
body.msi-portal-calculators-page .msi-calc-directory__item span{font-size:13px;color:#1171c5;font-weight:700;margin-top:12px}
body.msi-portal-calculators-page .msi-calc-related{margin-top:30px;padding-top:24px;border-top:1px solid #dee8f3}
body.msi-portal-calculators-page .msi-calc-related h2{font-size:22px;color:#17304c;margin:0 0 14px}
body.msi-portal-calculators-page .msi-calc-related>div{display:flex;gap:12px;flex-wrap:wrap}
body.msi-portal-calculators-page .msi-calc-related a{display:inline-flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #dbe5f0;border-radius:12px;background:#fff;text-decoration:none;color:#186cae;font-size:13px;font-weight:700}
@media(max-width:1120px){body.msi-portal-favorites-page .msi-favorites-page__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){
 body.msi-portal-calculators-page .msi-calc-layout{grid-template-columns:1fr}
 body.msi-portal-calculators-page .msi-calc-results{grid-row:2}
 body.msi-portal-calculators-page .msi-calc-directory{grid-template-columns:1fr 1fr}
 body.msi-portal-favorites-page .msi-favorites-page__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
 body.msi-portal-calculators-page .msi-calc-heading h1{font-size:29px}
 body.msi-portal-calculators-page .msi-calc-heading p{font-size:14px}
 body.msi-portal-calculators-page .msi-calc-heading__icon{display:none}
 body.msi-portal-calculators-page .msi-calc-form,body.msi-portal-calculators-page .msi-calc-results{padding:17px;border-radius:16px}
 body.msi-portal-calculators-page .msi-calc-fields{grid-template-columns:1fr;gap:14px}
 body.msi-portal-calculators-page .msi-calc-field--wide,body.msi-portal-calculators-page .msi-calc-subtitle{grid-column:1}
 body.msi-portal-calculators-page .msi-calc-stat-grid{grid-template-columns:1fr}
 body.msi-portal-calculators-page .msi-calc-form__actions{grid-template-columns:1fr}
 body.msi-portal-calculators-page .msi-calc-directory{grid-template-columns:1fr}
 body.msi-portal-favorites-page .msi-favorites-page{padding-top:24px}
 body.msi-portal-favorites-page .msi-favorites-page h1{font-size:28px}
 body.msi-portal-favorites-page .msi-favorites-page__grid{grid-template-columns:1fr}
 body.msi-portal-property-v2 .msi-portal-contact-1635__pair{grid-template-columns:1fr}
}
/* Position other category badges away from the visualized state. */
body.msi-portal-public .msi-portal-result-row.is-visited .msi-portal-result-row__purpose,
body.msi-portal-public .msi-portal-result-row.is-visited .msi-portal-result-row__featured,
body.msi-portal-public .msi-portal-property-card.is-visited .msi-portal-property-card__purpose,
body.msi-portal-public .msi-portal-property-card.is-visited .msi-portal-property-card__featured{top:auto!important;bottom:12px!important}
/* Hover with a shadow is for property listing cards only. Other sections remain still. */
@media(hover:hover) and (pointer:fine){
 body.msi-portal-public .msi-portal-company-grid>article:hover,
 body.msi-portal-public .msi-v5-category:hover,
 body.msi-portal-public .msi-v5-city:hover,
 body.msi-portal-public .msi-v5-district:hover,
 body.msi-portal-public .msi-v5-guides-grid>*:hover,
 body.msi-portal-public .msi-portal-results-v2__filters:hover,
 body.msi-portal-public .msi-portal-results-v2__head:hover{
   box-shadow:none!important;transform:none!important;transition:none!important
 }
}
