/* Site-wide search overlay. No desktop text scale changes. */
.site-header .global-search-trigger{
  order:3;flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  width:43px;height:43px;margin-left:11px;padding:0;border:1px solid #d6e0d8;
  border-radius:11px;background:#fff;color:#224f3f;cursor:pointer;z-index:3
}
.site-header .global-search-trigger:hover{background:#eff6f1;border-color:#9dbba8}
.site-header .global-search-trigger svg{display:block;width:20px;height:20px}
.site-header .global-search-trigger:focus-visible{outline:3px solid #2b896c;outline-offset:3px}
.global-search-dialog{
  position:fixed;inset:auto;margin:auto;padding:0;border:1px solid #d7e2da;
  border-radius:20px;width:min(740px,calc(100% - 32px));max-height:min(84dvh,850px);
  background:#fff;color:#18362a;box-shadow:0 35px 85px rgba(13,35,26,.24);
  overflow:hidden
}
.global-search-dialog::backdrop{background:rgba(10,23,17,.58)}
.global-search-inner{display:flex;flex-direction:column;max-height:min(84dvh,850px)}
.global-search-top{display:flex;align-items:center;gap:12px;padding:20px 21px;border-bottom:1px solid #e2e9e3}
.global-search-icon{font-size:22px;line-height:1;color:#386d59}
.global-search-input{flex:1;min-width:0;border:0!important;outline:none!important;background:none!important;
  color:#1b382c;font:500 18px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.global-search-input::placeholder{color:#65766d}
.global-search-close{display:flex;align-items:center;justify-content:center;
  width:38px;height:38px;flex:0 0 38px;border:1px solid #dde7de;
  background:#f6faf7;border-radius:10px;font-size:22px;color:#465a50;cursor:pointer}
.global-search-results{overflow:auto;overscroll-behavior:contain;padding:10px 12px 18px;min-height:160px;max-height:60dvh}
.global-search-group{margin:8px 0 18px}
.global-search-group h2{margin:10px 10px 7px;font-size:13px!important;text-transform:uppercase;letter-spacing:.065em;color:#607367}
.global-search-result{display:block;text-decoration:none!important;padding:11px 12px;border-radius:12px;color:#1d3b2e!important}
.global-search-result:hover,.global-search-result:focus-visible{background:#eaf3ec;outline:none}
.global-search-title{display:block;font-size:16px;font-weight:690;line-height:1.42;overflow-wrap:anywhere}
.global-search-description{display:block;margin-top:3px;font-size:14px;line-height:1.5;color:#587065;overflow-wrap:anywhere}
.global-search-state{font-size:15px;line-height:1.6;color:#5c6c63;margin:17px;padding:14px}
.global-search-footer{padding:10px 21px;border-top:1px solid #e7ece8;
  font-size:12px;color:#667a6c;line-height:1.5}
@media(max-width:900px){
  .site-header .brand{max-width:calc(100% - 165px)!important}
  .site-header .global-search-trigger{position:absolute!important;top:10px;right:103px;margin:0!important}
}
@media(max-width:600px){
  .global-search-dialog{width:calc(100% - 20px);max-height:92dvh;border-radius:17px}
  .global-search-inner{max-height:92dvh}
  .global-search-top{padding:13px 12px;gap:8px}
  .global-search-input{font-size:17px!important}
  .global-search-results{max-height:72dvh}
  .global-search-group h2{font-size:14px!important}
  .global-search-title{font-size:17px}
  .global-search-description{font-size:15px}
  .global-search-footer{font-size:13px;padding:12px 15px}
  .global-search-result{padding:13px 11px}
}
@media(max-width:360px){
  .site-header .global-search-trigger{right:94px}
  .site-header .brand{max-width:calc(100% - 154px)!important}
}


/* Search placement and viewport fix v2. Desktop stays one row; Safari's
   dialog always opens with its labelled input at the top of the visible screen. */
@media(min-width:901px){
  .site-header{
    grid-template-columns:236px minmax(0,1fr) 44px!important;
    column-gap:clamp(12px,2vw,26px)!important;
  }
  .site-header .brand{grid-column:1;grid-row:1}
  .site-header nav{grid-column:2;grid-row:1;min-width:0!important}
  .site-header .global-search-trigger{
    grid-column:3;grid-row:1;align-self:center;justify-self:end;
    width:44px;height:44px;margin:0!important;order:initial;
    position:relative!important;top:auto!important;right:auto!important
  }
}
@media(min-width:901px) and (max-width:1180px){
  .site-header{grid-template-columns:205px minmax(0,1fr) 42px!important;column-gap:10px!important}
  .site-header nav{gap:0!important;font-size:12px!important}
  .site-header .nav-link{padding-left:7px!important;padding-right:7px!important}
  .site-header .nav-agents{padding-left:9px!important;padding-right:9px!important}
  .site-header .nav-compare{padding-left:10px!important;padding-right:10px!important}
  .site-header .global-search-trigger{width:42px;height:42px}
}
/* A top-layer dialog needs explicit viewport coordinates on iOS Safari.
   'inset:auto; margin:auto' otherwise can place its form off-screen. */
.global-search-dialog{
  position:fixed!important;
  inset:clamp(64px,10vh,100px) auto auto 50%!important;
  transform:translateX(-50%);
  margin:0!important;
  width:min(740px,calc(100vw - 32px));
  max-height:min(810px,calc(var(--omw-search-visible-height,100dvh) - 120px))!important;
  overflow:hidden
}
.global-search-inner{max-height:inherit;min-height:0}
.global-search-top{
  display:flex;flex-direction:column;align-items:stretch;gap:10px;
  padding:20px 22px 17px;flex:0 0 auto
}
.global-search-label{
  display:block;font-size:15px;font-weight:760;line-height:1.4;
  color:#1b4030;letter-spacing:-.01em
}
.global-search-input-row{
  display:flex;align-items:center;gap:10px;
  border:2px solid #8db5a2;border-radius:13px;background:#f8fbf9;
  padding:0 11px;min-height:58px
}
.global-search-input-row:focus-within{
  border-color:#217b63;box-shadow:0 0 0 3px rgba(33,123,99,.13)
}
.global-search-icon{flex:0 0 auto;font-size:24px;color:#315b4c}
.global-search-input{
  display:block;width:100%;min-width:0;min-height:52px;padding:0 2px!important;
  font-size:18px!important;line-height:1.4!important;
  background:transparent!important;border:0!important;box-shadow:none!important
}
.global-search-close{flex:0 0 39px;min-height:39px}
.global-search-results{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto}
.global-search-footer{flex:0 0 auto}
@media(max-width:900px){
  .site-header .global-search-trigger{
    display:flex!important;position:absolute!important;top:10px!important;
    right:103px!important;z-index:5;width:43px;height:43px;margin:0!important
  }
}
@media(max-width:600px){
  .global-search-dialog{
    inset:max(12px,env(safe-area-inset-top,0px)) auto auto 50%!important;
    width:calc(100vw - 20px);
    max-height:calc(var(--omw-search-visible-height,100dvh) - 24px)!important;
    border-radius:17px
  }
  .global-search-inner{max-height:inherit}
  .global-search-top{padding:14px 13px 12px;gap:9px}
  .global-search-label{font-size:16px;line-height:1.4}
  .global-search-input-row{min-height:56px;gap:7px;padding:0 10px}
  .global-search-input{font-size:17px!important;min-height:52px}
  .global-search-results{min-height:0;max-height:none;padding:8px 10px 14px}
  .global-search-footer{font-size:12px;line-height:1.45;padding:9px 14px}
  .global-search-result{padding:13px 12px}
}
@media(max-width:360px){
  .site-header .global-search-trigger{right:94px!important}
}
