/* ============================================================
   Findar V46120C — MOBILE CLEANUP ONLY SAFE
   Base: V46120B / stable V46119F line.
   Scope: property page <= 780px only.
   Goal: one tab bar, compact sticky stack, compact details/map/CTA.
   No desktop, CPT, DB, route, query, contact or publication changes.
   ============================================================ */

@media (max-width:780px){
  :root{
    --fmp20b-mobile-summary-h:46px;
    --fmp20b-mobile-tabs-h:40px;
  }

  body.single-propriete,
  body.findar-mobile-premium-single{
    padding-bottom:76px!important;
  }

  /* One navigation only: keep the conditional sticky tabs and remove
     the second in-flow tab row that caused the black active circle. */
  body.single-propriete .fmp-pdp-tabs,
  body.findar-mobile-premium-single .fmp-pdp-tabs{
    display:none!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
  }

  /* Compact sticky price facts. */
  body.single-propriete #fmp-single-scroll-summary.fmp-single-scroll-summary,
  body.findar-mobile-premium-single #fmp-single-scroll-summary.fmp-single-scroll-summary,
  #fmp-single-scroll-summary .fmp-scroll-summary-inner{
    height:var(--fmp20b-mobile-summary-h)!important;
    min-height:var(--fmp20b-mobile-summary-h)!important;
  }
  #fmp-single-scroll-summary .fmp-scroll-summary-inner{
    padding:0 12px!important;
  }
  #fmp-single-scroll-summary .fmp-scroll-summary-main{
    gap:9px!important;
  }
  #fmp-single-scroll-summary .fmp-scroll-summary-price{
    font-size:18px!important;
    line-height:1!important;
  }
  #fmp-single-scroll-summary .fmp20b-scroll-mobile-facts{
    font-size:11.5px!important;
    line-height:1.15!important;
  }

  body.findar-mobile-premium-single.fmp16d-is-stuck:not(.fmp16d-at-end) .fmp16a-sticky-tabs,
  body.single-propriete.fmp16d-is-stuck:not(.fmp16d-at-end) .fmp16a-sticky-tabs{
    min-height:var(--fmp20b-mobile-tabs-h)!important;
    height:var(--fmp20b-mobile-tabs-h)!important;
    gap:15px!important;
    padding:0 12px!important;
  }
  body.findar-mobile-premium-single.fmp16d-is-stuck:not(.fmp16d-at-end) .fmp16a-sticky-tabs a,
  body.single-propriete.fmp16d-is-stuck:not(.fmp16d-at-end) .fmp16a-sticky-tabs a{
    min-height:var(--fmp20b-mobile-tabs-h)!important;
    height:var(--fmp20b-mobile-tabs-h)!important;
    font-size:11.75px!important;
    line-height:1!important;
  }

  /* Price/title under the gallery: readable, never a full-screen serif block. */
  body.single-propriete main#main-content .fmp-trulia-topline,
  body.findar-mobile-premium-single main#main-content .fmp-trulia-topline{
    gap:7px!important;
    padding:14px 14px 12px!important;
  }
  body.single-propriete main#main-content .fmp-trulia-pricebox strong,
  body.findar-mobile-premium-single main#main-content .fmp-trulia-pricebox strong{
    font-family:inherit!important;
    font-size:34px!important;
    font-weight:850!important;
    line-height:1.02!important;
    letter-spacing:-.045em!important;
  }
  body.single-propriete main#main-content .fmp-trulia-pricebox > span,
  body.findar-mobile-premium-single main#main-content .fmp-trulia-pricebox > span{
    display:none!important;
  }
  body.single-propriete main#main-content .fmp-trulia-titlebox,
  body.findar-mobile-premium-single main#main-content .fmp-trulia-titlebox{
    min-width:0!important;
  }
  body.single-propriete main#main-content .fmp-trulia-titlebox h1,
  body.findar-mobile-premium-single main#main-content .fmp-trulia-titlebox h1{
    display:-webkit-box!important;
    overflow:hidden!important;
    margin:0!important;
    font-family:inherit!important;
    font-size:clamp(27px,7.5vw,32px)!important;
    font-weight:780!important;
    line-height:1.13!important;
    letter-spacing:-.035em!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:3!important;
  }
  body.single-propriete main#main-content .fmp-trulia-titlebox p,
  body.findar-mobile-premium-single main#main-content .fmp-trulia-titlebox p{
    margin:3px 0 0!important;
    font-size:15px!important;
    line-height:1.35!important;
  }
  body.single-propriete main#main-content .fmp-trulia-meta,
  body.findar-mobile-premium-single main#main-content .fmp-trulia-meta{
    margin-top:6px!important;
    font-size:14px!important;
    line-height:1.45!important;
  }

  /* Compact key facts and remove dead vertical space. */
  body.single-propriete .fmp16e-summary-primary,
  body.findar-mobile-premium-single .fmp16e-summary-primary{
    min-height:0!important;
    height:auto!important;
    padding:0!important;
    margin:10px 12px 0!important;
    overflow:hidden!important;
    border:1px solid #e3e8ef!important;
    border-radius:14px!important;
  }
  body.single-propriete .fmp16e-summary-primary > div,
  body.findar-mobile-premium-single .fmp16e-summary-primary > div{
    min-height:72px!important;
    height:auto!important;
    padding:12px!important;
  }
  body.single-propriete .fmp16e-summary-secondary,
  body.findar-mobile-premium-single .fmp16e-summary-secondary{
    margin-top:8px!important;
    margin-bottom:0!important;
  }

  /* Interior / Exterior: compact 2-column facts, no giant Agencement card. */
  body.single-propriete .fmp19e-property-details,
  body.findar-mobile-premium-single .fmp19e-property-details{
    min-height:0!important;
    height:auto!important;
    margin:12px!important;
    padding:14px 12px!important;
    overflow:visible!important;
  }
  body.single-propriete .fmp19e-head,
  body.findar-mobile-premium-single .fmp19e-head{
    margin:0 0 4px!important;
  }
  body.single-propriete .fmp19e-head h2,
  body.findar-mobile-premium-single .fmp19e-head h2{
    font-family:inherit!important;
    font-size:19px!important;
    font-weight:850!important;
    line-height:1.15!important;
  }
  body.single-propriete .fmp19e-tabs,
  body.findar-mobile-premium-single .fmp19e-tabs{
    min-height:40px!important;
    height:40px!important;
  }
  body.single-propriete .fmp19e-tabs button,
  body.findar-mobile-premium-single .fmp19e-tabs button{
    min-height:40px!important;
    height:40px!important;
    font-size:13px!important;
  }
  body.single-propriete .fmp19e-panel,
  body.findar-mobile-premium-single .fmp19e-panel,
  body.single-propriete .fmp19e-groups,
  body.findar-mobile-premium-single .fmp19e-groups,
  body.single-propriete .fmp19e-group,
  body.findar-mobile-premium-single .fmp19e-group,
  body.single-propriete .fmp19e-rows,
  body.findar-mobile-premium-single .fmp19e-rows{
    min-height:0!important;
    height:auto!important;
  }
  body.single-propriete .fmp19e-panel,
  body.findar-mobile-premium-single .fmp19e-panel{
    padding-top:10px!important;
  }
  body.single-propriete .fmp19e-groups,
  body.findar-mobile-premium-single .fmp19e-groups{
    display:block!important;
  }
  body.single-propriete .fmp19e-group,
  body.findar-mobile-premium-single .fmp19e-group{
    margin:0 0 12px!important;
    padding:0!important;
  }
  body.single-propriete .fmp19e-group:last-child,
  body.findar-mobile-premium-single .fmp19e-group:last-child{
    margin-bottom:0!important;
  }
  body.single-propriete .fmp19e-group h3,
  body.findar-mobile-premium-single .fmp19e-group h3{
    margin:0 0 7px!important;
    font-family:inherit!important;
    font-size:14px!important;
    font-weight:850!important;
    line-height:1.2!important;
    letter-spacing:0!important;
  }
  body.single-propriete .fmp19e-rows,
  body.findar-mobile-premium-single .fmp19e-rows,
  body.single-propriete .fmp19e-groups.is-single .fmp19e-rows,
  body.findar-mobile-premium-single .fmp19e-groups.is-single .fmp19e-rows{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:0!important;
    border:1px solid #e8edf3!important;
    border-radius:12px!important;
    overflow:hidden!important;
  }
  body.single-propriete .fmp19e-row,
  body.findar-mobile-premium-single .fmp19e-row{
    grid-template-columns:30px minmax(0,1fr)!important;
    gap:7px!important;
    min-height:64px!important;
    height:auto!important;
    padding:9px!important;
    border:0!important;
    border-bottom:1px solid #edf1f5!important;
  }
  body.single-propriete .fmp19e-row:nth-child(odd),
  body.findar-mobile-premium-single .fmp19e-row:nth-child(odd){
    border-right:1px solid #edf1f5!important;
  }
  body.single-propriete .fmp19e-row:nth-last-child(-n+2),
  body.findar-mobile-premium-single .fmp19e-row:nth-last-child(-n+2){
    border-bottom:0!important;
  }
  body.single-propriete .fmp19e-row-icon,
  body.findar-mobile-premium-single .fmp19e-row-icon{
    width:28px!important;
    height:28px!important;
    border-radius:8px!important;
    font-size:13px!important;
  }
  body.single-propriete .fmp19e-row-copy small,
  body.findar-mobile-premium-single .fmp19e-row-copy small{
    font-size:10.5px!important;
  }
  body.single-propriete .fmp19e-row-copy strong,
  body.findar-mobile-premium-single .fmp19e-row-copy strong{
    font-size:13px!important;
  }

  /* Tighter card rhythm through the long page. */
  body.single-propriete .fmp-trulia-section,
  body.findar-mobile-premium-single .fmp-trulia-section{
    margin-top:10px!important;
    padding:14px!important;
  }
  body.single-propriete .fmp16e-about-card .fmp16e-description-copy,
  body.findar-mobile-premium-single .fmp16e-about-card .fmp16e-description-copy{
    font-size:15px!important;
    line-height:1.55!important;
  }
  body.single-propriete .fmp19b-analysis-details,
  body.findar-mobile-premium-single .fmp19b-analysis-details{
    margin-top:10px!important;
  }
  body.single-propriete .fmp19b-analysis-accordion,
  body.findar-mobile-premium-single .fmp19b-analysis-accordion{
    margin-bottom:8px!important;
  }
  body.single-propriete .fmp19b-analysis-accordion > summary,
  body.findar-mobile-premium-single .fmp19b-analysis-accordion > summary{
    min-height:58px!important;
    padding:10px 12px!important;
  }

  /* Approximate location: smaller map and honest badge, no huge blank slab. */
  body.single-propriete .fmp-trulia-location.fmp20c-map-approx .fmp-trulia-map,
  body.findar-mobile-premium-single .fmp-trulia-location.fmp20c-map-approx .fmp-trulia-map,
  body.single-propriete .fmp-trulia-location.fmp20c-map-approx .fmp-single-map,
  body.findar-mobile-premium-single .fmp-trulia-location.fmp20c-map-approx .fmp-single-map{
    height:165px!important;
    min-height:165px!important;
  }
  body.single-propriete .fmp-trulia-location.fmp20c-map-approx::before,
  body.findar-mobile-premium-single .fmp-trulia-location.fmp20c-map-approx::before{
    content:"Localisation approximative";
    display:inline-flex!important;
    align-items:center!important;
    min-height:28px!important;
    margin:0 0 9px!important;
    padding:0 10px!important;
    border-radius:999px!important;
    background:#eef4ff!important;
    color:#1746c7!important;
    font-size:11px!important;
    font-weight:850!important;
  }

  /* The large SEO/navigation card is not useful inside a mobile property fiche. */
  body.single-propriete .fmp20c-mobile-popular-block,
  body.findar-mobile-premium-single .fmp20c-mobile-popular-block{
    display:none!important;
  }

  /* Bottom CTA: useful, but must not cover a quarter of the screen. */
  body.single-propriete #fmp-rc-contact-bar.fmp-rc-contact-bar,
  body.findar-mobile-premium-single #fmp-rc-contact-bar.fmp-rc-contact-bar{
    min-height:0!important;
    height:auto!important;
    max-height:76px!important;
    gap:8px!important;
    padding:7px 10px calc(7px + env(safe-area-inset-bottom))!important;
    border-radius:18px 18px 0 0!important;
    box-shadow:0 -8px 24px rgba(15,23,42,.11)!important;
  }
  body.single-propriete #fmp-rc-contact-bar a,
  body.findar-mobile-premium-single #fmp-rc-contact-bar a{
    min-height:46px!important;
    height:46px!important;
    max-height:46px!important;
    padding:0 10px!important;
    border-radius:999px!important;
    font-size:14px!important;
    line-height:1!important;
  }

  /* Updated anchor offset for the smaller sticky stack. */
  body.findar-mobile-premium-single #fmp-tab-apercu,
  body.findar-mobile-premium-single #fmp-tab-description,
  body.findar-mobile-premium-single #fmp-tab-caracteristiques,
  body.findar-mobile-premium-single #fmp-tab-quartier,
  body.findar-mobile-premium-single #fmp-tab-ensoleillement,
  body.findar-mobile-premium-single #fmp-detail-climate{
    scroll-margin-top:calc(var(--fmp16d-admin-h,0px) + var(--fmp20b-mobile-header-h) + var(--fmp20b-mobile-summary-h) + var(--fmp20b-mobile-tabs-h) + 8px)!important;
  }
}

@media (max-width:390px){
  body.single-propriete main#main-content .fmp-trulia-titlebox h1,
  body.findar-mobile-premium-single main#main-content .fmp-trulia-titlebox h1{
    font-size:27px!important;
  }
  body.single-propriete .fmp19e-row,
  body.findar-mobile-premium-single .fmp19e-row{
    min-height:60px!important;
    padding:8px!important;
  }
}
