/* CUI editorial design follow-up 01 - all selectors intentionally scoped.
   Preserve SmartAgent, existing forms/CRM, map state and mobile results UX. */

/* Search page: fewer oversized gaps and a genuinely one-line desktop title. */
@media (min-width:1050px){
  .search-main-no-hero .unified-search-header{
    grid-template-columns:minmax(0,1fr) minmax(260px,330px)!important;
    gap:30px!important;
    padding:26px 38px 23px!important;
    align-items:end!important;
  }
  .search-main-no-hero .unified-search-header h1.section-title{
    font-size:clamp(52px,4.5vw,66px)!important;
    line-height:1.01!important;
    white-space:nowrap!important;
    letter-spacing:-.04em!important;
  }
  .search-main-no-hero .unified-search-header h1 .red-line{
    display:inline!important;
  }
  .search-main-no-hero .unified-search-header p{
    padding-bottom:3px!important;
    font-size:14px!important;
    line-height:1.6!important;
  }
}
@media (max-width:1049px){
  .search-main-no-hero .unified-search-header{
    grid-template-columns:1fr!important;
    padding:29px 27px 23px!important;
    gap:14px!important;
  }
  .search-main-no-hero .unified-search-header h1.section-title{
    font-size:clamp(47px,7.7vw,64px)!important;
    line-height:.99!important;
  }
  .search-main-no-hero .unified-search-header p{
    padding-bottom:0!important;
    font-size:14px!important;
    max-width:650px;
  }
}
.search-main-no-hero .search-page-panel-first{padding-top:24px!important;}
.search-main-no-hero .unified-search-shell{box-shadow:0 15px 44px rgba(16,20,19,.045)!important;}
.search-main-no-hero .unified-search-form{
  padding:26px 35px 30px!important;
  gap:19px!important;
}
.search-main-no-hero .unified-search-form .field{gap:8px;}
.search-main-no-hero .unified-search-form select{
  height:49px!important;
  min-height:49px!important;
  border-radius:4px!important;
}
.search-main-no-hero .unified-search-form .input-with-icon{
  display:flex!important;
  align-items:stretch!important;
  height:50px!important;
  min-height:50px!important;
  border:1px solid #d8d3cc!important;
  border-radius:5px!important;
  background:#fff!important;
  overflow:hidden!important;
}
.search-main-no-hero .unified-search-form .input-with-icon #search-location{
  flex:1 1 auto!important;
  min-width:0!important;
  height:48px!important;
  min-height:48px!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0 15px!important;
  background:#fff!important;
}
.search-main-no-hero .unified-search-form .input-with-icon:focus-within{
  outline:2px solid rgba(215,16,35,.28);
  outline-offset:1px;
}
.search-main-no-hero .unified-search-form .input-with-icon .search-current-location{
  flex:0 0 42px!important;
  width:42px!important;
  min-width:42px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-left:1px solid #ebe6e0!important;
  background:#fff!important;
  color:#4a4e4a!important;
  display:grid!important;
  place-items:center!important;
  cursor:pointer;
  border-radius:0!important;
}
.search-main-no-hero .unified-search-form .input-with-icon .search-current-location:hover{
  color:var(--red)!important;
  background:#faf6f4!important;
}
.search-main-no-hero .unified-search-form .input-with-icon .search-current-location[hidden]{
  display:none!important;
}
.search-main-no-hero .unified-search-form .input-with-icon .search-current-location svg{width:19px;height:19px;}
.search-main-no-hero .unified-search-form .input-with-icon>button[type="submit"]{
  flex:0 0 48px!important;
  min-width:48px!important;
  width:48px!important;
  height:48px!important;
  min-height:48px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#d91427!important;
}
.search-main-no-hero .unified-search-form .input-with-icon>button[type="submit"] svg{width:19px!important;height:19px!important;}
.search-main-no-hero .unified-search-form>.field-wide .search-location-hint{margin-top:5px;}
.search-main-no-hero .unified-search-form .btn-red{border-radius:4px!important;box-shadow:none!important;background:#d91427!important;}
@media (max-width:780px){
  .search-main-no-hero .unified-search-form{padding:18px!important;gap:13px!important;}
  .search-main-no-hero .unified-search-form .input-with-icon{width:100%!important;}
}

/* Off-market, guide and document pages - more measured editorial scale. */
.offmarket-page .page-intro .section-title{
  font-size:clamp(50px,5.0vw,74px)!important;
  letter-spacing:-.038em!important;
  line-height:.98!important;
}
.offmarket-page .page-intro .section-title .red-line{
  letter-spacing:-.045em!important;
  line-height:1.04!important;
}
.offmarket-page .offmarket-principles-head h2,
.offmarket-page .black-panel h2{
  font-size:clamp(34px,3.8vw,53px)!important;
  line-height:1.05!important;
}
.fees-main + .footer {margin-top:0!important;}
.fees-main .fees-cta{margin-bottom:0!important;}
.overseas-qa + .priority-cta{margin-top:34px!important;}
.aml-main .aml-cta-panel h2{
  color:#fffdf7!important;
  text-shadow:0 1px 8px rgba(0,0,0,.15);
}
.aml-main .aml-cta-panel .section-label{color:#e99a9e!important;}

/* Stamp duty: one border around the currency control, not nested boxes. */
.sdlt-main .sdlt-money-input{
  border:1px solid #cfcac3!important;
  border-radius:5px!important;
  box-shadow:none!important;
  background:#fff!important;
  min-height:51px!important;
}
.sdlt-main .sdlt-money-input input{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  outline:0!important;
  background:transparent!important;
  height:49px!important;
  min-height:49px!important;
  padding:0 13px!important;
}
.sdlt-main .sdlt-money-input:focus-within{
  border-color:var(--red)!important;
  outline:2px solid rgba(220,13,31,.12);
}

/* Desktop/list cards only: a calmer typographic hierarchy and lighter tools.
   Do not alter mobile property results layouts or card event handlers. */
@media (min-width:1001px){
  body.property-results-page .property-card .price-line .price-amount{
    font-family:var(--sans,'Jost',Arial,sans-serif)!important;
    font-weight:500!important;
    font-size:27px!important;
    letter-spacing:-.025em!important;
    line-height:1.12!important;
  }
  body.property-results-page .property-card .property-address-line h3,
  body.property-results-page .property-card .property-address-line h3 a{
    font-family:var(--serif,'Cormorant Garamond',Georgia,serif)!important;
    font-weight:400!important;
    font-size:25px!important;
    line-height:1.05!important;
    letter-spacing:-.016em!important;
  }
  body.property-results-page .property-card .image-card-tools button{
    width:31px!important;
    height:31px!important;
    opacity:.76!important;
    box-shadow:0 3px 9px rgba(0,0,0,.08)!important;
  }
  body.property-results-page .property-card .image-card-tools button:hover,
  body.property-results-page .property-card .image-card-tools button:focus-visible{
    opacity:1!important;
  }
  body.property-results-page .property-card .image-card-tools button svg{
    width:16px!important;height:16px!important;
  }
}


/* Override strong legacy selectors only within these two page contexts. */
html body .page .fees-main + footer.footer{
  margin-top:-34px!important;
}
@media(min-width:1001px){
  body.property-results-page .results-demo .property-card .price-line h2 .price-amount{
    font-family:var(--sans,'Jost',Arial,sans-serif)!important;
    font-weight:500!important;
    font-size:27px!important;
    letter-spacing:-.025em!important;
  }
}
