/* Approved district home design. Taluka pages retain v3. */
.v2g-district-page.bsdh-v4{--dh-blue:#153e76;--dh-orange:#ff8a21;max-width:1180px!important;padding-top:18px;padding-bottom:28px;color:#18314e}
.bsdh-v4 .bsdh-v4-search-panel{padding:25px;border:1px solid #deedf9;border-radius:18px;background:#eaf5ff}
.bsdh-v4 .bsdh-v4-search-panel h1{margin:0 0 18px;color:#102c54;font-size:30px;line-height:1.5;font-weight:800;letter-spacing:0;overflow-wrap:anywhere}
.bsdh-v4 .bsdh-search{box-shadow:0 3px 12px #153e7609;border-color:#d9e6f3;border-radius:12px;padding:7px 7px 7px 14px;gap:10px;max-width:760px}
.bsdh-v4 .bsdh-search>svg{width:22px;height:22px;flex:0 0 22px}
.bsdh-v4 .bsdh-search input[type=search]{font-size:16px;min-height:44px}
.bsdh-v4 .bsdh-search button{display:grid;place-items:center;min-width:48px;min-height:48px;padding:12px;background:#ff8a21;color:#102c54;border-radius:9px}
.bsdh-v4 .bsdh-search button svg{width:24px;height:24px}
.bsdh-v4 .bsdh-v4-taluka{display:inline-flex;align-items:center;gap:8px;min-height:36px;margin-top:8px;color:#254f80;font-size:12px;font-weight:650;text-decoration:none}
.bsdh-v4 .v2g-section{margin-top:26px}
.bsdh-v4 .v2g-head{margin-bottom:14px;align-items:center;gap:12px}
.bsdh-v4 .v2g-head h2{font-size:23px;line-height:1.5;letter-spacing:0}
.bsdh-v4 #bsDistrictCategories .v2g-head p{display:none}
.bsdh-v4 .v2g-cats{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.bsdh-v4 .v2g-cat{min-height:158px;padding:17px 10px 13px;border-radius:14px;border-color:#dfe9f4;box-shadow:0 3px 10px #153e7604;justify-content:flex-start}
.bsdh-v4 .v2g-cat-icon{width:52px;height:52px;flex-basis:52px;border-radius:50%;background:#eaf5ff!important;margin-bottom:10px}
.bsdh-v4 .v2g-cat-icon svg{width:30px;height:30px;stroke:#153e76!important}
.bsdh-v4 .v2g-cat strong{font-size:15px;line-height:1.6;font-weight:750;word-break:normal;overflow-wrap:anywhere}
.bsdh-v4 .v2g-cat small{font-size:10px;line-height:1.5;margin-top:2px}
.bsdh-v4 .v2g-cat b{font-size:10px;background:transparent;color:#64758c;margin:5px 0 0;padding:0}
.bsdh-v4 .bsdh-v4-help{display:grid;gap:0;margin-top:20px}
.bsdh-v4 .bsdh-v4-need{display:flex;align-items:center;gap:15px;min-height:92px;padding:18px 20px;border:1px solid #ffd6b0;border-radius:14px;background:#fff5eb;text-decoration:none}
.bsdh-v4 .bsdh-v4-need-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;color:#b44c05}
.bsdh-v4 .bsdh-v4-need-icon svg{width:34px;height:34px}
.bsdh-v4 .bsdh-v4-need strong{display:block;font-size:20px;color:#923d08;line-height:1.6}
.bsdh-v4 .bsdh-v4-need small{display:block;font-size:16px;color:#153e76;line-height:1.7}
.bsdh-v4 .bsdh-v4-free{display:flex;align-items:center;justify-content:space-between;min-height:58px;padding:12px 4px;color:#153e76;font-size:18px;text-decoration:none;border-bottom:1px solid #e5edf5}
.bsdh-v4 .bsdh-v4-free>span{font-size:25px}
.bsdh-v4 .v2g-featured{gap:14px;scroll-padding:2px}
.bsdh-v4 .v2g-listing{flex:0 0 calc((100% - 28px)/3);border-radius:14px;box-shadow:0 3px 12px #153e7608}
.bsdh-v4 .v2g-photo{height:190px;background:#f1f6fc}
.bsdh-v4 .v2g-photo img{width:100%;height:100%;object-fit:cover}
.bsdh-v4 .v2g-listing-body{padding:14px}
.bsdh-v4 .v2g-listing-body h3{font-size:17px;line-height:1.55;min-height:3.1em;overflow-wrap:anywhere}
.bsdh-v4 .v2g-listing-body p{font-size:12px;line-height:1.6}
.bsdh-v4 .bsdh-listing-meta{gap:6px;margin-bottom:10px;align-items:flex-start}
.bsdh-v4 .bsdh-listing-meta strong{font-size:17px;color:#a84508;line-height:1.6}
.bsdh-v4 .bsdh-listing-meta small{font-size:10px}
.bsdh-v4 .v2g-card-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding-top:10px}
.bsdh-v4 .v2g-card-actions>a,.bsdh-v4 .v2g-card-actions>button{min-height:44px;padding:8px 4px;font-size:12px;white-space:nowrap;gap:4px;border-radius:8px}
.bsdh-v4 .v2g-card-actions>.v2g-share{grid-column:1/-1;background:#fff}
.bsdh-v4 .v2g-card-actions>.v2g-call{background:#eaf4ff;border-color:#d6e9fc;color:#154a89}
.bsdh-v4 .v2g-card-actions>.v2g-wa{background:#12813f;border-color:#12813f}
.bsdh-v4 .v2g-card-actions svg{width:15px;height:15px;flex:0 0 15px}
.bsdh-v4 .bsdh-v4-view-all{color:#1956a3;font-size:13px;font-weight:700;text-decoration:none;display:inline-flex;align-items:center;gap:6px;min-height:44px}
.bsdh-v4 .v2g-featured-head-actions{flex-wrap:wrap;gap:5px}
.bsdh-v4 .v2g-slide-btn{min-width:44px;min-height:44px}
.bsdh-v4 .bsdh-v4-listings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.bsdh-v4 .bsdh-v4-listings .v2g-listing{max-width:none}
.bsdh-v4 .bsdh-v4-empty{padding:24px 18px;border:1px dashed #c8d9eb;border-radius:14px;background:#f6faff;text-align:center}
.bsdh-v4 .bsdh-v4-empty p{margin:0 0 10px;font-size:15px;line-height:1.8;color:#526980}
.bsdh-v4 .bsdh-v4-empty a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 14px;background:#153e76;color:#fff;border-radius:9px;text-decoration:none;font-size:14px;line-height:1.6}
.bsdh-v4 .v2g-cta{background:#e3f2ff;border-color:#d0e8fb;border-radius:15px;box-shadow:none}
.bsdh-v4 .v2g-cta strong{color:#153e76;font-size:20px}
.bsdh-v4 .v2g-cta small{color:#526980;font-size:13px}
.bsdh-v4 .v2g-cta>a{background:#ff8a21;color:#102c54;min-height:48px;font-size:15px;border-radius:9px}
@media(max-width:950px){
 .bsdh-v4 .v2g-cats{grid-template-columns:repeat(3,minmax(0,1fr))}
 .bsdh-v4 .bsdh-v4-listings{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bsdh-v4 .v2g-listing{flex-basis:calc((100% - 14px)/2)}
}
@media(max-width:600px){
 .v2g-district-page.bsdh-v4{padding-top:12px;padding-bottom:20px}
 .bsdh-v4 .bsdh-v4-search-panel{padding:18px 14px 10px;border-radius:14px}
 .bsdh-v4 .bsdh-v4-search-panel h1{font-size:24px;line-height:1.6;margin-bottom:14px}
 .bsdh-v4 .bsdh-search{gap:7px;padding:5px 5px 5px 9px;border-radius:10px}
 .bsdh-v4 .bsdh-search>svg{width:19px;height:19px;flex-basis:19px}
 .bsdh-v4 .bsdh-search input[type=search]{font-size:16px;min-height:44px}
 .bsdh-v4 .bsdh-search button{min-width:46px;min-height:46px;padding:10px}
 .bsdh-v4 .v2g-head{flex-wrap:wrap;gap:6px;margin-bottom:12px}
 .bsdh-v4 .v2g-head h2{font-size:21px;line-height:1.65}
 .bsdh-v4 .v2g-cats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .bsdh-v4 .v2g-cat{min-height:141px;padding:13px 8px 10px;border-radius:12px}
 .bsdh-v4 .v2g-cat-icon{width:46px;height:46px;flex-basis:46px;margin-bottom:7px}
 .bsdh-v4 .v2g-cat-icon svg{width:28px;height:28px}
 .bsdh-v4 .v2g-cat strong{font-size:16px;line-height:1.65}
 .bsdh-v4 .v2g-cat small{font-size:10px}
 .bsdh-v4 .v2g-cat b{font-size:10px;margin-top:3px}
 .bsdh-v4 .bsdh-v4-need{padding:14px 12px;gap:10px;min-height:90px}
 .bsdh-v4 .bsdh-v4-need strong{font-size:18px}
 .bsdh-v4 .bsdh-v4-need small{font-size:15px}
 .bsdh-v4 .v2g-featured{gap:10px}
 .bsdh-v4 .v2g-listing{flex-basis:calc((100% - 10px)/2);max-width:none;border-radius:12px}
 .bsdh-v4 .v2g-photo{height:135px}
 .bsdh-v4 .v2g-listing-body{padding:10px 8px}
 .bsdh-v4 .v2g-listing-body h3{font-size:15px;line-height:1.7;min-height:3.4em}
 .bsdh-v4 .v2g-listing-body p{font-size:11px;margin:5px 0 8px}
 .bsdh-v4 .bsdh-listing-meta strong{font-size:14px;line-height:1.65}
 .bsdh-v4 .bsdh-listing-meta small{font-size:9px}
 .bsdh-v4 .v2g-card-actions{gap:6px}
 .bsdh-v4 .v2g-card-actions>a,.bsdh-v4 .v2g-card-actions>button{font-size:10px;gap:3px;padding:7px 2px}
 .bsdh-v4 .v2g-card-actions svg{width:13px;height:13px;flex-basis:13px}
 .bsdh-v4 .bsdh-v4-listings{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .bsdh-v4 .v2g-featured-head-actions>a{font-size:12px;margin-inline-start:2px}
 .bsdh-v4 .v2g-cta{padding:18px 14px;gap:13px;margin:24px 0 10px}
 .bsdh-v4 .v2g-cta strong{font-size:18px;line-height:1.7}
 .bsdh-v4 .v2g-cta>a{width:100%}
}
@media(max-width:359px){
 .bsdh-v4 .bsdh-v4-search-panel h1{font-size:21px}
 .bsdh-v4 .v2g-cat strong{font-size:14px}
 .bsdh-v4 .bsdh-v4-listings{grid-template-columns:minmax(0,1fr)}
 .bsdh-v4 .v2g-listing{flex-basis:100%}
 .bsdh-v4 .v2g-photo{height:180px}
 .bsdh-v4 .v2g-card-actions>a,.bsdh-v4 .v2g-card-actions>button{font-size:13px}
}

/* District home compact 3x2, 2026-10-20. Ordinary scrolling remains available. */
@media(max-width:600px){
 body:has(.bsdh-v4) .v2b-header-main{min-height:54px;padding:5px 10px;gap:6px}
 body:has(.bsdh-v4) .v2b-brand b{font-size:18px}
 body:has(.bsdh-v4) .v2b-brand small{font-size:8px}
 body:has(.bsdh-v4) .v2b-head-actions{gap:4px}
 body:has(.bsdh-v4) .bsux-area{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:6px 10px 0;padding:5px 9px;min-height:40px;border-radius:10px}
 body:has(.bsdh-v4) .bsux-place{min-width:0;flex:1;gap:4px}
 body:has(.bsdh-v4) .bsux-place nav{display:flex;align-items:center;gap:4px;flex-wrap:nowrap;white-space:nowrap;overflow-x:auto;max-width:100%;font-size:11px;scrollbar-width:none}
 body:has(.bsdh-v4) .bsux-place nav::-webkit-scrollbar{display:none}
 body:has(.bsdh-v4) .bsux-area-actions{flex-shrink:0;display:flex;align-items:center;gap:5px}
 body:has(.bsdh-v4) .bsux-change{font-size:11px;padding:5px 6px;min-height:30px}
 body:has(.bsdh-v4) .bsux-languages summary{font-size:11px;padding:5px 2px;min-height:30px}
 .v2g-district-page.bsdh-v4{padding-top:12px;padding-bottom:20px}
 .bsdh-v4 .bsdh-v4-search-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:0;border:0;border-radius:0;background:transparent}
 .bsdh-v4 .bsdh-v4-search-panel h1{margin:0;font-size:18px;line-height:1.65;letter-spacing:0}
 .bsdh-v4 .bsdh-v4-taluka{grid-column:2;grid-row:1;align-self:center;min-height:30px;margin:0;font-size:11px;white-space:nowrap}
 .bsdh-v4 .bsdh-search{grid-column:1/-1;grid-row:2;width:100%;min-height:50px;padding:5px 5px 5px 10px;border-radius:11px;gap:7px}
 .bsdh-v4 .bsdh-search input[type=search]{font-size:16px;min-height:40px}
 .bsdh-v4 .bsdh-search>svg{display:block;width:18px;height:18px;flex-basis:18px}
 .bsdh-v4 .bsdh-search button{min-width:42px;min-height:42px;padding:9px;border-radius:8px}
 .bsdh-v4 .bsdh-search button svg{width:22px;height:22px}
 .bsdh-v4 #bsDistrictCategories{margin-top:16px}
 .bsdh-v4 #bsDistrictCategories .v2g-head{margin-bottom:10px}
 .bsdh-v4 #bsDistrictCategories h2{font-size:17px;line-height:1.6}
 .bsdh-v4 .v2g-cats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .bsdh-v4 .v2g-cat{min-height:98px;padding:9px 5px 8px;border-radius:11px;gap:5px;justify-content:flex-start}
 .bsdh-v4 .v2g-cat-icon{width:35px;height:35px;flex-basis:35px;margin:0;border-radius:50%}
 .bsdh-v4 .v2g-cat-icon svg{width:24px;height:24px}
 .bsdh-v4 .v2g-cat strong{font-size:13px;line-height:1.6;word-break:normal;overflow-wrap:anywhere}
 .bsdh-v4 .v2g-cat>small,.bsdh-v4 .v2g-cat>b{display:none}
 .bsdh-v4 .bsdh-v4-help{margin-top:13px}
 .bsdh-v4 .bsdh-v4-need{min-height:60px;padding:9px 11px;gap:9px;border-radius:11px}
 .bsdh-v4 .bsdh-v4-need-icon{width:32px;height:32px;flex-basis:32px}
 .bsdh-v4 .bsdh-v4-need-icon svg{width:26px;height:26px}
 .bsdh-v4 .bsdh-v4-need strong{font-size:15px;line-height:1.6}
 .bsdh-v4 .bsdh-v4-need small{font-size:13px;line-height:1.65}
 .bsdh-v4 .bsdh-v4-free{min-height:44px;padding:8px 3px;font-size:14px}
 .bsdh-v4 .v2g-section:not(#bsDistrictCategories){margin-top:20px}
 body:has(.bsdh-v4) .bottom-nav .bottom-wrap{min-height:62px;padding-top:5px;padding-bottom:max(6px,env(safe-area-inset-bottom))}
 body:has(.bsdh-v4) .bottom-nav .bn-item{min-height:48px}
}

/* Keep primary district actions clear of the fixed navigation on short screens. */
@media(max-width:600px) and (max-height:700px){
 body:has(.bsdh-v4) .bsux-area{flex-wrap:nowrap}
 body:has(.bsdh-v4) .bsux-place{flex:1 1 0%;width:auto;flex-wrap:nowrap;overflow:hidden}
 body:has(.bsdh-v4) .bsux-area-actions{width:auto;flex:0 0 auto;flex-wrap:nowrap}
 .v2g-district-page.bsdh-v4{padding-top:8px}
 .bsdh-v4 .bsdh-v4-search-panel{gap:6px}
 .bsdh-v4 .bsdh-v4-search-panel h1{font-size:16px;line-height:1.6}
 .bsdh-v4 #bsDistrictCategories{margin-top:10px}
 .bsdh-v4 #bsDistrictCategories .v2g-head{margin-bottom:6px}
 .bsdh-v4 .v2g-cats{gap:6px}
 .bsdh-v4 .v2g-cat{min-height:86px;padding:6px 4px;gap:4px}
 .bsdh-v4 .v2g-cat-icon{width:30px;height:30px;flex-basis:30px}
 .bsdh-v4 .v2g-cat-icon svg{width:22px;height:22px}
 .bsdh-v4 .v2g-cat strong{font-size:13px;line-height:1.5}
 .bsdh-v4 .bsdh-v4-help{margin-top:8px;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:8px;align-items:stretch}
 .bsdh-v4 .bsdh-v4-need{min-height:62px;padding:8px;gap:6px}
 .bsdh-v4 .bsdh-v4-need-icon{width:26px;height:26px;flex-basis:26px}
 .bsdh-v4 .bsdh-v4-need strong{font-size:14px;line-height:1.6}
 .bsdh-v4 .bsdh-v4-need small{font-size:12px;line-height:1.6}
 .bsdh-v4 .bsdh-v4-free{min-height:62px;gap:5px;padding:8px;border:1px solid #d7e6fa;border-radius:11px;background:#f0f6ff;font-size:14px;line-height:1.6}
 .bsdh-v4 .bsdh-v4-free strong{font-size:14px;line-height:1.6}
}

/* Narrow district headers retain all controls without the generic two-row PWA layout. */
@media(max-width:370px){
 body:has(.bsdh-v4) .v2b-header-main{grid-template-columns:44px minmax(0,1fr) auto;gap:4px}
 body:has(.bsdh-v4) .v2b-brand{justify-self:center;min-width:0}
 body:has(.bsdh-v4) .v2b-head-actions{grid-column:auto;justify-content:flex-end}
 body:has(.bsdh-v4) .v2b-head-actions>.bs-pwa-install{width:44px;max-width:44px;min-width:44px;margin-right:0;padding:9px}
 body:has(.bsdh-v4) .v2b-head-actions .bs-pwa-install-label{display:none}
}
@media(max-width:370px) and (max-height:700px){
 .bsdh-v4 .bsdh-v4-need small{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
}
@media(max-width:370px) and (max-height:600px){
 .v2g-district-page.bsdh-v4{padding-top:6px}
 .bsdh-v4 .bsdh-v4-search-panel h1{font-size:14px;line-height:1.4}
 .bsdh-v4 .bsdh-search{padding-top:3px;padding-bottom:3px}
 .bsdh-v4 #bsDistrictCategories{margin-top:6px}
 .bsdh-v4 #bsDistrictCategories h2{font-size:15px}
 .bsdh-v4 #bsDistrictCategories .v2g-head{margin-bottom:4px}
 .bsdh-v4 .v2g-cat{min-height:82px}
 .bsdh-v4 .v2g-cats{gap:4px}
 .bsdh-v4 .v2g-cat-icon{width:28px;height:28px;flex-basis:28px}
 .bsdh-v4 .v2g-cat strong{font-size:12.5px;line-height:1.45}
 .bsdh-v4 .bsdh-v4-help{margin-top:4px}
 .bsdh-v4 .bsdh-v4-need,.bsdh-v4 .bsdh-v4-free{box-sizing:border-box;min-height:58px;padding:6px}
 .bsdh-v4 .bsdh-v4-need strong,.bsdh-v4 .bsdh-v4-free strong{font-size:13px;line-height:1.4}
}

/* Give long district headings the full line; retain subdistrict navigation beside categories. */
@media(max-width:370px) and (max-height:600px){
 .bsdh-v4 .bsdh-v4-search-panel{position:relative}
 .bsdh-v4 .bsdh-v4-search-panel h1{grid-column:1/-1}
 .bsdh-v4 .bsdh-v4-taluka{position:absolute;grid-area:auto;top:calc(100% + 4px);right:0;min-height:30px}
}

/* Single remaining home action spans the compact grid. */
.bsdh-v4 .bsdh-v4-help--single{grid-template-columns:minmax(0,1fr)}

/* Approved compact featured cards; district home only. */
.bsdh-v4 .bsdh-compact-card{position:relative;display:grid;grid-template-columns:88px minmax(0,1fr);grid-template-rows:32px auto auto auto auto auto;gap:4px 10px;min-width:0;padding:12px;align-content:start;background:#fff;border:1px solid #dce7f3;border-radius:14px;overflow:hidden;scroll-snap-align:start}
.bsdh-v4 .bsdh-compact-card .v2g-photo{grid-column:1;grid-row:2/5;position:static;align-self:start;display:block;width:88px;height:88px;margin:0;border-radius:8px;overflow:visible;background:#f1f5fa}
.bsdh-v4 .bsdh-compact-card .v2g-photo img{display:block;width:88px;height:88px;object-fit:contain;border-radius:8px}
.bsdh-v4 .bsdh-compact-card .v2g-photo>span:not(.bsdh-sr){display:grid;place-items:center;width:88px;height:88px;font-size:32px}
.bsdh-v4 .bsdh-compact-card .v2g-photo>i{position:absolute;inset:10px auto auto 12px;display:inline-flex;align-items:center;min-height:24px;max-width:calc(100% - 70px);padding:4px 8px;border-radius:6px;background:#fff0dd;color:#914300;font-size:11px;line-height:1.4;font-style:normal;font-weight:700;box-shadow:none}
.bsdh-v4 .bsdh-compact-card .v2g-listing-body{display:contents}
.bsdh-v4 .bsdh-compact-card .v2g-listing-body>a{grid-column:2;grid-row:2;align-self:start;min-width:0;text-decoration:none;color:#18314e}
.bsdh-v4 .bsdh-compact-card .v2g-listing-body h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;min-height:0;margin:0;font-size:15px;line-height:1.6;font-weight:750;overflow:hidden;overflow-wrap:anywhere}
.bsdh-v4 .bsdh-compact-card .v2g-listing-body>p{grid-column:2;grid-row:3;align-self:start;margin:0;font-size:12px;line-height:1.6;color:#52677e;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.bsdh-v4 .bsdh-compact-card .v2g-listing-body>p svg{width:14px;height:14px;flex:0 0 14px}
.bsdh-v4 .bsdh-compact-card .bsdh-listing-meta{grid-column:2;grid-row:4;display:block;min-width:0;margin:0;padding:0;align-self:start}
.bsdh-v4 .bsdh-compact-card .bsdh-listing-meta strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-size:16px;line-height:1.5;color:#153e76;margin:0}
.bsdh-v4 .bsdh-compact-card .bsdh-featured-seller{grid-column:1/-1;grid-row:5;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:8px;margin-top:4px;border-top:1px solid #e2ebf5;color:#52677e;font-size:12px;line-height:1.6}
.bsdh-v4 .bsdh-compact-card .bsdh-featured-seller>span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.bsdh-v4 .bsdh-compact-card .bsdh-featured-seller>small{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;font-size:11px;line-height:1.6;color:#19569b;white-space:nowrap;background:transparent;padding:0}
.bsdh-v4 .bsdh-compact-card .bsdh-featured-seller svg{width:15px;height:15px;flex:0 0 15px}
.bsdh-v4 .bsdh-compact-card .v2g-card-actions{grid-column:1/-1;grid-row:6;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding-top:8px;border:0}
.bsdh-v4 .bsdh-compact-card .v2g-card-actions>a{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:44px;padding:9px 5px;border-radius:8px;font-size:13px;line-height:1.5;white-space:nowrap}
.bsdh-v4 .bsdh-compact-card .v2g-card-actions>.v2g-call{background:#15569b;border-color:#15569b;color:#fff}
.bsdh-v4 .bsdh-compact-card .v2g-card-actions>.v2g-wa{background:#f0faf3;border-color:#8cbd9c;color:#176438}
.bsdh-v4 .bsdh-compact-card .v2g-card-actions>.v2g-share{position:absolute;inset:4px 5px auto auto;display:grid;place-items:center;grid-column:auto;width:44px;height:44px;min-height:44px;margin:0;padding:12px;border:0;border-radius:8px;background:transparent;color:#52677e;font-size:0;line-height:0}
.bsdh-v4 .bsdh-compact-card .v2g-card-actions>.v2g-share svg{width:18px;height:18px;flex:0 0 18px}
@media(max-width:600px){.bsdh-v4 .bsdh-compact-card{flex:0 0 100%;max-width:100%;border-radius:12px}}

/* Two equal contact actions; share remains an independent icon above. */
.bsdh-v4 .bsdh-compact-card{grid-template-rows:32px auto auto auto 1fr auto}
.bsdh-v4 .bsdh-compact-card .bsdh-featured-seller{align-self:end}
.bsdh-v4 .bsdh-compact-card .v2g-card-actions{display:flex!important;align-items:stretch}
.bsdh-v4 .bsdh-compact-card .v2g-card-actions>a{flex:1 1 0%;width:0}

/* Reuse listing-page seller cards inside the district featured carousel. */
.bsdh-v4 #v2gFeaturedSlider.v2c-list{display:flex!important;flex-wrap:nowrap;gap:12px;margin:0;padding:3px 2px 15px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:2px;align-items:stretch}
.bsdh-v4 #v2gFeaturedSlider.v2c-list>.bsdh-search-card{flex:0 0 calc((100% - 70px)/3);width:calc((100% - 70px)/3)!important;max-width:calc((100% - 70px)/3)!important;min-width:0!important;scroll-snap-align:start}
@media(max-width:950px){.bsdh-v4 #v2gFeaturedSlider.v2c-list>.bsdh-search-card{flex-basis:calc((100% - 46px)/2);width:calc((100% - 46px)/2)!important;max-width:calc((100% - 46px)/2)!important}}
@media(max-width:600px){.bsdh-v4 #v2gFeaturedSlider.v2c-list>.bsdh-search-card{flex-basis:calc(100% - 26px);width:calc(100% - 26px)!important;max-width:calc(100% - 26px)!important}}
@media(max-width:370px){.bsdh-v4 #v2gFeaturedSlider .bsdh-search-card .v2seller-actions>a,.bsdh-v4 #v2gFeaturedSlider .bsdh-search-card .v2seller-actions>button{font-size:10px!important;gap:3px!important;padding:8px 3px!important}.bsdh-v4 #v2gFeaturedSlider .bsdh-search-card .v2seller-actions svg{width:14px!important;height:14px!important;flex:0 0 14px!important}}

/* Preserve natural listing-card height and comfortable carousel contact targets. */
.bsdh-v4 #v2gFeaturedSlider.v2c-list>.bsdh-search-card{align-self:flex-start}
.bsdh-v4 #v2gFeaturedSlider .bsdh-search-card .v2seller-actions>a,.bsdh-v4 #v2gFeaturedSlider .bsdh-search-card .v2seller-actions>button{min-height:44px!important}
.bsdh-v4 #v2gFeaturedSlider .bsdh-search-card .v2seller-price{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}

/* District home: district, taluka and free services share one action row. */
body:has(.bsdh-v4) .bsux-area.bsux-district-home{display:grid;grid-template-columns:minmax(0,1fr) repeat(4,auto);gap:8px;align-items:center}
body:has(.bsdh-v4) .bsux-district-home .bsux-place{grid-column:1;grid-row:1;min-width:0;width:auto;overflow:hidden}
body:has(.bsdh-v4) .bsux-district-home .bsux-area-actions{display:contents}
body:has(.bsdh-v4) .bsux-district-home .bsux-change:not(.bs-landing-entry){grid-column:2;grid-row:1}
body:has(.bsdh-v4) .bsux-district-home .bsux-taluka{grid-column:3;grid-row:1}
body:has(.bsdh-v4) .bsux-district-home .bsux-free{grid-column:4;grid-row:1;background:#fff3e7;border-color:#efc394;color:#8b430b}
body:has(.bsdh-v4) .bsux-district-home .bsux-languages{grid-column:5;grid-row:1;justify-self:end}
body:has(.bsdh-v4) .bsux-district-home :is(.bsux-change,.bsux-home-action){box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 10px;border:1px solid #aec9ed;border-radius:9px;font-size:13px;font-weight:700;line-height:1.5;text-align:center;text-decoration:none}
body:has(.bsdh-v4) .bsux-district-home .bsux-free{border-color:#efc394}
@media(max-width:700px){
 body:has(.bsdh-v4) .bsux-area.bsux-district-home{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:6px 8px}
 body:has(.bsdh-v4) .bsux-district-home .bsux-place{grid-column:1/3;grid-row:1}
 body:has(.bsdh-v4) .bsux-district-home .bsux-languages{grid-column:3;grid-row:1}
 body:has(.bsdh-v4) .bsux-district-home .bsux-change:not(.bs-landing-entry){grid-column:1;grid-row:2}
 body:has(.bsdh-v4) .bsux-district-home .bsux-taluka{grid-column:2;grid-row:2}
 body:has(.bsdh-v4) .bsux-district-home .bsux-free{grid-column:3;grid-row:2}
 body:has(.bsdh-v4) .bsux-district-home :is(.bsux-change,.bsux-home-action){font-size:12px;white-space:normal;overflow-wrap:anywhere;padding:6px 3px;min-width:0}
 .bsdh-v4 .bsdh-v4-search-panel h1{grid-column:1/-1}
}

body:has(.bsdh-v4) .bsux-district-home :is(.bsux-change,.bsux-home-action){align-self:stretch}

/* Lightweight district-home premium SVG palette; shared sprites remain intact. */
.bsdh-v4 .v2g-cat-icon{background:linear-gradient(145deg,#fff,#e9f3ff)!important;box-shadow:inset 0 1px 0 #fff,0 3px 8px #1e54951a;border:1px solid #d4e7fc}
.bsdh-v4 .v2g-cat:nth-child(2) .v2g-cat-icon,.bsdh-v4 .v2g-cat:nth-child(5) .v2g-cat-icon{background:linear-gradient(145deg,#fffaf0,#fff0d8)!important;border-color:#f5dfbb}
.bsdh-v4 .v2g-cat:nth-child(4) .v2g-cat-icon{background:linear-gradient(145deg,#fff,#f0eaff)!important;border-color:#e0d6f5}
.bsdh-v4 .v2g-cat:nth-child(6) .v2g-cat-icon{background:linear-gradient(145deg,#fff,#e2f5f0)!important;border-color:#c8e8e0}
.bsdh-v4 .v2g-cat-icon svg.bs-premium-icon{width:38px;height:38px;stroke:none!important;fill:none;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1px #193b6026)}
body:has(.bsdh-v4) :is(.v2b-menu,.v2b-share){color:#286dc0}
body:has(.bsdh-v4) .bs-pwa-install{color:#167b77;background:linear-gradient(145deg,#fff,#e5f7f1);border-color:#bde3d8}
body:has(.bsdh-v4) .v2b-bell{color:#d77416;background:linear-gradient(145deg,#fff,#fff0d9)}
body:has(.bsdh-v4) .bsux-place>span{color:#e17b20}
.bsdh-v4 .bsdh-search>svg{color:#2577c7}
.bsdh-v4 .bsdh-search button{background:linear-gradient(145deg,#ffb444,#ff8a21);box-shadow:0 2px 5px #cc6a1626}
.bsdh-v4 .bsdh-search button svg{color:#173e6b}
.bsdh-v4 .v2seller-verified svg{color:#2078c8;filter:drop-shadow(0 1px 1px #2379bc26)}
.bsdh-v4 .v2seller-featured svg{color:#d4830b;fill:#ffc757}
.bsdh-v4 .v2seller-location svg{color:#d67a27}
.bsdh-v4 .v2seller-share svg{color:#7254b2}
.bsdh-v4 .v2g-slide-btn{color:#286dc0;background:linear-gradient(145deg,#fff,#eff6ff)}
body:has(.bsdh-v4) .bottom-nav .bn-item:not(.is-active):not(.bn-add) svg{border-radius:10px;background:#eaf3ff;color:#2876bc;box-shadow:inset 0 1px 0 #fff}
body:has(.bsdh-v4) .bottom-nav .bn-item:nth-child(4) svg{background:#fff0dc;color:#b86c13}
body:has(.bsdh-v4) .bottom-nav .bn-item:nth-child(5) svg{background:#eee8ff;color:#7550bb}
body:has(.bsdh-v4) .v2b-menu-icon{color:#2876bc;background:#eaf3ff}
body:has(.bsdh-v4) .v2b-menu-list a:nth-child(4) .v2b-menu-icon{color:#b86c13;background:#fff0dc}
body:has(.bsdh-v4) .v2b-menu-list a:nth-child(5) .v2b-menu-icon{color:#7550bb;background:#eee8ff}
body:has(.bsdh-v4) .bs-footer-social-facebook{color:#1877d2}
body:has(.bsdh-v4) .bs-footer-social-instagram{color:#bd397a}
body:has(.bsdh-v4) .bs-footer-social-youtube{color:#dd3434}
body:has(.bsdh-v4) .bs-footer-social-whatsapp{color:#18884b}
@media(max-width:600px){.bsdh-v4 .v2g-cat-icon svg.bs-premium-icon{width:28px;height:28px}}
@media(prefers-reduced-motion:no-preference) and (hover:hover){.bsdh-v4 .v2g-cat-icon{transition:transform .16s ease}.bsdh-v4 .v2g-cat:hover .v2g-cat-icon{transform:translateY(-2px)}}

/* Keep premium navigation accents above legacy icon color rules. */
body:has(.bsdh-v4) .bottom-nav .bn-item:not(.is-active):not(.bn-add) svg{color:#2876bc!important}
body:has(.bsdh-v4) .bottom-nav .bn-item:nth-child(4):not(.is-active) svg{color:#b86c13!important;background:#fff0dc!important}
body:has(.bsdh-v4) .bottom-nav .bn-item:nth-child(5):not(.is-active) svg{color:#7550bb!important;background:#eee8ff!important}
body:has(.bsdh-v4) .v2b-menu svg{color:#286dc0!important}

/* Taluka homes share the compact district view; local feeds remain available. */
.bsdh-v4 .bsdh-local-extra{margin-top:16px;border:1px solid #dce6f2;border-radius:12px;background:#fff}
.bsdh-v4 .bsdh-local-extra>summary{min-height:44px;box-sizing:border-box;padding:12px;color:#15569b;font-weight:700;font-size:14px;line-height:1.6;cursor:pointer;overflow-wrap:anywhere}
.bsdh-v4 .bsdh-local-extra>summary:focus-visible{outline:3px solid #ffad58;outline-offset:-3px;border-radius:12px}
.bsdh-v4 .bsdh-local-extra[open]{padding:0 10px 10px}

/* Compact home styling continues across tablets, laptops and desktops. */
@media(min-width:601px){
 .v2g-district-page.bsdh-v4{padding-top:14px;padding-bottom:96px}
 body:has(.bsdh-v4) .v2b-header-main{max-width:1180px;margin-inline:auto;min-height:60px;padding:6px 16px;gap:10px}
 body:has(.bsdh-v4) .v2b-brand b{font-size:24px}
 body:has(.bsdh-v4) .v2b-brand small{font-size:10px}
 body:has(.bsdh-v4) .bsux-area{box-sizing:border-box;max-width:1180px;width:calc(100% - 32px);margin:8px auto 0;padding:8px 12px;border-radius:12px}
 body:has(.bsdh-v4) .bsux-place nav{font-size:13px;line-height:1.6}
 .bsdh-v4 .bsdh-v4-search-panel{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:10px;padding:0;border:0;border-radius:0;background:transparent}
 .bsdh-v4 .bsdh-v4-search-panel h1{margin:0;font-size:22px;line-height:1.5}
 .bsdh-v4 .bsdh-search{box-sizing:border-box;width:100%;max-width:none;min-height:52px;margin:0;padding:4px 4px 4px 12px;gap:8px;border-radius:11px}
 .bsdh-v4 .bsdh-search input[type=search]{font-size:16px;min-height:44px}
 .bsdh-v4 .bsdh-search button{min-width:44px;min-height:44px;padding:10px;border-radius:8px}
 .bsdh-v4 .bsdh-search button svg{width:22px;height:22px}
 .bsdh-v4 .v2g-section{margin-top:16px}
 .bsdh-v4 .v2g-head{margin-bottom:10px;gap:8px}
 .bsdh-v4 .v2g-head h2{font-size:19px;line-height:1.5}
 .bsdh-v4 .v2g-cats{gap:10px}
 .bsdh-v4 .v2g-cat{min-height:104px;padding:10px 8px;border-radius:12px;gap:6px;justify-content:center}
 .bsdh-v4 .v2g-cat-icon{width:38px;height:38px;flex-basis:38px;margin:0}
 .bsdh-v4 .v2g-cat-icon svg.bs-premium-icon{width:30px;height:30px}
 .bsdh-v4 .v2g-cat strong{font-size:14px;line-height:1.5}
 .bsdh-v4 .v2g-cat>small,.bsdh-v4 .v2g-cat>b{display:none}
 .bsdh-v4 .v2g-cta{margin:18px 0 8px;padding:16px;gap:12px}
 .bsdh-v4 .v2g-cta strong{font-size:18px;line-height:1.5}
 .bsdh-v4 .v2g-cta>a{min-height:44px;font-size:14px}
}
@media(min-width:601px) and (max-width:950px){
 .bsdh-v4 .v2g-cats{grid-template-columns:repeat(3,minmax(0,1fr))}
 .bsdh-v4 .v2g-cat{min-height:92px;padding:8px}
 body:has(.bsdh-v4) .v2b-head-actions>.bs-pwa-install{width:44px;min-width:44px;max-width:44px;padding:9px}
 body:has(.bsdh-v4) .v2b-head-actions .bs-pwa-install-label{display:none}
}
@media(min-width:1001px){
 .bsdh-v4 .bsdh-v4-search-panel{grid-template-columns:minmax(0,1fr) minmax(340px,520px);gap:20px}
}

@media(min-width:1001px){
 .bsdh-v4 .bsdh-v4-search-panel h1{grid-column:1;grid-row:1}
 .bsdh-v4 .bsdh-search{grid-column:2;grid-row:1}
}

/* Keep landing and pin actions separate from district navigation. */
body:has(.bsdh-v4) .bsux-district-home .bs-landing-entry{grid-column:1;grid-row:2;justify-self:start}
body:has(.bsdh-v4) .bsux-district-home .bs-lp-toggle{grid-column:2/-1;grid-row:2;justify-self:start;max-width:100%;min-width:0;white-space:normal}
@media(max-width:700px){
body:has(.bsdh-v4) .bsux-district-home .bs-landing-entry{grid-row:3;justify-self:stretch}
body:has(.bsdh-v4) .bsux-district-home .bs-lp-toggle{grid-row:3;justify-self:stretch}
}
