/* ==========================================================================
   BizWebMart – Business Directory UI
   Palette from the BizWebMart logo: deep blue ("Biz"), teal ("Web"), green ("Mart")
   ========================================================================== */
:root {
  --bw-blue-900: #082a66;
  --bw-blue-800: #0a3378;
  --bw-blue: #0b3b8c;          /* Biz */
  --bw-blue-500: #1f63d1;
  --bw-blue-100: #e6eefb;
  --bw-blue-50: #f2f6fd;
  --bw-teal: #0e8fa3;          /* Web */
  --bw-teal-600: #0b7686;
  --bw-teal-100: #dcf3f5;
  --bw-green: #22a45d;         /* Mart */
  --bw-green-100: #e0f5e9;
  --bw-ink: #111c33;
  --bw-text: #2b3953;
  --bw-muted: #5c6b84;
  --bw-line: #e1e8f1;
  --bw-line-2: #edf2f8;
  --bw-bg: #f5f8fc;
  --bw-white: #fff;
  --bw-amber: #f2a516;
  --bw-red: #d64545;
  --bw-radius: 14px;
  --bw-radius-sm: 10px;
  --bw-shadow-sm: 0 1px 2px rgba(11, 40, 90, .06), 0 1px 1px rgba(11, 40, 90, .04);
  --bw-shadow: 0 6px 24px -8px rgba(11, 40, 90, .15), 0 2px 6px rgba(11, 40, 90, .05);
  --bw-shadow-lg: 0 24px 48px -16px rgba(11, 40, 90, .24);
  --bw-grad: linear-gradient(135deg, #0b3b8c 0%, #0e7fa6 62%, #11a79a 100%);
  --bw-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-family: var(--bw-font);
  --bs-primary: #0b3b8c;
  --bs-primary-rgb: 11, 59, 140;
  --bs-link-color: #0b3b8c;
  --bs-link-color-rgb: 11, 59, 140;
  --bs-link-hover-color: #0a3378;
  --bs-border-color: #e1e8f1;
}

html { scroll-behavior: smooth; }
body { font-family: var(--bw-font); color: var(--bw-text); background: var(--bw-white); font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5 { color: var(--bw-ink); font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
a { color: var(--bw-blue); text-decoration: none; }
a:hover { color: var(--bw-blue-800); }
img { max-width: 100%; }
.text-muted, .bw-muted { color: var(--bw-muted) !important; }
.fw-600 { font-weight: 600; }
.small-caps { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--bw-teal-600); }
::selection { background: var(--bw-teal-100); }
:focus-visible { outline: 3px solid rgba(30, 111, 224, .35); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 12px; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 10px; padding: .6rem 1.1rem; font-size: .95rem; transition: background .15s, box-shadow .15s, color .15s, border-color .15s; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: .38rem .75rem; font-size: .85rem; border-radius: 8px; }
.btn-primary { background: var(--bw-blue); border-color: var(--bw-blue); }
.btn-primary:hover, .btn-primary:focus { background: var(--bw-blue-800); border-color: var(--bw-blue-800); }
.btn-teal { background: var(--bw-teal); border-color: var(--bw-teal); color: #fff; }
.btn-teal:hover { background: var(--bw-teal-600); color: #fff; }
.btn-wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn-wa:hover { background: #178c46; color: #fff; }
.btn-soft { background: var(--bw-blue-50); color: var(--bw-blue); border: 1px solid var(--bw-blue-100); }
.btn-soft:hover { background: var(--bw-blue-100); color: var(--bw-blue-800); }
.btn-outline-primary { color: var(--bw-blue); border-color: #c9daf6; }
.btn-outline-primary:hover { background: var(--bw-blue); border-color: var(--bw-blue); }
.btn-light { background: #fff; border-color: var(--bw-line); color: var(--bw-ink); }
.btn-light:hover { background: var(--bw-bg); border-color: #d4deea; }
.btn-icon { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Header ---------- */
.bw-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--bw-line-2); }
.bw-header .navbar { padding: .55rem 0; }
.bw-logo img { height: 42px; width: auto; }
.bw-nav .nav-link { color: var(--bw-text); font-weight: 600; font-size: .93rem; padding: .5rem .85rem !important; border-radius: 8px; }
.bw-nav .nav-link:hover, .bw-nav .nav-link.active { color: var(--bw-blue); background: var(--bw-blue-50); }
.bw-header .dropdown-menu { border: 1px solid var(--bw-line); box-shadow: var(--bw-shadow); border-radius: 12px; padding: .4rem; }
.bw-header .dropdown-item { border-radius: 8px; padding: .5rem .8rem; font-size: .92rem; }
.bw-header .dropdown-item i { width: 20px; color: var(--bw-teal); }
.bw-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--bw-blue-100); color: var(--bw-blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
@media (max-width: 991.98px) {
  .bw-logo img { height: 34px; }
  .bw-header .navbar-collapse { padding: .75rem 0 1rem; }
}

/* ---------- Hero: the search is the hero ---------- */
.bw-hero { position: relative; background: var(--bw-blue-900); color: #fff; padding: 76px 0 0; overflow: hidden; isolation: isolate; }
/* a quiet street-grid texture – the "where" of local business */
.bw-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 70%); }
.bw-hero::after { content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(17, 167, 154, .28), transparent); }
.bw-hero .hero-inner { max-width: 860px; }
.bw-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin-bottom: 1rem; max-width: 15ch; }
.bw-hero .lead { color: rgba(255,255,255,.78); font-size: 1.12rem; max-width: 600px; margin-bottom: 1.8rem; }
.bw-hero .bw-search { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); border: 0; }
.bw-hero .bw-chips { margin-top: 18px; }
.bw-hero .bw-chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.9); }
.bw-hero .bw-chip:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.hero-proof { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-proof > div { padding: 22px 16px 26px 0; }
.hero-proof > div + div { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.14); }
.hero-proof strong { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.hero-proof span { color: rgba(255,255,255,.66); font-size: .88rem; }
@media (max-width: 767.98px) {
  .bw-hero { padding-top: 44px; }
  .hero-proof { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
  .hero-proof > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-proof > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
}

/* ---------- Search bar ---------- */
.bw-search { background: #fff; border: 1px solid var(--bw-line); border-radius: 16px; box-shadow: var(--bw-shadow); padding: 8px; display: flex; gap: 6px; align-items: stretch; max-width: 820px; }
.bw-search .field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 10px; position: relative; min-width: 0; }
.bw-search .field + .field { border-left: 1px solid var(--bw-line); }
.bw-search .field i { color: var(--bw-teal); font-size: 1.05rem; }
.bw-search label { display: block; font-size: .78rem; font-weight: 700; color: var(--bw-ink); margin: 0; }
.bw-search input { border: 0; outline: 0; width: 100%; font-size: 1rem; font-weight: 500; color: var(--bw-ink); padding: 0; background: transparent; }
.bw-search input::placeholder { color: #9aa8bd; font-weight: 400; }
.bw-search .btn { padding-left: 1.6rem; padding-right: 1.6rem; }
.bw-search.compact { box-shadow: var(--bw-shadow-sm); max-width: none; }
.bw-search.compact .field { padding: 4px 10px; }
@media (max-width: 767.98px) {
  .bw-search { flex-direction: column; padding: 10px; }
  .bw-search .field + .field { border-left: 0; border-top: 1px solid var(--bw-line); }
  .bw-search .field { padding: 10px 8px; }
  .bw-search .btn { width: 100%; padding: .8rem; }
}
.bw-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--bw-line); border-radius: 12px; box-shadow: var(--bw-shadow-lg); z-index: 50; padding: 6px; display: none; max-height: 340px; overflow: auto; }
.bw-suggest.show { display: block; }
.bw-suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--bw-ink); font-size: .93rem; }
.bw-suggest a:hover, .bw-suggest a.active { background: var(--bw-blue-50); }
.bw-suggest small { color: var(--bw-muted); margin-left: auto; font-size: .75rem; }
.bw-suggest i { width: 18px; text-align: center; color: var(--bw-teal); }
.bw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bw-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--bw-line); color: var(--bw-text); font-size: .85rem; font-weight: 500; }
.bw-chip:hover { border-color: #bcd0ee; color: var(--bw-blue); }

/* ---------- Sections ---------- */
.bw-section { padding: 72px 0; }
.bw-section.alt { background: var(--bw-bg); }
.bw-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.bw-section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 4px 0 0; }
.bw-section-head p { color: var(--bw-muted); margin: 6px 0 0; max-width: 620px; }
@media (max-width: 767.98px) { .bw-section { padding: 52px 0; } }

