/* ==========================================================================
   operator.fyi — Directory Styles
   Design System v3.0 (Operator)
   Barlow + Barlow Condensed | Warm neutral palette | Monochrome CTAs
   Loaded by generated business pages + hub pages
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;500;600;700;800;900&family=Barlow:wght@300;400;500;600&display=swap');

/* ---------- Design Tokens (v3.0 — Operator) ---------- */
:root {
  /* Typography */
  --font-primary: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;

  /* Colors — warm neutral, Operator palette */
  --ink:     #0f0f0f;
  --body:    #1a1a1a;
  --muted:   #888888;
  --border:  rgba(0, 0, 0, 0.10);
  --surface: #e6e2db;
  --white:   #f5f2ed;
  --page-bg: #eeebe4;

  --accent:  #1a1a1a;
  --accent-hover: #333333;
  --success: #008A05;
  --warning: #C13515;

  /* Backward compat aliases */
  --slate:   #1a1a1a;
  --blue:    #1a1a1a;
  --gold:    #888888;

  /* Operator semantic aliases — backgrounds */
  --bg: #eeebe4;
  --bg-base: #eeebe4;
  --bg-card: #f5f2ed;
  --bg-elevated: #f5f2ed;
  --bg-highlight: #e6e2db;
  --bg-invert: #0f0f0f;
  --bg-muted: #e6e2db;

  /* Operator semantic aliases — text */
  --text: #0f0f0f;
  --text-primary: #0f0f0f;
  --text-secondary: #1a1a1a;
  --text-dim: #888888;
  --text-tertiary: #888888;
  --text-invert: #f5f2ed;

  /* Operator semantic aliases — borders */
  --border-default: rgba(0, 0, 0, 0.10);
  --border-hover: rgba(0, 0, 0, 0.20);
  --border-strong: rgba(0, 0, 0, 0.30);

  /* Radius */
  --radius-sm: 3px;
  --radius-md: 3px;
  --radius-lg: 3px;
  --radius-xl: 3px;
  --radius-pill: 3px;

  /* Shadows — minimal */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.07);
  --shadow-xl: 0 8px 24px rgba(0,0,0,0.08);

  /* Spacing (8px grid) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px;

  /* Layout */
  --max-width: 1280px;
  --max-width-wide: 1280px;
  --page-pad: 80px;
  --page-padding: 80px;
  --page-padding-mobile: 24px;
  --transition: 150ms ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-primary);
  color: var(--ink);
  background-color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Type Scale ---------- */
.t-display {
  font-size: 56px; font-weight: 800;
  letter-spacing: -2px; line-height: 1.05;
  color: var(--ink);
}
.t-h1 { font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.3; }
.t-h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.3; }
.t-h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.2px; line-height: 1.3; }
.t-body { font-size: 16px; color: var(--body); line-height: 1.6; }
.t-small { font-size: 14px; color: var(--body); line-height: 1.6; }
.t-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted);
}
.t-mono {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--body); line-height: 1.6;
}

/* ---------- Layout ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--page-pad) 64px; }
.hub-page { max-width: var(--max-width-wide); }
.page-wrap { max-width: 1000px; margin: 0 auto; padding: 0 var(--page-pad); }

/* Niche Hero on hub pages — align with page content and add bottom spacing */
body:has(.hub-page) .niche-hero {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 32px var(--page-pad);
  border-radius: 0;
}
@media (max-width: 768px) {
  body:has(.hub-page) .niche-hero {
    padding: 24px var(--page-padding-mobile);
  }
}

/* ---------- Divider ---------- */
.divider { height: 1px; background: var(--border); margin: var(--sp-8) 0; }

