/*
Theme Name: Bangladeshi Professionals
Theme URI: https://www.bangladeshiprofessionals.com
Author: Solvier N Tech Solution
Author URI: https://www.solvierntech.com
Description: A directory theme for listing Bangladeshi professionals and services across the USA, filterable by state and category. Ships with one-click demo content. Developed by Solvier N Tech Solution.
Version: 1.4.6
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bdpro
Tags: directory, listings, business-directory, custom-colors, translation-ready
*/

:root {
	--bd-brand: #1d44a3;
	--bd-branddark: #152e7f;
	--bd-gold: #78d0ff;
	--bd-golddark: #5fb8f2;
	--bd-mint: #21bfa0;
	--bd-sky: #3284d0;
	--bd-plum: #794db6;
	--bd-ochre: #b77610;
	--bd-cream: #f7fafe;
	--bd-ink: #182846;
	--bd-soft: #e3eefa;
	--bd-muted: #6b7891;
	--bd-border: #dde7f4;
	--bd-radius: 1.5rem;
	--bd-shadow: 0 10px 30px rgba(24, 40, 70, .07);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bd-cream);
	color: var(--bd-ink);
	font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .bd-display {
	font-family: "Fredoka", "Nunito", sans-serif;
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 .5em;
	color: var(--bd-ink);
}

