/* Homepage search refinements — isolated for easy PHP template reuse. */
.market-finder{overflow:visible}.market-search-bar{position:relative;border:0;box-shadow:0 10px 30px rgba(0,0,0,.16)}
.market-query{border-right:1px solid #eee5e8}.market-query:focus-within{box-shadow:inset 0 0 0 2px rgba(237,55,108,.18);border-radius:14px 0 0 14px}.market-query input{height:100%;font-weight:600}.market-query input::placeholder{color:#9c9095;font-weight:500}
.location-control{min-width:235px;display:flex;align-items:stretch;position:relative}.location-trigger{width:100%;min-width:0;justify-content:flex-start;padding-right:43px;background:#fff9fb;transition:.2s}.location-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.location-trigger b{margin-left:auto}.location-trigger:hover{border-color:#ed376c;background:#fff1f5}.location-clear{width:32px;height:32px;position:absolute;right:8px;top:50%;z-index:2;transform:translateY(-50%);border:0;border-radius:9px;background:#f9e9ee;color:#8a6370;font-size:18px;line-height:1;cursor:pointer}.location-clear:hover{background:#ed376c;color:#fff}.location-control.location-empty .location-clear{display:none}
.location-modal{box-sizing:border-box;left:14px;right:14px;top:132px;width:auto;max-height:min(620px,calc(100vh - 160px));padding:22px;overflow:hidden;border-radius:0 0 22px 22px;box-shadow:0 28px 80px rgba(27,15,21,.25)}
.location-modal header>i{width:48px;height:48px;flex:0 0 48px;border-radius:14px;font-size:19px}.location-modal header b{font-size:18px}.location-modal header small{font-size:11px;line-height:1.45}.location-modal p{margin:16px 0 12px;padding:13px 14px}.location-modal p strong{color:#21191d}.location-modal>label{height:52px;border-radius:13px}.location-modal>label:focus-within{border-color:#ed376c;box-shadow:0 0 0 3px rgba(237,55,108,.09)}.location-modal>label input{font-size:14px}.location-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.location-modal-actions button{min-height:45px;border-radius:12px;font-weight:800;cursor:pointer}.location-modal-actions .set-location{margin-top:0}.location-modal-actions .search-anywhere{border:1px solid #eadfe3;background:#fff;color:#4c3e45}.location-modal-actions .search-anywhere:hover{border-color:#ed376c;color:#ed376c}
.location-suggestions{max-height:275px;margin-top:9px;padding:6px;scrollbar-width:thin;scrollbar-color:#edb4c5 transparent}.location-suggestions button{height:59px;padding:0 10px;gap:11px}.location-suggestions button:first-child{background:#fff}.location-suggestions button:hover{background:#fff0f4}.location-suggestions button>i{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border-radius:10px;background:#fff0f4;color:#ed376c;font-style:normal}.location-suggestions button>span{min-width:0;display:grid;gap:3px}.location-suggestions button b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#32282d;font-size:12px}.location-suggestions button small{color:#887b81;font-size:9px}.location-suggestions button em{margin-left:auto;color:#ed376c;font-style:normal}.location-loading{min-height:74px;padding:15px;display:flex;align-items:center;justify-content:center;gap:9px;color:#8a7c82;font-size:11px;text-align:center}.location-loading i{width:17px;height:17px;border:2px solid #f3cad6;border-top-color:#ed376c;border-radius:50%;animation:locationSpin .7s linear infinite}.location-loading.error{color:#b22f54}.set-location{width:100%;margin-top:12px;font-size:12px}.set-location:disabled{opacity:.65;cursor:wait}
.state-menu button{display:flex;align-items:center;justify-content:space-between}.state-menu button small{color:#a09197;font-size:10px}
.market-finder.is-searching .market-query:after{content:"";width:18px;height:18px;flex:0 0 18px;border:2px solid #f2c5d2;border-top-color:#ed376c;border-radius:50%;animation:locationSpin .65s linear infinite}
.search-suggest-panel{padding:15px!important;overflow:hidden}.live-suggestion-list{display:grid;gap:5px}.live-suggestion-list .suggestion-item{height:64px;padding:6px;border-radius:12px;transition:.18s}.live-suggestion-list .suggestion-item:hover{background:#fff3f7}.live-suggestion-list .suggestion-item>img{width:48px;height:48px;flex:0 0 48px;padding:2px;border:1px solid #eee2e6;border-radius:11px;background:#fff;object-fit:cover}.companies-mode .live-suggestion-list .suggestion-item>img{object-fit:contain}.live-suggestion-list .suggestion-item span{min-width:0;gap:4px}.live-suggestion-list .suggestion-item strong{overflow:hidden;color:#2d2428!important;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.live-suggestion-list .suggestion-item small{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.suggestion-empty{margin:0;padding:24px 12px;color:#887b81;text-align:center;font-size:11px}.search-suggest-panel .view-results{width:calc(100% + 30px);margin:10px -15px -15px}
.live-suggestion-list .suggestion-item em{overflow:hidden;color:#8a7c82;font-size:9px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
.home-search-empty{grid-column:1/-1;margin:22px 0;padding:55px 20px;display:grid;justify-items:center;gap:7px;border:1px dashed #e4d1d8;border-radius:20px;background:#fff;text-align:center}.home-search-empty[hidden]{display:none!important}.home-search-empty i{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#fff0f4;color:#ed376c;font-size:22px;font-style:normal}.home-search-empty b{font-size:16px}.home-search-empty p{margin:0;color:#887b81;font-size:11px}
.market-popular button.active{border-color:#ed376c!important;background:#ed376c!important;color:#fff!important;box-shadow:0 7px 18px rgba(237,55,108,.2)}
.search-summary{gap:12px}.search-summary-chips{min-width:0;display:flex;flex-wrap:wrap;gap:7px}.search-summary-chips span{max-width:100%;display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #443b40;border-radius:9px;background:#2b262a}.search-summary-chips small{color:#d9a3b4;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.search-summary-chips b{overflow:hidden;color:#fff;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.restart-search{flex:0 0 auto}
.category-strip a{padding:8px 7px;border:1px solid transparent;border-radius:16px;transition:.2s}.category-strip a.active{border-color:#f1b5c7;background:#fff0f4;box-shadow:0 8px 20px rgba(72,36,49,.08)}.category-strip a.active i{border-color:#ed376c;box-shadow:0 0 0 4px rgba(237,55,108,.1)}.category-strip a.active b{color:#d82f64}
.pro-body>small{display:flex;align-items:center;gap:4px;color:#73666c;font-weight:600}.pro-body>small::first-letter{color:#ed376c}
@keyframes locationSpin{to{transform:rotate(360deg)}}
@media(max-width:720px){.market-query{border-right:0;border-bottom:1px solid #eee5e8}.market-query:focus-within{border-radius:14px 14px 0 0}.location-control{min-width:0}.location-trigger{min-width:0;justify-content:flex-start;padding:0 46px 0 12px}.location-modal{position:absolute;left:10px;right:10px;top:111px;bottom:auto;width:auto;max-height:calc(100dvh - 145px);padding:18px;border-radius:0 0 20px 20px}.location-suggestions{max-height:calc(100dvh - 360px)}.location-modal-actions{grid-template-columns:1fr}.location-modal header b{font-size:17px}.search-suggest-panel{top:111px!important;max-height:calc(100dvh - 145px);overflow-y:auto}.live-suggestion-list .suggestion-item{height:60px}.live-suggestion-list .suggestion-item>img{width:44px;height:44px;flex-basis:44px}.category-strip a{padding:6px 4px}.search-summary{align-items:flex-start;flex-direction:column}.restart-search{align-self:flex-end}}
/* Preserve the original finder size and position; only lift its popups above cards. */
.market-finder{z-index:300!important;overflow:visible!important}
.location-modal,.search-suggest-panel,.results-drawer{z-index:1200!important;background:#fff!important}
.location-modal-actions{position:relative;z-index:2;background:#fff}
.location-trigger{position:relative;padding-right:43px!important;align-items:center!important}
.location-trigger svg{width:22px!important;height:22px!important;flex:0 0 22px!important}
.location-trigger span{display:flex;align-items:center;min-height:22px;line-height:1.2}
.location-trigger b{position:absolute;right:17px;top:50%;margin:0!important;transform:translateY(-50%);line-height:1}
@media(max-width:720px){.location-modal,.search-suggest-panel,.results-drawer{z-index:5000!important}.location-trigger{justify-content:flex-start!important}}