/* ---------- Site Nav ---------- */
/* Nav styles are defined in main.css — directory.css only adds scroll shadow */
.site-nav.nav-scroll {
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* ---------- Compare Nav ---------- */
.compare-nav {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.compare-nav-link { font-size: 14px; font-weight: 500; color: var(--accent); }
.compare-nav-link:hover { color: var(--ink); }

/* ---------- Trust Row ---------- */
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px; margin-top: 16px;
  font-size: 15px; color: var(--body);
}
.trust-row .sep { color: var(--muted); }
.trust-row .verified { color: var(--success); font-weight: 600; }
.trust-row .star { color: var(--accent); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-display);
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: transparent; color: var(--ink);
  border: 1px solid var(--border);
}
.badge-verified  { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.badge-top-rated { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.badge-unclaimed { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.badge-new       { background: transparent; color: var(--muted); border: 1px solid var(--border); }

/* Legacy trust badges */
.trust-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid; white-space: nowrap;
}
.trust-badge.verified { color: var(--ink); background: transparent; border-color: var(--border); }
.trust-badge.checked { color: var(--ink); background: transparent; border-color: var(--border); }
.trust-badge.community { color: var(--ink); background: transparent; border-color: var(--border); }

/* ---------- Rating ---------- */
.rating {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.rating .star { color: var(--accent); }
.rating .count { font-weight: 400; color: var(--muted); }
.rating-text {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-left: 6px;
}

/* ---------- Guarantee Option ---------- */
.guarantee-option {
  background: #E8F5E9; border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 32px; flex-wrap: wrap;
}
.guarantee-title { font-size: 14px; font-weight: 600; color: var(--success); margin-bottom: 2px; }
.guarantee-desc { font-size: 13px; color: var(--body); margin-top: 4px; line-height: 1.5; }
.guarantee-price {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  color: var(--ink); white-space: nowrap;
}

/* ---------- Price Benchmark ---------- */
.price-benchmark {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 20px 24px; margin-bottom: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.price-benchmark-label {
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.price-benchmark-range {
  font-family: var(--font-mono); font-size: 20px;
  font-weight: 500; color: var(--ink); letter-spacing: -0.5px;
}

/* ---------- Review Strip ---------- */
.review-strip {
  display: flex; gap: var(--sp-4); overflow-x: auto;
  margin-bottom: 32px; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none; scrollbar-width: none;
}
.review-strip::-webkit-scrollbar { display: none; }
.review-strip-item {
  flex: 0 0 auto; width: 320px;
  padding: 20px 24px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); background: var(--white);
}
.review-strip-stars { color: var(--accent); font-size: 14px; margin-bottom: 8px; }
.review-strip-text { font-size: 14px; color: var(--body); line-height: 1.6; margin-bottom: 8px; }
.review-strip-author {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px var(--page-pad);
  border-bottom: 1px solid var(--border);
}
body:has(.hub-page) .breadcrumb { max-width: var(--max-width-wide); }

.breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center; list-style: none;
  font-size: 13px; color: var(--muted); line-height: 1.6;
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li:not(:last-child)::after {
  content: "\203A"; margin: 0 8px; color: var(--border); font-size: 14px;
}
.breadcrumb a { color: var(--muted); font-weight: 400; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ---------- Business Header ---------- */
.business-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.business-header h1 {
  font-size: 32px; font-weight: 700; color: var(--ink);
  line-height: 1.1; letter-spacing: -1px; margin-bottom: 16px;
}
.business-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px; font-size: 14px; color: var(--body); line-height: 1.6;
}
.business-meta .rating { display: inline-flex; align-items: center; gap: 2px; }
.phone-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); font-weight: 500; font-size: 14px;
}
.phone-link:hover { color: var(--accent); }
.address {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--body); font-size: 14px;
}

/* ---------- Stars ---------- */
.star { color: var(--border); font-size: 16px; line-height: 1; }
.star.filled { color: var(--gold); }
.star.half {
  background: linear-gradient(90deg, var(--gold) 50%, var(--border) 50%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.rating-large .star { font-size: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-primary); font-size: 16px; font-weight: 600;
  padding: 14px 24px; border-radius: var(--radius-md);
  cursor: pointer; text-decoration: none; border: none;
  transition: all 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--accent); color: var(--white);
  font-family: var(--font-primary); font-size: 16px; font-weight: 600;
  padding: 14px 24px; border-radius: var(--radius-md);
  border: none; cursor: pointer; text-decoration: none;
  transition: all 0.15s ease;
}
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--white); color: var(--ink);
  font-family: var(--font-primary); font-size: 16px; font-weight: 600;
  padding: 14px 24px; border-radius: var(--radius-md);
  border: 1.5px solid var(--ink); cursor: pointer; text-decoration: none;
  transition: all 0.15s ease;
}
.btn-secondary:hover { background: var(--surface); color: var(--ink); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--ink);
  font-family: var(--font-primary); font-size: 14px; font-weight: 500;
  padding: 10px 0; border: none; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--border);
}
.btn-ghost:hover { color: var(--accent); }

