/* ─────────────────────────────────────────────────────────────────────────
   Business (local service) detail page — Clearwater Loon brand.
   Extracted from the page's inline <style>. Bespoke bz-* / db-card class
   names are kept because the page's JS emits them; every value now comes
   from a --mlh-* token in brand.css (no literal hex, no rgba, no forced
   overrides, no legacy fonts). The categorical --brand accent is set per type
   by the page JS (hsl pin colors); its resting default here is the brand
   blue and its dark/tint shades are derived with color-mix.
   ───────────────────────────────────────────────────────────────────────── */
:root {
  --brand: var(--mlh-blue);
  --brand-dark: color-mix(in srgb, var(--brand) 72%, var(--mlh-midnight));
  --brand-tint: color-mix(in srgb, var(--brand) 12%, var(--mlh-white));
  --ink: var(--mlh-heading);
  --ink-soft: var(--mlh-body);
  --muted: var(--mlh-muted);
  --line: var(--mlh-line);
}

body { background: var(--mlh-canvas); color: var(--ink); font-family: var(--mlh-font-body); }

.bz-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

/* Back button — pill-style, parked in the top-left above the card. */
.bz-back {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--ink); font-size: 0.82rem; font-weight: 700;
  text-decoration: none;
  padding: 0.6rem 1rem;
  background: var(--mlh-white);
  border: 1px solid var(--mlh-line-strong);
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 1.25rem;
  box-shadow: var(--mlh-shadow-hover);
  transition: border-color 0.12s, color 0.12s, box-shadow 0.12s;
}
.bz-back:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--mlh-shadow-hover); }
.bz-back .chev { font-weight: 800; }

/* Single card that holds everything — hero strip + details grid. */
.bz-card {
  background: var(--mlh-white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--mlh-shadow-hover);
}

/* ── Hero strip ─────────────────────────────────────────── */
.bz-hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem;
  align-items: center;
}
.bz-hero.no-image { grid-template-columns: minmax(0, 1fr); }
.bz-thumb {
  width: 240px; height: 240px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.bz-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-hero.no-image .bz-thumb { display: none; }

.bz-hero-body { min-width: 0; }
.bz-type-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.7px;
  text-transform: uppercase;
  background: var(--brand-tint); color: var(--brand);
  padding: 0.25rem 0.6rem; border-radius: 5px;
  margin-bottom: 0.65rem;
}
.bz-type-chip::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
}
.bz-hero h1 {
  font-family: var(--mlh-font-display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 800; letter-spacing: -0.6px; line-height: 1.12;
  margin: 0 0 0.4rem;
}
.bz-hero .loc { color: var(--muted); font-weight: 700; font-size: 0.95rem; }
.bz-hero .bio {
  color: var(--ink-soft); margin-top: 1rem; line-height: 1.55;
  font-size: 1rem;
}
.bz-hero .bio:empty { display: none; }

/* CTA row + socials — both sit inside the hero body. */
.bz-cta-row { margin-top: 1.15rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bz-socials-row { margin-top: 0.75rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.bz-socials-row:empty { display: none; }
.bz-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  font-weight: 800; font-size: 0.84rem;
  border-radius: 8px; text-decoration: none;
  transition: transform 0.12s, background 0.12s, color 0.12s, border-color 0.12s;
}
.bz-btn.primary {
  background: var(--brand); color: var(--mlh-white);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--brand) 30%, transparent);
}
.bz-btn.primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.bz-btn.ghost { background: var(--mlh-white); color: var(--ink); border: 1px solid var(--line); }
.bz-btn.ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ── Details grid — two columns: Contact (left), Address (right). */
.bz-details {
  border-top: 1px solid var(--line);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2.5rem;
}
@media (max-width: 620px) { .bz-details { grid-template-columns: 1fr; } }
.bz-section h3 {
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}
.bz-row {
  display: flex; justify-content: space-between; gap: 0.75rem;
  padding: 0.3rem 0;
  font-size: 0.88rem; color: var(--ink);
}
.bz-row .label { color: var(--muted); font-weight: 700; font-size: 0.78rem; }
.bz-row .value { font-weight: 600; text-align: right; min-width: 0; }
.bz-row .value a { color: inherit; text-decoration: none; word-break: break-word; }
.bz-row .value a:hover { color: var(--brand); }

.bz-address-line { font-size: 0.9rem; line-height: 1.45; color: var(--ink); }
.bz-address-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8rem; font-weight: 700;
  color: var(--brand); text-decoration: none;
}
.bz-address-link:hover { text-decoration: underline; }

.bz-socials { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.bz-social {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--mlh-white); color: var(--ink);
  font-size: 0.8rem; font-weight: 700;
  text-decoration: none;
}
.bz-social:hover { border-color: var(--brand); color: var(--brand); }
.bz-social svg { width: 14px; height: 14px; }

.bz-section.is-empty { display: none; }

/* ── Reviews section (revealed by the reviews-widget once a review lands). */
.bz-reviews { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); display: none; }

/* ── Related services row ──────────────────────────────────
   Matches the .db-card styling used on /towns. */
