/* ── CATEGORY PAGE STYLES ── */

.cat-hero {
  padding: 0;
  margin-top: var(--pn-bar-h, 37px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.cat-hero .container {
  padding-top: 6px;
  padding-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.cat-empty-section {
  padding: 64px 0 48px;
  scroll-margin-top: calc(var(--pn-bar-h, 37px) + 68px);
}
.cat-hero-header { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; }
.cat-hero-icon { display: none; }

.cat-hero-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.cat-hero-icon {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.cat-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--text);
  margin: 0;
  line-height: 1.1;
}
.cat-hero h1 span { color: var(--gold); }

.cat-hero-sub {
  font-size: .95rem;
  color: var(--text2);
  margin-bottom: 4px;
  line-height: 1.5;
}

.cat-status-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.cat-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.3);
  color: #4ade80;
}
.cat-status-badge.cat-status-filled {
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.3);
  color: #f87171;
}

/* ── INLINE STATUS — inside biz-badges row, above firm name ── */
.biz-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  background: rgba(234,179,8,.12);
  border: 1px solid rgba(234,179,8,.3);
  color: var(--gold);
}
.biz-status-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text2);
}

.cat-meta {
  font-size: .8rem;
  color: var(--text2);
}

/* ── LISTING ── */
/* cat-listing-section removed — card is now inside cat-hero viewport */

.cat-hero .biz-card { margin-bottom: 0; }

.biz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 20px;
  transition: border-color .2s, box-shadow .2s;
}
.biz-card:hover {
  border-color: rgba(234,179,8,.35);
  box-shadow: 0 4px 24px rgba(234,179,8,.07);
}
.biz-card.biz-featured {
  border-color: rgba(234,179,8,.5);
  background: linear-gradient(135deg, rgba(234,179,8,.05) 0%, var(--surface) 60%);
}

.biz-card-top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.biz-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  flex-shrink: 0;
}
.biz-logo-ph {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: rgba(234,179,8,.12);
  border: 1px solid rgba(234,179,8,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  flex-shrink: 0;
}

.biz-card-info { flex: 1; min-width: 0; }

/* ── CAT-HERO overrides: bigger logo + headings + tighter spacing ── */
.cat-hero .biz-logo,
.cat-hero .biz-logo-ph {
  width: 144px;
  height: 144px;
  border-radius: 16px;
  font-size: 5rem;
  flex-shrink: 0;
}
.cat-hero .biz-card-top {
  align-items: center;
  gap: 32px;
  margin-bottom: 8px;
}
.cat-hero .biz-card { padding: 20px 24px; }
.cat-hero .biz-name { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.cat-hero .biz-badges { margin-bottom: 4px; }
.cat-hero .biz-rating { margin-bottom: 4px; }
.cat-hero .biz-meta { margin-bottom: 4px; }
.cat-hero .biz-desc { margin-bottom: 8px; }
.cat-hero .biz-tags { margin-bottom: 10px; }

.biz-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.biz-badge-featured {
  background: rgba(234,179,8,.15);
  border: 1px solid rgba(234,179,8,.35);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 20px;
}
.biz-badge-pkg {
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.3);
  color: #a5b4fc;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}

.biz-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  background: rgba(234,179,8,.08);
  border: 1px solid rgba(234,179,8,.3);
  border-radius: 50px;
  padding: 2px 16px 8px;
  position: relative;
  overflow: hidden;
  animation: biz-border-glow 4s ease-in-out infinite 1.5s;
}
@keyframes biz-border-glow {
  0%, 35%, 75%, 100% { border-color: rgba(234,179,8,.3); box-shadow: none; }
  52%                 { border-color: rgba(234,179,8,.9); box-shadow: 0 0 14px rgba(234,179,8,.35); }
}
.biz-name::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(234,179,8,.5), transparent);
  animation: badge-shine 4s ease-in-out infinite 1.5s;
  pointer-events: none;
}
.biz-name-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}
.biz-name-link::after {
  content: '→';
  color: var(--gold);
  font-size: .9em;
  font-weight: 700;
  opacity: .7;
  transition: transform .2s, opacity .2s;
  flex-shrink: 0;
}
.biz-name-link:hover { color: var(--gold); }
.biz-name-link:hover::after { transform: translateX(4px); opacity: 1; }

.biz-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  font-size: .9rem;
}
.star { font-size: 1rem; }
.star.full, .star.half { color: var(--gold); }
.star.empty { color: #374151; }
.biz-rating-num { font-weight: 700; color: var(--text); margin-left: 2px; }
.biz-reviews { color: var(--text2); font-size: .82rem; }

.biz-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--text2); }
.biz-hours { font-size: .82rem; color: var(--text2); }

/* Address + hours multi-line helpers */
.biz-addr-l2::before { content: ', '; }
.biz-hrs-l2::before { content: ' \00B7 '; }

.biz-desc {
  color: var(--text2);
  font-size: .92rem;
  line-height: 1.65;
  margin: 0 0 14px;
}

.biz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  margin-bottom: 12px;
}
.biz-tag {
  background: none;
  border: none;
  color: rgba(255,255,255,.35);
  font-size: .58rem;
  padding: 0 5px;
  border-radius: 0;
  text-transform: capitalize;
  text-decoration: none;
  line-height: 1.6;
}
.biz-tag + .biz-tag { border-left: 1px solid rgba(255,255,255,.1); }
.biz-tag:hover { color: var(--gold); text-decoration: underline; }
.biz-tag-active { color: var(--gold) !important; text-decoration: underline; font-weight: 700; }