.btn-sm { font-size: 14px; padding: 10px 18px; }

/* ---------- Booking CTA ---------- */
.booking-cta {
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 32px;
  margin-bottom: 48px;
}
.cta-label {
  font-size: 12px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 12px;
}
.cta-heading {
  font-size: 22px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 8px;
}
.cta-text {
  color: var(--body); font-size: 16px; line-height: 1.6;
  margin-bottom: 20px; max-width: 480px;
}
.cta-button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--white);
  font-family: var(--font-primary); font-size: 16px; font-weight: 600;
  padding: 14px 24px; border: none; border-radius: var(--radius-md);
  cursor: pointer; transition: all var(--transition);
}
.cta-button:hover { background: var(--accent-hover); }
.cta-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cta-button svg { transition: transform var(--transition); }
.cta-button:hover svg { transform: translateX(2px); }

/* ---------- Section Headings ---------- */
section { margin-bottom: 56px; }
section > h2 {
  font-size: 22px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 20px;
}
/* Airy listing section spacing */
.listing-content section { margin-bottom: 48px; }
.listing-content section > h2,
.listing-content .t-h2 { margin-top: 32px; margin-bottom: 16px; }
.listing-content .t-body { font-size: 16px; line-height: 1.7; }
.listing-content .intro p,
.listing-content .service-area p { font-size: 16px; line-height: 1.7; max-width: none; }
.section-label {
  font-size: 12px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 8px;
}

