/* Business Pro Dynamic Home 1.1.4. Scoped layout. Theme/header, listing renderer and core engines untouched. */
.bph-home{--bp-navy:#082f46;--bp-orange:#fa7709;--bp-border:#e4ebf0;--bp-text:#13344a;--bp-muted:#657a87;box-sizing:border-box;max-width:none!important;width:100%!important;margin:0!important;padding:0!important;background:#fff;color:var(--bp-text);overflow-x:clip}
.bph-home *, .bph-home *::before, .bph-home *::after{box-sizing:border-box}
.bph-home [hidden]{display:none!important}
.bph-home :is(h1,h2,h3,p){margin:0}
.bph-home :is(input,button,select){font:inherit}
.bph-home :is(summary,button,a,input,select):focus-visible{outline:3px solid #e98326!important;outline-offset:2px}
body.bph-managed-home-page{overflow-x:hidden}
body.bph-managed-home-page :is(#content,.site-content){width:100%!important;max-width:none!important}
body.bph-managed-home-page :is(.site-content>.ast-container,.site-content .ast-container,#primary,.content-area,.site-main,.ast-article-single,.entry-content,.wp-block-post-content){display:block!important;float:none!important;max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
body.bph-managed-home-page :is(.entry-header,h1.entry-title,.site-content #secondary,.site-content .widget-area){display:none!important}
.bph-front-container{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.bph-discover{background:linear-gradient(135deg,#07354d,#07344f 65%,#065069);padding:10px clamp(12px,3vw,36px) 19px;color:#fff}
.bph-discover>*{max-width:1450px;margin-left:auto;margin-right:auto}
.bph-location-details{background:#fff;border:1px solid #dce5e9;border-radius:11px;color:var(--bp-text);box-shadow:0 2px 10px rgba(0,0,0,.06)}
.bph-location-details>summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;min-height:46px;padding:7px 12px;font-size:14px;font-weight:750}
.bph-location-details>summary::-webkit-details-marker{display:none}
.bph-pin{display:inline-grid;place-items:center;flex:none;width:27px;height:27px;border-radius:8px;background:#fff2e6;color:#e77009;font-size:21px}
.bph-current-label{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.bph-chevron{font-size:18px;color:#e56e07}.bph-location-details[open] .bph-chevron{transform:rotate(180deg)}
.bph-location-panel{padding:11px;border-top:1px solid var(--bp-border);background:#fff;border-radius:0 0 11px 11px}
.bph-location-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.bph-location-grid label{display:grid;gap:5px;min-width:0;font-weight:750;font-size:12px;color:#273f4f}
.bph-location-grid label small{font-weight:400;color:#627888}
.bph-location-grid select{width:100%;max-width:100%;height:41px;margin:0;border:1px solid #d7e0e7;border-radius:8px;background:#fff;padding:0 27px 0 9px;color:#18394b;font-size:13px}
.bph-location-grid select:disabled{background:#f4f6f8;color:#7c8b96}
.bph-location-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}.bph-location-actions button{padding:9px 12px;border-radius:9px;cursor:pointer;font-size:12px;font-weight:750;min-height:39px}
.bph-gps{border:0!important;background:#0a3550!important;color:white!important}.bph-clear{border:1px solid #d9e2e7!important;background:#fff!important;color:#375269!important}
.bph-location-help{font-size:11px;line-height:1.45;color:#5e7482;margin-top:9px!important}
.bph-discover-content{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:13px}
.bph-discover-content h1{font-size:clamp(18px,2.1vw,26px)!important;font-weight:800!important;line-height:1.25;flex:1 1 270px;color:#fff!important;margin:0!important}
.bph-search{display:flex;gap:6px;align-items:center;flex:1 1 350px;max-width:670px;background:#fff;border-radius:11px;padding:5px;margin:0!important}
.bph-search input{min-width:0;flex:1;width:100%;height:40px;line-height:1.3;color:#17384d;background:#fff!important;border:0!important;box-shadow:none!important;border-radius:8px!important;padding:0 10px!important;font-size:13px!important;margin:0!important}
.bph-search button{border:0!important;flex:none;background:var(--bp-orange)!important;color:#fff!important;padding:0 18px!important;border-radius:9px!important;height:40px!important;min-width:78px;font-weight:800;font-size:13px;cursor:pointer}
.bph-main-content{max-width:1450px;margin:auto;padding:6px clamp(12px,3vw,36px) 0}
.bph-message{font-size:13px;color:#526d7a;padding:12px 0;line-height:1.4}.bph-message:empty{display:none}.bph-message.is-error{color:#a33b18}
.bph-section{margin:18px 0 24px}.bph-titlebar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:11px}.bph-titlebar h2{font-size:clamp(17px,2vw,22px)!important;line-height:1.28;font-weight:800!important;color:var(--bp-text)!important}.bph-titlebar a{text-decoration:none;color:#d55d03;font-weight:700;font-size:12px}
.bph-count{font-size:11px;color:var(--bp-muted);margin:0 0 9px!important}
.bph-categories{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.bph-category{padding:11px 12px;min-width:0;display:flex;align-items:center;text-align:left;border:1px solid var(--bp-border)!important;border-radius:10px!important;background:#fff!important;color:var(--bp-text)!important;cursor:pointer;box-shadow:0 2px 8px rgba(11,44,66,.03)}
.bph-category.is-active{border-color:var(--bp-orange)!important;background:#fff5ec!important}
.bph-cat-copy{display:grid;gap:3px;min-width:0}.bph-cat-copy strong{font-size:12px;line-height:1.2;font-weight:750;overflow-wrap:anywhere}.bph-cat-copy small{font-size:10px;color:var(--bp-muted)}
.bph-promo-hero,.bph-promo-offers{display:grid;gap:11px;margin:14px 0}.bph-promo-offers{grid-template-columns:repeat(2,minmax(0,1fr))}
.bph-promo{overflow:hidden;border:1px solid var(--bp-border);border-radius:14px;background:#fff;display:grid;grid-template-columns:minmax(180px,55%) minmax(0,1fr);box-shadow:0 2px 12px rgba(10,45,66,.04)}
.bph-promo-image{min-width:0;background:#f5f8fa}.bph-promo-image img{display:block;width:100%;height:100%;min-height:140px;max-height:270px;object-fit:cover}
.bph-promo-copy{padding:12px 15px;align-self:center;min-width:0}.bph-promo-copy span{font-size:10px;color:#c15b05;font-weight:800}.bph-promo-copy h3{font-size:clamp(16px,2vw,22px)!important;line-height:1.3;margin:3px 0!important}.bph-promo-copy p{font-size:12px;line-height:1.4;color:#6c7984;margin-top:5px!important}.bph-promo-copy>a{display:inline-block;background:var(--bp-orange);color:#fff;border-radius:7px;padding:8px 12px;text-decoration:none;font-size:12px;font-weight:700;margin-top:7px}
/* Local existing business-card renderer remains authoritative for actions and status. */
.bph-home .wai-ble-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important;margin:0!important;padding:0!important}
.bph-home .wai-ble-modern-card{max-width:none!important;width:100%!important;min-width:0!important;height:100%!important;margin:0!important;display:flex!important;flex-direction:column!important;background:#fff!important;overflow:hidden!important;border:1px solid #dee7ec!important;border-radius:12px!important;box-shadow:0 3px 10px rgba(4,40,60,.04)!important}
.bph-home .wai-ble-modern-card .wai-ble-card-main{display:flex!important;flex-direction:column!important;flex:1!important;min-width:0}
.bph-home .wai-ble-modern-card .wai-ble-card-image{width:100%!important;aspect-ratio:16/9!important;display:block!important;background:#f5f7f9;overflow:hidden}
.bph-home .wai-ble-modern-card .wai-ble-card-image img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
.bph-home .wai-ble-modern-card .wai-ble-card-body{display:flex!important;flex-direction:column!important;flex:1!important;align-items:flex-start!important;text-align:left!important;padding:9px!important;min-width:0!important}
.bph-home .wai-ble-modern-card .wai-ble-card-body h3{font-size:clamp(12px,1.35vw,16px)!important;font-weight:800!important;line-height:1.25!important;margin:0 0 3px!important;overflow-wrap:anywhere}
.bph-home .wai-ble-modern-card :is(.wai-ble-card-category,.wai-ble-card-location){font-size:10px!important;line-height:1.3!important;overflow-wrap:anywhere;text-align:left!important;margin:2px 0!important}
.bph-home .wai-ble-modern-card .wai-ble-card-footer{margin-top:auto!important;padding:6px!important;border-top:1px solid #eef1f3}
.bph-home .wai-ble-card-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
.bph-home .wai-ble-card-actions :is(.wai-ble-action,.wai-ble-fav-form){min-width:0!important;max-width:100%!important;margin:0!important}
.bph-home .wai-ble-card-actions .wai-ble-action,.bph-home .wai-ble-card-actions .wai-ble-fav-form button{width:100%!important;display:flex!important;justify-content:center!important;align-items:center!important;text-align:center!important;min-height:33px!important;padding:4px 2px!important;border-radius:7px!important;font-size:10px!important}
.bph-pager{display:flex;align-items:center;justify-content:center;gap:7px;padding:13px 0 0}.bph-pager button{border:1px solid var(--bp-border)!important;border-radius:9px!important;background:#fff!important;color:var(--bp-text)!important;padding:8px 10px!important;font-size:12px!important;cursor:pointer}.bph-pager button:disabled{opacity:.45}.bph-page-label{font-size:12px;font-weight:750;color:var(--bp-text)}
.bph-bottom-nav{display:none}
@media(max-width:1050px){.bph-categories{grid-template-columns:repeat(4,minmax(0,1fr))}.bph-home .wai-ble-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:767px){
 .bph-home{padding-bottom:0!important}
 .bph-discover{padding:8px 10px 12px!important}
 .bph-location-details>summary{min-height:44px;padding:6px 10px;font-size:12px}
 .bph-discover-content{gap:9px;margin-top:9px;display:block}
 .bph-discover-content h1{font-size:19px!important;margin:0 0 9px!important}
 .bph-search{max-width:none!important;width:100%;padding:4px}
 .bph-search input{height:37px!important;font-size:12px!important}
 .bph-search button{height:37px!important;padding:0 11px!important;min-width:67px}
 .bph-location-grid{grid-template-columns:1fr;gap:8px}
 .bph-location-grid label{font-size:11px}.bph-location-grid select{height:39px;font-size:12px}
 .bph-location-actions button{font-size:11px;padding:8px 10px}
 .bph-main-content{padding:5px 10px 0}.bph-section{margin:16px 0 19px}
 .bph-titlebar h2{font-size:17px!important}.bph-titlebar a{font-size:11px}
 .bph-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .bph-category{padding:9px 10px}.bph-cat-copy strong{font-size:11px}
 .bph-promo-hero,.bph-promo-offers{margin:12px 0;grid-template-columns:1fr}
 .bph-promo{grid-template-columns:1fr}.bph-promo-image img{max-height:170px;min-height:100px;aspect-ratio:16/7;object-fit:cover}.bph-promo-copy{padding:10px 12px}
 .bph-home .wai-ble-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .bph-home .wai-ble-modern-card .wai-ble-card-body{padding:7px!important}.bph-home .wai-ble-modern-card .wai-ble-card-body h3{font-size:12px!important}
 .bph-home .wai-ble-modern-card .wai-ble-card-footer{padding:5px!important}
 .bph-bottom-nav{display:grid;position:fixed;bottom:0;left:0;right:0;grid-template-columns:repeat(4,minmax(0,1fr));z-index:90;background:#fff;border-top:1px solid #e0e7eb;box-shadow:0 -4px 14px rgba(0,20,35,.05);padding:5px 6px calc(5px + env(safe-area-inset-bottom))}
 .bph-bottom-nav :is(a,button){display:flex!important;flex-direction:column;align-items:center;justify-content:center;min-width:0;gap:1px;min-height:49px;border:0!important;background:transparent!important;color:#17394d!important;border-radius:9px!important;padding:1px!important;text-decoration:none;font-size:23px!important;cursor:pointer}
 .bph-bottom-nav :is(a,button) small{font-size:10px;font-weight:700}.bph-bottom-nav a[aria-current="page"]{background:#fff3e9!important;color:#c96006!important}
}
@media(max-width:355px){.bph-discover-content h1{font-size:18px!important}.bph-search button{min-width:60px}.bph-main-content{padding-left:8px;padding-right:8px}.bph-home .wai-ble-card-actions .wai-ble-action,.bph-home .wai-ble-card-actions .wai-ble-fav-form button{font-size:9px!important}}
@media(prefers-reduced-motion:reduce){.bph-home *{scroll-behavior:auto!important;transition:none!important}}

/* v1.1.6: only the final listings-to-footer white gap. Keep footer and fixed bottom nav unchanged. */
.bph-home #bph-results{margin-bottom:0!important}
.bph-home .bph-live-content{margin-bottom:0!important;padding-bottom:0!important}
