/* ============================================================
   Findar V46165 — Mobile QA polish
   Scope: mobile presentation only. No routes, data model, CPT,
   seller ownership, map provider or publishing workflow changes.
   ============================================================ */

@media (max-width:780px){
  /* Keep one clean gallery hero. Historical side tiles or duplicate gallery
     copies must not stack below the main image on mobile. */
  body.single-propriete main#main-content .fmp-trulia-gallery > .fmp-trulia-gallery-side,
  body.findar-mobile-premium-single main#main-content .fmp-trulia-gallery > .fmp-trulia-gallery-side,
  body.single-propriete main#main-content .fmp-trulia-gallery .fmp-trulia-gallery-tile,
  body.findar-mobile-premium-single main#main-content .fmp-trulia-gallery .fmp-trulia-gallery-tile,
  body.single-propriete main#main-content .fmp-trulia-gallery > .fmp-trulia-gallery-main ~ .fmp-trulia-gallery-main,
  body.findar-mobile-premium-single main#main-content .fmp-trulia-gallery > .fmp-trulia-gallery-main ~ .fmp-trulia-gallery-main{
    display:none!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }

  /* A premium mobile hierarchy: strong price, readable title, no four-line wall. */
  body.single-propriete main#main-content .fmp-trulia-topline .fmp-trulia-pricebox strong,
  body.findar-mobile-premium-single main#main-content .fmp-trulia-topline .fmp-trulia-pricebox strong{
    font-size:clamp(32px,8.2vw,39px)!important;
    line-height:1.02!important;
    letter-spacing:-.045em!important;
  }
  body.single-propriete main#main-content .fmp-trulia-topline .fmp-trulia-titlebox > h1,
  body.findar-mobile-premium-single main#main-content .fmp-trulia-topline .fmp-trulia-titlebox > h1{
    display:-webkit-box!important;
    overflow:hidden!important;
    max-height:3.3em!important;
    font-size:clamp(24px,6.35vw,29px)!important;
    line-height:1.1!important;
    letter-spacing:-.035em!important;
    font-family:Outfit,Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
    font-weight:900!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:3!important;
  }

  /* Seller identity should look trustworthy, not like an oversized editorial title. */
  body.single-propriete main#main-content .fmp64-seller-card .fmp64-seller-head h2,
  body.findar-mobile-premium-single main#main-content .fmp64-seller-card .fmp64-seller-head h2{
    margin:0!important;
    font-family:Outfit,Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
    font-size:clamp(21px,5.8vw,25px)!important;
    line-height:1.12!important;
    letter-spacing:-.025em!important;
    font-weight:900!important;
  }
  body.single-propriete main#main-content .fmp64-seller-card .fmp64-seller-head p,
  body.findar-mobile-premium-single main#main-content .fmp64-seller-card .fmp64-seller-head p{
    font-size:14px!important;
    line-height:1.4!important;
  }

  /* Avoid a dead white corridor before the footer. */
  body.single-propriete main#main-content,
  body.findar-mobile-premium-single main#main-content,
  body.single-propriete main#main-content .fmp-single-page,
  body.findar-mobile-premium-single main#main-content .fmp-single-page,
  body.single-propriete main#main-content .fmp-trulia-wrap,
  body.findar-mobile-premium-single main#main-content .fmp-trulia-wrap,
  body.single-propriete main#main-content .fmp-trulia-content,
  body.findar-mobile-premium-single main#main-content .fmp-trulia-content,
  body.single-propriete main#main-content .fmp-trulia-maincol,
  body.findar-mobile-premium-single main#main-content .fmp-trulia-maincol{
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    margin-bottom:0!important;
  }
  body.single-propriete footer.site-footer,
  body.findar-mobile-premium-single footer.site-footer,
  body.single-propriete .site-footer,
  body.findar-mobile-premium-single .site-footer{
    margin-top:0!important;
  }

  /* Results: display the full price. The favorite already exists on the photo. */
  body.findar-mobile-premium-search .fmp-property-card .fmp-property-mainline{
    display:block!important;
    min-width:0!important;
  }
  body.findar-mobile-premium-search .fmp-property-card .fmp-property-price-stack{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  body.findar-mobile-premium-search .fmp-property-card .fmp-property-price{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    overflow:visible!important;
    white-space:normal!important;
    text-overflow:clip!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    font-size:clamp(27px,8.2vw,34px)!important;
    line-height:1.02!important;
    letter-spacing:-.04em!important;
  }
  body.findar-mobile-premium-search .fmp-property-card .fmp-property-body .fmp-favorite{
    display:none!important;
  }

  /* Fixed navigation must not make the last card or footer unreachable. */
  body.findar-mobile-premium-search{
    padding-bottom:calc(118px + env(safe-area-inset-bottom))!important;
  }
  body.findar-mobile-premium-search .fmp-search-page,
  body.findar-mobile-premium-search main#main-content{
    padding-bottom:calc(120px + env(safe-area-inset-bottom))!important;
  }

  /* Compact privacy control: accessible, but never sitting on titles or cards. */
  body .findar-consent-open{
    display:grid!important;
    place-items:center!important;
    left:12px!important;
    bottom:calc(92px + env(safe-area-inset-bottom))!important;
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    min-height:42px!important;
    padding:0!important;
    overflow:hidden!important;
    border-radius:999px!important;
    font-size:0!important;
    line-height:1!important;
    box-shadow:0 8px 24px rgba(2,6,23,.16)!important;
    z-index:2147481000!important;
  }
  body .findar-consent-open::before{
    content:'⚙';
    display:block!important;
    font-size:18px!important;
    line-height:1!important;
  }
  body.single-propriete .findar-consent-open,
  body.findar-mobile-premium-single .findar-consent-open{
    bottom:calc(88px + env(safe-area-inset-bottom))!important;
  }
}