.bz-related { margin-top: 3rem; display: none; }
.bz-related-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: 0 0 1rem;
}
.bz-related-head h2 {
  font-family: var(--mlh-font-display);
  font-size: 1.1rem; font-weight: 800; letter-spacing: -0.3px;
  color: var(--ink); margin: 0;
}
.bz-related-head .sub { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.bz-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
  justify-content: start;
  gap: 1rem;
}
.bz-related-grid:empty { display: none; }

/* Featured Blogs — rendered server-side only when tagged posts exist. */
.bz-blogs { margin-top: 3rem; }
.bz-blogs-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: 0 0 1rem;
}
.bz-blogs-head h2 {
  font-family: var(--mlh-font-display);
  font-size: 1.1rem; font-weight: 800; letter-spacing: -0.3px;
  color: var(--ink); margin: 0;
}
.bz-blogs-head .sub { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.bz-blogs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
  justify-content: start; gap: 1rem;
}
.bz-blog-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--mlh-white); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.bz-blog-card:hover {
  transform: translateY(-3px); border-color: var(--mlh-blue);
  box-shadow: var(--mlh-shadow-float);
}
.bz-blog-img { aspect-ratio: 16/10; background: var(--mlh-ice); overflow: hidden; }
.bz-blog-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-blog-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.bz-blog-body h3 { font-family: var(--mlh-font-display); font-size: 1.02rem; font-weight: 800; color: var(--ink); margin: 0 0 0.4rem; line-height: 1.3; letter-spacing: -0.2px; }
.bz-blog-body p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; margin: 0 0 0.85rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bz-blog-readmore { margin-top: auto; font-size: 0.85rem; font-weight: 800; color: var(--mlh-blue); }

/* Card styles — a copy of .db-card from towns-index.html so the
   related row looks identical to the directory cards. */
.db-card {
  display: flex; flex-direction: column;
  background: var(--mlh-white); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.db-card:hover { transform: translateY(-3px); border-color: var(--mlh-line-strong); box-shadow: var(--mlh-shadow-float); }
.db-card:hover .db-card-thumb img { transform: scale(1.05); }
.db-card-thumb { height: 165px; overflow: hidden; position: relative; }
.db-card.biz .db-card-thumb {
  background: linear-gradient(135deg,
    var(--biz-c, var(--brand)) 0%,
    color-mix(in srgb, var(--biz-c, var(--brand)) 72%, var(--mlh-midnight)) 100%);
}
.db-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.db-card-thumb .chip {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--mlh-white);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  color: var(--ink); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.6px; text-transform: uppercase;
  padding: 0.28rem 0.6rem; border-radius: 6px;
}
.db-card-thumb .type {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--mlh-white); font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.6px; text-transform: uppercase;
  padding: 0.28rem 0.55rem; border-radius: 6px;
}
.db-card.biz .db-card-thumb .type { background: var(--biz-c, var(--brand)); }
.db-card-thumb .type .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mlh-white); }
.db-card-body { padding: 1rem 1.1rem 1.15rem; flex: 1; display: flex; flex-direction: column; }
.db-card-body h3 { font-family: var(--mlh-font-display); font-size: 1.08rem; font-weight: 800; color: var(--ink); margin: 0 0 0.25rem; letter-spacing: -0.25px; }
.db-card-body .loc { font-size: 0.78rem; color: var(--muted); margin: 0 0 0.7rem; font-weight: 600; }
.db-card-body p { color: var(--ink-soft); font-size: 0.87rem; line-height: 1.5; margin: 0 0 0.9rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.db-card-cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 800; color: var(--biz-c, var(--brand));
  transition: gap 0.15s;
}
.db-card:hover .db-card-cta { gap: 0.6rem; }

/* Featured Partner treatment — matches /towns. */
.db-card.is-featured { border-color: var(--mlh-warning); box-shadow: var(--mlh-shadow-hover); }
.db-card-thumb .featured {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--mlh-warning);
  color: var(--mlh-white); font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.6px; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 6px;
  box-shadow: var(--mlh-shadow-hover);
}
.db-card-thumb .featured::before { content: '★'; font-size: 0.8rem; line-height: 1; }

@media (max-width: 860px) {
  .bz-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bz-blogs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .bz-shell { padding: 5rem 1rem 3rem; }
  .bz-hero { grid-template-columns: minmax(0, 1fr); padding: 1.25rem; gap: 1.25rem; justify-items: center; text-align: center; }
  .bz-thumb { width: 100%; max-width: 280px; height: 220px; }
  .bz-hero-body { text-align: center; }
  .bz-type-chip, .bz-cta-row, .bz-socials-row { justify-content: center; }
  .bz-cta-row { display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .bz-cta-row .bz-btn { justify-content: center; }
  .bz-details { padding: 1.25rem; gap: 1.25rem; }
  .bz-related-grid { grid-template-columns: 1fr; }
  .bz-related-head { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .bz-blogs-grid { grid-template-columns: 1fr; }
  .bz-blogs-head { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}
