/* 16.1.90 — ajustes pontuais de mobile. Não altera a Home nem o desktop. */
.msi-portal-detail-1647__location .msi-portal-detail-1647__location-name{
  margin:8px 0 18px;
  font-size:16px;
  line-height:1.55;
  color:#34465d;
  font-weight:500;
}
.msi-portal-detail-1647__location .msi-portal-detail-1647__location-name > i{
  color:#0e74ca;
  margin-right:5px;
}
@media screen and (min-width:821px){
  body.msi-portal-property-v2 .msi-portal-detail-1690__actions{
    display:contents;
  }
}
@media screen and (max-width:820px){
  /* Foto única, full-bleed, altura exata solicitada. */
  body.msi-portal-property-v2 .msi-portal-detail__gallery[data-portal-gallery-wrap]{
    position:relative !important;
    box-sizing:border-box !important;
    height:350px !important;
    min-height:350px !important;
    max-height:350px !important;
    width:100vw !important;
    max-width:none !important;
    border-radius:0 !important;
    overflow:hidden !important;
    margin-left:calc(50% - 50vw) !important;
    margin-right:calc(50% - 50vw) !important;
    padding:0 !important;
  }
  body.msi-portal-property-v2 .msi-portal-detail__gallery[data-portal-gallery-wrap] > a.is-main[data-fancybox],
  body.msi-portal-property-v2 .msi-portal-detail__gallery[data-portal-gallery-wrap] > a.is-main[data-fancybox] img{
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    max-height:350px !important;
    object-fit:cover !important;
    object-position:center center !important;
    border-radius:0 !important;
  }
  /* Botões no topo da foto, sempre visíveis. */
  body.msi-portal-property-v2 .msi-portal-detail__gallery .msi-portal-detail-1647__hero-back,
  body.msi-portal-property-v2 .msi-portal-detail__gallery .msi-portal-detail-1682__share,
  body.msi-portal-property-v2 .msi-portal-detail__gallery .msi-portal-favorite-detail{
    top:14px !important;
    bottom:auto !important;
    width:44px !important;
    height:44px !important;
    z-index:10 !important;
  }
  /* O título fica SOBRE a foto e acima da faixa dos botões. */
  body.msi-portal-property-v2 .msi-portal-detail__gallery .msi-portal-detail-1647__hero-title{
    position:absolute !important;
    top:auto !important;
    left:16px !important;
    right:16px !important;
    bottom:78px !important;
    z-index:8 !important;
    margin:0 !important;
    padding:0 !important;
    max-height:126px;
    overflow:hidden;
  }
  body.msi-portal-property-v2 .msi-portal-detail__gallery .msi-portal-detail-1647__hero-title h2{
    font-size:clamp(20px,5vw,25px) !important;
    line-height:1.14 !important;
    font-weight:700 !important;
    color:#fff !important;
    margin:0 !important;
    display:-webkit-box !important;
    -webkit-line-clamp:4;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  /* Mesmo tamanho, lado a lado e alinhados na parte inferior. */
  body.msi-portal-property-v2 .msi-portal-detail__gallery .msi-portal-detail-1690__actions{
    position:absolute !important;
    left:12px !important;
    right:12px !important;
    bottom:14px !important;
    z-index:12 !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    gap:9px !important;
    height:46px !important;
    width:auto !important;
    pointer-events:none;
  }
  body.msi-portal-property-v2 .msi-portal-detail__gallery .msi-portal-detail-1690__actions > button{
    position:relative !important;
    display:inline-flex !important;
    top:auto !important;
    bottom:auto !important;
    left:auto !important;
    right:auto !important;
    transform:none !important;
    width:118px !important;
    max-width:calc((100vw - 44px)/2) !important;
    min-width:0 !important;
    height:46px !important;
    min-height:46px !important;
    max-height:46px !important;
    padding:0 8px !important;
    margin:0 !important;
    border-radius:999px !important;
    font-size:14px !important;
    line-height:1 !important;
    white-space:nowrap !important;
    justify-content:center !important;
    align-items:center !important;
    gap:8px !important;
    pointer-events:auto;
  }
  body.msi-portal-property-v2 .msi-portal-detail__gallery .msi-portal-detail-1690__actions > button > i{
    font-size:18px !important;
    flex:0 0 auto;
  }
  /* Total de imóveis e ordenação na mesma linha. */
  body.msi-smart-results-page .msi-smart-results-intro{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 44px !important;
    grid-template-rows:auto !important;
    column-gap:12px !important;
    align-items:center !important;
    justify-content:space-between !important;
  }
  body.msi-smart-results-page .msi-smart-results-intro > div:first-child{
    grid-column:1 !important;
    grid-row:1 !important;
    min-width:0 !important;
    align-self:center !important;
  }
  body.msi-smart-results-page .msi-smart-results-intro > div:first-child > h1{
    margin:0 0 3px !important;
    line-height:1.25 !important;
  }
  body.msi-smart-results-page .msi-smart-results-intro > .msi-smart-toolbar{
    grid-column:2 !important;
    grid-row:1 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:44px !important;
    min-width:44px !important;
    padding:0 !important;
    margin:0 !important;
    align-self:center !important;
  }
  body.msi-smart-results-page .msi-smart-results-intro .msi-smart-sort-1684__field{
    height:44px !important;
    width:44px !important;
  }
  body.msi-smart-results-page .msi-smart-results-intro > .msi-smart-mobile-filter{
    display:none !important;
  }
}
