/*
Theme Name: Bristoli
Theme URI: https://bristoli.uk/
Author: Bristoli
Description: Custom Persian-first local business directory theme for Bristoli.
Version: 2.9.17
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: bristoli
*/

:root{
  --bg:#f5f2ec;
  --paper:rgba(255,255,255,.94);
  --white:#fff;
  --text:#151715;
  --muted:#626a63;
  --line:#e6e0d7;
  --accent:#b64f3b;
  --green:#1f8e47;
  --green-dark:#19753b;
  --shadow:0 16px 40px rgba(18,22,19,.10);
  --soft-shadow:0 6px 18px rgba(18,22,19,.08);
  --radius:22px;
  --bg-image:none;
  --bg-blur:2px;
  --bg-overlay:.60;
}
*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0;overflow:hidden}
body{font-family:"Vazirmatn",system-ui,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body:before{content:"";position:fixed;inset:-8px;z-index:-2;background-image:var(--bg-image-runtime,var(--bg-image));background-size:cover;background-position:center;filter:blur(var(--bg-blur)) saturate(1.03);transform:scale(1.012)}
body:after{content:"";position:fixed;inset:0;z-index:-1;background:rgba(10,13,11,var(--bg-overlay));pointer-events:none}
body.br-lang-en{direction:ltr}
button,input,textarea,select,label{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}img{max-width:100%}
.br-en{display:none}.br-lang-en .br-fa{display:none}.br-lang-en .br-en{display:inline}

.br-app{
  width:min(calc(100% - 24px),1240px);
  height:100vh;
  height:100svh;
  margin:auto;
  padding:10px 0 max(8px,env(safe-area-inset-bottom));
  display:grid;
  grid-template-rows:auto minmax(0,1fr) 28px;
  gap:8px;
  overflow:hidden
}
.br-navbar{min-height:66px;background:var(--paper);border:1px solid rgba(255,255,255,.58);border-radius:24px;box-shadow:var(--shadow);display:grid;grid-template-columns:auto auto minmax(260px,1fr) auto;gap:12px;align-items:center;padding:9px 11px;position:relative;z-index:50}
.br-brand{border:0;background:transparent;padding:0 2px;font-size:25px;font-weight:900;letter-spacing:-1.1px;white-space:nowrap;min-height:46px;display:inline-flex;align-items:center;line-height:1}.br-brand b{color:var(--accent)}.br-brand-logo{display:block;max-width:150px;max-height:42px;width:auto;height:auto;object-fit:contain}
.br-nav-links{display:flex;gap:2px;align-items:center;white-space:nowrap;min-height:46px}.br-nav-link{border:0;background:transparent;height:38px;padding:0 10px;border-radius:999px;color:#4e564f;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;line-height:1}.br-nav-link:hover,.br-nav-link.current{background:#f0ece5;color:var(--text)}
.br-search{height:46px;min-width:0;border:1px solid var(--line);border-radius:999px;background:#fff;display:flex;align-items:center;gap:8px;padding:0 14px}.br-search svg{width:19px;height:19px;color:#7b827c;flex:none}.br-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text);text-align:start;font-size:13px}
.br-actions{display:flex;align-items:center;gap:6px;min-height:46px}.br-pill{min-height:40px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:0 12px;font-size:11px;font-weight:850;color:var(--text);white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:6px}.br-pill.green{background:var(--green-dark);border-color:var(--green-dark);color:#fff;box-shadow:0 7px 18px rgba(31,142,71,.18)}.br-pill.green:hover{background:#145f30;border-color:#145f30}
.br-hamburger{display:none}.br-mobile-menu{display:none;position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:8px;gap:4px}.br-mobile-menu.show{display:grid}.br-mobile-menu a{min-height:42px;background:#f8f6f2;border-radius:12px;display:flex;align-items:center;padding:0 12px;font-size:13px;font-weight:800}

.br-stage{min-height:0;overflow:hidden}.br-shell{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:8px}.br-hero{color:#fff;text-align:center;padding:2px 12px 0}.br-hero h1{margin:0 auto 4px;max-width:980px;font-size:clamp(27px,3.7vw,44px);line-height:1.27;font-weight:900;letter-spacing:-1px;text-shadow:0 2px 18px rgba(0,0,0,.20)}.br-hero p{margin:0;font-size:13px;font-weight:550;color:rgba(255,255,255,.95);text-shadow:0 1px 10px rgba(0,0,0,.18)}
.br-panel{min-height:0;overflow:hidden;border-radius:var(--radius);border:1px solid rgba(255,255,255,.60);background:var(--paper);box-shadow:var(--shadow);display:grid;grid-template-rows:auto minmax(0,1fr)}.br-panel-head{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px 8px;border-bottom:1px solid rgba(230,224,215,.72)}.br-panel-title h2{margin:0;font-size:22px;line-height:1.35;font-weight:900}.br-panel-title p{margin:3px 0 0;color:var(--muted);font-size:12.5px;line-height:1.55}.br-panel-actions{display:flex;gap:6px;align-items:center}.br-small,.br-back{min-height:38px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:0 13px;font-size:11.5px;font-weight:850;display:inline-flex;align-items:center;justify-content:center;gap:6px;box-shadow:0 4px 12px rgba(18,22,19,.04);white-space:nowrap}.br-small.dark{background:var(--text);border-color:var(--text);color:#fff}
.br-panel-body{min-height:0;overflow:hidden;position:relative}.br-view{display:none;height:100%;min-height:0;overflow:hidden}.br-view.active{display:block}.br-scroll{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:10px 12px 12px}

.br-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-content:start;padding:1px}.br-category-card{position:relative;aspect-ratio:1/1;min-width:0;overflow:hidden;border-radius:18px;background-size:cover;background-position:center;background-repeat:no-repeat;background-clip:padding-box;box-shadow:var(--soft-shadow);border:0;isolation:isolate;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease;-webkit-mask-image:-webkit-radial-gradient(white,black);transform:translateZ(0)}.br-category-card:hover{transform:translateY(-2px) translateZ(0);box-shadow:0 12px 28px rgba(18,22,19,.13)}.br-category-card:after{content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;background:linear-gradient(180deg,rgba(0,0,0,.02) 32%,rgba(0,0,0,.74) 100%)}.br-card-copy{position:absolute;inset:auto 0 0;padding:15px;color:#fff;text-shadow:0 1px 9px rgba(0,0,0,.42)}.br-card-copy strong{display:block;font-size:20px;line-height:1.28;font-weight:900}.br-card-copy small{display:block;margin-top:4px;color:rgba(255,255,255,.92);font-size:13px;line-height:1.4;font-weight:650}.br-empty{grid-column:1/-1;padding:32px 18px;text-align:center;color:var(--muted);font-size:14px}

.br-results-layout{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.82fr);gap:10px;padding:10px 12px 12px}.br-results-layout.no-map{grid-template-columns:1fr}.br-results-list{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;display:grid;align-content:start;gap:9px;padding-inline-end:2px}.br-business-card{position:relative;border:1px solid var(--line);border-radius:17px;background:#fff;padding:10px;display:grid;grid-template-columns:96px minmax(0,1fr);gap:11px;cursor:pointer;box-shadow:0 3px 12px rgba(18,22,19,.035)}.br-business-card:hover{border-color:#d6d0c6}.br-business-photo{width:96px;min-height:96px;border-radius:13px;background-size:cover;background-position:center}.br-business-card h3{margin:0;font-size:17px;line-height:1.4;font-weight:900}.br-meta{margin-top:3px;color:var(--muted);font-size:12px;line-height:1.65}.br-rating{display:inline-flex;align-items:center;gap:4px;margin-top:2px;font-size:12px;font-weight:850}.br-star{color:#d99b00}.br-business-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.br-business-actions button,.br-business-actions a{min-height:31px;border:1px solid var(--line);background:#faf9f7;border-radius:9px;padding:0 9px;font-size:10.5px;font-weight:800;display:inline-flex;align-items:center}.br-business-actions .primary{background:var(--text);color:#fff;border-color:var(--text)}
.br-map{min-height:0;border:1px solid var(--line);border-radius:17px;overflow:hidden;position:relative;background:#ece9e2}.br-map iframe{width:100%;height:100%;min-height:260px;border:0;display:block}.br-map-badge{position:absolute;bottom:9px;right:9px;background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:999px;padding:5px 9px;font-size:10px;font-weight:850;color:#59615a;pointer-events:none}

.br-profile-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.75fr);gap:10px;align-items:start}.br-box{background:#fff;border:1px solid var(--line);border-radius:17px;padding:14px}.br-profile-top{display:grid;grid-template-columns:112px minmax(0,1fr);gap:13px;align-items:start}.br-profile-image{width:112px;aspect-ratio:1/1;border-radius:15px;background-size:cover;background-position:center}.br-profile-top h2{margin:1px 0 5px;font-size:24px;line-height:1.3}.br-profile-meta{color:var(--muted);font-size:13px;line-height:1.7}.br-profile-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:12px}.br-profile-actions a{min-height:42px;border:1px solid var(--line);border-radius:11px;background:#faf9f7;font-size:11.5px;font-weight:850;display:flex;align-items:center;justify-content:center}.br-profile-actions .primary{background:var(--accent);color:#fff;border-color:var(--accent)}.br-box h3{margin:0 0 8px;font-size:17px}.br-box p,.br-detail{margin:0;color:#555e57;font-size:13.5px;line-height:1.9}.br-stack{display:grid;gap:10px}
.br-google-reviews{margin-top:10px}.br-google-reviews-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:9px}.br-google-reviews-head h3{margin:0 0 3px}.br-google-attribution{font-family:Roboto,Arial,sans-serif;font-size:12px;font-weight:400;color:#5e5e5e;white-space:nowrap}.br-google-review-note{font-size:11px;color:var(--muted);line-height:1.6}.br-review-list{display:grid;gap:8px}.br-review{border:1px solid var(--line);border-radius:14px;padding:11px;background:#faf9f7}.br-review-author{display:flex;align-items:center;gap:8px;margin-bottom:7px}.br-review-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;background:#e7e3dc;flex:none}.br-review-author-meta{min-width:0;display:grid;gap:1px}.br-review-author-meta a,.br-review-author-meta strong{font-size:12.5px;font-weight:850;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.br-review-date{font-size:10.5px;color:var(--muted)}.br-review-stars{font-size:12px;color:#d99b00;letter-spacing:.4px}.br-review-text{font-size:12.5px;line-height:1.85;color:#4f5751;margin:6px 0 0}.br-review-source{display:inline-flex;margin-top:7px;font-size:10.5px;color:#5e5e5e;text-decoration:underline;text-underline-offset:2px}.br-google-error{border:1px dashed var(--line);border-radius:12px;padding:11px;color:var(--muted);font-size:11.5px;line-height:1.7;background:#faf9f7}


.br-prose{max-width:880px;margin:auto;background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px}.br-prose h1,.br-prose h2,.br-prose h3{font-size:21px;margin:0 0 10px}.br-prose h4{font-size:16px;margin:20px 0 6px}.br-prose p,.br-prose li{font-size:14px;line-height:2;color:#525b54}.br-prose a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.br-contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px}.br-contact-card{border:1px solid var(--line);border-radius:15px;background:#faf9f7;padding:14px;min-height:100px}.br-contact-card b{display:block;font-size:15px;margin-bottom:5px}.br-contact-card span,.br-contact-card a{font-size:13px;color:#59615a;line-height:1.7}

.br-footer{
  height:28px;
  min-height:28px;
  width:100%;
  color:rgba(255,255,255,.94);
  font-size:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 5px;
  overflow:hidden
}
.br-footer>span{white-space:nowrap}
.br-footer-links{display:flex;gap:10px;align-items:center;white-space:nowrap}
.br-footer a{color:inherit;text-decoration:none}

@media(max-width:1000px){.br-navbar{grid-template-columns:auto minmax(220px,1fr) auto}.br-nav-links{display:none}.br-hamburger{display:inline-flex}.br-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
  .br-app{width:calc(100% - 12px);padding:6px 0 max(8px,env(safe-area-inset-bottom));grid-template-rows:auto minmax(0,1fr) 30px;gap:6px}.br-navbar{min-height:100px;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:38px 44px;grid-template-areas:"brand spacer actions" "search search search";gap:6px;padding:7px;border-radius:20px}.br-brand{grid-area:brand;font-size:22px}.br-search{grid-area:search;height:44px}.br-actions{grid-area:actions}.br-actions .desktop-label{display:none}.br-pill{padding:0 9px;font-size:10px}
  .br-hero{padding:0 8px}.br-hero h1{font-size:23px;line-height:1.32;letter-spacing:-.5px}.br-hero p{font-size:11.5px}.br-panel{border-radius:20px}.br-panel-head{min-height:58px;padding:8px 10px 7px}.br-panel-title h2{font-size:18px}.br-panel-title p{font-size:11px}.br-small,.br-back{min-height:36px;padding:0 10px;font-size:10.5px}.br-scroll{padding:8px}
  .br-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.br-category-card{border-radius:15px}.br-card-copy{padding:11px}.br-card-copy strong{font-size:17px}.br-card-copy small{font-size:11.5px}
  .br-results-layout{grid-template-columns:1fr;grid-template-rows:155px minmax(0,1fr);gap:8px;padding:8px}.br-map{grid-row:1}.br-results-list{grid-row:2}.br-map iframe{min-height:155px}.br-business-card{grid-template-columns:84px minmax(0,1fr);padding:9px}.br-business-photo{width:84px;min-height:84px}.br-business-card h3{font-size:15px}.br-meta,.br-rating{font-size:11px}.br-business-actions button,.br-business-actions a{font-size:10px}
  .br-profile-grid{grid-template-columns:1fr}.br-profile-top{grid-template-columns:88px minmax(0,1fr)}.br-profile-image{width:88px}.br-profile-top h2{font-size:20px}.br-profile-meta{font-size:11.5px}.br-profile-actions{grid-template-columns:repeat(2,1fr)}.br-box h3{font-size:16px}.br-box p,.br-detail{font-size:12.5px}.br-prose{padding:15px}.br-prose h1,.br-prose h2,.br-prose h3{font-size:19px}.br-prose p,.br-prose li{font-size:13px;line-height:1.9}.br-contact-grid{grid-template-columns:1fr}.br-review-text{font-size:12px}.br-footer{height:30px;min-height:30px;font-size:9px;padding-inline:3px}.br-footer-links{gap:7px}
}
@media(max-width:410px){.br-hero h1{font-size:21px}.br-hero p{font-size:10.5px}.br-card-copy strong{font-size:16px}.br-card-copy small{font-size:10.5px}.br-panel-title h2{font-size:17px}}

.br-business-photo,.br-profile-image{position:relative}
.br-photo-attribution{position:absolute;inset-inline-start:6px;bottom:6px;z-index:3;max-width:calc(100% - 12px);padding:3px 6px;border-radius:7px;background:rgba(255,255,255,.9);color:#3c4043;font-family:Arial,sans-serif;font-size:9px;line-height:1.3;direction:ltr;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.br-photo-attribution[hidden]{display:none}
.br-photo-attribution a{color:#3c4043;text-decoration:underline;text-underline-offset:1px}
.br-google-photo-loading{background-image:linear-gradient(135deg,#ece9e3,#f7f5f1)!important}


/* V1.7 navigation cleanup */
.br-back[hidden], .br-panel-actions[hidden]{display:none!important}

/* V1.7 business profile */
.br-business-shell{grid-template-rows:minmax(0,1fr)}
.br-business-shell>.br-panel{height:100%}
.br-business-profile{display:grid;gap:10px;align-content:start}
.br-profile-summary{
  display:grid;
  grid-template-columns:minmax(200px,280px) minmax(0,1fr);
  min-height:210px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:19px;
  background:#fff;
  box-shadow:0 4px 16px rgba(18,22,19,.035)
}
.br-profile-cover{
  width:100%;
  min-height:210px;
  background:#ece9e2 center/cover no-repeat;
  position:relative;
  overflow:hidden
}
.br-profile-summary-copy{
  min-width:0;
  padding:22px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start
}
.br-profile-category{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#f2ede7;
  color:#615b54;
  font-size:11px;
  font-weight:850;
  margin-bottom:8px
}
.br-profile-summary h1,.br-profile-summary h2{
  margin:0;
  font-size:30px;
  line-height:1.28;
  letter-spacing:-.55px;
  font-weight:950
}
.br-profile-actions{
  width:100%;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:18px
}
.br-profile-actions a{
  min-width:100px;
  min-height:42px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#faf9f7;
  font-size:11.5px;
  font-weight:850;
  display:inline-flex;
  align-items:center;
  justify-content:center
}
.br-profile-actions .primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.br-profile-content{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(280px,.72fr);
  gap:10px;
  align-items:start
}
.br-profile-main,.br-profile-side{display:grid;gap:10px;align-content:start}
.br-about-box,.br-info-box,.br-google-reviews{margin:0}
.br-info-list{display:grid}
.br-info-row{
  display:grid;
  grid-template-columns:minmax(90px,.7fr) minmax(0,1.3fr);
  gap:12px;
  align-items:start;
  padding:10px 0;
  border-bottom:1px solid #eee9e2
}
.br-info-row:first-child{padding-top:2px}
.br-info-row:last-child{padding-bottom:2px;border-bottom:0}
.br-info-row>span{color:var(--muted);font-size:11.5px;font-weight:700}
.br-info-row>strong{font-size:12.5px;line-height:1.65;font-weight:850;text-align:end;overflow-wrap:anywhere}
.br-profile-map{height:300px}
.br-profile-map iframe{min-height:300px}
.br-business-profile .br-google-reviews{margin-top:0}

/* Old profile styles are retained for compatibility with older cached markup,
   but the new markup above owns the current profile layout. */
@media(max-width:700px){
  .br-profile-summary{grid-template-columns:1fr;min-height:0}
  .br-profile-cover{min-height:170px;aspect-ratio:16/8}
  .br-profile-summary-copy{padding:15px}
  .br-profile-summary h1,.br-profile-summary h2{font-size:23px}
  .br-profile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:13px}
  .br-profile-actions a{min-width:0}
  .br-profile-content{grid-template-columns:1fr}
  .br-profile-side{grid-template-columns:1fr}
  .br-profile-map{height:220px}
  .br-profile-map iframe{min-height:220px}
  .br-info-row{grid-template-columns:minmax(80px,.8fr) minmax(0,1.2fr)}
}


/* V1.9 — address, directions chooser and social links */
.br-meta{overflow-wrap:anywhere}
.br-profile-actions a,.br-profile-actions button{
  min-width:100px;min-height:42px;padding:0 14px;border:1px solid var(--line);border-radius:11px;
  background:#faf9f7;color:var(--text);font-family:inherit;font-size:11.5px;font-weight:850;
  display:inline-flex;align-items:center;justify-content:center;cursor:pointer;text-decoration:none
}
.br-profile-actions .primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.br-business-actions button{font-family:inherit;color:var(--text);cursor:pointer}
.br-info-row>strong{white-space:normal}
.br-info-subheading{margin-top:12px;padding-top:12px;border-top:1px solid #eee9e2;color:var(--muted);font-size:11.5px;font-weight:850}
.br-social-list{display:grid;margin-top:4px}
.br-social-row{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid #f0ece6}
.br-social-row:last-child{border-bottom:0}
.br-social-icon{width:32px;height:32px;border:1px solid var(--line);border-radius:9px;background:#faf9f7;display:inline-flex;align-items:center;justify-content:center;color:#505750}
.br-social-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.br-social-icon svg .br-icon-fill{fill:currentColor;stroke:none}
.br-social-text{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--text);text-decoration:none}
.br-social-text>span{font-size:11px;color:var(--muted);font-weight:750}
.br-social-text>strong{min-width:0;font-size:11.5px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:end}
.br-social-icon:hover,.br-social-text:hover{opacity:.72}

body.br-modal-open{overflow:hidden}
.br-directions-modal{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:18px}
.br-directions-backdrop{position:absolute;inset:0;background:rgba(20,23,20,.42);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.br-directions-sheet{position:relative;width:min(430px,100%);background:#fff;border:1px solid rgba(255,255,255,.7);border-radius:22px;padding:20px;box-shadow:0 24px 70px rgba(14,18,15,.24)}
.br-directions-sheet h3{margin:0 38px 4px 0;font-size:20px;font-weight:950}
[dir="rtl"] .br-directions-sheet h3{margin:0 0 4px 38px}
.br-directions-sheet>p{margin:0 0 14px;color:var(--muted);font-size:12px;line-height:1.75}
.br-directions-close{position:absolute;top:12px;inset-inline-end:12px;width:32px;height:32px;border:1px solid var(--line);border-radius:50%;background:#faf9f7;color:var(--text);font-size:20px;line-height:1;cursor:pointer}
.br-directions-options{display:grid;gap:7px}
.br-directions-options a{min-height:54px;padding:0 13px;border:1px solid var(--line);border-radius:13px;background:#faf9f7;color:var(--text);display:flex;align-items:center;gap:11px;font-size:13px;font-weight:850;text-decoration:none;transition:transform .14s ease,border-color .14s ease}
.br-directions-options a:hover{transform:translateY(-1px);border-color:#d4cdc3}
.br-directions-options svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}
.br-directions-options svg .br-icon-fill{fill:currentColor;stroke:none}

@media(max-width:700px){
  .br-directions-modal{align-items:end;padding:10px}
  .br-directions-sheet{border-radius:20px;padding:18px}
  .br-social-text{display:grid;gap:1px;justify-content:start}
  .br-social-text>strong{text-align:start;max-width:220px}
}


/* V2.0 — provider ratings in business summary */
.br-profile-summary-copy{position:relative}
.br-profile-title-block{min-width:0}
.br-profile-scores{
  position:absolute;
  left:22px;
  top:22px;
  width:148px;
  display:grid;
  gap:7px;
  z-index:2
}
[dir="rtl"] .br-profile-summary-copy{padding-left:188px}
[dir="ltr"] .br-profile-scores{left:auto;right:22px}
[dir="ltr"] .br-profile-summary-copy{padding-right:188px}
.br-score-card{
  display:grid;
  gap:1px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#faf9f7;
  color:var(--text);
  text-decoration:none;
  box-shadow:0 2px 8px rgba(18,22,19,.035);
  text-align:start
}
.br-score-card[hidden]{display:none!important}
.br-score-card>span{font-size:9.5px;color:var(--muted);font-weight:800}
.br-score-card>strong{font-size:19px;line-height:1.15;font-weight:950;letter-spacing:-.25px}
.br-score-card>strong b{font-size:15px;font-weight:900}
.br-score-card>small{font-size:9.5px;color:var(--muted);font-weight:700}
.br-score-card:hover{border-color:#d4cdc3;transform:translateY(-1px)}
.br-score-google>strong b{color:#d99b00}
.br-score-trustpilot>strong b{color:#00a884}

@media(max-width:800px){
  .br-profile-scores{position:static;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:12px}
  [dir="rtl"] .br-profile-summary-copy,[dir="ltr"] .br-profile-summary-copy{padding-left:15px;padding-right:15px}
  .br-score-card{min-width:0}
}


/* V2.0.1 — mobile business-profile content order
   Summary/photo remains first, followed by:
   1) Quick details
   2) About
   3) Map
   4) Google reviews
*/
@media(max-width:700px){
  .br-business-profile .br-profile-content{
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  .br-business-profile .br-profile-main,
  .br-business-profile .br-profile-side{
    display:contents;
  }
  .br-business-profile .br-info-box{order:1}
  .br-business-profile .br-about-box{order:2}
  .br-business-profile .br-profile-map{order:3}
  .br-business-profile .br-google-reviews{order:4}
}


/* V2.0.2 — mobile profile width fix
   The desktop rule used align-items:start. Once profile-content became a
   column flex container on mobile, that made sections shrink to their content
   width. Force a full-width, consistent card stack. */
@media(max-width:700px){
  .br-business-profile,
  .br-business-profile .br-profile-content{
    width:100%;
    min-width:0;
  }
  .br-business-profile .br-profile-content{
    align-items:stretch;
  }
  .br-business-profile .br-info-box,
  .br-business-profile .br-about-box,
  .br-business-profile .br-profile-map,
  .br-business-profile .br-google-reviews{
    width:100%;
    min-width:0;
    max-width:none;
    box-sizing:border-box;
    margin-inline:0;
  }
  .br-business-profile .br-profile-map iframe{
    width:100%;
    display:block;
  }
}

/* V2.1 — crawlable links keep the existing card appearance */
a.br-category-card{color:inherit;text-decoration:none}
.br-business-actions a[data-profile]{color:var(--text);text-decoration:none}


/* V2.1.1 — clearer Back control, no directional arrow */
.br-back{
  min-height:44px;
  padding:0 18px;
  border:1.5px solid #d9d2c8;
  border-radius:999px;
  background:#fff;
  color:var(--text);
  font-size:13px;
  font-weight:900;
  line-height:1;
  letter-spacing:-.1px;
  box-shadow:0 5px 16px rgba(18,22,19,.075);
  transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease,background .14s ease;
}
.br-back:hover{
  background:#f8f5f0;
  border-color:#c9c0b5;
  box-shadow:0 7px 20px rgba(18,22,19,.10);
  transform:translateY(-1px);
}
.br-back:focus-visible{
  outline:3px solid rgba(79,98,84,.18);
  outline-offset:2px;
}
@media(max-width:700px){
  .br-back{
    min-height:42px;
    padding:0 15px;
    font-size:12.5px;
  }
}


/* V2.1.2 — crawlable archive/category pagination */
.br-pagination{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.br-pagination .page-numbers{
  min-width:36px;
  min-height:36px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--text);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11.5px;
  font-weight:850;
}
.br-pagination .page-numbers.current{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.br-pagination a.page-numbers:hover{
  background:#f8f5f0;
  border-color:#cec5b9;
}


/* V2.2 — compact expandable navbar search */
.br-navbar{
  grid-template-columns:auto auto minmax(12px,1fr) auto;
}
.br-actions{position:relative}
.br-search-shell{
  position:relative;
  width:42px;
  height:42px;
  flex:none;
  transition:width .18s ease;
  z-index:70;
}
.br-search-toggle,
.br-search-submit{
  width:42px;
  height:42px;
  padding:0;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  color:#505750;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(18,22,19,.045);
  transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease;
}
.br-search-toggle:hover,
.br-search-submit:hover{
  border-color:#cec5b9;
  box-shadow:0 6px 16px rgba(18,22,19,.08);
  transform:translateY(-1px);
}
.br-search-toggle:focus-visible,
.br-search-submit:focus-visible,
.br-search-field input:focus-visible{
  outline:3px solid rgba(79,98,84,.17);
  outline-offset:2px;
}
.br-search-toggle svg,
.br-search-submit svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.br-search-panel{display:none;width:100%;position:relative}
.br-search-shell.is-open{
  width:min(330px,34vw);
}
.br-search-shell.is-open .br-search-toggle{display:none}
.br-search-shell.is-open .br-search-panel{display:block}
.br-search-field{
  height:42px;
  width:100%;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  display:grid;
  grid-template-columns:minmax(0,1fr) 36px;
  align-items:center;
  gap:4px;
  padding:2px 3px 2px 13px;
  box-shadow:0 6px 18px rgba(18,22,19,.07);
}
[dir="rtl"] .br-search-field{padding:2px 13px 2px 3px}
.br-search-field input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font-size:12.5px;
  text-align:start;
}
.br-search-field input::-webkit-search-cancel-button{display:none}
.br-search-submit{
  width:34px;
  height:34px;
  border:0;
  background:#f2eee8;
  box-shadow:none;
}
.br-search-submit:hover{background:#ebe5dd;box-shadow:none}
.br-search-suggestions{
  position:absolute;
  top:calc(100% + 7px);
  inset-inline:0;
  z-index:100;
  max-height:min(430px,62vh);
  overflow:auto;
  padding:7px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.985);
  box-shadow:0 18px 50px rgba(18,22,19,.18);
  overscroll-behavior:contain;
}
.br-search-suggestions[hidden]{display:none!important}
.br-search-section-title{
  padding:6px 8px 4px;
  color:var(--muted);
  font-size:10px;
  font-weight:850;
}
.br-search-option{
  width:100%;
  min-height:49px;
  border:0;
  border-radius:11px;
  background:transparent;
  color:var(--text);
  padding:6px 7px;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:8px;
  align-items:center;
  text-align:start;
  cursor:pointer;
}
.br-search-option:hover,
.br-search-option.is-active{
  background:#f5f1eb;
}
.br-search-option-icon{
  width:32px;
  height:32px;
  border:1px solid #e6e0d7;
  border-radius:9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#606760;
  background:#fff;
}
.br-search-option-icon svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.br-search-option-copy{
  min-width:0;
  display:grid;
  gap:1px;
}
.br-search-option-copy strong{
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:12px;
  line-height:1.45;
  font-weight:900;
}
.br-search-option-copy small{
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:var(--muted);
  font-size:10px;
  line-height:1.45;
  font-weight:650;
}
.br-search-empty{
  padding:14px 10px;
  color:var(--muted);
  text-align:center;
  font-size:11px;
  font-weight:750;
}

@media(max-width:700px){
  .br-navbar{
    min-height:54px;
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-rows:44px;
    grid-template-areas:"brand spacer actions";
    gap:6px;
    padding:5px 7px;
  }
  .br-brand{grid-area:brand}
  .br-actions{grid-area:actions}
  .br-search-shell.is-open{
    position:absolute;
    top:calc(100% + 6px);
    inset-inline:7px;
    width:auto;
    height:44px;
    z-index:120;
  }
  .br-search-field{height:44px}
  .br-search-suggestions{max-height:min(400px,58vh)}
}
@media(max-width:430px){
  .br-pill.green{
    max-width:132px;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .br-search-toggle{width:40px;height:40px}
  .br-search-shell{width:40px;height:40px}
}


/* V2.2.2 — footer viewport hardening */
@supports (height:100dvh){
  .br-app{max-height:100dvh}
}
.br-stage{
  min-height:0;
  overflow:hidden;
}
/* Reserve the footer row; the content panel must shrink instead of pushing
   the footer below the viewport. */
.br-stage>.br-shell{
  min-height:0;
  max-height:100%;
}
@media(max-width:700px){
  .br-footer{
    align-self:end;
  }
}
@media(max-width:360px){
  .br-footer{
    font-size:8.5px;
    gap:6px;
  }
  .br-footer-links{gap:5px}
}


/* V2.3 — navbar physical placement
   Search / Add Business / Language stay on the physical LEFT in both RTL/LTR.
   Brand stays on the physical RIGHT. */
.br-navbar{
  direction:ltr;
  grid-template-columns:auto minmax(0,1fr) auto;
  grid-template-areas:"actions nav brand";
}
.br-actions{
  grid-area:actions;
  justify-self:start;
  direction:ltr;
}
.br-nav-links{
  grid-area:nav;
  justify-self:center;
  direction:rtl;
}
.br-brand{
  grid-area:brand;
  justify-self:end;
  direction:rtl;
}
.br-mobile-menu{direction:rtl}
.br-actions .br-pill,
.br-actions .br-search-field,
.br-actions .br-search-suggestions{
  direction:rtl;
}
body.br-lang-en .br-brand,
body.br-lang-en .br-nav-links,
body.br-lang-en .br-mobile-menu,
body.br-lang-en .br-actions .br-pill,
body.br-lang-en .br-actions .br-search-field,
body.br-lang-en .br-actions .br-search-suggestions{
  direction:ltr;
}

@media(max-width:1000px){
  .br-navbar{
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:"actions spacer brand";
  }
  .br-actions{grid-area:actions}
  .br-brand{grid-area:brand}
}

@media(max-width:700px){
  .br-navbar{
    direction:ltr;
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-rows:44px;
    grid-template-areas:"actions spacer brand";
  }
  .br-actions{
    grid-area:actions;
    justify-self:start;
    position:static;
  }
  .br-brand{
    grid-area:brand;
    justify-self:end;
  }
  .br-search-shell.is-open{
    position:absolute;
    top:calc(100% + 6px);
    left:7px;
    right:7px;
    width:auto;
  }
}

.br-business-card h3 .br-fa,
.br-business-card h3 .br-en,
.br-profile-title-block h1 .br-fa,
.br-profile-title-block h1 .br-en{
  font:inherit;
  color:inherit;
}


/* V2.4 search focus cleanup */
.br-search-field input,
.br-search-field input:focus,
.br-search-field input:focus-visible{
  outline:none!important;
  box-shadow:none!important;
  border:0!important;
}
.br-search-panel:focus,
.br-search-panel:focus-visible,
.br-search-shell:focus,
.br-search-shell:focus-visible{
  outline:none!important;
  box-shadow:none!important;
}

/* Business self-verification */
.br-title-with-badge{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.br-title-with-badge h1,.br-title-with-badge h2,.br-title-with-badge h3{min-width:0}
.br-verified-badge{
  flex:none;min-height:24px;display:inline-flex;align-items:center;justify-content:center;gap:4px;
  padding:2px 8px;border:1px solid rgba(31,142,71,.24);border-radius:999px;
  background:rgba(31,142,71,.08);color:#176f39;font-size:9.5px;line-height:1;font-weight:900;white-space:nowrap
}
.br-verified-badge svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.br-verified-badge.compact{min-height:20px;padding:1px 6px;font-size:8.5px}
.br-verified-badge.compact svg{width:11px;height:11px}
.br-search-option-copy .br-verified-inline{color:#176f39;font-weight:850}
@media(max-width:700px){.br-verified-badge{min-height:22px;padding-inline:7px;font-size:9px}}


/* V2.5 — final desktop navbar geometry:
   [actions] ............... [nav links][brand]
   Physical placement is stable in RTL and LTR. */
.br-navbar{
  direction:ltr;
  grid-template-columns:auto minmax(20px,1fr) auto auto;
  grid-template-areas:"actions spacer nav brand";
}
.br-actions{grid-area:actions;justify-self:start}
.br-nav-links{grid-area:nav;justify-self:end;margin-inline-end:4px}
.br-brand{grid-area:brand;justify-self:end}

/* Localised primary + alternate Business name. */
.br-business-name-line{
  display:flex;
  align-items:baseline;
  gap:6px;
  flex-wrap:wrap;
  min-width:0;
}
.br-business-name-line h1,
.br-business-name-line h2,
.br-business-name-line h3{margin:0;min-width:0}
.br-business-alt-name{
  color:var(--muted);
  font-size:.62em;
  font-weight:650;
  line-height:1.3;
  white-space:normal;
}
.br-search-option-copy .br-business-alt-name{
  display:inline;
  margin-inline-start:4px;
  font-size:9px;
  font-weight:650;
}

/* Expanded Search: remove any rectangular native/browser wrapper focus.
   Only the rounded .br-search-field pill is visible. */
.br-search-shell,
.br-search-panel,
.br-search-field,
.br-search-field input,
.br-search-field input:focus,
.br-search-field input:focus-visible,
.br-search-shell:focus,
.br-search-shell:focus-visible,
.br-search-panel:focus,
.br-search-panel:focus-visible{
  outline:none!important;
}
.br-search-field input,
.br-search-field input:focus,
.br-search-field input:focus-visible{
  box-shadow:none!important;
  border:0!important;
  -webkit-appearance:none;
  appearance:none;
}
.br-search-field:focus-within{
  outline:none!important;
  box-shadow:0 6px 18px rgba(18,22,19,.07)!important;
  border-color:var(--line)!important;
}

/* Footer — compact legal footer, always reserved inside viewport. */
.br-app{
  grid-template-rows:auto minmax(0,1fr) 38px;
}
.br-footer{
  height:38px;
  min-height:38px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:0 5px;
  overflow:visible;
}
.br-footer-copy{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  line-height:1.35;
}
.br-footer-copy strong{font-weight:800}
.br-footer-note{opacity:.78}
.br-footer-links{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  white-space:nowrap;
}

@media(max-width:1000px){
  .br-navbar{
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:"actions spacer brand";
  }
  .br-nav-links{display:none}
}

@media(max-width:700px){
  .br-app{
    grid-template-rows:auto minmax(0,1fr) 50px;
  }
  .br-footer{
    height:50px;
    min-height:50px;
    grid-template-columns:1fr;
    grid-template-rows:auto auto;
    gap:2px;
    align-content:center;
    padding:3px 4px;
    font-size:8.7px;
  }
  .br-footer-copy{justify-content:center;text-align:center;gap:5px}
  .br-footer-links{justify-content:center;gap:8px}
  .br-business-alt-name{font-size:.6em}
}

@media(max-width:370px){
  .br-app{grid-template-rows:auto minmax(0,1fr) 58px}
  .br-footer{height:58px;min-height:58px;font-size:8.3px}
  .br-footer-note{display:block;width:100%}
  .br-footer-links{gap:6px}
}


/* V2.5.1 — production footer hardening */
.br-footer{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative;
  z-index:3;
}


/* V2.5.2 — production footer fix.
   Footer is a direct BODY child, outside .br-app overflow clipping. */
.br-app{
  height:calc(100vh - 24px)!important;
  height:calc(100svh - 24px - env(safe-area-inset-bottom))!important;
  max-height:none!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  padding-bottom:4px!important;
}

.br-footer{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:max(2px,env(safe-area-inset-bottom))!important;
  transform:translateX(-50%)!important;
  z-index:40!important;
  width:min(calc(100% - 24px),1240px)!important;
  height:18px!important;
  min-height:18px!important;
  margin:0!important;
  padding:0 4px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  overflow:hidden!important;
  color:rgba(255,255,255,.94)!important;
  font-size:8.5px!important;
  line-height:1!important;
  text-shadow:0 1px 5px rgba(0,0,0,.25);
  white-space:nowrap!important;
}

.br-footer-line{
  width:100%;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  white-space:nowrap;
  overflow:hidden;
}

.br-footer-copy{
  flex:none;
  min-width:0;
  display:inline-flex!important;
  align-items:center;
  gap:0!important;
  flex-wrap:nowrap!important;
  white-space:nowrap!important;
  line-height:1!important;
}

.br-footer-links{
  flex:none;
  display:inline-flex!important;
  align-items:center;
  justify-content:center!important;
  gap:6px!important;
  white-space:nowrap!important;
}

.br-footer-links a{
  display:inline!important;
  white-space:nowrap!important;
  text-decoration:none!important;
}

.br-footer-note{display:none!important}

@supports (height:100dvh){
  .br-app{
    height:calc(100dvh - 24px - env(safe-area-inset-bottom))!important;
  }
}

@media(max-width:700px){
  .br-app{
    width:calc(100% - 12px)!important;
    height:calc(100svh - 20px - env(safe-area-inset-bottom))!important;
    padding-bottom:2px!important;
  }
  .br-footer{
    width:calc(100% - 12px)!important;
    height:16px!important;
    min-height:16px!important;
    bottom:max(1px,env(safe-area-inset-bottom))!important;
    padding:0 2px!important;
    font-size:7.4px!important;
    letter-spacing:-.08px;
  }
  .br-footer-line{gap:4px}
  .br-footer-links{gap:4px!important}
}

@supports (height:100dvh){
  @media(max-width:700px){
    .br-app{
      height:calc(100dvh - 20px - env(safe-area-inset-bottom))!important;
    }
  }
}

@media(max-width:360px){
  .br-footer{
    font-size:7px!important;
  }
  .br-footer-line{gap:3px}
  .br-footer-links{gap:3px!important}
}


/* V2.8 — Business profile summary remains visible while its profile scrolls. */
.br-business-profile .br-profile-summary{
  position:sticky;
  top:0;
  z-index:24;
  align-self:start;
  background:#fff;
  box-shadow:0 8px 24px rgba(18,22,19,.10);
}
.br-business-profile .br-profile-content{
  position:relative;
  z-index:1;
}
@media(max-width:700px){
  .br-business-profile .br-profile-summary{
    top:0;
    box-shadow:0 7px 20px rgba(18,22,19,.11);
  }
}


/* V2.8.1 — opaque sticky Business header zone.
   The wrapper cancels .br-scroll padding and paints an opaque white layer
   behind/around the rounded summary card, preventing scrolling content from
   showing through the top or side corners. */
.br-business-profile .br-profile-summary{
  position:relative;
  top:auto;
  z-index:auto;
  align-self:auto;
}

.br-business-profile .br-profile-sticky-zone{
  position:sticky;
  top:0;
  z-index:30;
  margin:-10px -12px 0;
  padding:10px 12px 0;
  background:#fff;
  isolation:isolate;
}

.br-business-profile .br-profile-sticky-zone::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:#fff;
  pointer-events:none;
}

.br-business-profile .br-profile-sticky-zone .br-profile-summary{
  background:#fff;
  box-shadow:0 8px 24px rgba(18,22,19,.10);
}

.br-business-profile .br-profile-content{
  position:relative;
  z-index:1;
}

@media(max-width:700px){
  .br-business-profile .br-profile-sticky-zone{
    margin:-8px -8px 0;
    padding:8px 8px 0;
  }
  .br-business-profile .br-profile-sticky-zone .br-profile-summary{
    box-shadow:0 7px 20px rgba(18,22,19,.11);
  }
}


/* V2.8.2 — final sticky Business-header surface fix.
   Use one opaque warm panel surface for the Business shell and sticky guard,
   create a real gap below the header, and over-paint well above/around the
   sticky element so scrolled content can never leak through. */
.br-business-shell{
  --br-business-panel-surface:#faf9f7;
}

.br-business-shell>.br-panel{
  background:var(--br-business-panel-surface);
}

.br-business-profile{
  gap:0;
}

.br-business-profile .br-profile-sticky-zone{
  position:sticky;
  top:0;
  z-index:40;
  margin:-10px -12px 16px;
  padding:10px 12px 0;
  background:var(--br-business-panel-surface);
  isolation:isolate;
  overflow:visible;
}

/* Large opaque guard above + to both sides. It is clipped by the scrollport,
   so at sticky position it fills every possible hairline gap at the top. */
.br-business-profile .br-profile-sticky-zone::before{
  content:"";
  position:absolute;
  top:-80px;
  bottom:0;
  left:-28px;
  right:-28px;
  z-index:0;
  background:var(--br-business-panel-surface);
  pointer-events:none;
}

.br-business-profile .br-profile-sticky-zone .br-profile-summary{
  position:relative;
  z-index:1;
  background:#fff;
  box-shadow:0 8px 24px rgba(18,22,19,.10);
}

.br-business-profile .br-profile-content{
  position:relative;
  z-index:1;
}

@media(max-width:700px){
  .br-business-profile .br-profile-sticky-zone{
    margin:-8px -8px 13px;
    padding:8px 8px 0;
  }
  .br-business-profile .br-profile-sticky-zone::before{
    top:-70px;
    left:-22px;
    right:-22px;
  }
}


/* V2.9 — modular Footer items */
.br-footer-items{
  min-width:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  white-space:nowrap;
}
.br-footer-item{
  min-width:0;
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
}
.br-footer-separator{
  flex:none;
  opacity:.72;
}
@media(max-width:700px){
  .br-footer-items{gap:4px}
}
@media(max-width:360px){
  .br-footer-items{gap:3px}
}


/* V2.9.1 — breathing room below sticky Business card.
   Keep a few pixels of the panel surface visible below the rounded card so
   the lower border-radius is fully readable while sticky. */
.br-business-profile .br-profile-sticky-zone{
  margin-bottom:10px;
  padding-bottom:6px;
}

@media(max-width:700px){
  .br-business-profile .br-profile-sticky-zone{
    margin-bottom:8px;
    padding-bottom:5px;
  }
}


/* V2.9.3 — compact mobile sticky Business header.
   Desktop keeps the full summary. Mobile uses a dense header so the actual
   Business profile content remains visible while identity and key actions
   stay available. */
@media(max-width:700px){
  .br-business-profile .br-profile-sticky-zone{
    position:sticky;
    top:0;
    z-index:60;
    margin:-8px -8px 9px;
    padding:7px 8px 6px;
    background:var(--br-business-panel-surface);
    isolation:isolate;
    overflow:visible;
  }

  /* Overscan the opaque guard well above and beyond the scrollport edges.
     This seals the hairline/top gap that could reveal scrolling content. */
  .br-business-profile .br-profile-sticky-zone::before{
    content:"";
    position:absolute;
    top:-160px;
    bottom:-1px;
    left:-56px;
    right:-56px;
    z-index:0;
    background:var(--br-business-panel-surface);
    pointer-events:none;
  }

  .br-business-profile .br-profile-sticky-zone .br-profile-summary{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:70px minmax(0,1fr);
    min-height:0;
    overflow:hidden;
    border-radius:14px;
    box-shadow:0 5px 16px rgba(18,22,19,.08);
  }

  /* Full-width desktop image becomes a small mobile thumbnail. */
  .br-business-profile .br-profile-cover{
    width:70px;
    min-width:70px;
    min-height:0;
    height:auto;
    aspect-ratio:auto;
    align-self:stretch;
    background-position:center;
    background-size:cover;
  }

  .br-business-profile .br-profile-cover .br-photo-attribution{
    inset-inline-start:3px;
    bottom:3px;
    max-width:calc(100% - 6px);
    padding:2px 3px;
    border-radius:5px;
    font-size:6px;
    line-height:1.15;
  }

  .br-business-profile .br-profile-summary-copy{
    min-width:0;
    padding:8px 9px!important;
    display:block;
  }

  .br-business-profile .br-profile-title-block{min-width:0}

  .br-business-profile .br-profile-category{
    min-height:17px;
    margin:0 0 3px;
    padding:0 6px;
    border-radius:999px;
    font-size:7.5px;
    line-height:1;
  }

  .br-business-profile .br-title-with-badge{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    gap:4px;
  }

  .br-business-profile .br-profile-summary h1,
  .br-business-profile .br-profile-summary h2{
    min-width:0;
    margin:0;
    font-size:15px;
    line-height:1.22;
    letter-spacing:-.18px;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
  }

  .br-business-profile .br-business-alt-name{
    font-size:.58em;
    font-weight:650;
  }

  /* Verification remains visible but becomes an icon-only compact badge. */
  .br-business-profile .br-verified-badge{
    width:19px;
    min-width:19px;
    height:19px;
    min-height:19px;
    padding:0;
    border-radius:50%;
    gap:0;
  }
  .br-business-profile .br-verified-badge svg{
    width:11px;
    height:11px;
  }
  .br-business-profile .br-verified-badge>span{
    display:none!important;
  }

  /* Desktop score cards become tiny mobile score chips. */
  .br-business-profile .br-profile-scores{
    position:static;
    width:auto;
    margin:5px 0 0;
    display:flex;
    align-items:center;
    gap:4px;
  }

  .br-business-profile .br-score-card{
    width:auto;
    min-width:0;
    min-height:20px;
    padding:0 6px;
    border-radius:7px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:2px;
    box-shadow:none;
  }

  .br-business-profile .br-score-card>span,
  .br-business-profile .br-score-card>small{
    display:none;
  }

  .br-business-profile .br-score-card>strong{
    font-size:10.5px;
    line-height:1;
    letter-spacing:0;
  }

  .br-business-profile .br-score-card>strong b{
    font-size:9.5px;
  }

  /* Keep Call / WhatsApp / Directions / Website available in one short row. */
  .br-business-profile .br-profile-actions{
    width:100%;
    margin-top:5px;
    display:flex;
    flex-wrap:nowrap;
    gap:4px;
    overflow:hidden;
  }

  .br-business-profile .br-profile-actions a,
  .br-business-profile .br-profile-actions button{
    flex:1 1 0;
    min-width:0;
    min-height:26px;
    height:26px;
    padding:0 5px;
    border-radius:7px;
    font-size:8.5px;
    line-height:1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

/* Extra-small phones: shave a little more width without removing features. */
@media(max-width:380px){
  .br-business-profile .br-profile-sticky-zone .br-profile-summary{
    grid-template-columns:62px minmax(0,1fr);
  }

  .br-business-profile .br-profile-cover{
    width:62px;
    min-width:62px;
  }

  .br-business-profile .br-profile-summary-copy{
    padding:7px 8px!important;
  }

  .br-business-profile .br-profile-summary h1,
  .br-business-profile .br-profile-summary h2{
    font-size:14px;
  }

  .br-business-profile .br-profile-actions a,
  .br-business-profile .br-profile-actions button{
    padding-inline:3px;
    font-size:7.8px;
  }
}


/* V2.9.4 — Category SEO description, intentionally text-first/minimal. */
.br-category-description{
  max-width:920px;
  margin:0 0 16px;
  padding:2px 3px 0;
  color:#5f655f;
  font-size:12px;
  line-height:1.85;
}
.br-category-description p{margin:0 0 7px}
.br-category-description p:last-child{margin-bottom:0}
@media(max-width:700px){
  .br-category-description{
    margin-bottom:11px;
    padding-inline:1px;
    font-size:10.5px;
    line-height:1.75;
  }
}


/* V2.9.7 — Businesses vs Professionals */
.br-directory-groups{display:grid;gap:22px;align-content:start;padding:1px}
.br-directory-group{min-width:0;display:grid;gap:9px}
.br-directory-group-head{display:flex;align-items:end;justify-content:space-between;gap:12px;padding:2px 2px 0}
.br-directory-group-head h3{margin:0;font-size:16px;line-height:1.35;font-weight:950;letter-spacing:-.2px}
.br-directory-group-head p{margin:2px 0 0;color:var(--muted);font-size:10.5px;line-height:1.55;font-weight:650}
.br-directory-group-count{min-width:27px;height:27px;padding:0 7px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.8);display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:10px;font-weight:900}
.br-listing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;align-content:start}

.br-type-badge{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:0 8px;border:1px solid #ddd7ce;border-radius:999px;background:#f4f1ec;color:#60594f;font-size:9.5px;line-height:1;font-weight:900;white-space:nowrap}
.br-type-badge.is-professional{background:#f0f4f8;border-color:#d9e1e8;color:#465a6c}
.br-type-badge.compact{min-height:20px;padding-inline:6px;font-size:8.5px}
.br-card-type-row{display:flex;align-items:center;gap:5px;margin-bottom:3px}
.br-profile-label-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.br-profile-label-row .br-profile-category{margin-bottom:0}

.br-result-group{display:grid;gap:7px}
.br-result-group+.br-result-group{margin-top:9px;padding-top:12px;border-top:1px solid var(--line)}
.br-result-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 2px}
.br-result-group-head h3{margin:0;font-size:13px;font-weight:950}
.br-result-group-head>span{min-width:23px;height:23px;padding:0 6px;border:1px solid var(--line);border-radius:999px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:9px;font-weight:900;background:#fff}
.br-result-group-list{display:grid;gap:9px}

/* People get an immediately recognisable portrait treatment; business imagery stays square. */
.br-business-card.br-profile-type-professional .br-business-photo{width:88px;min-height:88px;height:88px;align-self:center;border-radius:50%;background-position:center 24%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.br-business-card.br-profile-type-professional{grid-template-columns:96px minmax(0,1fr)}
.br-business-card.br-profile-type-professional .br-photo-attribution{inset-inline-start:2px;bottom:1px;max-width:92px;font-size:6px;padding:2px 3px}
.br-profile-type-professional .br-profile-cover{background-position:center 24%}
.br-profile-type-professional .br-profile-summary{border-color:#dde3e7}

.br-search-option-copy .br-type-badge{vertical-align:middle}

@media(max-width:700px){
  .br-directory-groups{gap:17px}
  .br-directory-group{gap:7px}
  .br-directory-group-head{align-items:center}
  .br-directory-group-head h3{font-size:14px}
  .br-directory-group-head p{font-size:9.5px}
  .br-directory-group-count{min-width:24px;height:24px;font-size:9px}
  .br-listing-grid{grid-template-columns:1fr;gap:8px}
  .br-business-card.br-profile-type-professional{grid-template-columns:78px minmax(0,1fr)}
  .br-business-card.br-profile-type-professional .br-business-photo{width:70px;min-height:70px;height:70px}
  .br-card-type-row{margin-bottom:2px}
  .br-type-badge.compact{min-height:18px;font-size:7.8px;padding-inline:5px}

  /* Preserve the compact 2.9.3 sticky header while making a person visually distinct. */
  .br-business-profile.br-profile-type-professional .br-profile-sticky-zone .br-profile-summary{grid-template-columns:70px minmax(0,1fr)}
  .br-business-profile.br-profile-type-professional .br-profile-cover{
    width:54px;min-width:54px;height:54px;min-height:54px;align-self:center;justify-self:center;border-radius:50%;background-position:center 22%;
  }
  .br-business-profile.br-profile-type-professional .br-profile-cover .br-photo-attribution{inset-inline-start:1px;bottom:0;max-width:52px;font-size:5px;padding:1px 2px}
  .br-business-profile .br-profile-label-row{gap:4px;margin-bottom:4px}
  .br-business-profile .br-profile-label-row .br-type-badge{min-height:17px;padding-inline:5px;font-size:7.5px}
}
@media(max-width:380px){
  .br-business-profile.br-profile-type-professional .br-profile-sticky-zone .br-profile-summary{grid-template-columns:62px minmax(0,1fr)}
  .br-business-profile.br-profile-type-professional .br-profile-cover{width:48px;min-width:48px;height:48px;min-height:48px}
}


/* V2.9.8 — Homepage category overview: four complete cards per row.
   The first Business row and first Professional row are designed to fit in the
   initial desktop viewport without making the cards tiny or changing mobile. */
@media(min-width:701px){
  #brCategoriesView .br-scroll{
    padding:8px 10px 10px;
  }

  #brCategoriesView .br-directory-groups{
    gap:12px;
  }

  #brCategoriesView .br-directory-group{
    gap:5px;
  }

  #brCategoriesView .br-directory-group-head{
    min-height:32px;
    align-items:center;
    padding:0 2px;
  }

  #brCategoriesView .br-directory-group-head h3{
    font-size:14px;
    line-height:1.25;
  }

  #brCategoriesView .br-directory-group-head p{
    margin-top:1px;
    font-size:9.5px;
    line-height:1.35;
  }

  #brCategoriesView .br-directory-group-count{
    min-width:24px;
    height:24px;
    font-size:9px;
  }

  /* Override the old <=1000px three-column rule on the homepage only. */
  #brCategoriesView .br-directory-group .br-category-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
    padding:0;
  }

  /* Viewport-aware height keeps both directory sections visible on common
     laptop/desktop heights. Cards stay wide enough for the background image. */
  #brCategoriesView .br-directory-group .br-category-card{
    aspect-ratio:auto;
    height:clamp(112px,17vh,164px);
    border-radius:14px;
  }

  #brCategoriesView .br-directory-group .br-card-copy{
    padding:10px 11px;
  }

  #brCategoriesView .br-directory-group .br-card-copy strong{
    font-size:16px;
    line-height:1.22;
  }

  #brCategoriesView .br-directory-group .br-card-copy small{
    margin-top:2px;
    font-size:10.5px;
    line-height:1.3;
  }
}

/* Short laptop windows get a little more breathing room without scrolling
   simply because the cards used to be square. */
@media(min-width:701px) and (max-height:760px){
  #brCategoriesView .br-directory-groups{gap:9px}
  #brCategoriesView .br-directory-group-head{min-height:27px}
  #brCategoriesView .br-directory-group-head p{display:none}
  #brCategoriesView .br-directory-group .br-category-card{
    height:clamp(96px,15.5vh,118px);
  }
  #brCategoriesView .br-directory-group .br-card-copy{padding:8px 9px}
  #brCategoriesView .br-directory-group .br-card-copy strong{font-size:14px}
  #brCategoriesView .br-directory-group .br-card-copy small{font-size:9px}
}


/* V2.9.9 — Section counts sit inline with the section title. */
.br-directory-group-count{
  display:none!important;
}
.br-directory-group-head{
  justify-content:flex-start;
}
.br-directory-group-head h3{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:0;
}
.br-directory-group-head h3>.br-fa,
.br-directory-group-head h3>.br-en{
  align-items:baseline;
}
.br-directory-group-count-inline{
  margin-inline-start:5px;
  color:var(--muted);
  font-size:.67em;
  line-height:1;
  font-weight:750;
  letter-spacing:0;
  white-space:nowrap;
  opacity:.9;
}


/* V2.9.10 — Homepage progressive Category reveal.
   Keep cards comfortably sized. A group with 4+ Categories initially shows
   three Category cards plus one View-all tile. */

.br-category-more-card{
  position:relative;
  aspect-ratio:1/1;
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(34,42,36,.11);
  border-radius:18px;
  background:
    radial-gradient(circle at 25% 18%,rgba(255,255,255,.96),rgba(255,255,255,0) 42%),
    linear-gradient(145deg,#f8f6f1 0%,#efebe3 100%);
  color:var(--ink);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:18px;
  box-shadow:var(--soft-shadow);
  cursor:pointer;
  text-align:center;
  font:inherit;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.br-category-more-card:hover{
  transform:translateY(-2px);
  border-color:rgba(34,42,36,.2);
  box-shadow:0 12px 28px rgba(18,22,19,.13);
}
.br-category-more-card:focus-visible{
  outline:3px solid rgba(79,114,92,.24);
  outline-offset:2px;
}
.br-category-more-card[hidden],
.br-category-extra[hidden]{
  display:none!important;
}
.br-category-more-icon{
  width:42px;
  height:42px;
  border:1px solid rgba(34,42,36,.1);
  border-radius:14px;
  background:rgba(255,255,255,.72);
  display:grid;
  place-items:center;
  box-shadow:0 5px 16px rgba(18,22,19,.06);
}
.br-category-more-icon svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.br-category-more-copy{
  display:block;
}
.br-category-more-copy strong{
  display:block;
  font-size:16px;
  line-height:1.25;
  font-weight:900;
}
.br-category-more-copy small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.3;
  font-weight:750;
}
.br-category-extra.is-revealed{
  animation:br-category-reveal .22s ease-out both;
}
@keyframes br-category-reveal{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

/* Restore the roomier card treatment from before 2.9.8.
   Four columns remain, but the cards are no longer artificially compressed
   just to force both sections into one viewport. */
@media(min-width:701px){
  #brCategoriesView .br-scroll{
    padding:10px 12px 12px;
  }
  #brCategoriesView .br-directory-groups{
    gap:22px;
  }
  #brCategoriesView .br-directory-group{
    gap:9px;
  }
  #brCategoriesView .br-directory-group-head{
    min-height:0;
    align-items:end;
    padding:2px 2px 0;
  }
  #brCategoriesView .br-directory-group-head h3{
    font-size:16px;
    line-height:1.35;
  }
  #brCategoriesView .br-directory-group-head p{
    display:block;
    margin-top:2px;
    font-size:10.5px;
    line-height:1.55;
  }
  #brCategoriesView .br-directory-group .br-category-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    padding:1px;
  }
  #brCategoriesView .br-directory-group .br-category-card,
  #brCategoriesView .br-directory-group .br-category-more-card{
    width:auto;
    height:auto;
    aspect-ratio:1/1;
    border-radius:18px;
  }
  #brCategoriesView .br-directory-group .br-card-copy{
    padding:15px;
  }
  #brCategoriesView .br-directory-group .br-card-copy strong{
    font-size:20px;
    line-height:1.28;
  }
  #brCategoriesView .br-directory-group .br-card-copy small{
    margin-top:4px;
    font-size:13px;
    line-height:1.4;
  }
}

/* Explicitly neutralise the old short-window compression from 2.9.8. */
@media(min-width:701px) and (max-height:760px){
  #brCategoriesView .br-directory-groups{gap:22px}
  #brCategoriesView .br-directory-group-head{min-height:0}
  #brCategoriesView .br-directory-group-head p{display:block}
  #brCategoriesView .br-directory-group .br-category-card,
  #brCategoriesView .br-directory-group .br-category-more-card{
    height:auto;
    aspect-ratio:1/1;
  }
  #brCategoriesView .br-directory-group .br-card-copy{padding:15px}
  #brCategoriesView .br-directory-group .br-card-copy strong{font-size:20px}
  #brCategoriesView .br-directory-group .br-card-copy small{font-size:13px}
}

@media(max-width:700px){
  .br-category-more-card{
    border-radius:15px;
    gap:7px;
    padding:12px;
  }
  .br-category-more-icon{
    width:34px;
    height:34px;
    border-radius:11px;
  }
  .br-category-more-icon svg{
    width:18px;
    height:18px;
  }
  .br-category-more-copy strong{
    font-size:14px;
  }
  .br-category-more-copy small{
    margin-top:3px;
    font-size:9.5px;
  }
}

@media(prefers-reduced-motion:reduce){
  .br-category-extra.is-revealed{animation:none}
  .br-category-more-card{transition:none}
}


/* V2.9.11 — first-view Homepage card fit.
   Desktop cards remain large but use a landscape 3:2 ratio so the lower
   initial section is not cut in half by the internal viewport. */
@media(min-width:701px){
  #brCategoriesView .br-directory-group .br-category-card,
  #brCategoriesView .br-directory-group .br-category-more-card{
    width:auto;
    height:auto;
    aspect-ratio:3/2;
  }

  #brCategoriesView .br-directory-groups{
    gap:16px;
  }

  #brCategoriesView .br-directory-group{
    gap:7px;
  }

  #brCategoriesView .br-directory-group-head p{
    margin-top:1px;
  }
}