/* ---------- Section Divider (v2.0 chapter-header replacement) ---------- */
.section-divider,
.chapter-header {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.section-divider .divider,
.chapter-header .divider { flex: 1; height: 1px; background: var(--border); margin: 0; }

/* ---------- Intro ---------- */
.intro { margin-bottom: 56px; }
.intro p {
  font-size: 16px; line-height: 1.6; color: var(--body);
  max-width: 580px;
}
.intro p + p { margin-top: 16px; }

/* ---------- Hub Header ---------- */
.hub-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.hub-header h1 {
  font-size: 32px; font-weight: 700; color: var(--ink);
  line-height: 1.1; letter-spacing: -1px; margin-bottom: 12px;
}
.hub-subtitle {
  color: var(--body); font-size: 16px; line-height: 1.6;
  max-width: 560px;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4);
}
.service-card {
  padding: 28px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card h3 {
  font-size: 16px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.3px; line-height: 1.25; margin-bottom: 8px;
}
.service-card p { color: var(--body); font-size: 14px; line-height: 1.6; }
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Service Area ---------- */
.service-area p {
  font-size: 16px; line-height: 1.6; color: var(--body);
}

/* ---------- Reviews ---------- */
.reviews-summary {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.reviews-count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.reviews-list { border-top: 1px solid var(--border); }
.review-card { padding: 24px 0; border-bottom: 1px solid var(--border); }
.review-card:last-child { border-bottom: none; }
.review-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.review-author { font-weight: 700; color: var(--ink); font-size: 14px; }
.review-rating .star { font-size: 14px; }
.review-text { color: var(--body); font-size: 14px; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-list { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; font-weight: 600; font-size: 16px; color: var(--ink);
  cursor: pointer; list-style: none;
  transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }
/* Plus icon handled by inline SVG .faq-icon */
.faq-item summary:hover { background: var(--surface); }
.faq-answer { padding: 0 24px 18px; }
.faq-answer p { color: var(--body); font-size: 15px; line-height: 1.6; }

/* ---------- Cards (v2.0 generic) ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.card h3 {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.4px; line-height: 1.2;
  color: var(--ink); margin-bottom: 12px;
}
.card p { font-size: 14px; color: var(--body); line-height: 1.6; }

/* ---------- Card Surface ---------- */
.card-surface {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ---------- Business Grid (Hub Pages) ---------- */
.business-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-4);
}
.business-card {
  padding: 24px;
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.business-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { flex: 1; }
.card-title {
  font-size: 18px; font-weight: 600; letter-spacing: -0.4px;
  line-height: 1.25; margin-bottom: 8px;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-rating { margin-bottom: 8px; }
.card-rating .star { font-size: 14px; }
.card-phone {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent); margin-bottom: 12px;
}
.card-services {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border);
}
.service-tag {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  background: var(--surface); padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.card-footer {
  padding-top: 16px; border-top: 1px solid var(--border); margin-top: 16px;
}
.card-link {
  font-size: 14px; font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px;
}
.card-link:hover { color: var(--ink); }

/* ---------- Grids (v2.0 utilities) ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); }

/* ---------- Photo Grid (v2.0 Airbnb-style) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  position: relative;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.photo-grid-main {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.photo-grid-main img,
.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.photo-grid-main img:hover,
.photo-grid-item img:hover { opacity: 0.92; }
.photo-grid-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
/* 2 photos: main full-width, 1 thumbnail */
/* 3+ photos: main full-width, thumbnails in 2-col grid */
/* 5 photos (Airbnb layout): main left half, 4 thumbnails right */
.photo-grid:has(.photo-grid-item:nth-child(4)) {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.photo-grid:has(.photo-grid-item:nth-child(4)) .photo-grid-main {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  aspect-ratio: 1 / 1;
}
.photo-grid:has(.photo-grid-item:nth-child(4)) .photo-grid-item {
  aspect-ratio: 1 / 1;
}
.photo-grid-show-all {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  font-family: var(--font-primary);
}
.photo-grid-show-all:hover {
  background: var(--surface);
}
/* Hide grey photo placeholder — pages look cleaner without it */
.photo-grid-placeholder {
  display: none !important;
}

/* Single photo — clean full-width cover */
.photo-grid--single {
  display: block;
  max-width: 1000px;
  margin: 0 auto 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.photo-grid--single img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---------- Listing Layout (v2.0 two-column) ---------- */
.listing-layout {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 40px; align-items: start;
  max-width: 1000px; margin: 0 auto;
  padding: 0 var(--page-pad);
}
.listing-content { min-width: 0; font-size: 16px; line-height: 1.7; }
.listing-panel {
  position: sticky; top: 80px;
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 24px;
}

/* ---------- Listing Card (v2.0 hub/search) ---------- */
.listing-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.listing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.listing-card-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.listing-card-body { padding: 12px; }
.listing-card-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; background: var(--surface); }
.footer-content {
  max-width: var(--max-width); margin: 0 auto;
  padding: 24px var(--page-pad);
  display: flex; justify-content: space-between; align-items: center;
}
body:has(.hub-page) .footer-content { max-width: var(--max-width-wide); }

.footer-wordmark {
  font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.5px;
}
.footer-wordmark a { color: var(--accent); text-decoration: none; }
.footer-meta {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  text-align: right; line-height: 1.9;
}
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--accent); }

/* ---------- Cover Photo ---------- */
.biz-cover { width:100%; height:320px; position:relative; overflow:hidden; background:var(--surface); border-radius: var(--radius-lg); }
.biz-cover img { width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.biz-cover-placeholder { width:100%; height:100%; background:repeating-linear-gradient(-45deg,var(--surface),var(--surface) 10px,#EDEEF1 10px,#EDEEF1 20px); display:flex; align-items:center; justify-content:center; border-radius: var(--radius-lg); }
.biz-cover-placeholder-text { font-family:var(--font-mono); font-size:11px; color:var(--muted); letter-spacing:.08em; text-transform:uppercase; }
@media (max-width:768px) { .biz-cover { height:220px; } }

/* ---------- Photo Gallery ---------- */
.photo-gallery { display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; background:var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.photo-gallery::-webkit-scrollbar { display:none; }
.photo-gallery-item { flex-shrink:0; width:200px; height:140px; overflow:hidden; cursor:pointer; position:relative; }
.photo-gallery-item img { width:100%; height:100%; object-fit:cover; display:block; transition:opacity 0.2s; }
.photo-gallery-item:hover img { opacity:0.85; }
@media (max-width:768px) { .photo-gallery-item { width:160px; height:110px; } }

/* ---------- Two-Column Hero ---------- */
.biz-hero-layout { display:grid; grid-template-columns:1fr 380px; gap: 0; }
.biz-hero-main { padding:48px 56px; }
.biz-hero-sidebar { padding:32px 28px; background:var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); display:flex; flex-direction:column; gap:16px; }
.biz-sidebar-reassure { font-size:12px; color:var(--muted); text-align:center; line-height:1.5; }
.biz-sidebar-cta { display:flex; flex-direction:column; gap:10px; }
.biz-sidebar-stat { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); }
.biz-sidebar-stat:last-child { border-bottom:none; }
.biz-sidebar-stat-num { font-family:var(--font-mono); font-size:20px; font-weight:500; color:var(--ink); min-width:60px; }
.biz-sidebar-stat-label { font-size:12px; color:var(--body); line-height:1.4; }
@media (max-width:900px) {
  .biz-hero-layout { grid-template-columns:1fr; }
  .biz-hero-main { padding:36px 24px; }
  .biz-hero-sidebar { padding:24px; }
}

/* ---------- Sticky CTA ---------- */
.sticky-cta { position:fixed; bottom:0; left:0; right:0; background:var(--white); box-shadow: var(--shadow-xl); padding:14px 56px; display:flex; align-items:center; justify-content:space-between; gap:16px; z-index:100; transform:translateY(100%); transition:transform 0.3s ease; flex-wrap:wrap; }
.sticky-cta.visible { transform:translateY(0); }
.sticky-cta-name { font-size:15px; font-weight:700; letter-spacing:-0.3px; color:var(--ink); }
.sticky-cta-sub { font-family:var(--font-mono); font-size:10px; color:var(--muted); }
.sticky-cta-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
/* On mobile, hide the desktop sticky CTA entirely — mobile-cta-bar replaces it */
@media (max-width: 768px) {
  .sticky-cta { display: none !important; }
}

/* ---------- Mobile CTA Bar (listing pages) ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  gap: 12px;
  z-index: 90;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
    /* Sit above the mobile tab bar (56px + safe area) */
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    z-index: 199;
  }
  /* Body padding accounts for BOTH tab bar + CTA bar */
  body:has(.mobile-cta-bar) {
    padding-bottom: 128px !important;
  }
}
.mobile-cta-call,
.mobile-cta-quote {
  flex: 1;
  min-height: 48px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  transition: all 0.15s ease;
}
.mobile-cta-call {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.mobile-cta-call:hover { border-color: var(--ink); }
.mobile-cta-quote {
  background: var(--accent);
  color: #fff;
}
.mobile-cta-quote:hover { background: var(--accent-hover); }

/* ---------- Featured Review ---------- */
.featured-review { padding:36px 32px; background:var(--surface); border-radius: var(--radius-lg); border-left:3px solid var(--gold); position:relative; margin-bottom:24px; }
.featured-review::before { content:'\201C'; position:absolute; top:12px; left:20px; font-size:56px; font-weight:700; color:var(--gold); opacity:0.25; line-height:1; font-family:Georgia,serif; }
.featured-review-text { font-size:17px; font-weight:500; letter-spacing:-0.3px; color:var(--ink); line-height:1.55; margin-bottom:16px; padding-left:8px; }
.featured-review-author { font-family:var(--font-mono); font-size:11px; color:var(--muted); display:flex; align-items:center; gap:10px; padding-left:8px; }
.featured-review-stars { color:var(--gold); }

/* ---------- Service Map ---------- */
.service-map { width:100%; height:300px; border-radius: var(--radius-lg); overflow:hidden; margin-bottom:16px; box-shadow: var(--shadow-sm); }
.service-map iframe { width:100%; height:100%; border:none; display:block; }
@media (max-width:768px) { .service-map { height:220px; } }

/* ---------- Visual Stats ---------- */
.stat-visual-grid { display:grid; grid-template-columns:repeat(3,1fr); gap: var(--sp-4); }
.stat-visual-cell { padding:28px 24px; text-align:center; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.stat-visual-number { font-family:var(--font-mono); font-size:40px; font-weight:500; color:var(--ink); letter-spacing:-2px; line-height:1; margin-bottom:8px; }
.stat-visual-label { font-size:11px; font-weight:600; letter-spacing:.02em; text-transform:uppercase; color:var(--muted); }
.stat-visual-sub { font-family:var(--font-mono); font-size:10px; color:var(--muted); margin-top:4px; }
@media (max-width:768px) {
  .stat-visual-grid { grid-template-columns:1fr; }
  .stat-visual-number { font-size:32px; }
}

/* ---------- Mobile Hero CTA ---------- */
.mobile-hero-cta {
  display: none;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .mobile-hero-cta { display: block; }
  .mobile-cta-btn { display: flex; }
}

/* ---------- Service Card Header ---------- */
.service-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.service-card-header h3 { margin-bottom: 0; }
.service-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--body);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .listing-layout {
    grid-template-columns: 1fr; gap: 0;
    padding: 0 var(--page-padding-mobile);
  }
  .listing-panel {
    position: fixed; bottom: 0; left: 0; right: 0;
    top: auto; border-radius: 0;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    padding: 16px var(--page-padding-mobile);
    display: flex; align-items: center;
    justify-content: space-between; z-index: 100;
  }
}
/* On mobile, hide the listing panel bar when the mobile CTA bar is visible */
@media (max-width: 768px) {
  .listing-panel {
    position: static;
    display: block;
    box-shadow: none;
    border-top: 1px solid var(--border);
    padding: 24px var(--page-padding-mobile);
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  :root { --page-pad: 24px; --page-padding: 24px; }
  .business-header h1, .hub-header h1 { font-size: 26px; letter-spacing: -1px; }
  .booking-cta { padding: 24px 20px; }
  .footer-content { flex-direction: column; text-align: center; gap: 12px; }
  .footer-meta { text-align: center; }
  .t-display { font-size: 36px; letter-spacing: -1px; }
  .t-h1 { font-size: 26px; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 280px;
  }
  .photo-grid-main { grid-row: auto; grid-column: auto; }
  .photo-grid-item { display: none; }
}

@media (min-width: 768px) {
  .business-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Print ---------- */
@media print {
  .booking-cta, .breadcrumb, .site-footer { display: none; }
  body { font-size: 12pt; color: #000; }
  .container { max-width: 100%; padding: 0; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- High Contrast ---------- */
@media (prefers-contrast: high) {
  :root { --border: #94a3b8; --muted: #475569; }
  .service-card, .business-card, .review-card, .faq-list, .booking-cta { box-shadow: 0 0 0 2px var(--border); }
}