/* ---------- Category tiles ---------- */
.bw-cat { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; height: 100%; padding: 20px; background: #fff; border: 1px solid var(--bw-line); border-radius: var(--bw-radius); color: var(--bw-ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.bw-cat:hover { border-color: #c5d7f3; box-shadow: var(--bw-shadow); color: var(--bw-ink); transform: translateY(-2px); }
.bw-cat .ico { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--bw-teal-100); color: var(--bw-teal-600); font-size: 1.3rem; }
.bw-cat:nth-child(3n+2) .ico, .col:nth-child(3n+2) .bw-cat .ico { background: var(--bw-blue-100); color: var(--bw-blue); }
.col:nth-child(3n+3) .bw-cat .ico { background: var(--bw-green-100); color: var(--bw-green); }
.bw-cat h3 { font-size: 1rem; margin: 0; }
.bw-cat small { color: var(--bw-muted); font-size: .82rem; }

/* ---------- Cards ---------- */
.bw-card { background: #fff; border: 1px solid var(--bw-line); border-radius: var(--bw-radius); box-shadow: var(--bw-shadow-sm); }
.bw-card-body { padding: 22px; }
.bw-card h2, .bw-card h3 { font-size: 1.15rem; }
.bw-card-title { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; margin-bottom: 16px; }
.bw-card-title i { color: var(--bw-teal); }

/* ---------- Business card ---------- */
.pcard { display: flex; gap: 18px; padding: 20px; background: #fff; border: 1px solid var(--bw-line); border-radius: var(--bw-radius); box-shadow: var(--bw-shadow-sm); transition: border-color .15s, box-shadow .15s; position: relative; }
.pcard:hover { border-color: #c9d9f1; box-shadow: var(--bw-shadow); }
.pcard + .pcard { margin-top: 14px; }
.pcard .ph { flex: 0 0 104px; width: 104px; height: 104px; border-radius: 14px; overflow: hidden; background: var(--bw-blue-50); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.6rem; color: var(--bw-blue); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .body { flex: 1; min-width: 0; }
.pcard h3 { font-size: 1.1rem; margin: 0 0 2px; }
.pcard h3 a { color: var(--bw-ink); }
.pcard h3 a:hover { color: var(--bw-blue); }
.pcard .spec { color: var(--bw-muted); font-size: .9rem; }
.pcard .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; font-size: .87rem; color: var(--bw-text); }
.pcard .meta i { color: var(--bw-muted); margin-right: 5px; width: 14px; text-align: center; }
.pcard .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pcard .tag { font-size: .76rem; padding: 3px 9px; border-radius: 999px; background: var(--bw-bg); border: 1px solid var(--bw-line-2); color: var(--bw-text); }
.pcard .side { flex: 0 0 200px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; justify-content: center; border-left: 1px dashed var(--bw-line); padding-left: 18px; }
.pcard .fee { font-size: .85rem; color: var(--bw-muted); }
.pcard .fee strong { color: var(--bw-ink); font-size: 1.05rem; }
.pcard.sponsored { border-color: #f1dca6; background: linear-gradient(180deg, #fffdf6, #fff 40%); }
@media (max-width: 767.98px) {
  .pcard { flex-wrap: wrap; padding: 16px; gap: 14px; }
  .pcard .ph { flex-basis: 72px; width: 72px; height: 72px; font-size: 1.2rem; }
  .pcard .side { flex: 1 1 100%; border-left: 0; padding-left: 0; border-top: 1px dashed var(--bw-line); padding-top: 12px; flex-direction: row; flex-wrap: wrap; }
  .pcard .side .btn { flex: 1; }
  .pcard .side .fee { flex: 1 1 100%; }
}

/* small grid card (homepage) */
.gcard { display: block; background: #fff; border: 1px solid var(--bw-line); border-radius: var(--bw-radius); overflow: hidden; height: 100%; color: var(--bw-text); transition: box-shadow .15s, border-color .15s; }
.gcard:hover { box-shadow: var(--bw-shadow); border-color: #c9d9f1; color: var(--bw-text); }
.gcard .cover { height: 132px; background: var(--bw-blue-50) center/cover no-repeat; position: relative; }
.gcard .avatar { position: absolute; left: 18px; bottom: -28px; width: 64px; height: 64px; border-radius: 14px; border: 3px solid #fff; background: var(--bw-blue-100) center/cover; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--bw-blue); box-shadow: var(--bw-shadow-sm); }
.gcard .inner { padding: 38px 18px 18px; }
.gcard h3 { font-size: 1.02rem; margin: 0 0 2px; color: var(--bw-ink); }

/* ---------- Badges ---------- */
.badge-verified { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--bw-green-100); color: #13804a; vertical-align: middle; white-space: nowrap; }
.badge-verified i { font-size: .72rem; }
.badge-soft { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--bw-blue-50); color: var(--bw-blue); white-space: nowrap; }
.badge-featured { background: #eef2ff; color: #4048b8; }
.badge-sponsored { background: #fff4d6; color: #8a5d00; }
.badge-pending { background: #fff4d6; color: #8a5d00; }
.badge-rejected, .badge-cancelled, .badge-suspended { background: #fde8e8; color: #b42318; }
.badge-confirmed, .badge-verified-s, .badge-approved, .badge-completed { background: var(--bw-green-100); color: #13804a; }
.badge-no_show, .badge-hidden, .badge-legacy { background: #eef1f5; color: #4b5565; }
.rating-pill { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .85rem; color: var(--bw-ink); }
.rating-pill .b { background: var(--bw-green); color: #fff; padding: 2px 7px; border-radius: 6px; font-size: .8rem; }
.rating-pill .b.none { background: #e6ebf2; color: var(--bw-muted); }
.stars { color: var(--bw-amber); letter-spacing: 1px; font-size: .85rem; }
.open-now { color: #13804a; font-weight: 600; }
.closed-now { color: #b4541a; font-weight: 600; }

/* ---------- Listing page ---------- */
.bw-page-head { background: var(--bw-bg); border-bottom: 1px solid var(--bw-line-2); padding: 26px 0 22px; }
.bw-page-head h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 6px 0 4px; }
.bw-breadcrumb { font-size: .82rem; color: var(--bw-muted); margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.bw-breadcrumb li + li::before { content: "/"; margin: 0 6px; color: #b3bfd0; }
.bw-breadcrumb a { color: var(--bw-muted); }
.bw-breadcrumb a:hover { color: var(--bw-blue); }
.filters { position: sticky; top: 86px; }
.filters .grp { padding: 16px 0; border-bottom: 1px solid var(--bw-line-2); }
.filters .grp:first-child { padding-top: 0; }
.filters h4 { font-size: .92rem; font-weight: 700; color: var(--bw-ink); margin-bottom: 10px; }
.filters .form-check { margin-bottom: 6px; font-size: .92rem; }
.filters .form-check-input:checked { background-color: var(--bw-blue); border-color: var(--bw-blue); }
.filters a.flink { display: flex; justify-content: space-between; padding: 4px 0; color: var(--bw-text); font-size: .92rem; }
.filters a.flink:hover, .filters a.flink.on { color: var(--bw-blue); font-weight: 600; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .form-select { width: auto; font-size: .9rem; border-radius: 10px; }
.sponsored-label { font-size: .82rem; font-weight: 700; color: #8a5d00; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.empty-state { text-align: center; padding: 56px 20px; border: 1px dashed #cfdbea; border-radius: var(--bw-radius); background: #fbfcfe; }
.empty-state i { font-size: 2rem; color: #9fb3cf; margin-bottom: 12px; }
.link-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.link-cloud a { padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--bw-line); font-size: .87rem; color: var(--bw-text); }
.link-cloud a:hover { border-color: #bcd0ee; color: var(--bw-blue); }
.seo-content { color: var(--bw-text); font-size: .95rem; }
.seo-content h2, .seo-content h3 { font-size: 1.15rem; margin-top: 1.2rem; }

/* ---------- Profile ---------- */
.pf-cover { height: 220px; background: linear-gradient(120deg, #e8f0fd, #e2f6f2) center/cover no-repeat; border-bottom: 1px solid var(--bw-line-2); }
@media (max-width: 767.98px) { .pf-cover { height: 140px; } }
.pf-head { margin-top: -72px; position: relative; }
.pf-head .bw-card-body { padding: 24px; }
.pf-photo { width: 132px; height: 132px; border-radius: 20px; border: 4px solid #fff; box-shadow: var(--bw-shadow); background: var(--bw-blue-100); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 800; color: var(--bw-blue); flex: 0 0 auto; }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; }
.pf-title h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.pf-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--bw-text); font-size: .92rem; margin-top: 10px; }
.pf-facts i { color: var(--bw-teal); margin-right: 6px; }
.pf-cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 767.98px) {
  .pf-head { margin-top: -48px; }
  .pf-photo { width: 92px; height: 92px; font-size: 1.7rem; border-radius: 16px; }
}
.pf-tabs { position: sticky; top: 66px; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--bw-line); margin: 20px 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.pf-tabs::-webkit-scrollbar { display: none; }
.pf-tabs a { display: inline-block; padding: 12px 14px; font-weight: 600; font-size: .9rem; color: var(--bw-muted); border-bottom: 2px solid transparent; }
.pf-tabs a:hover, .pf-tabs a.active { color: var(--bw-blue); border-bottom-color: var(--bw-blue); }
.pf-section { scroll-margin-top: 130px; margin-bottom: 20px; }
.svc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.svc { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--bw-line); border-radius: 12px; font-size: .92rem; }
.svc i { color: var(--bw-green); margin-top: 4px; }
.svc small { display: block; color: var(--bw-muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery a { display: block; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--bw-bg); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .gt { position: absolute; left: 8px; bottom: 8px; background: rgba(13, 30, 60, .7); color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 6px; }
.timing-table { width: 100%; font-size: .92rem; }
.timing-table td { padding: 9px 0; border-bottom: 1px solid var(--bw-line-2); vertical-align: top; }
.timing-table tr:last-child td { border-bottom: 0; }
.timing-table td:first-child { font-weight: 600; color: var(--bw-ink); width: 40%; }
.timing-table tr.today td { color: var(--bw-blue); }
.timing-table tr.today td:first-child::after { content: "Today"; margin-left: 8px; font-size: .68rem; background: var(--bw-blue-50); color: var(--bw-blue); border-radius: 6px; padding: 2px 6px; }
.rv-summary { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.rv-big { text-align: center; min-width: 120px; }
.rv-big .n { font-size: 2.8rem; font-weight: 800; color: var(--bw-ink); line-height: 1; }
.rv-bars { flex: 1; min-width: 220px; }
.rv-bar { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--bw-muted); margin: 3px 0; }
.rv-bar .track { flex: 1; height: 8px; background: var(--bw-line-2); border-radius: 99px; overflow: hidden; }
.rv-bar .fill { height: 100%; background: var(--bw-amber); border-radius: 99px; }
.review { padding: 18px 0; border-top: 1px solid var(--bw-line-2); }
.review .who { font-weight: 700; color: var(--bw-ink); }
.review .reply { margin-top: 12px; background: var(--bw-bg); border-left: 3px solid var(--bw-teal); padding: 10px 14px; border-radius: 0 10px 10px 0; font-size: .92rem; }
.map-embed { border: 0; width: 100%; height: 280px; border-radius: 12px; background: var(--bw-bg); }
.doc-mini { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--bw-line); border-radius: 12px; }
.doc-mini .av { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--bw-blue-100); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--bw-blue); flex: 0 0 auto; }
.doc-mini .av img { width: 100%; height: 100%; object-fit: cover; }
.side-sticky { position: sticky; top: 130px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-row a, .share-row button { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--bw-line); background: #fff; color: var(--bw-text); }
.share-row a:hover, .share-row button:hover { border-color: #bcd0ee; color: var(--bw-blue); }

/* Mobile CTA bar */
.mobile-cta { display: none; }
@media (max-width: 991.98px) {
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: #fff; border-top: 1px solid var(--bw-line); box-shadow: 0 -6px 20px rgba(16, 38, 84, .08); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
  .mobile-cta .btn { flex: 1; padding: .7rem .4rem; font-size: .9rem; }
  body.has-mobile-cta { padding-bottom: 76px; }
  .side-sticky { position: static; }
}

/* ---------- How it works ---------- */
.how { counter-reset: how; }
.how .step { position: relative; padding: 24px; background: #fff; border: 1px solid var(--bw-line); border-radius: var(--bw-radius); height: 100%; }
.how .step::before { counter-increment: how; content: counter(how, decimal-leading-zero); font-size: .8rem; font-weight: 800; color: var(--bw-teal); letter-spacing: .08em; }
.how .step i { display: block; font-size: 1.5rem; color: var(--bw-blue); margin: 12px 0; }
.how .step h3 { font-size: 1.05rem; }
.how .step p { color: var(--bw-muted); font-size: .92rem; margin: 0; }
.why { display: flex; gap: 14px; align-items: flex-start; }
.why .i { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--bw-green-100); color: var(--bw-green); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.why h3 { font-size: 1rem; margin: 2px 0 4px; }
.why p { color: var(--bw-muted); font-size: .92rem; margin: 0; }
.city-tile { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--bw-line); border-radius: 12px; background: #fff; color: var(--bw-ink); font-weight: 600; }
.city-tile:hover { border-color: #bcd0ee; color: var(--bw-blue); }
.city-tile small { color: var(--bw-muted); font-weight: 500; }
.svc-tile { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--bw-line); border-radius: 12px; background: #fff; color: var(--bw-ink); height: 100%; }
.svc-tile:hover { border-color: #bcd0ee; color: var(--bw-blue); box-shadow: var(--bw-shadow-sm); }
.svc-tile .i { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--bw-blue-50); color: var(--bw-blue); display: flex; align-items: center; justify-content: center; }
.svc-tile strong { font-size: .95rem; display: block; }
.svc-tile small { color: var(--bw-muted); font-size: .8rem; }
.bw-cta { background: linear-gradient(120deg, var(--bw-blue-800), var(--bw-blue) 55%, var(--bw-teal)); color: #fff; border-radius: 22px; padding: 48px; position: relative; overflow: hidden; }
.bw-cta h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.bw-cta p { color: rgba(255, 255, 255, .85); }
.bw-cta .btn-light { color: var(--bw-blue-800); }
@media (max-width: 767.98px) { .bw-cta { padding: 30px 22px; } }
.article-card { display: block; border: 1px solid var(--bw-line); border-radius: var(--bw-radius); padding: 20px; background: #fff; height: 100%; color: var(--bw-text); }
.article-card:hover { box-shadow: var(--bw-shadow); color: var(--bw-text); }
.article-card .k { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bw-teal-600); }
.article-card h3 { font-size: 1.02rem; margin: 8px 0; }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 1px solid var(--bw-line); border-radius: 12px !important; margin-bottom: 10px; overflow: hidden; }
.faq .accordion-button { font-weight: 600; color: var(--bw-ink); font-size: .97rem; box-shadow: none; }
.faq .accordion-button:not(.collapsed) { background: var(--bw-blue-50); color: var(--bw-blue); }
.faq .accordion-body { color: var(--bw-text); font-size: .94rem; }

/* ---------- Footer ---------- */
.bw-footer { background: #f2f6fb; border-top: 1px solid var(--bw-line); padding: 56px 0 24px; font-size: .92rem; }
.bw-footer h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bw-ink); margin-bottom: 14px; }
.bw-footer ul { list-style: none; padding: 0; margin: 0; }
.bw-footer li { margin-bottom: 8px; }
.bw-footer a { color: var(--bw-text); }
.bw-footer a:hover { color: var(--bw-blue); }
.bw-footer .bottom { border-top: 1px solid var(--bw-line); margin-top: 36px; padding-top: 20px; color: var(--bw-muted); font-size: .85rem; }
.bw-footer .social a { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--bw-line); margin-right: 6px; }
.bw-disclaimer { font-size: .8rem; color: var(--bw-muted); }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 10px; border-color: #d6e0ec; padding: .6rem .85rem; font-size: .95rem; }
.form-control:focus, .form-select:focus { border-color: #8fb2ea; box-shadow: 0 0 0 .2rem rgba(30, 111, 224, .15); }
.form-label { font-weight: 600; font-size: .88rem; color: var(--bw-ink); margin-bottom: .35rem; }
.form-text { font-size: .8rem; color: var(--bw-muted); }
.auth-wrap { min-height: calc(100vh - 70px); display: flex; align-items: center; padding: 48px 0; background: linear-gradient(180deg, #f3f7fe, #fff); }
.auth-card { max-width: 480px; margin: 0 auto; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick input { display: none; }
.role-pick label { border: 1.5px solid var(--bw-line); border-radius: 12px; padding: 14px; cursor: pointer; display: block; font-weight: 600; color: var(--bw-ink); font-size: .92rem; }
.role-pick label i { display: block; font-size: 1.3rem; color: var(--bw-teal); margin-bottom: 6px; }
.role-pick label small { display: block; font-weight: 400; color: var(--bw-muted); font-size: .78rem; }
.role-pick input:checked + label { border-color: var(--bw-blue); background: var(--bw-blue-50); }

/* ---------- Alerts / flash ---------- */
.bw-flash { border-radius: 12px; border: 1px solid; padding: 12px 16px; font-size: .93rem; display: flex; gap: 10px; align-items: flex-start; }
.bw-flash.ok { background: #effaf3; border-color: #bfe9cf; color: #11643a; }
.bw-flash.err { background: #fdf1f1; border-color: #f4c7c7; color: #9b1c1c; }
.bw-flash.info { background: var(--bw-blue-50); border-color: var(--bw-blue-100); color: var(--bw-blue-800); }

/* ---------- Dashboard (vendor / customer / team) ---------- */
.dash { background: var(--bw-bg); min-height: calc(100vh - 66px); padding: 28px 0 60px; }
.dash-nav { background: #fff; border: 1px solid var(--bw-line); border-radius: var(--bw-radius); padding: 10px; position: sticky; top: 86px; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--bw-text); font-weight: 600; font-size: .92rem; }
.dash-nav a i { width: 18px; text-align: center; color: var(--bw-muted); }
.dash-nav a:hover { background: var(--bw-bg); }
.dash-nav a.active { background: var(--bw-blue-50); color: var(--bw-blue); }
.dash-nav a.active i { color: var(--bw-blue); }
.dash-nav .sep { height: 1px; background: var(--bw-line-2); margin: 8px 4px; }
.dash-nav .count { margin-left: auto; background: var(--bw-teal); color: #fff; font-size: .7rem; border-radius: 99px; padding: 1px 7px; }
@media (max-width: 991.98px) {
  .dash-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 6px; margin-bottom: 16px; }
  .dash-nav a { white-space: nowrap; }
  .dash-nav .sep { display: none; }
}
.stat { background: #fff; border: 1px solid var(--bw-line); border-radius: var(--bw-radius); padding: 16px 18px; height: 100%; }
.stat .k { font-size: .78rem; color: var(--bw-muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat .k i { color: var(--bw-teal); }
.stat .v { font-size: 1.6rem; font-weight: 800; color: var(--bw-ink); line-height: 1.2; margin-top: 4px; }
.progress { height: 10px; border-radius: 99px; background: var(--bw-line-2); }
.progress-bar { background: linear-gradient(90deg, var(--bw-teal), var(--bw-green)); border-radius: 99px; }
.table-bw { width: 100%; font-size: .9rem; }
.table-bw th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bw-muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--bw-line); background: #fafcfe; white-space: nowrap; }
.table-bw td { padding: 12px; border-bottom: 1px solid var(--bw-line-2); vertical-align: middle; }
.table-bw tr:last-child td { border-bottom: 0; }
.check-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.check-list li { padding: 5px 0; display: flex; gap: 8px; }
.check-list li i { margin-top: 4px; }
.check-list li.done { color: var(--bw-muted); text-decoration: line-through; }
.check-list li.done i { color: var(--bw-green); }
.check-list li:not(.done) i { color: #c2cddc; }

/* ---------- Pagination ---------- */
.bw-pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 26px 0 0; padding: 0; list-style: none; }
.bw-pagination a, .bw-pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--bw-line); background: #fff; color: var(--bw-text); font-weight: 600; font-size: .9rem; }
.bw-pagination .on span { background: var(--bw-blue); border-color: var(--bw-blue); color: #fff; }
.bw-pagination .off span { color: #b3bfd0; }

/* ---------- Utilities ---------- */
.rounded-mu { border-radius: var(--bw-radius) !important; }
.bg-soft { background: var(--bw-bg) !important; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.2rem; }
.divider { height: 1px; background: var(--bw-line-2); margin: 18px 0; }
.qr-box { background: #fff; border: 1px solid var(--bw-line); border-radius: 16px; padding: 18px; text-align: center; }
.qr-box img { width: 220px; height: 220px; image-rendering: pixelated; }
.toast-bw { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--bw-ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .9rem; z-index: 2000; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast-bw.show { opacity: 1; }

@media print {
  .bw-header, .bw-footer, .mobile-cta, .no-print { display: none !important; }
}
.timing-table td:first-child { width: 34%; }
.timing-table td:last-child { white-space: nowrap; font-size: .86rem; }
.gallery .gt { bottom: auto; top: 8px; }
html, body { overflow-x: clip; }
/* ---------- SEO landing pages ---------- */
.landing-intro { max-width: 980px; color: var(--bw-text); font-size: .98rem; }
.landing-intro p { margin-bottom: .6rem; }
.landing-intro.collapsed { max-height: 7.5em; overflow: hidden; position: relative; }
.landing-section h2 { color: var(--bw-ink); }
.landing-section .prose img { max-width: 100%; height: auto; border-radius: 12px; }
.landing-cta h2, .landing-cta .h4 { color: #fff !important; }
.landing-cta a:not(.btn) { color: #fff; text-decoration: underline; }


/* ==========================================================================
   BizWebMart additions
   ========================================================================== */
.bw-chip.on { background: var(--bw-blue); border-color: var(--bw-blue); color: #fff; }
button.bw-chip { cursor: pointer; }
.bw-chip-sm { font-size: .78rem; padding: 4px 10px; }
.bw-mega { min-width: 280px; }
@media (min-width: 992px) { .bw-mega { columns: 2; min-width: 460px; } .bw-mega li { break-inside: avoid; } }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); color: #fff; }

/* category tiles: compact vertical */
.bw-cat { gap: 10px; padding: 18px; }
.bw-cat .ico { width: 44px; height: 44px; font-size: 1.2rem; }
.bw-cat h3 { font-size: .95rem; line-height: 1.3; }
.cat-ico { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--bw-teal-100); color: var(--bw-teal-600); font-size: 1.25rem; }

/* how it works – a real sequence, so it is numbered */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--bw-line); }
.how-steps li { position: relative; padding: 26px 22px 0 0; counter-increment: step; }
.how-steps li::before { content: counter(step); position: absolute; top: -15px; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--bw-blue); color: #fff; font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.how-steps i { color: var(--bw-teal); font-size: 1.35rem; margin: 6px 0 10px; display: block; }
.how-steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.how-steps p { color: var(--bw-muted); font-size: .93rem; margin: 0; }
@media (max-width: 767.98px) { .how-steps { grid-template-columns: 1fr 1fr; row-gap: 34px; } }

/* manufacturer / supplier cards */
.mfg-card { display: block; height: 100%; padding: 16px; background: #fff; border: 1px solid var(--bw-line); border-radius: var(--bw-radius); color: var(--bw-text); }
.mfg-card:hover { border-color: #c5d7f3; box-shadow: var(--bw-shadow); color: var(--bw-text); }
.mfg-card .logo { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; overflow: hidden; border: 1px solid var(--bw-line); background: var(--bw-blue-50); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--bw-blue); font-size: .85rem; }
.mfg-card .logo img, .mini-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.mfg-card strong { color: var(--bw-ink); font-size: .95rem; }
.mfg-card .prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mfg-card .prods span { display: block; font-size: .72rem; color: var(--bw-muted); line-height: 1.25; }
.mfg-card .prods img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--bw-bg); display: block; margin-bottom: 4px; }
.mfg-card .prods em { font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-logo { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; overflow: hidden; border: 1px solid var(--bw-line); background: var(--bw-blue-50); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--bw-blue); font-size: .85rem; }

/* listing cards */
.pcard .ph { background: #fff; border: 1px solid var(--bw-line); flex-basis: 96px; width: 96px; height: 96px; }
.pcard .ph img { object-fit: contain; }
.pcard .ph span { font-weight: 800; color: var(--bw-blue); }
.pcard .desc { font-size: .9rem; color: var(--bw-text); margin: 6px 0 0; }
.pcard .tag-product { background: var(--bw-teal-100); border-color: transparent; color: var(--bw-teal-600); }
.pcard .tag-attr { background: var(--bw-blue-50); border-color: var(--bw-blue-100); color: var(--bw-blue); }
.pcard .side a.small { color: var(--bw-blue); }
.gcard .avatar { overflow: hidden; background: #fff; border-color: #fff; }
.gcard .avatar img { width: 100%; height: 100%; object-fit: contain; }
.gcard .cover { background-color: var(--bw-blue-50); background-image: linear-gradient(135deg, var(--bw-blue-100), var(--bw-teal-100)); }

/* badges */
.badge-premium { background: #f3e8ff; color: #6b21a8; }
.badge-demo { background: #fff4d6; color: #8a5d00; }
.badge-under_review { background: #e6f4ff; color: #0b5cad; }
.badge-archived { background: #eef1f5; color: #4b5565; }
.badge-verified.badge-soft, .badge-soft.badge-verified { background: var(--bw-green-100); color: #13804a; }
.badge-enq-new { background: #fff4d6; color: #8a5d00; }
.badge-enq-contacted, .badge-enq-follow_up { background: var(--bw-blue-50); color: var(--bw-blue); }
.badge-enq-quoted { background: #f3e8ff; color: #6b21a8; }
.badge-enq-won { background: var(--bw-green-100); color: #13804a; }
.badge-enq-lost { background: #fde8e8; color: #b42318; }
.badge-enq-closed { background: #eef1f5; color: #4b5565; }
.bw-flash.error { background: #fdf1f1; border-color: #f4c7c7; color: #9b1c1c; }
.bw-flash.demo { background: #fffaeb; border-color: #f6dfa0; color: #7a5200; }

/* profile */
.pf-photo { background: #fff; }
.pf-photo img { object-fit: contain; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 20px; margin: 0; }
.facts-grid dt { font-weight: 500; color: var(--bw-muted); font-size: .82rem; }
.facts-grid dd { margin: 2px 0 0; font-weight: 600; color: var(--bw-ink); font-size: .93rem; }
.svc { align-items: center; }
.svc a.small { color: var(--bw-blue); font-weight: 600; }
.prod-card { border: 1px solid var(--bw-line); border-radius: 12px; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.prod-card .img { aspect-ratio: 4/3; background: var(--bw-bg); display: flex; align-items: center; justify-content: center; color: #9fb3cf; font-size: 2rem; }
.prod-card .img img { width: 100%; height: 100%; object-fit: cover; }
.prod-card .price { font-weight: 700; color: var(--bw-blue); font-size: .95rem; }
.spec-mini { list-style: none; padding: 0; margin: 0; font-size: .8rem; }
.spec-mini li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dotted var(--bw-line); }
.spec-mini li span { color: var(--bw-muted); }
.enquiry-card { border-color: #c9daf6; box-shadow: var(--bw-shadow); }
.enquiry-card .form-label { margin-bottom: 2px; font-weight: 600; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--bw-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; }

/* articles */
.article-card { display: block; padding: 20px; background: #fff; border: 1px solid var(--bw-line); border-radius: var(--bw-radius); color: var(--bw-text); height: 100%; }
.article-card:hover { border-color: #c5d7f3; box-shadow: var(--bw-shadow); color: var(--bw-text); }
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.article-card .k { font-size: .8rem; color: var(--bw-teal-600); font-weight: 700; }
.article-card h2, .article-card h3 { font-size: 1.05rem; margin: 6px 0; color: var(--bw-ink); }
.blog-body { font-size: 1.02rem; line-height: 1.75; }
.blog-body h2 { font-size: 1.35rem; margin-top: 2rem; }

/* panels */
.dash-nav .nav-title { font-size: .78rem; font-weight: 700; color: var(--bw-muted); padding: 10px 14px 4px; }
.save-bar { position: sticky; bottom: 12px; z-index: 10; box-shadow: var(--bw-shadow); }
.prod-row { border: 1px solid var(--bw-line); border-radius: 12px; padding: 10px 12px; }
.prod-row summary { display: flex; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.prod-row summary::-webkit-details-marker { display: none; }
.prod-row .thumb { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 8px; overflow: hidden; background: var(--bw-bg); display: flex; align-items: center; justify-content: center; color: #9fb3cf; }
.prod-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.panel-page .bw-footer { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 991.98px) { .dash-nav .nav-title, .dash-nav .sep { display: none; } }