/* Preserve the intended square, touch-friendly cards on phones. */
@media(max-width:700px){
  #brCategoriesView .br-directory-group .br-category-card,
  #brCategoriesView .br-directory-group .br-category-more-card{
    aspect-ratio:1/1;
  }
}


/* V2.9.12 — render-path-independent sticky profile surface.
   A Business/Professional profile can be rendered either inside the Homepage
   SPA or by the direct single template. Keep the opaque guard self-contained
   so its CSS custom property never depends on an ancestor that only exists in
   one render path. */
.br-business-profile{
  --br-business-panel-surface:#faf9f7;
}
.br-business-profile .br-profile-sticky-zone,
.br-business-profile .br-profile-sticky-zone::before{
  background:var(--br-business-panel-surface,#faf9f7);
}


/* V2.9.13 — semantic section count, aligned with the section title. */
.br-directory-group-count-inline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-inline-start:7px;
  padding:2px 6px;
  border:1px solid rgba(34,42,36,.14);
  border-radius:7px;
  background:rgba(255,255,255,.48);
  color:var(--muted);
  font-size:.62em;
  line-height:1.2;
  font-weight:780;
  vertical-align:baseline;
  white-space:nowrap;
  opacity:1;
}

.br-category-more-copy small{
  display:none!important;
}