.biz-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.biz-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
}
.biz-call {
  background: var(--gold);
  color: #0a0d14;
}
.biz-call:hover { background: #ca9a06; }
.biz-web {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(234,179,8,.5);
  color: var(--text);
}
.biz-web:hover { border-color: var(--gold); color: var(--gold); }

/* Reserved card */
.biz-reserved {
  text-align: center;
  border-style: dashed;
  border-color: rgba(234,179,8,.25);
}
.cat-hero .biz-reserved { padding: 12px 24px 28px; }
.biz-reserved-icon { font-size: 2.2rem; margin-bottom: 8px; margin-top: 0; }
.biz-reserved .biz-name { justify-content: center; }
.biz-reserved .biz-actions { justify-content: center; }

/* ── URGENCY TIMER ── */
.cat-urgency-timer {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239,68,68,.07);
  border: 1px solid rgba(239,68,68,.22);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .82rem;
  color: var(--text2);
  margin-bottom: 10px;
  justify-content: center;
}
.cat-urgency-timer strong { color: #ef4444; }
.timer-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.75); }
}
.timer-pulse { animation: pulse-dot 1.2s ease-in-out infinite; }

/* ── EMPTY STATE ── */
.cat-empty { padding: 48px 0; }
.cat-empty-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px dashed rgba(234,179,8,.3);
  border-radius: 16px;
  padding: 48px 36px;
}
.cat-empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.cat-empty-box h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.2;
}
.cat-empty-box h2 span { color: var(--gold); }
.cat-empty-sub {
  color: var(--text2);
  margin-bottom: 24px;
  line-height: 1.65;
}
.cat-empty-perks {
  text-align: left;
  display: inline-block;
  margin-bottom: 28px;
}
.cat-empty-perks div {
  color: var(--text2);
  font-size: .9rem;
  padding: 4px 0;
}
.cat-empty-perks div::before { color: var(--gold); }
.cat-empty-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── FAQ ── */
.cat-faq { padding: 60px 0; }
.cat-faq .section-title { text-align: center; font-size: clamp(20px, 2.5vw, 30px); }
.faq-list { max-width: 720px; margin: 40px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
}
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
  color: var(--text2);
  font-size: .92rem;
  line-height: 1.7;
  padding-bottom: 0;
}
.faq-q[aria-expanded="true"] + .faq-a { padding-bottom: 18px; }

@media (min-width: 768px) {
  .cat-hero .container {
    padding-top: 16px;
    padding-bottom: 20px; /* card padding-bottom 28px + 20px = 48px — balanced */
  }
}

@media (max-width: 600px) {
  .biz-card-top { flex-direction: column; gap: 14px; }
  .biz-logo, .biz-logo-ph { width: 56px; height: 56px; }
  .cat-empty-box { padding: 32px 20px; }

  /* ── CAT-HERO mobile ── */
  .cat-hero { justify-content: flex-start; }
  .cat-hero .container { padding-top: 12px; padding-bottom: 12px; gap: 2px; }
  .cat-hero h1 { font-size: 1.3rem; }
  .cat-hero-icon { font-size: 1.8rem; }
  .cat-hero-title-row { gap: 8px; margin-bottom: 0; }
  .cat-hero-header { gap: 1px; }
  .cat-hero .cat-hero-sub { margin-bottom: 0; }
  .cat-hero .cat-status-row { display: none; }

  .cat-hero .biz-card {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
  }
  .cat-hero .biz-actions  { order: 2; margin-bottom: 10px; }
  .cat-hero .biz-desc     { order: 3; font-size: .85rem; margin-bottom: 6px; }
  .cat-hero .biz-tags     { order: 4; margin-bottom: 0; }

  /* Grid layout: name full-width row1, logo col1 rows2-3, rating+meta col2 */
  .cat-hero .biz-card-top {
    order: 1;
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 4px 10px;
    align-items: start;
    margin-bottom: 8px;
  }
  .cat-hero .biz-card-info { display: contents; }

  .cat-hero .biz-badges { display: none; }

  .cat-hero .biz-name {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: .95rem;
    border-radius: 10px;
    padding: 3px 5px 6px;
    display: block;
    width: fit-content;
    max-width: 100%;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cat-hero .biz-logo,
  .cat-hero .biz-logo-ph {
    grid-column: 1;
    grid-row: 2 / 5;
    width: 112px;
    height: 112px;
    font-size: 2.8rem;
    border-radius: 10px;
    align-self: start;
  }
  .cat-hero .biz-rating {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 2px;
    font-size: .82rem;
  }
  .cat-hero .biz-meta {
    grid-column: 2;
    grid-row: 3 / 5;
    margin-bottom: 0;
    flex-direction: column;
    gap: 1px;
    font-size: .78rem;
  }

  /* Address 2-line on mobile */
  .cat-hero .biz-addr-wrap { display: flex; flex-direction: column; gap: 1px; }
  .cat-hero .biz-addr-l2 { padding-left: 1.25em; }
  .cat-hero .biz-addr-l2::before { content: ''; }

  /* Hours 2-line on mobile */
  .cat-hero .biz-hrs-l1, .cat-hero .biz-hrs-l2 { display: block; }
  .cat-hero .biz-hrs-l2 { padding-left: 1.35em; }
  .cat-hero .biz-hrs-l2::before { content: ''; }

  /* buttons full-width stacked */
  .biz-actions { flex-direction: column; gap: 8px; }
  .biz-btn { width: 100%; justify-content: center; padding: 8px 16px; }
}

/* ── UPGRADE STRIP — shown below firm card when spot is taken ── */
.upgrade-strip {
  margin-top: 14px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  font-size: .8rem;
  color: var(--text2);
  text-align: center;
  line-height: 1.5;
}
.upgrade-strip a { color: var(--gold); text-decoration: none; }
.upgrade-strip a:hover { text-decoration: underline; }
