/**
 * Findar V46171 — Desktop Finish / Above-the-fold refinement.
 * Desktop-only visual pass. Keeps V46170 mobile behavior untouched.
 * Scope: homepage header + hero proportions + search visibility.
 * No DB/CPT/routes/canonical/contact/map mutations.
 */

@media (min-width:1024px){
  /* A single contained desktop header. Prevent actions from ever escaping viewport. */
  body.findar-mobile-premium-home.fmp-global-fixed-header-active{
    --fmp-global-header-h:70px!important;
    padding-top:70px!important;
  }

  body.findar-mobile-premium-home.fmp-global-fixed-header-active #fmp-theme-mobile-header.fmp-theme-mobile-header{
    display:grid!important;
    grid-template-columns:108px max-content minmax(24px,1fr) max-content!important;
    align-items:center!important;
    column-gap:clamp(28px,2.4vw,46px)!important;
    width:100%!important;
    max-width:none!important;
    height:70px!important;
    padding-left:max(28px,calc((100vw - 1680px)/2))!important;
    padding-right:max(28px,calc((100vw - 1680px)/2))!important;
    margin:0!important;
    overflow:hidden!important;
    border-bottom:1px solid #e5eaf1!important;
    background:#fff!important;
    box-shadow:none!important;
  }

  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-menu,
  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-search{
    display:none!important;
  }

  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-logo{
    grid-column:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:108px!important;
    min-width:0!important;
    height:54px!important;
    margin:0!important;
    overflow:visible!important;
  }
  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-logo img,
  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-logo .custom-logo,
  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-logo-img{
    width:auto!important;
    max-width:104px!important;
    height:auto!important;
    max-height:46px!important;
    object-fit:contain!important;
  }

  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-nav{
    grid-column:2!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:clamp(26px,2vw,38px)!important;
    min-width:0!important;
    height:70px!important;
    margin:0!important;
  }
  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-nav a{
    min-height:70px!important;
    padding:0!important;
    font-size:15px!important;
    font-weight:780!important;
    letter-spacing:-.015em!important;
    white-space:nowrap!important;
  }

  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-actions{
    grid-column:4!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:10px!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    justify-self:end!important;
    white-space:nowrap!important;
  }
  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-login{
    height:42px!important;
    min-width:122px!important;
    padding:0 16px!important;
    border-radius:10px!important;
    font-size:14px!important;
    box-shadow:none!important;
  }
  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-publish{
    height:42px!important;
    min-width:112px!important;
    padding:0 17px!important;
    border-radius:10px!important;
    font-size:14px!important;
    box-shadow:none!important;
  }

  /* Hero: keep the villa + message, reduce visual shouting and expose search above fold. */
  body.findar-mobile-premium-home .fli-hero{
    min-height:clamp(590px,70vh,680px)!important;
  }
  body.findar-mobile-premium-home .fli-hero .fhd-hero__content{
    width:min(1180px,calc(100% - 56px))!important;
    min-height:0!important;
    align-content:center!important;
    justify-items:start!important;
    gap:15px!important;
    padding-top:34px!important;
    padding-bottom:30px!important;
  }
  body.findar-mobile-premium-home .fli-hero .fhd-hero__copy{
    width:min(100%,760px)!important;
    max-width:760px!important;
  }
  body.findar-mobile-premium-home .fli-hero .fhd-eyebrow{
    padding:7px 11px!important;
    margin:0!important;
    font-size:11px!important;
    letter-spacing:.10em!important;
  }
  body.findar-mobile-premium-home .fli-hero .fhd-hero__title{
    width:min(100%,760px)!important;
    max-width:760px!important;
    margin:0!important;
    font-size:clamp(54px,4.35vw,76px)!important;
    line-height:.96!important;
    letter-spacing:-.055em!important;
    text-wrap:balance!important;
  }
  body.findar-mobile-premium-home .fli-hero .fhd-hero__copy>p{
    width:min(100%,650px)!important;
    max-width:650px!important;
    margin:13px 0 0!important;
    font-size:clamp(16px,1.18vw,19px)!important;
    line-height:1.47!important;
  }
  body.findar-mobile-premium-home .fli-hero .fde-home-cta-row--living{
    gap:10px!important;
    margin-top:14px!important;
  }
  body.findar-mobile-premium-home .fli-hero .fde-home-cta{
    min-height:46px!important;
    padding:0 20px!important;
    border-radius:10px!important;
    font-size:14px!important;
  }

  body.findar-mobile-premium-home .fli-hero .fhd-search-card{
    width:min(100%,1000px)!important;
    margin-top:2px!important;
  }
  body.findar-mobile-premium-home .fli-hero .fhd-search-tabs button,
  body.findar-mobile-premium-home .fli-hero .fhd-search-tabs a{
    min-height:44px!important;
    padding:0 20px!important;
    border-radius:9px 9px 0 0!important;
    font-size:14px!important;
  }
  body.findar-mobile-premium-home .fli-hero .fhd-search-form{
    min-height:70px!important;
    border-radius:0 12px 12px 12px!important;
  }
  body.findar-mobile-premium-home .fli-hero .fhd-search-field{
    min-height:70px!important;
  }
  body.findar-mobile-premium-home .fli-hero .fhd-search-submit{
    min-height:54px!important;
    height:54px!important;
    margin:8px!important;
    border-radius:10px!important;
  }
  body.findar-mobile-premium-home .fli-hero .fhd-map-cta-row{
    margin-top:0!important;
  }
  body.findar-mobile-premium-home .fli-hero .fli-trust{
    margin-top:0!important;
    gap:8px 20px!important;
    font-size:12px!important;
  }
}

/* Desktop/laptop compression: preserve all primary actions without horizontal clipping. */
@media (min-width:1024px) and (max-width:1280px){
  body.findar-mobile-premium-home.fmp-global-fixed-header-active #fmp-theme-mobile-header.fmp-theme-mobile-header{
    grid-template-columns:96px max-content minmax(18px,1fr) max-content!important;
    column-gap:22px!important;
    padding-inline:24px!important;
  }
  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-logo{
    width:96px!important;
  }
  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-logo img,
  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-logo .custom-logo,
  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-logo-img{
    max-width:92px!important;
  }
  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-nav{gap:20px!important;}
  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-nav a{font-size:14px!important;}
  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-login{min-width:108px!important;padding-inline:13px!important;font-size:13px!important;}
  body.findar-mobile-premium-home #fmp-theme-mobile-header .fmp-theme-publish{min-width:100px!important;padding-inline:14px!important;font-size:13px!important;}

  body.findar-mobile-premium-home .fli-hero .fhd-hero__title{
    font-size:clamp(52px,5.1vw,66px)!important;
  }
  body.findar-mobile-premium-home .fli-hero .fhd-hero__content{
    padding-top:28px!important;
    padding-bottom:26px!important;
  }
}