@media(max-width:700px){
  .br-directory-group-count-inline{
    margin-inline-start:5px;
    padding:1px 5px;
    border-radius:6px;
    font-size:.64em;
  }
}


/* V2.9.14 — mobile Verified placement.
   Keep verification away from the localised/alternate name. */
.br-verified-badge-mobile{
  display:none!important;
}

@media(max-width:700px){
  .br-business-profile .br-title-with-badge>.br-verified-badge-title{
    display:none!important;
  }

  .br-business-profile .br-profile-label-row .br-verified-badge-mobile{
    width:auto;
    min-width:0;
    height:17px;
    min-height:17px;
    padding:0 5px;
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    gap:3px;
    border-radius:999px;
    font-size:7.5px;
    line-height:1;
  }

  .br-business-profile .br-profile-label-row .br-verified-badge-mobile svg{
    width:10px;
    height:10px;
    flex:none;
  }

  /* Direct-render badges contain FA/EN spans. Show only the active one. */
  .br-business-profile .br-profile-label-row .br-verified-badge-mobile>span{
    display:none!important;
  }
  body:not(.br-lang-en) .br-business-profile .br-profile-label-row .br-verified-badge-mobile>.br-fa{
    display:inline!important;
  }
  body.br-lang-en .br-business-profile .br-profile-label-row .br-verified-badge-mobile>.br-en{
    display:inline!important;
  }

  /* SPA badge text uses this neutral wrapper. */
  .br-business-profile .br-profile-label-row .br-verified-badge-mobile>.br-verified-badge-text{
    display:inline!important;
  }
}


