.rhmp-homepage-search-wrap{--rhmp-green:#079447;--rhmp-navy:#13294b;width:min(1180px,calc(100% - 28px));margin:-20px auto 26px;position:relative;z-index:20;font-family:inherit}
.rhmp-homepage-search-wrap *{box-sizing:border-box}
.rhmp-homepage-search-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(120px,.8fr);gap:12px;align-items:end;padding:14px;background:#fff;border:1px solid rgba(7,148,71,.48);border-radius:14px;box-shadow:0 8px 24px rgba(7,148,71,.08)}
.rhmp-search-field{min-width:0}.rhmp-search-field label{display:block;margin:0 0 6px;color:var(--rhmp-navy);font-size:12px;line-height:1.2;font-weight:600}
.rhmp-combobox{position:relative}.rhmp-homepage-search-wrap .rhmp-combo-input{display:block;width:100%;min-width:0;height:48px;margin:0;padding:0 12px;border:1px solid rgba(7,148,71,.55)!important;border-radius:10px;background:#fff;color:var(--rhmp-navy);font-family:inherit;font-size:14px;box-shadow:none;outline:0}
.rhmp-homepage-search-wrap .rhmp-combo-input:focus{border-color:var(--rhmp-green)!important;box-shadow:0 0 0 3px rgba(7,148,71,.12)}
.rhmp-combo-list{position:absolute;top:calc(100% + 5px);left:0;min-width:100%;width:max-content;max-width:min(310px,80vw);max-height:260px;overflow:auto;background:white;border:1px solid rgba(7,148,71,.4);border-radius:10px;padding:5px;box-shadow:0 10px 24px rgba(0,0,0,.14);z-index:30}
.rhmp-homepage-search-wrap [hidden]{display:none!important}.rhmp-combo-list button{display:block;width:100%;border:0;border-radius:6px;margin:0;padding:10px 12px;text-align:left;background:white;color:#13294b;font-family:inherit;font-size:14px;line-height:1.3;cursor:pointer;white-space:normal}
.rhmp-combo-list button:hover,.rhmp-combo-list button.is-highlighted{background:#eaf8ef;color:#006d35}.rhmp-no-options{padding:8px;margin:0;color:#667085;font-size:13px}
.rhmp-homepage-search-wrap .rhmp-search-submit{width:100%;height:48px;margin:0;padding:0 12px;border:1px solid rgba(7,148,71,.3);border-radius:10px;background:linear-gradient(115deg,rgba(255,255,255,.2),transparent 65%),linear-gradient(135deg,#20ed78,#10cf61 48%,#079447);color:white;font-family:inherit;font-size:14px;line-height:1.2;font-weight:700;cursor:pointer;box-shadow:inset 0 1px 2px rgba(255,255,255,.5),0 5px 12px rgba(7,148,71,.2)}
.rhmp-search-submit:hover{filter:brightness(1.04)}.rhmp-search-submit:focus-visible{outline:3px solid #a6e7bc;outline-offset:2px}.rhmp-search-submit:disabled{opacity:.65;cursor:wait}
.rhmp-search-message{grid-column:1/-1;margin:0;color:#a52c20;font-size:12px}.rhmp-search-message:empty{display:none}
.rhmp-search-results{margin-top:20px;padding:18px;background:white;border:1px solid #d8eadf;border-radius:14px}.rhmp-search-results h3{font-size:18px;margin:0 0 15px}.rhmp-search-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.rhmp-search-result-card{overflow:hidden;border:1px solid #d8eadf;border-radius:12px}.rhmp-search-result-card img{width:100%;height:180px;object-fit:cover}.rhmp-search-result-card h4{margin:12px;font-size:16px}.rhmp-search-result-card p{margin:0 12px 12px;color:#667085;font-size:13px}
@media(max-width:900px){.rhmp-homepage-search-wrap{margin:14px auto 24px}.rhmp-search-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.rhmp-homepage-search-wrap{width:calc(100% - 16px);margin:12px auto 22px}.rhmp-homepage-search-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(78px,.8fr);gap:6px;padding:8px;border-radius:12px}.rhmp-search-field label{font-size:10px;margin-bottom:5px}.rhmp-homepage-search-wrap .rhmp-combo-input{height:44px;padding:0 7px;font-size:12px;border-radius:8px}.rhmp-homepage-search-wrap .rhmp-search-submit{height:44px;padding:0 5px;font-size:11px;border-radius:8px}.rhmp-search-results-grid{grid-template-columns:1fr}.rhmp-search-results{padding:12px}}

/* Reference-style floating search panel. Existing selectors and logic retained. */
.rhmp-homepage-search-wrap{--rhmp-green:#176d43;--rhmp-navy:#233c2e;width:min(1000px,calc(100% - 48px));margin:-100px auto 38px;z-index:20;}
.rhmp-homepage-search-form{gap:24px;padding:24px 28px;border:1px solid #a8c5b3;border-radius:22px;background:rgba(255,255,255,.97);box-shadow:0 18px 38px rgba(20,51,32,.15);}
.rhmp-search-field label{font-size:14px;font-weight:500;color:#48574d;margin-bottom:9px;}
.rhmp-homepage-search-wrap .rhmp-combo-input{height:54px;padding:0 16px;border:1px solid #dce3dd!important;border-radius:10px;color:#394b40;font-size:15px;}
.rhmp-homepage-search-wrap .rhmp-search-submit{height:54px;border:1px solid #176d43;border-radius:10px;background:#176d43!important;color:#fff;font-size:15px;font-weight:650;box-shadow:none;display:flex;align-items:center;justify-content:center;gap:10px;}
.rhmp-homepage-search-wrap .rhmp-search-submit:before{content:'';width:17px;height:17px;flex:none;border:2px solid currentColor;border-radius:50%;background:transparent;}
.rhmp-homepage-search-wrap .rhmp-search-submit:after{content:'';position:absolute;width:8px;height:2px;background:currentColor;transform:translate(-73px,8px) rotate(45deg);display:none;}
.rhmp-homepage-search-wrap .rhmp-combobox:after{content:'';position:absolute;right:16px;top:21px;width:8px;height:8px;border-right:2px solid #53685c;border-bottom:2px solid #53685c;transform:rotate(45deg);pointer-events:none;}
.rhmp-homepage-search-wrap .rhmp-combo-input{padding-right:36px;}
@media(max-width:900px){.rhmp-homepage-search-wrap{margin:-80px auto 30px;width:calc(100% - 40px);}.rhmp-homepage-search-form{padding:20px;gap:14px;}}
@media(max-width:640px){.rhmp-homepage-search-wrap{margin:-32px auto 28px;width:calc(100% - 32px);}.rhmp-homepage-search-form{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:14px 10px;border-radius:18px;}.rhmp-homepage-search-wrap .rhmp-search-submit{grid-column:1/-1;height:48px;font-size:14px;}.rhmp-search-field label{font-size:12px;margin-bottom:7px;}.rhmp-homepage-search-wrap .rhmp-combo-input{height:48px;padding-left:10px;font-size:13px;}.rhmp-homepage-search-wrap .rhmp-combobox:after{top:18px;right:12px;}.rhmp-combo-list{max-width:calc(100vw - 64px);}}

.rhmp-homepage-search-wrap .rhmp-search-submit:before,.rhmp-homepage-search-wrap .rhmp-search-submit:after{display:none!important;}
.rhmp-search-icon{flex:none;}

/* Match the existing category Ads badge green gradient. */
.rhmp-homepage-search-wrap .rhmp-search-submit,
.rhmp-homepage-search-wrap .rhmp-search-submit:hover,
.rhmp-homepage-search-wrap .rhmp-search-submit:focus,
.rhmp-homepage-search-wrap .rhmp-search-submit:active {
 background:linear-gradient(115deg,rgba(255,255,255,.18) 0%,rgba(255,255,255,.04) 42%,transparent 65%),linear-gradient(135deg,#20ed78 0%,#10d866 48%,#08af55 100%)!important;
 border-color:#08af55!important;color:#fff!important;
}


/* One compact horizontal bar across both hero panels, near the bottom. */
.homepage-hero>.rhmp-homepage-search-wrap{
 position:absolute!important;left:50%!important;bottom:36px!important;transform:translateX(-50%)!important;
 width:min(900px,84%)!important;max-width:none!important;margin:0!important;z-index:20!important;
}
.homepage-hero .rhmp-homepage-search-form{
 grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.85fr)!important;
 align-items:end!important;gap:16px!important;padding:16px 20px!important;border-radius:18px!important;
 background:rgba(255,255,255,.96)!important;backdrop-filter:blur(12px);box-shadow:0 12px 32px #14332025!important;
}
.homepage-hero .rhmp-search-submit{grid-column:auto!important;white-space:nowrap!important;}
@media(max-width:1024px){.homepage-hero>.rhmp-homepage-search-wrap{width:88%!important;bottom:28px!important;}.homepage-hero .rhmp-homepage-search-form{gap:12px!important;padding:14px!important;}.homepage-hero .rhmp-search-submit{font-size:13px!important;}}
@media(max-width:640px){
 .homepage-hero>.rhmp-homepage-search-wrap{width:calc(100% - 24px)!important;bottom:20px!important;}
 .homepage-hero .rhmp-homepage-search-form{gap:6px!important;padding:10px!important;border-radius:13px!important;}
 .homepage-hero .rhmp-search-field label{font-size:10px!important;margin-bottom:5px!important;}
 .homepage-hero .rhmp-combo-input{height:44px!important;padding-left:7px!important;padding-right:20px!important;font-size:11px!important;}
 .homepage-hero .rhmp-combobox:after{right:8px!important;width:6px!important;height:6px!important;top:18px!important;}
 .homepage-hero .rhmp-search-submit{height:44px!important;font-size:10px!important;padding:0 5px!important;gap:4px!important;white-space:normal!important;}
 .homepage-hero .rhmp-search-icon{width:14px!important;height:14px!important;}
 .homepage-hero .rhmp-combo-list{max-width:calc(100vw - 44px)!important;}
}

/* Narrow frosted glass bar over both hero panels. */
.homepage-hero>.rhmp-homepage-search-wrap{width:min(760px,76%)!important;bottom:28px!important;}
.homepage-hero .rhmp-homepage-search-form{background:rgba(255,255,255,.38)!important;border:1px solid rgba(255,255,255,.7)!important;backdrop-filter:blur(14px) saturate(140%);-webkit-backdrop-filter:blur(14px) saturate(140%);padding:12px 16px!important;gap:12px!important;box-shadow:0 10px 28px #173c2924,inset 0 1px 0 #ffffff99!important;}
.homepage-hero .rhmp-combo-input{background:rgba(255,255,255,.58)!important;}
@media(max-width:640px){.homepage-hero>.rhmp-homepage-search-wrap{width:88%!important;bottom:16px!important;}.homepage-hero .rhmp-homepage-search-form{padding:8px!important;gap:5px!important;}.homepage-hero .rhmp-search-field label{font-size:9px!important;}.homepage-hero .rhmp-combo-input{font-size:10px!important;}.homepage-hero .rhmp-search-submit{font-size:9px!important;}}

/* Slim horizontal glass bar; keep options above following ad cards. */
.homepage-hero>.rhmp-homepage-search-wrap{z-index:1000!important;overflow:visible!important;}
.homepage-hero .rhmp-homepage-search-form{padding:8px 12px!important;gap:8px!important;overflow:visible!important;}
.homepage-hero .rhmp-search-field label{font-size:11px!important;margin-bottom:3px!important;line-height:1.2!important;}
.homepage-hero .rhmp-combo-input,.homepage-hero .rhmp-search-submit{height:38px!important;min-height:38px!important;}
.homepage-hero .rhmp-combobox{overflow:visible!important;}
.homepage-hero .rhmp-combo-list{z-index:10000!important;max-height:240px!important;}
@media(max-width:640px){
.homepage-hero .rhmp-homepage-search-form{padding:6px 8px!important;gap:5px!important;}
.homepage-hero .rhmp-search-field label{font-size:9px!important;}
.homepage-hero .rhmp-combo-input,.homepage-hero .rhmp-search-submit{height:34px!important;min-height:34px!important;}
}

/* 1.4.3: understated slim search on tablet and mobile only. */
@media(max-width:1024px){
 .homepage-hero.has-photo-search>.rhmp-homepage-search-wrap{width:min(680px,74%)!important;}
 .homepage-hero.has-photo-search .rhmp-homepage-search-form{padding:5px 8px!important;gap:6px!important;border-radius:12px!important;background:rgba(255,255,255,.18)!important;border:1px solid rgba(255,255,255,.35)!important;box-shadow:0 3px 10px rgba(23,60,41,.06)!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);}
 .homepage-hero.has-photo-search .rhmp-search-field label{font-size:10px!important;line-height:1.1!important;margin:0 0 2px!important;}
 .homepage-hero.has-photo-search .rhmp-combo-input,.homepage-hero.has-photo-search .rhmp-search-submit{height:32px!important;min-height:32px!important;font-size:11px!important;border-radius:7px!important;padding-top:0!important;padding-bottom:0!important;}
 .homepage-hero.has-photo-search .rhmp-combo-input{background:rgba(255,255,255,.24)!important;}
 .homepage-hero.has-photo-search .rhmp-combobox:after{top:11px!important;}
}
@media(max-width:640px){
 .homepage-hero.has-photo-search>.rhmp-homepage-search-wrap{width:80%!important;bottom:14px!important;}
 .homepage-hero.has-photo-search .rhmp-homepage-search-form{padding:4px 5px!important;gap:4px!important;border-radius:9px!important;}
 .homepage-hero.has-photo-search .rhmp-search-field label{font-size:8px!important;}
 .homepage-hero.has-photo-search .rhmp-combo-input,.homepage-hero.has-photo-search .rhmp-search-submit{height:28px!important;min-height:28px!important;font-size:9px!important;line-height:1.1!important;}
 .homepage-hero.has-photo-search .rhmp-combo-input{padding-left:5px!important;padding-right:16px!important;}
 .homepage-hero.has-photo-search .rhmp-search-submit{padding-left:4px!important;padding-right:4px!important;gap:3px!important;}
 .homepage-hero.has-photo-search .rhmp-search-icon{width:11px!important;height:11px!important;}
 .homepage-hero.has-photo-search .rhmp-combobox:after{top:9px!important;right:6px!important;}
}

/* 1.4.5: mobile bar overlaps the lower photo area, centered across the full hero. */
@media(max-width:640px){
 .homepage-hero.has-photo-search>.rhmp-homepage-search-wrap{position:absolute!important;left:50%!important;right:auto!important;top:auto!important;bottom:14%!important;transform:translateX(-50%)!important;width:80%!important;margin:0!important;}
}

@media(max-width:640px){
 .homepage-hero.has-photo-search>.rhmp-homepage-search-wrap{width:92%!important;left:50%!important;bottom:12px!important;transform:translateX(-50%)!important;}
 .homepage-hero.has-photo-search .rhmp-homepage-search-form{background:rgba(255,255,255,.48)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.65)!important;padding:5px 6px!important;gap:5px!important;box-shadow:0 4px 14px rgba(20,50,30,.08)!important;border-radius:12px!important;}
 .homepage-hero.has-photo-search .rhmp-search-field label{font-size:8px!important;margin-bottom:3px!important;}
 .homepage-hero.has-photo-search .rhmp-combo-input,.homepage-hero.has-photo-search .rhmp-search-submit{height:30px!important;min-height:30px!important;font-size:9px!important;}
 .homepage-hero.has-photo-search .rhmp-combo-input{background:rgba(255,255,255,.20)!important;}
}

/* 1.5.1: keep the category/district chevrons optically centered in every search-bar height. */
.homepage-hero .rhmp-homepage-search-wrap .rhmp-combobox::after{
  top:50%!important;
  right:12px!important;
  width:8px!important;
  height:8px!important;
  margin:0!important;
  transform:translateY(-65%) rotate(45deg)!important;
  transform-origin:50% 50%!important;
  border-right:2px solid #53685c!important;
  border-bottom:2px solid #53685c!important;
}
@media(max-width:640px){
  .homepage-hero .rhmp-homepage-search-wrap .rhmp-combobox::after{
    right:8px!important;
    width:6px!important;
    height:6px!important;
  }
}