a { color: var(--bd-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.bd-wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.bd-section { padding: 3rem 0; }
.bd-muted { color: var(--bd-muted); }
.bd-small { font-size: .875rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ---------- Header ---------- */
.bd-header {
	position: sticky; top: 0; z-index: 40;
	background: rgba(247, 250, 254, .92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--bd-border);
}
.bd-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.bd-logo img { max-height: 44px; width: auto; }
.bd-logo { font-family: "Fredoka", sans-serif; font-size: 1.25rem; color: var(--bd-ink); }
.bd-nav { display: flex; align-items: center; gap: 1.5rem; }
.bd-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.bd-nav a { color: var(--bd-ink); font-weight: 600; font-size: .95rem; }
.bd-nav a:hover { color: var(--bd-brand); text-decoration: none; }
.bd-nav a.bd-btn, .bd-nav a.bd-btn:hover { color: #fff; }
.bd-menu-toggle {
	display: none; border: 1px solid var(--bd-border); background: #fff;
	border-radius: 999px; padding: .5rem .75rem; cursor: pointer; color: var(--bd-ink);
}

/* ---------- Buttons ---------- */
.bd-btn {
	display: inline-flex; align-items: center; gap: .5rem;
	background: var(--bd-brand); color: #fff; font-weight: 700;
	padding: .7rem 1.25rem; border-radius: 999px; border: 0; cursor: pointer;
	font-size: .95rem; font-family: inherit;
}
.bd-btn:hover { background: var(--bd-branddark); color: #fff; text-decoration: none; }
.bd-btn-ghost { background: #fff; color: var(--bd-brand); border: 1px solid var(--bd-border); }
.bd-btn-ghost:hover { background: var(--bd-soft); color: var(--bd-branddark); }

/* ---------- Hero ---------- */
.bd-hero {
	background: linear-gradient(160deg, var(--bd-soft) 0%, var(--bd-cream) 70%);
	border-bottom: 1px solid var(--bd-border);
	padding: 3.5rem 0;
	text-align: center;
}
.bd-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.bd-hero p { max-width: 42rem; margin: 0 auto 1.75rem; color: var(--bd-muted); font-size: 1.05rem; }
.bd-hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 2.25rem; }
.bd-hero-stats strong { display: block; font-family: "Fredoka", sans-serif; font-size: 1.6rem; color: var(--bd-brand); }

/* ---------- Search + filters ---------- */
.bd-searchbar { display: flex; flex-wrap: wrap; gap: .75rem; max-width: 42rem; margin: 0 auto; }
.bd-searchbar input[type="search"],
.bd-field input, .bd-field select, .bd-field textarea {
	flex: 1 1 16rem; min-width: 0;
	padding: .75rem 1.1rem; border-radius: 999px; border: 1px solid var(--bd-border);
	background: #fff; color: var(--bd-ink); font: inherit;
}
.bd-field textarea { border-radius: 1.25rem; }

.bd-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.bd-filters {
	background: #fff; border: 1px solid var(--bd-border); border-radius: var(--bd-radius);
	padding: 1.25rem; box-shadow: var(--bd-shadow);
}
.bd-filters h3 { font-size: 1rem; margin-bottom: .75rem; }
.bd-filters ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .35rem; }
.bd-filters li a { display: flex; justify-content: space-between; gap: .5rem; color: var(--bd-ink); font-size: .9rem; padding: .35rem .6rem; border-radius: .75rem; }
.bd-filters li a:hover { background: var(--bd-soft); text-decoration: none; }
.bd-filters li a.is-active { background: var(--bd-brand); color: #fff; font-weight: 700; }
.bd-filters .bd-scroll { max-height: 20rem; overflow-y: auto; }
.bd-filter-toggle { display: none; }

/* ---------- Cards ---------- */
.bd-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.bd-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }

.bd-card {
	background: #fff; border: 1px solid var(--bd-border); border-radius: var(--bd-radius);
	padding: 1.25rem; box-shadow: var(--bd-shadow); display: flex; flex-direction: column; gap: .5rem;
	transition: transform .15s ease, box-shadow .15s ease;
}
.bd-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(24,40,70,.12); }
.bd-card-compact { padding: 1rem; text-align: center; align-items: center; }
.bd-card h3 { font-size: 1.05rem; margin: 0; }
.bd-card-compact h3 { font-size: .95rem; }
.bd-avatar {
	width: 64px; height: 64px; border-radius: 999px; object-fit: cover;
	background: var(--bd-soft); display: grid; place-items: center;
	font-family: "Fredoka", sans-serif; color: var(--bd-brand); font-size: 1.25rem;
	flex-shrink: 0; position: relative; overflow: hidden;
}
.bd-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bd-card-compact .bd-avatar { margin-inline: auto; }
.bd-avatar-lg { width: 112px; height: 112px; font-size: 2rem; }
.bd-card-head { display: flex; align-items: center; gap: .85rem; }

.bd-badge {
	display: inline-block; font-size: .75rem; font-weight: 700; padding: .2rem .7rem;
	border-radius: 999px; background: var(--bd-soft); color: var(--bd-brand);
}
.bd-badge-featured { background: var(--bd-gold); color: var(--bd-ink); }

.bd-tile {
	background: #fff; border: 1px solid var(--bd-border); border-radius: var(--bd-radius);
	padding: 1.25rem 1rem; text-align: center; display: block; color: var(--bd-ink);
	box-shadow: var(--bd-shadow);
}
.bd-tile:hover { text-decoration: none; border-color: var(--bd-brand); }
.bd-tile-icon { width: 48px; height: 48px; margin: 0 auto .6rem; border-radius: 1rem; background: var(--bd-soft); display: grid; place-items: center; font-size: 1.4rem; }
.bd-tile strong { display: block; font-family: "Fredoka", sans-serif; }

.bd-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.bd-chips a { background: #fff; border: 1px solid var(--bd-border); border-radius: 999px; padding: .4rem .9rem; font-size: .9rem; color: var(--bd-ink); }
.bd-chips a:hover { background: var(--bd-brand); color: #fff; text-decoration: none; }

.bd-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.bd-section-head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

/* ---------- Single listing ---------- */
.bd-single { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.bd-panel { background: #fff; border: 1px solid var(--bd-border); border-radius: var(--bd-radius); padding: 1.75rem; box-shadow: var(--bd-shadow); }
.bd-meta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.bd-meta-list span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bd-muted); }

/* ---------- CTA + footer ---------- */
.bd-cta { background: var(--bd-brand); color: #fff; border-radius: var(--bd-radius); padding: 2.5rem; text-align: center; }
.bd-cta h2, .bd-cta p { color: #fff; }
.bd-cta .bd-btn { background: #fff; color: var(--bd-brand); }

.bd-sister { background: var(--bd-soft); border-top: 1px solid var(--bd-border); padding: 3rem 0; margin-top: 3rem; }
.bd-sister-head { text-align: center; margin-bottom: 1.75rem; }
.bd-sister-head h2 { margin: 0 0 .35rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.bd-sister-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bd-sister-card { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--bd-border); border-radius: var(--bd-radius); padding: 1rem; color: var(--bd-ink); transition: transform .15s, box-shadow .15s; }
.bd-sister-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(24,40,70,.12); border-color: var(--bd-brand); }
.bd-sister-card strong { display: block; font-family: "Fredoka", sans-serif; font-size: 1.05rem; }
.bd-sister-card .bd-small { display: block; line-height: 1.35; }
.bd-sister-icon { width: 64px; height: 64px; flex-shrink: 0; border-radius: 1rem; background: var(--bd-soft); display: grid; place-items: center; padding: .6rem; }
.bd-sister-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bd-sister-btn { display: inline-block; margin-top: .5rem; background: var(--bd-brand); color: #fff; border-radius: 999px; padding: .25rem .75rem; font-size: .78rem; font-weight: 700; }
.bd-sister-card:hover .bd-sister-btn { background: var(--bd-branddark); }
.bd-footer { background: var(--bd-ink); color: #fff; padding: 2.5rem 0 0; }
.bd-footer a { color: rgba(255,255,255,.85); }
.bd-footer a:hover { color: #fff; }
.bd-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 .75rem; }
.bd-footer .bd-display { color: #fff; font-size: 1.2rem; }
.bd-footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.2fr 1fr 1fr; }
.bd-footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .9rem; color: rgba(255,255,255,.8); }
.bd-footer-list a { overflow-wrap: anywhere; }
.bd-footer-cols { grid-template-columns: 1fr 1fr; }
.bd-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding: 1rem 0; text-align: center; font-size: .8rem; color: rgba(255,255,255,.55); }
.bd-contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bd-contact-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; }
.bd-contact-card h2 { font-size: 1.1rem; margin: .5rem 0 0; }
.bd-contact-card p { margin: 0 0 .5rem; overflow-wrap: anywhere; flex: 1; }
.bd-contact-card .bd-btn { align-self: flex-start; }
.bd-map { margin-top: 2rem; border-radius: var(--bd-radius); overflow: hidden; border: 1px solid var(--bd-border); }
.bd-map iframe { display: block; width: 100%; height: 320px; border: 0; }
@media (max-width: 900px) {
	.bd-sister-grid, .bd-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bd-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.bd-sister-grid, .bd-contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Pagination + misc ---------- */
.bd-pagination { margin-top: 2rem; display: flex; justify-content: center; }
.bd-pagination .page-numbers {
	display: inline-block; padding: .5rem .9rem; margin: 0 .2rem; border-radius: 999px;
	border: 1px solid var(--bd-border); background: #fff; color: var(--bd-ink);
}
.bd-pagination .page-numbers.current { background: var(--bd-brand); color: #fff; border-color: var(--bd-brand); }

.bd-empty { background: #fff; border: 1px dashed var(--bd-border); border-radius: var(--bd-radius); padding: 3rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.bd-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.bd-layout { grid-template-columns: 1fr; }
	.bd-single { grid-template-columns: 1fr; }
	.bd-filter-toggle { display: inline-flex; }
	.bd-filters { display: none; }
	.bd-filters.is-open { display: block; }
}
@media (max-width: 1100px) {
	.bd-menu-toggle { display: inline-flex; }
	.bd-nav { display: none; width: 100%; }
	.bd-nav.is-open { display: block; }
	.bd-header-inner { flex-wrap: wrap; }
	.bd-nav ul { flex-direction: column; gap: .5rem; padding-bottom: .75rem; }
}
@media (max-width: 640px) {
	.bd-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bd-hero-stats { gap: 1.25rem; }
	.bd-panel, .bd-cta { padding: 1.5rem; }
}

/* ---------- Homepage (same layout as the website) ---------- */
.bd-home-hero { background: linear-gradient(180deg, var(--bd-cream) 0%, rgba(227, 238, 250, .6) 100%); padding: 3.5rem 0 4rem; }
.bd-hero-copy { max-width: 42rem; }
.bd-pill { display: inline-flex; align-items: center; border-radius: 999px; background: rgba(33, 191, 160, .15); color: var(--bd-mint); padding: .3rem .8rem; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bd-home-hero h1 { font-size: clamp(1.9rem, 4.8vw, 3rem); line-height: 1.15; margin: 1rem 0 .75rem; text-wrap: balance; }
.bd-lead { margin: 0; max-width: 36rem; color: var(--bd-muted); font-size: 1.1rem; text-wrap: pretty; }
.bd-hero-search { margin-top: 1.75rem; max-width: 48rem; display: flex; gap: .6rem; background: #fff; padding: .6rem; border-radius: 1.5rem; border: 1px solid rgba(0, 0, 0, .05); box-shadow: var(--bd-shadow); }
.bd-hero-field { display: flex; align-items: center; gap: .5rem; background: rgba(227, 238, 250, .7); border-radius: 1rem; padding: .7rem 1rem; margin: 0; }
.bd-hero-field svg { width: 20px; height: 20px; flex-shrink: 0; color: rgba(24, 40, 70, .4); }
.bd-hero-field input,
.bd-hero-field select { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--bd-ink); font: inherit; font-size: .9rem; outline: none; padding: 0; }
.bd-hero-field select { font-weight: 600; cursor: pointer; }
.bd-hero-field input::placeholder { color: rgba(24, 40, 70, .4); }
.bd-hero-field-q { flex: 1 1 auto; }
.bd-hero-field-select { flex: 0 0 11rem; }
.bd-btn-gold { background: var(--bd-gold); color: var(--bd-ink); border-radius: 1rem; padding: .75rem 1.6rem; justify-content: center; box-shadow: 0 0 0 2px rgba(120, 208, 255, .3); }
.bd-btn-gold:hover { background: var(--bd-golddark); color: var(--bd-ink); }
.bd-popular { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .875rem; }
.bd-popular span { color: rgba(24, 40, 70, .4); font-weight: 600; }
.bd-popular a { border: 1px solid rgba(29, 68, 163, .15); border-radius: 999px; padding: .25rem .8rem; color: rgba(24, 40, 70, .7); font-weight: 600; background: var(--bd-cream); }
.bd-popular a:hover { color: var(--bd-ink); text-decoration: none; }

.bd-home-section { padding: 2.5rem 0; }
.bd-home-soft { background: rgba(227, 238, 250, .4); }
.bd-home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.bd-home-head h2 { margin: 0; font-size: 1.5rem; }
.bd-home-head p { margin: .25rem 0 0; color: rgba(24, 40, 70, .55); font-size: .875rem; }
.bd-home-head > a, .bd-home-more a { font-size: .875rem; font-weight: 700; white-space: nowrap; }
.bd-home-more { margin: 1rem 0 0; }

.bd-six-grid { display: grid; gap: .75rem; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bd-cat-tile { display: block; background: var(--bd-cream); border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--bd-radius); padding: 1rem; color: var(--bd-ink); transition: transform .15s ease; }
.bd-cat-tile:hover { transform: translateY(-4px); text-decoration: none; }
.bd-cat-icon { width: 44px; height: 44px; border-radius: 1rem; display: grid; place-items: center; }
.bd-cat-icon svg { width: 20px; height: 20px; }
.bd-cat-tile strong { display: block; margin-top: .75rem; font-weight: 700; line-height: 1.35; }
.bd-cat-tile small { display: block; font-size: .75rem; color: rgba(24, 40, 70, .45); }

.bd-tone-brand { background: rgba(29, 68, 163, .12); color: var(--bd-brand); }
.bd-tone-sky { background: rgba(50, 132, 208, .15); color: var(--bd-sky); }
.bd-tone-ochre { background: rgba(120, 208, 255, .2); color: var(--bd-ochre); }
.bd-tone-mint { background: rgba(33, 191, 160, .15); color: var(--bd-mint); }
.bd-tone-plum { background: rgba(121, 77, 182, .15); color: var(--bd-plum); }
.bd-tone-soft { background: var(--bd-soft); color: var(--bd-ink); }
.bd-text-brand { color: var(--bd-brand); }
.bd-text-sky { color: var(--bd-sky); }
.bd-text-ochre { color: var(--bd-ochre); }
.bd-text-mint { color: var(--bd-mint); }
.bd-text-plum { color: var(--bd-plum); }
.bd-text-soft { color: var(--bd-ink); }

.bd-feat-card { display: block; overflow: hidden; border-radius: var(--bd-radius); background: var(--bd-cream); border: 1px solid rgba(0, 0, 0, .06); color: var(--bd-ink); transition: transform .15s ease; }
.bd-feat-card:hover { transform: translateY(-4px); text-decoration: none; }
.bd-feat-photo { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; font-family: "Fredoka", sans-serif; font-size: 1.15rem; font-weight: 600; }
.bd-feat-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bd-feat-body { display: block; padding: .75rem; }
.bd-feat-body > span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bd-feat-name { font-size: .875rem; font-weight: 700; }
.bd-feat-cat { font-size: .75rem; font-weight: 600; }
.bd-feat-loc { font-size: .7rem; color: rgba(24, 40, 70, .5); margin-top: .1rem; }

.bd-state-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.bd-state-chips a { border: 1px solid rgba(0, 0, 0, .06); border-radius: 999px; padding: .5rem 1rem; font-size: .875rem; font-weight: 600; color: rgba(24, 40, 70, .75); background: var(--bd-cream); }
.bd-state-chips a:hover { color: var(--bd-ink); border-color: rgba(29, 68, 163, .2); text-decoration: none; }
.bd-state-chips span { margin-left: .35rem; color: rgba(24, 40, 70, .4); }

@media (max-width: 1024px) {
	.bd-six-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
	.bd-home-hero { padding: 2.5rem 0 3rem; }
	.bd-hero-search { flex-direction: column; }
	.bd-hero-field-select { flex: 1 1 auto; }
}
@media (max-width: 640px) {
	.bd-six-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Page hero (Directory, Categories, States) — same as the website ---------- */
.bd-page-hero { background: linear-gradient(to bottom, var(--bd-cream), rgba(227, 238, 250, .6)); }
.bd-page-hero .bd-wrap { padding: 3rem 0 .5rem; }
.bd-page-hero h1 { font-size: 2.25rem; line-height: 1.25; margin: 0; }
.bd-page-hero p { margin: .5rem 0 0; max-width: 36rem; color: rgba(24, 40, 70, .6); }

/* ---------- Directory ---------- */
.bd-dir { padding: 2.5rem 0; }
.bd-dir-heading { font-size: 1.5rem; margin: 0 0 1.25rem; }
.bd-dir-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.bd-dir-side, .bd-dir-panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; min-width: 0; margin: 0; }
.bd-dir-box { background: var(--bd-cream); border-radius: 1.5rem; padding: 1rem; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
.bd-dir-searchrow { display: flex; align-items: center; gap: .5rem; }
.bd-dir-q { flex: 1; min-width: 0; display: flex; align-items: center; gap: .5rem; padding: .625rem .875rem; border-radius: 1rem; background: rgba(227, 238, 250, .7); }
.bd-dir-q svg { width: 1rem; height: 1rem; flex-shrink: 0; color: rgba(24, 40, 70, .4); }
.bd-dir-q input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; background: transparent; color: var(--bd-ink); font: inherit; font-size: .875rem; line-height: 1.25rem; }
.bd-dir-q input::placeholder { color: rgba(24, 40, 70, .4); }
.bd-dir-toggle { display: none; flex-shrink: 0; align-items: center; gap: .375rem; padding: .625rem .875rem; border: 0; border-radius: 1rem; background: rgba(29, 68, 163, .1); color: var(--bd-brand); font: inherit; font-size: .875rem; font-weight: 600; line-height: 1.25rem; cursor: pointer; }
.bd-dir-toggle svg { width: 1rem; height: 1rem; }
.bd-dir-badge { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 999px; background: var(--bd-brand); color: var(--bd-cream); font-size: 11px; font-weight: 700; }
.bd-dir-title { margin: 0 0 .625rem; font-size: .875rem; font-weight: 600; line-height: 1.25rem; }
.bd-dir-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .375rem; max-height: 18rem; overflow-y: auto; padding-right: .25rem; font-size: .875rem; line-height: 1.25rem; }
.bd-dir-list label { display: flex; align-items: center; gap: .625rem; min-width: 0; cursor: pointer; }
.bd-dir-list input { width: 1rem; height: 1rem; margin: 0; flex-shrink: 0; accent-color: var(--bd-brand); }
.bd-dir-states input { accent-color: var(--bd-mint); }
.bd-dir-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-dir-count { margin-left: auto; font-size: .75rem; line-height: 1rem; color: rgba(24, 40, 70, .4); }
.bd-dir-summary { margin: 0 0 1rem; font-size: .875rem; line-height: 1.25rem; color: rgba(24, 40, 70, .5); }
.bd-dir-summary strong { color: var(--bd-ink); font-weight: 600; }
.bd-dir-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.bd-dir-card { display: flex; gap: 1rem; padding: 1rem; border-radius: 1.5rem; background: var(--bd-cream); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); color: var(--bd-ink); transition: transform .15s ease; }
.bd-dir-card:hover { transform: translateY(-4px); text-decoration: none; }
.bd-dir-photo { position: relative; display: grid; place-items: center; width: 4rem; height: 4rem; flex-shrink: 0; overflow: hidden; border-radius: 1rem; font-family: "Fredoka", sans-serif; font-size: 1.125rem; font-weight: 600; }
.bd-dir-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--bd-soft); }
.bd-dir-body { min-width: 0; }
.bd-dir-body > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-dir-name { font-weight: 600; line-height: 1.5rem; }
.bd-dir-cat { font-size: .875rem; font-weight: 500; line-height: 1.25rem; }
.bd-dir-loc { font-size: .75rem; line-height: 1rem; color: rgba(24, 40, 70, .5); }
.bd-dir-body > .bd-dir-phone { display: flex; align-items: center; gap: .375rem; margin-top: .375rem; font-size: .75rem; line-height: 1rem; color: rgba(24, 40, 70, .45); }
.bd-dir-phone::before { content: ""; width: .375rem; height: .375rem; flex-shrink: 0; border-radius: 999px; background: var(--bd-mint); }
.bd-dir-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .375rem; margin-top: 1.75rem; }
.bd-dir-page { display: grid; place-items: center; min-width: 2.25rem; height: 2.25rem; padding: 0 .5rem; border-radius: 999px; background: var(--bd-cream); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); color: rgba(24, 40, 70, .7); font-size: .875rem; font-weight: 600; }
.bd-dir-page:hover { text-decoration: none; color: var(--bd-ink); }
.bd-dir-page.is-current { background: var(--bd-brand); color: var(--bd-cream); box-shadow: none; }
.bd-dir-page.is-disabled { opacity: .4; }
.bd-dir-gap { padding: 0 .25rem; font-size: .875rem; color: rgba(24, 40, 70, .4); }
.bd-dir-empty { padding: 2.5rem; border-radius: 1.5rem; background: var(--bd-cream); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); text-align: center; }
.bd-dir-empty p { margin: .25rem 0 0; font-size: .875rem; color: rgba(24, 40, 70, .55); }
.bd-dir-empty .bd-dir-empty-title { margin: 0; font-family: "Fredoka", sans-serif; font-size: 1.125rem; font-weight: 600; color: var(--bd-ink); }
.bd-dir-clear { display: inline-block; margin-top: 1rem; padding: .5rem 1rem; border-radius: 999px; background: rgba(29, 68, 163, .1); color: var(--bd-brand); font-size: .875rem; font-weight: 600; }
.bd-dir-clear:hover { background: rgba(29, 68, 163, .15); text-decoration: none; }

@media (max-width: 1023px) {
	.bd-dir-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.bd-dir-side, .bd-dir-panels { gap: 1rem; }
	.bd-dir-side { margin-bottom: 1.5rem; }
	.bd-dir-toggle { display: flex; }
	.bd-dir-panels { display: none; }
	.bd-dir-panels.is-open { display: grid; }
}
@media (max-width: 639px) {
	.bd-page-hero h1 { font-size: 1.875rem; }
	.bd-dir-grid { grid-template-columns: 1fr; }
}

/* ---------- Categories + States pages ---------- */
.bd-cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.bd-cat-card { display: block; padding: 1rem; border-radius: 1.5rem; background: var(--bd-cream); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); color: var(--bd-ink); transition: transform .15s ease; }
.bd-cat-card:hover { transform: translateY(-4px); text-decoration: none; }
.bd-cat-card-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 1rem; }
.bd-cat-card-icon svg { width: 1.25rem; height: 1.25rem; }
.bd-cat-card-name { display: block; margin-top: .75rem; font-weight: 600; line-height: 1.5rem; }
.bd-cat-card-count { display: block; font-size: .75rem; line-height: 1rem; color: rgba(24, 40, 70, .45); }
.bd-state-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.bd-state-card { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; border-radius: 1rem; background: var(--bd-cream); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); color: var(--bd-ink); transition: transform .15s ease, box-shadow .15s ease; }
.bd-state-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(29, 68, 163, .25); text-decoration: none; }
.bd-state-card-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bd-state-card-count { flex-shrink: 0; padding: .125rem .5rem; border-radius: 999px; background: rgba(29, 68, 163, .1); color: var(--bd-brand); font-size: .75rem; font-weight: 600; line-height: 1rem; }
.bd-state-none-title { margin: 2.5rem 0 0; font-size: 1.125rem; }
.bd-state-none-text { margin: .25rem 0 0; font-size: .875rem; color: rgba(24, 40, 70, .55); }
.bd-state-none { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.bd-state-none a { padding: .375rem .875rem; border-radius: 999px; background: rgba(227, 238, 250, .6); color: rgba(24, 40, 70, .55); font-size: .875rem; line-height: 1.25rem; }
.bd-state-none a:hover { color: var(--bd-ink); text-decoration: none; }
@media (max-width: 1023px) {
	.bd-cat-grid, .bd-state-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
	.bd-cat-grid, .bd-state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Add listing photo picker */
.bd-photo-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; margin-top: .35rem; padding: 1rem; background: var(--bd-soft); border-radius: 1.25rem; }
.bd-photo-preview { width: 5rem; height: 5rem; border-radius: 1rem; background: #fff center / cover no-repeat; border: 1px solid var(--bd-border); }
.bd-photo-pick input[type="file"] { max-width: 100%; font-size: .9rem; }
.bd-photo-error { color: #c33 !important; font-weight: 600; }