/* V2.9.15 — dynamic first-view fill on full desktop.
   Initial state: consume the entire available Categories panel height.
   Expanded state: return to natural document flow and scrolling. */
@media(min-width:1001px){
  #brCategoriesView .br-scroll{
    overflow:hidden;
  }

  #brCategoriesView .br-scroll.is-category-expanded{
    overflow:auto;
  }

  #brCategoriesView .br-directory-groups{
    height:100%;
    min-height:0;
    grid-auto-rows:minmax(0,1fr);
    gap:16px;
    align-content:stretch;
  }

  #brCategoriesView .br-directory-group{
    min-height:0;
    grid-template-rows:auto minmax(0,1fr);
    gap:7px;
  }

  #brCategoriesView .br-directory-group .br-category-grid{
    height:100%;
    min-height:0;
    align-content:stretch;
    align-items:stretch;
    grid-auto-rows:minmax(0,1fr);
  }

  #brCategoriesView .br-directory-group .br-category-card,
  #brCategoriesView .br-directory-group .br-category-more-card{
    width:auto;
    height:100%;
    min-height:0;
    aspect-ratio:auto;
  }

  /* After View all, extra rows should flow naturally and the panel should
     become scrollable again. Keep the comfortable landscape card shape. */
  #brCategoriesView .br-scroll.is-category-expanded .br-directory-groups{
    height:auto;
    min-height:100%;
    grid-auto-rows:auto;
    align-content:start;
  }

  #brCategoriesView .br-scroll.is-category-expanded .br-directory-group{
    grid-template-rows:auto auto;
  }

  #brCategoriesView .br-scroll.is-category-expanded .br-directory-group .br-category-grid{
    height:auto;
    min-height:0;
    align-content:start;
    align-items:stretch;
    grid-auto-rows:var(--br-expanded-card-height,180px);
  }

  #brCategoriesView .br-scroll.is-category-expanded .br-directory-group .br-category-card,
  #brCategoriesView .br-scroll.is-category-expanded .br-directory-group .br-category-more-card{
    height:var(--br-expanded-card-height,180px);
    min-height:var(--br-expanded-card-height,180px);
    aspect-ratio:auto;
  }
}


