/* ============================================================
 * [LC-BS-C00] THEME TOKENS (PUBLIC BUSINESS PAGES)
 *   - Scoped to .business-show so it doesn't affect whole site
 *   - Variants:
 *       biz-theme-default
 *       biz-theme-dark
 *       biz-theme-ocean
 *       biz-theme-warm
 * ----------------------------------------------------------*/

/* Base/fallback for any business page (also used when theme is invalid) */
.business-show {
  --site-bg:         #050816;
  --site-text:       #e5e7eb;
  --site-muted:      #9ca3af;
  --site-card-bg:    #020617;
  --site-border:     #111827;
  --site-accent:     #4da3ff;
  --site-accent-soft:rgba(77,163,255,0.18);
}

/* Default theme (keeps current dark style) */
.business-show.biz-theme-default {
  /* same as base; you can later swap this to a lighter look if you want */
}

/* Dark / Night theme (slightly deeper contrast) */
.business-show.biz-theme-dark {
  --site-bg:         #020617;
  --site-text:       #e5e7eb;
  --site-muted:      #9ca3af;
  --site-card-bg:    #020617;
  --site-border:     #0b1120;
  --site-accent:     #60a5fa;
  --site-accent-soft:rgba(96,165,250,0.22);
}

/* Ocean Blue theme */
.business-show.biz-theme-ocean {
  --site-bg:         #020617;
  --site-text:       #e5e7eb;
  --site-muted:      #9ca3af;
  --site-card-bg:    #02131f;
  --site-border:     #0f172a;
  --site-accent:     #0ea5e9;
  --site-accent-soft:rgba(14,165,233,0.22);
}

/* Warm Orange theme */
.business-show.biz-theme-warm {
  --site-bg:         #111827;
  --site-text:       #f9fafb;
  --site-muted:      #e5e7eb;
  --site-card-bg:    #171717;
  --site-border:     #292524;
  --site-accent:     #f97316;
  --site-accent-soft:rgba(249,115,22,0.22);
}

/* ============================================================
 * [LC-BS-C00B] SITE LIGHT THEME OVERRIDES
 *   When the global site theme is light, override the business
 *   page tokens so everything renders in light colors.
 *   The biz-theme-* variants (premium) still apply on dark.
 * ----------------------------------------------------------*/
body.site-theme-light .business-show,
body.site-theme-light .business-show.biz-theme-default {
  --site-bg:         #f9fafb;
  --site-text:       #111827;
  --site-muted:      #6b7280;
  --site-card-bg:    #ffffff;
  --site-border:     #e5e7eb;
  --site-accent:     #2563eb;
  --site-accent-soft:rgba(37,99,235,0.1);
}

/* ============================================================
 * [LC-BS-C01] PAGE BASE (SCOPED TO BUSINESS PAGE)
 * ----------------------------------------------------------*/

/* Only color the business page wrapper, not the whole site */
.business-show {
  background: var(--site-bg, #050816);
  color: var(--site-text, #e5e7eb);
}

.pf-divider {
  height:16px;
}

/* Container helper if not already global */
.container {
  max-width:1120px;
  margin:0 auto;
  padding:0 16px;
}

/* ============================================================
 * Business hero with cover image
 * Only this strip at the top should use the cover.
 * ----------------------------------------------------------*/

.pf-hero {
  position: relative;
  padding: 40px 0 40px;
  min-height: 420px;       /* taller cover */
  background-color: #111827; /* fallback when no cover */

  /* Cover only on this strip */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  overflow: hidden;
}

/* Dark gradient so text stays readable */
.pf-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.65)
  );
  pointer-events: none;
}