/* V2.9.16 — expanded Category cards retain the exact fitted first-view height. */
@media(min-width:1001px){
  #brCategoriesView .br-scroll.is-category-expanded .br-directory-group .br-category-grid{
    grid-auto-rows:var(--br-expanded-card-height,180px);
  }

  #brCategoriesView .br-scroll.is-category-expanded .br-directory-group .br-category-card,
  #brCategoriesView .br-scroll.is-category-expanded .br-directory-group .br-category-more-card{
    height:var(--br-expanded-card-height,180px);
    min-height:var(--br-expanded-card-height,180px);
    max-height:none;
    aspect-ratio:auto;
  }
}


/* V2.9.17 — Mobile directory readability + no View-all mode. */
@media(max-width:700px){

  /* Mobile shows every Category immediately.
     Desktop keeps the existing 3 + View all interaction. */
  #brCategoriesView .br-category-more-card{
    display:none!important;
  }

  #brCategoriesView .br-category-extra[hidden]{
    display:block!important;
  }

  #brCategoriesView .br-category-extra{
    animation:none!important;
  }

  /* Give the mobile panel a little more breathing room. */
  #brCategoriesView .br-scroll{
    padding:11px 10px 14px;
  }

  #brCategoriesView .br-directory-groups{
    gap:20px;
  }

  #brCategoriesView .br-directory-group{
    gap:9px;
  }

  #brCategoriesView .br-directory-group-head{
    padding-inline:2px;
  }

  #brCategoriesView .br-directory-group-head h3{
    font-size:16px;
    line-height:1.35;
    letter-spacing:-.12px;
  }

  #brCategoriesView .br-directory-group-head p{
    margin-top:3px;
    font-size:11.5px;
    line-height:1.55;
  }

  #brCategoriesView .br-directory-group-count-inline{
    margin-inline-start:6px;
    padding:2px 6px;
    border-radius:7px;
    font-size:.68em;
    line-height:1.2;
  }

  #brCategoriesView .br-directory-group .br-category-grid{
    gap:10px;
  }

  #brCategoriesView .br-directory-group .br-category-card{
    border-radius:17px;
  }

  #brCategoriesView .br-directory-group .br-card-copy{
    padding:13px;
  }

  #brCategoriesView .br-directory-group .br-card-copy strong{
    font-size:17px;
    line-height:1.28;
    letter-spacing:-.1px;
  }

  #brCategoriesView .br-directory-group .br-card-copy small{
    margin-top:4px;
    font-size:11.5px;
    line-height:1.4;
  }

  /* Slightly larger top content inside the mobile home panel. */
  #brCategoriesView .br-panel-title,
  #brCategoriesView .br-view-title{
    font-size:21px;
    line-height:1.3;
  }

  #brCategoriesView .br-panel-subtitle,
  #brCategoriesView .br-view-subtitle{
    font-size:11.5px;
    line-height:1.55;
  }
}

/* Very narrow phones: keep readability gain but protect width. */
@media(max-width:380px){
  #brCategoriesView .br-scroll{
    padding-inline:8px;
  }

  #brCategoriesView .br-directory-group .br-category-grid{
    gap:8px;
  }

  #brCategoriesView .br-directory-group-head h3{
    font-size:15px;
  }

  #brCategoriesView .br-directory-group-head p{
    font-size:10.8px;
  }

  #brCategoriesView .br-directory-group .br-card-copy{
    padding:11px;
  }

  #brCategoriesView .br-directory-group .br-card-copy strong{
    font-size:15.5px;
  }

  #brCategoriesView .br-directory-group .br-card-copy small{
    font-size:10.5px;
  }
}