/* Inner hero content: stick to bottom-left */
.pf-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: inherit;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Title/address/posted block */
.pf-hero__body {
  position: relative;
  margin: 0;
  margin-left: 40px;
  max-width: 70%;
  text-align: left;
  color: #f9fafb;

  /* kill any old centering rules */
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

/* If the old markup still uses this, it will align in the same lower-left spot */
.biz-cover-text {
  position: absolute;
  left: 40px !important;
  bottom: 90px !important;
  top: auto !important;
  transform: none !important;
  text-align: left !important;
  max-width: 80%;
  color: #fff;
}

/* Headline + meta in hero */
.pf-title {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.pf-loc {
  margin: 0 0 4px 0;
  font-size: 18px;
  opacity: 0.9;
}

.pf-hero-posted {
  margin-top: 8px;
  font-size: 15px;
  opacity: 0.9;
}

.pf-meta {
  margin-top: 6px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.pf-meta span + span {
  margin-left: 6px;
}

/* Pills/buttons row */
.pf-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* New meta strip under the hero */
.pf-hero-meta {
  background: var(--site-bg, #050816);
  padding: 8px 0 12px;
}

.pf-hero-meta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
}

/* Make sure sections below don't inherit the cover */
.pf-toolbar,
.pf-tabsbar,
.pf-card,
.site-footer,
footer {
  position: relative;
  z-index: 1;
  background: transparent; /* they sit on normal page background */
}

/* ============================================================
 * [LC-BS-C03] BADGES & PILLS
 * ----------------------------------------------------------*/
.pf-badge {
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:2px 8px;
  border-radius:999px;
  font-size:0.75rem;
  line-height:1.4;
  border:1px solid rgba(255,255,255,0.18);
}

.pf-badge--premium {
  background:rgba(250,204,21,0.1);
  color:#facc15;
  border-color:rgba(250,204,21,0.5);
}

.pf-badge--ok {
  background:rgba(34,197,94,0.12);
  color:#4ade80;
  border-color:rgba(34,197,94,0.5);
}

/* Light theme badge adjustments */
body.site-theme-light .pf-badge {
  border-color: rgba(0,0,0,0.15);
}
body.site-theme-light .pf-badge--premium {
  background:rgba(250,204,21,0.15);
  color:#a16207;
  border-color:rgba(202,138,4,0.4);
}
body.site-theme-light .pf-badge--ok {
  background:rgba(34,197,94,0.1);
  color:#15803d;
  border-color:rgba(34,197,94,0.4);
}

.pf-pill {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.5);
  background:rgba(15,23,42,0.8);
  color:var(--site-text, #e5e7eb);
  font-size:0.85rem;
  text-decoration:none;
  transition:background .15s ease,border-color .15s ease,transform .08s ease;
}

.pf-pill:hover {
  background:rgba(15,23,42,1);
  border-color:var(--site-accent, #4f46e5);
}

.pf-pill--primary {
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
}

.pf-pill--primary:hover {
  background:#1d4ed8;
}

.pf-pill--upgrade {
  background:#f97316;
  border-color:#f97316;
  color:#fff;
}

/* Light theme pill adjustments */
body.site-theme-light .pf-pill {
  background: #ffffff;
  border-color: #d1d5db;
  color: #374151;
}
body.site-theme-light .pf-pill:hover {
  background: #f3f4f6;
  border-color: #2563eb;
  color: #2563eb;
}
body.site-theme-light .pf-pill--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
body.site-theme-light .pf-pill--primary:hover {
  background: #1d4ed8;
}

/* little wrapper we render only when the upgrade link exists */
.pf-actions--upgrade {
  margin-left:8px;
}

/* ============================================================
 * [LC-BS-C04] TOOLBAR (PRINT + FAVORITES)
 * ----------------------------------------------------------*/
.pf-toolbar {
  border-top:1px solid var(--site-border, #111827);
  border-bottom:1px solid var(--site-border, #111827);
  background:var(--site-card-bg, #020617);
}

.pf-toolbar__row {
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 0;
  font-size:0.85rem;
}

.pf-tool {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(75,85,99,0.9);
  background:var(--site-card-bg, #020617);
  color:var(--site-text, #e5e7eb);
  cursor:pointer;
  text-decoration:none;
}

body.site-theme-light .pf-tool {
  border-color: #d1d5db;
}

.pf-tool--fav.is-faved {
  background:rgba(34,197,94,0.12);
  border-color:#16a34a;
}

/* ============================================================
 * [LC-BS-C05] TABS + PANELS
 * ----------------------------------------------------------*/
.pf-tabsbar {
  position:sticky;
  top:0;
  z-index:10;
  background:var(--site-card-bg, #020617);
  border-bottom:1px solid var(--site-border, #111827);
}

.pf-tabs {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  padding:10px 0;
}

.pf-tab {
  border:none;
  background:transparent;
  color:var(--site-muted, #9ca3af);
  font-size:0.9rem;
  padding:6px 12px;
  border-radius:999px;
  cursor:pointer;
}

.pf-tab.is-active {
  background:#111827;
  color:var(--site-text, #e5e7eb);
}

/* Light theme active tab */
body.site-theme-light .pf-tab.is-active {
  background: #e5e7eb;
  color: #111827;
}

/* main card that holds all tab panels */
.pf-card {
  max-width: 1220px;
  margin: 20px auto 32px;
  padding: 0 16px;
}

/* each tab content wrapper (we already toggle .is-active via JS) */
.pf-panel {
  display:none;
}

.pf-panel.is-active {
  display:block;
}

/* ============================================================
 * [LC-BS-C06] GENERIC CARDS
 * ----------------------------------------------------------*/
.biz-card {
  background:var(--site-card-bg, #020617);
  border-radius:16px;
  box-shadow:0 18px 45px rgba(0,0,0,0.6);
  border:1px solid var(--site-border, #111827);
  margin-bottom:18px;
}

body.site-theme-light .biz-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.biz-card .card-body {
  padding:20px 20px 22px;
}

/* info grid (left table + right about) */
.pf-info-grid {
  display:grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap:20px;
}

.pf-info-row {
  display:flex;
  align-items:flex-start;
  margin-bottom:8px;
  font-size:0.9rem;
}

.pf-info-key {
  width:120px;
  flex:0 0 auto;
  color:var(--site-muted, #9ca3af);
}

.pf-info-val {
  flex:1;
}

.pf-info-val a {
  color: var(--site-accent, #4da3ff);
  text-decoration: none;
}
.pf-info-val a:hover {
  text-decoration: underline;
}

.pf-info-about h3 {
  font-size:1rem;
  margin:0 0 8px;
}

.pf-about-box {
  padding:12px 14px;
  border-radius:12px;
  background:var(--site-bg, #050816);
  border:1px solid var(--site-border, #111827);
  min-height:80px;
}

/* hours table */
.hours-table {
  width:100%;
  border-collapse:collapse;
  font-size:0.9rem;
}

.hours-table .day {
  padding:6px 10px 6px 0;
  color:var(--site-muted, #9ca3af);
  white-space:nowrap;
}

.hours-table .time {
  padding:6px 0;
}

.hours-table .time.closed {
  color:#f97316;
}

/* contact rows */
.contact-row {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:10px;
  font-size:0.9rem;
}

.contact-row .label {
  width:90px;
  flex:0 0 auto;
  color:var(--site-muted, #9ca3af);
}

.contact-row a {
  color: var(--site-accent, #4da3ff);
  text-decoration: none;
}
.contact-row a:hover {
  text-decoration: underline;
}

/* ============================================================
 * [LC-BS-C07] REVIEWS
 * ----------------------------------------------------------*/
.reviews-list {
  display:flex;
  flex-direction:column;
  gap:16px;
}

.review-item {
  padding-bottom:14px;
  border-bottom:1px solid var(--site-border, #111827);
}

.review-head {
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:0.9rem;
}

.review-meta {
  font-size:0.8rem;
  color:var(--site-muted, #9ca3af);
  margin:4px 0 6px;
}

.review-body {
  font-size:0.9rem;
}

/* stars */
.stars-full,
.stars-half,
.stars-dim {
  font-size:0.95rem;
  margin-right:2px;
}

.stars-full { color:#facc15; }
.stars-half { color:#fde68a; }
.stars-dim  { color:#4b5563; }

body.site-theme-light .stars-dim { color: #d1d5db; }

/* replies */
.review-replies {
  list-style:none;
  padding-left:0;
  margin:8px 0 0;
}

.review-reply {
  margin-top:6px;
  padding:8px 10px;
  border-radius:10px;
  background:var(--site-card-bg, #020617);
  border:1px solid var(--site-border, #111827);
  font-size:0.85rem;
}

.review-reply--owner {
  border-color:#22c55e;
}

.review-reply-meta {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  margin-bottom:4px;
}

.badge-owner {
  padding:2px 6px;
  border-radius:999px;
  background:#22c55e;
  color:#022c22;
  font-size:0.7rem;
}

/* review forms */
.review-form textarea,
.review-reply-form textarea,
.report-form textarea {
  width:100%;
  min-height:80px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--site-border, #111827);
  background:var(--site-card-bg, #020617);
  color:var(--site-text, #e5e7eb);
  font-size:0.9rem;
}

/* Light theme form inputs */
body.site-theme-light .review-form textarea,
body.site-theme-light .review-reply-form textarea,
body.site-theme-light .report-form textarea,
body.site-theme-light .report-form select,
body.site-theme-light .ownership-claim-form select,
body.site-theme-light .ownership-claim-form textarea {
  background: #ffffff;
  border-color: #d1d5db;
  color: #111827;
}

.review-form button,
.review-reply-form button,
.report-form button,
.ownership-claim-form button {
  margin-top:8px;
  padding:8px 14px;
  border-radius:999px;
  border:none;
  background:#2563eb;
  color:#f9fafb;
  font-size:0.9rem;
  cursor:pointer;
}

.review-form button:hover,
.review-reply-form button:hover,
.report-form button:hover,
.ownership-claim-form button:hover {
  background:#1d4ed8;
}

/* report/ownership forms */
.ownership-claim-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.report-form select,
.ownership-claim-form select {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--site-border, #334155);
  background: var(--site-card-bg, #1e293b);
  color: var(--site-text, #e5e7eb);
  font-size: 0.95rem;
  box-sizing: border-box;
  appearance: auto;
}

.ownership-claim-form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--site-border, #334155);
  background: var(--site-card-bg, #1e293b);
  color: var(--site-text, #e5e7eb);
  font-size: 0.95rem;
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

body.site-theme-light .ownership-claim-form select,
body.site-theme-light .ownership-claim-form textarea {
  background: #f8fafc;
  color: #1e293b;
  border-color: #cbd5e1;
}

body.site-theme-light .ownership-claim-form select:focus,
body.site-theme-light .ownership-claim-form textarea:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* form rows */
.form-row {
  margin-bottom: 12px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--site-muted, #9ca3af);
}

body.site-theme-light .form-row label {
  color: #374151;
}

.form-actions {
  margin-top: 12px;
}

.form-note {
  font-size: 0.82rem;
  margin-top: 8px;
}

/* star rating input */
.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 2px;
}
.star-rating input { display: none; }
.star-rating label {
  font-size: 1.5rem;
  cursor: pointer;
  color: #4b5563;
  transition: color 0.1s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #facc15;
}

/* breadcrumbs */
.crumbs {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--site-muted, #9ca3af);
}
.crumbs a {
  color: var(--site-accent, #4da3ff);
  text-decoration: none;
}
.crumbs a:hover { text-decoration: underline; }

/* muted helper */
.muted { color: var(--site-muted, #9ca3af); }

/* soft hr */
hr.soft {
  border: 0;
  height: 1px;
  background: var(--site-border, #111827);
  margin: 16px 0;
}

/* ============================================================
 * [LC-BS-C08] RESPONSIVE
 * ----------------------------------------------------------*/
@media (max-width: 768px) {
  .pf-hero {
    padding: 32px 0 36px;
    min-height: 320px;
  }

  .pf-hero__body {
    margin-left: 16px;
    max-width: 100%;
  }

  .pf-hero-meta__row {
    align-items: flex-start;
  }

  .pf-info-grid {
    grid-template-columns: 1fr;
  }

  .pf-toolbar__row,
  .pf-actions {
    flex-wrap:wrap;
  }

  .pf-title {
    font-size: 28px;
  }
}

/* ============================================================
 * [LC-BS-C09] TWO-COLUMN LAYOUT (PointFinder-style)
 * ----------------------------------------------------------*/
.pf-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  padding: 24px 0 48px;
  align-items: start;
}

.pf-main {
  min-width: 0; /* prevent grid blowout */
}

.pf-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Main cover image (inline, PointFinder-style) */
.pf-main-cover {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  margin-left: 12px;
  margin-right: 12px;
}

.pf-main-cover img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

/* When the cover is the default site logo, contain it instead of cropping */
.pf-main-cover.is-default-cover {
  background: #1a2332;
}
.pf-main-cover.is-default-cover img {
  object-fit: contain;
  max-height: 200px;
  padding: 20px;
}

.pf-main-cover__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #22c55e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Toolbar inside main column */
.pf-layout .pf-toolbar {
  border: 1px solid var(--site-border, #111827);
  border-radius: 10px;
  margin-bottom: 16px;
  background: var(--site-card-bg, #020617);
}

/* Tabs inside main column */
.pf-layout .pf-tabsbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--site-card-bg, #020617);
  border: 1px solid var(--site-border, #111827);
  border-bottom: 2px solid var(--site-border, #111827);
  border-radius: 10px 10px 0 0;
  padding: 0 8px;
}

body.site-theme-light .pf-layout .pf-tabsbar {
  border-bottom-color: #d1d5db;
}

.pf-layout .pf-tabs {
  padding: 10px 0;
}

.pf-layout .pf-tab {
  font-size: 0.88rem;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -2px;
}

.pf-layout .pf-tab.is-active {
  background: transparent;
  color: var(--site-accent, #4da3ff);
  border-bottom-color: var(--site-accent, #4da3ff);
}

body.site-theme-light .pf-layout .pf-tab.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: transparent;
}

/* Panels inside main column */
.pf-panels {
  background: var(--site-card-bg, #020617);
  border: 1px solid var(--site-border, #111827);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 20px;
}

body.site-theme-light .pf-panels {
  background: #ffffff;
}

/* ============================================================
 * [LC-BS-C10] SIDEBAR CARDS
 * ----------------------------------------------------------*/
.pf-sb-card {
  background: var(--site-card-bg, #020617);
  border: 1px solid var(--site-border, #111827);
  border-radius: 12px;
  padding: 18px;
}

body.site-theme-light .pf-sb-card {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.pf-sb-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--site-accent, #4da3ff);
  color: var(--site-text, #e5e7eb);
}

body.site-theme-light .pf-sb-title {
  border-bottom-color: #2563eb;
}

/* Contact rows */
.pf-sb-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
  word-break: break-word;
}

.pf-sb-icon {
  flex: 0 0 auto;
  font-size: 1rem;
}

.pf-sb-row a {
  color: var(--site-accent, #4da3ff);
  text-decoration: none;
}
.pf-sb-row a:hover {
  text-decoration: underline;
}

/* Action buttons */
.pf-sb-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pf-sb-btn {
  display: block;
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--site-border, #111827);
  background: var(--site-card-bg, #020617);
  color: var(--site-text, #e5e7eb);
  transition: background 0.15s, border-color 0.15s;
}
.pf-sb-btn:hover {
  border-color: var(--site-accent, #4da3ff);
}

.pf-sb-btn--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.pf-sb-btn--primary:hover {
  background: #1d4ed8;
}

.pf-sb-btn--upgrade {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}
.pf-sb-btn--upgrade:hover {
  background: #ea580c;
}

body.site-theme-light .pf-sb-btn {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}
body.site-theme-light .pf-sb-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}
body.site-theme-light .pf-sb-btn--primary {
  background: #2563eb;
  color: #fff;
}

/* Owner */
.pf-sb-owner {
  font-weight: 600;
  margin-bottom: 6px;
}

.pf-sb-link {
  color: var(--site-accent, #4da3ff);
  text-decoration: none;
  font-size: 0.85rem;
}
.pf-sb-link:hover {
  text-decoration: underline;
}

/* Hours table in sidebar */
.pf-sb-hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.pf-sb-hours td {
  padding: 4px 0;
}

.pf-sb-hours-day {
  color: var(--site-muted, #9ca3af);
  white-space: nowrap;
  padding-right: 12px;
}

.pf-sb-hours-closed {
  color: #f97316;
}

/* Rating in sidebar */
.pf-sb-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pf-sb-rating-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--site-accent, #4da3ff);
}

.pf-sb-rating-count {
  font-size: 0.82rem;
  color: var(--site-muted, #9ca3af);
}

/* ============================================================
 * [LC-BS-C11] RESPONSIVE – 2-column collapses to 1
 * ----------------------------------------------------------*/
@media (max-width: 900px) {
  .pf-layout {
    grid-template-columns: 1fr;
  }

  .pf-sidebar {
    order: 2;
  }
}

@media (max-width: 768px) {
  .pf-layout {
    padding: 16px 0 32px;
    gap: 16px;
  }

  .pf-main-cover img {
    max-height: 260px;
  }
}

/* ============================================================
 * [LC-BS-C12] OPEN / CLOSED BADGE
 * ----------------------------------------------------------*/
.pf-open-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
  line-height: 1.3;
}

.pf-open-badge--sm {
  padding: 3px 10px;
  font-size: 0.78rem;
  margin-top: 0;
}

.pf-open-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Open = green */
.pf-open-badge--open {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.4);
}
.pf-open-badge--open .pf-open-dot {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.6);
  animation: pf-pulse-green 2s infinite;
}

/* Closed = red */
.pf-open-badge--closed {
  background: rgba(239,68,68,0.12);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.35);
}
.pf-open-badge--closed .pf-open-dot {
  background: #ef4444;
}

.pf-open-extra {
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.82rem;
}

@keyframes pf-pulse-green {
  0%, 100% { box-shadow: 0 0 6px rgba(34,197,94,0.6); }
  50%      { box-shadow: 0 0 12px rgba(34,197,94,0.9); }
}

/* Light theme overrides for badge */
body.site-theme-light .pf-open-badge--open {
  background: #f0fdf4;
  color: #166534;
  border-color: #86efac;
}
body.site-theme-light .pf-open-badge--open .pf-open-dot {
  background: #16a34a;
  box-shadow: 0 0 6px rgba(22,163,106,0.5);
}
body.site-theme-light .pf-open-badge--closed {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
body.site-theme-light .pf-open-badge--closed .pf-open-dot {
  background: #dc2626;
}

/* ── Sidebar hours header (title + badge inline) ── */
.pf-sb-hours-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pf-sb-hours-header .pf-sb-title {
  margin-bottom: 0;
}

.pf-sb-hours-note {
  font-size: 0.82rem;
  color: var(--site-muted, #9ca3af);
  margin: 0 0 10px;
}

/* Today row highlight */
.pf-sb-hours-today {
  background: var(--site-accent-soft, rgba(77,163,255,0.10));
  border-radius: 6px;
}

.pf-sb-hours-today td {
  font-weight: 600;
  color: var(--site-accent, #4da3ff);
}

.pf-today-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--site-accent, #4da3ff);
  margin-left: 4px;
  vertical-align: middle;
}

body.site-theme-light .pf-sb-hours-today td {
  color: #2563eb;
}

body.site-theme-light .pf-today-dot {
  background: #2563eb;
}

/* Closed text in hours table */
.pf-sb-hours-closed {
  color: #f87171;
}
body.site-theme-light .pf-sb-hours-closed {
  color: #dc2626;
}

/* ── Hero text always white (dark bg + scrim overlay) ── */
.pf-hero .pf-title,
.pf-hero .pf-loc,
.pf-hero .pf-hero-posted,
.pf-hero .pf-meta,
.pf-hero .pf-hero__body,
.pf-hero .pf-hero__body * {
  color: #ffffff !important;
}

/* Default cover (no image): use a rich gradient instead of plain dark */
.pf-hero.default-cover {
  background-color: #0f172a;
  background-image: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f2d40 100%);
}

.pf-hero.default-cover .pf-hero__scrim {
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.5));
}

/* ── Edit button in toolbar ── */
.pf-tool--edit {
  border-color: rgba(99,102,241,0.6);
  color: #a5b4fc;
}
.pf-tool--edit:hover {
  background: rgba(99,102,241,0.12);
  border-color: #6366f1;
  color: #c7d2fe;
}
body.site-theme-light .pf-tool--edit {
  border-color: #6366f1;
  color: #4f46e5;
}
body.site-theme-light .pf-tool--edit:hover {
  background: #eef2ff;
  color: #3730a3;
}
.pf-tool--boost {
  border-color: rgba(245,158,11,0.6);
  color: #fcd34d;
  text-decoration: none;
}
.pf-tool--boost:hover {
  background: rgba(245,158,11,0.12);
  border-color: #f59e0b;
  color: #fde68a;
}
body.site-theme-light .pf-tool--boost {
  border-color: #d97706;
  color: #92400e;
}
body.site-theme-light .pf-tool--boost:hover {
  background: #fffbeb;
  color: #78350f;
}
.pf-tool--featured-on {
  border-color: rgba(245,158,11,0.4);
  color: #f59e0b;
  background: rgba(245,158,11,0.08);
  cursor: default;
  font-size: .78rem;
}
body.site-theme-light .pf-tool--featured-on {
  border-color: #d97706;
  color: #92400e;
  background: #fffbeb;
}
