/* ==========================================================================
   operator.fyi — Design System v4.1
   Share Tech Mono (display/mono) + Inter (body) | Cream bg, monochrome, editorial
   Light mode only — no dark mode
   ========================================================================== */

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

/* ─── DESIGN TOKENS ────────────────────────────────── */
:root {
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Share Tech Mono', monospace;
  --font-mono: 'Share Tech Mono', monospace;

  /* Colors — warm cream/linen monochrome palette */
  --ink:     #0f0f0f;
  --body:    #1a1a1a;
  --muted:   #888888;
  --border:  rgba(0, 0, 0, 0.10);
  --surface: #e6e2db;
  --white:   #f5f2ed;
  --page-bg: #eeebe4;
  --hero-fade: rgba(238, 235, 228, 1);

  --accent:  #1a1a1a;
  --accent-hover: #333333;
  --success: #1a5c2e;
  --warning: #7a1a1a;
  --blue:    #1a1a1a;
  --gold:    #1a1a1a;

  /* Shadows — minimal, flat */
  --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 16px rgba(0,0,0,0.08);
  --shadow-xl: 0 8px 32px rgba(0,0,0,0.10);

  /* 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;
  --sp-24: 96px;

  /* Radius — sharp, editorial */
  --radius-sm: 3px;
  --radius-md: 3px;
  --radius-lg: 3px;
  --radius-xl: 3px;
  --radius-pill: 3px;

  /* Layout */
  --max-width: 1200px;
  --narrow-width: 680px;
  --page-padding: 48px;
  --page-padding-mobile: 20px;

  /* Operator aliases (used by operator.css op-* components) */
  --bg: #eeebe4;
  --bg-base: #eeebe4;
  --bg-card: #ffffff;
  --bg-surface: #e6e2db;
  --bg-elevated: #f5f2ed;
  --bg-highlight: #e0dcd4;
  --bg-invert: #1a1a1a;
  --bg-muted: #e0dcd4;
  --text: #0f0f0f;
  --text-primary: #0f0f0f;
  --text-secondary: #888888;
  --text-dim: #b0a898;
  --text-tertiary: #b0a898;
  --text-invert: #eeebe4;
  --border-default: rgba(0, 0, 0, 0.10);
  --border-hover: rgba(0, 0, 0, 0.25);
  --border-strong: rgba(0, 0, 0, 0.20);
  --dot-filled: #0f0f0f;
  --dot-empty: #c0bbb2;
  --signal-positive: #1a5c2e;
  --signal-warning: #7a4f00;
  --signal-negative: #7a1a1a;
  --section-gap: 40px;

  /* Backward compat aliases */
  --font-body: var(--font-primary);
  --slate: var(--body);
  color-scheme: light;
}

/* ─── 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);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}
a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; }
.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;
}

/* ─── LAYOUT ────────────────────────────────────── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}
.container-narrow {
  max-width: var(--narrow-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}
.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* ─── TYPE SCALE ────────────────────────────────── */
.t-display {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  color: var(--ink);
}
.t-h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.3;
  color: var(--ink);
}
.t-h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.3;
  color: var(--ink);
}
.t-h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.3;
  color: var(--ink);
}
.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.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.t-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--body);
  line-height: 1.6;
}

h2 {
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  color: var(--ink);
}

/* ─── NAVIGATION ────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 56px;
  padding: 0 40px;
  max-width: 100%;
  width: 100%;
  margin: 0;
}
.nav-wordmark {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  justify-self: start;
}
.nav-wordmark a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-cta {
  justify-self: end;
  display: flex;
  align-items: center;
}
.nav-mobile-cta {
  display: none;
}
.nav-links a,
.nav-links .nav-dropdown-trigger {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
  position: relative;
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links .nav-dropdown-trigger:hover { color: var(--ink); }
.nav-links a.btn-primary { color: var(--white); text-decoration: none; }
.nav-links a.btn-primary::after { display: none; }
.nav-links a.btn-primary:hover { color: var(--white); }
/* Nav dropdowns */
.nav-dropdown { position: relative; list-style: none; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  padding: 6px 12px;
  border-radius: 20px;
}
.nav-dropdown-trigger.active { background: var(--surface); }
.nav-dropdown-trigger svg:first-child { width: 16px; height: 16px; flex-shrink: 0; }
.nav-dropdown-chevron { transition: transform 0.2s; opacity: 0.5; }
.nav-dropdown:hover .nav-dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 160px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  z-index: 200;
  margin: 0;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--body);
}
.nav-dropdown-menu li a:hover { background: var(--surface); color: var(--ink); }
.nav-divider { display: none; }
.hero-mode-badge {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent);
  background: rgba(255,90,95,0.08); padding: 2px 6px;
  border-radius: 4px; margin-left: 2px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  grid-column: 3;
  justify-self: end;
}
.nav-hamburger svg { display: block; }

/* ── Nav Search Bar ── */
.nav-search {
  flex: 1 1 240px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  position: relative;
}
.nav-search-input {
  flex: 1;
  padding: 8px 12px;
  font-family: var(--font-primary);
  font-size: 13px;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-search-input:focus {
  border-color: var(--ink);
  background: var(--white);
}
.nav-search-input::placeholder { color: var(--muted); }
.nav-search-btn {
  padding: 8px 12px;
  background: var(--surface);
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}
.nav-search-btn:hover { color: var(--accent); }
.nav-search-btn svg { display: block; }

/* ── Nav Location Button ── */
.nav-location-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  color: var(--body);
  transition: border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.nav-location-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.nav-location-btn svg {
  flex-shrink: 0;
  color: var(--accent);
}
.nav-location-label:empty {
  display: none;
}

/* ── Nav Search Suggestions Dropdown ── */
.nav-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 120;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px 0;
}
.nav-search-dropdown.open {
  display: block;
}
.nav-search-dropdown-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 8px 14px 4px;
}
.nav-search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.1s ease;
  text-decoration: none;
}
.nav-search-dropdown-item:hover {
  background: var(--surface);
  color: var(--ink);
}
.nav-search-dropdown-item svg {
  flex-shrink: 0;
  color: var(--muted);
}
.nav-search-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ── Nav Dropdown ── */
.nav-has-dropdown {
  position: relative;
}
.nav-has-dropdown .nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  min-width: 340px;
  z-index: 200;
}
.nav-has-dropdown .nav-dropdown-panel::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: var(--white);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.nav-has-dropdown:hover .nav-dropdown-panel,
.nav-has-dropdown .nav-dropdown-panel:hover {
  display: block;
}
.nav-has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
  display: none;
}
.nav-has-dropdown:hover::after {
  display: block;
}
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.12s ease;
}
.nav-dropdown-item:hover {
  background: var(--surface);
}
.nav-dropdown-item svg {
  flex-shrink: 0;
  color: var(--muted);
}
.nav-dropdown-item:hover svg {
  color: var(--accent);
}
.nav-dropdown-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}
.nav-dropdown-footer {
  text-align: center;
  padding-top: 4px;
}
.nav-dropdown-footer a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.nav-dropdown-footer a:hover {
  text-decoration: underline;
}

/* ─── BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 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: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Small button variant for nav */
.btn-sm {
  font-size: 13px;
  padding: 8px 16px;
}

/* Pill buttons (replace inline onmouseover hacks) */
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-pill);
  text-decoration: none; font-weight: 500; font-size: 14px;
  transition: all 0.15s; cursor: pointer; border: 1.5px solid transparent;
}
.btn-pill--primary { background: var(--accent); color: var(--text-invert, #fff); }
.btn-pill--primary:hover { background: var(--accent-hover, #333); color: var(--text-invert, #fff); }
.btn-pill--secondary { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-pill--secondary:hover { border-color: var(--ink); }

/* City link buttons */
.btn-city {
  display: block; padding: 10px 16px; background: var(--surface);
  border-radius: var(--radius-md); text-decoration: none; color: var(--ink);
  font-size: 13px; font-weight: 500; transition: all 0.15s;
  border: 1.5px solid transparent;
}
.btn-city:hover { border-color: var(--border-hover, var(--border)); background: var(--bg-elevated, var(--white)); }

/* Nav-specific CTA button override */
.nav-cta .btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--accent);
  transition: all 0.15s;
}
.nav-cta .btn-primary:hover {
  background: var(--accent-hover);
}

/* ── Transparent nav (homepage over hero) ── */
.nav--transparent {
  background: transparent;
  border-bottom: none;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
}
.nav--transparent .nav-links a {
  color: rgba(255,255,255,0.9);
}
.nav--transparent .nav-links a:hover {
  color: #fff;
}
.nav--transparent .nav-wordmark a {
  color: #fff;
}
.nav--transparent .nav-cta .btn-primary {
  background: var(--accent);
  border: 1.5px solid var(--accent);
  color: #fff;
}
.nav--transparent .nav-cta .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.nav--transparent .nav-hamburger svg {
  stroke: #fff;
}
/* Scrolled state: revert to solid (stays fixed, just changes appearance) */
.nav--transparent.nav--scrolled {
  background: var(--page-bg);
  border-bottom: 1px solid var(--border);
}
.nav--transparent.nav--scrolled .nav-links a {
  color: var(--body);
}
.nav--transparent.nav--scrolled .nav-links a:hover {
  color: var(--ink);
}
.nav--transparent.nav--scrolled .nav-wordmark a {
  color: var(--ink);
}
.nav--transparent.nav--scrolled .nav-cta .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.nav--transparent.nav--scrolled .nav-hamburger svg {
  stroke: var(--ink);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-secondary:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--muted);
}
.btn-secondary:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--body);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 0;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}
.btn-ghost:hover { color: var(--accent); }

.btn-sm { font-size: 13px; padding: 8px 16px; }

/* ─── HERO ──────────────────────────────────────── */
.hero {
  padding: 80px 0 64px;
}
.hero-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.04em;
  color: var(--ink);
  max-width: 680px;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  max-width: 520px;
  margin-bottom: 32px;
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hero-tokens {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.hero-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hero-token .token-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.hero-token .token-dot--chatgpt { background: #10A37F; }
.hero-token .token-dot--claude { background: #CC785C; }
.hero-token .token-dot--google { background: transparent; border: 1.5px solid var(--muted); }
.hero-stats {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.01em;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ─── SECTIONS ──────────────────────────────────── */
.chapter {
  padding: 64px 0;
}
.chapter-alt {
  background: var(--surface);
}
.chapter-header {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.chapter-header .divider {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.chapter-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 16px;
}
.chapter-subtitle {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 40px;
  font-weight: 400;
}

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

/* ─── CARDS ─────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
}
.card-label {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
}
.card p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
}

.card-surface {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-6);
}

/* ─── PHOTO CARDS (Airbnb-style) ───────────────── */
.photo-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.photo-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  color: var(--ink);
}
.photo-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  transition: transform 0.3s ease;
  overflow: hidden;
  position: relative;
  background: var(--surface);
}
.photo-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-card:hover .photo-card-img {
  transform: scale(1.02);
}
.photo-card-niche-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.photo-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
}
.placeholder-initials {
  font-size: 36px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 2px;
  line-height: 1;
}
.placeholder-niche {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-transform: capitalize;
  letter-spacing: 0.5px;
}
.photo-card-body {
  padding: 12px 0 4px;
}
.photo-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.3;
}
.photo-card-meta {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
.photo-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.photo-card-rating .star {
  color: var(--ink);
}
.photo-card-price {
  font-size: 14px;
  color: var(--ink);
  margin-top: 4px;
}
.photo-card-price strong {
  font-weight: 600;
}

/* Card Save/Heart Button */
.card-save-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.15s ease, background 0.15s ease;
  z-index: 2;
}
.card-save-btn:hover {
  transform: scale(1.1);
  background: #fff;
}
.card-save-btn svg {
  width: 16px;
  height: 16px;
}

/* ─── AIRBNB-STYLE SERVICE CARDS ───────────────── */
.service-card-airbnb {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
  border: 1px solid var(--border);
}
.service-card-airbnb:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  color: var(--ink);
}
.service-card-visual {
  aspect-ratio: 3/2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.service-card-visual svg {
  width: 48px;
  height: 48px;
  stroke: rgba(255,255,255,0.9);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.service-card-info {
  padding: 16px;
}
.service-card-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.service-card-info p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* Service card backgrounds — neutral */
.service-bg-plumbing    { background: var(--surface); }
.service-bg-electrical  { background: var(--surface); }
.service-bg-hvac        { background: var(--surface); }
.service-bg-roofing     { background: var(--surface); }
.service-bg-painting    { background: var(--surface); }
.service-bg-landscaping { background: var(--surface); }
.service-bg-foundation  { background: var(--surface); }
.service-bg-water       { background: var(--surface); }

/* ─── AIRBNB-STYLE CITY CARDS ──────────────────── */
.city-card-airbnb {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease;
  text-align: center;
}
.city-card-airbnb:hover {
  color: var(--ink);
}
.city-card-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  border: 3px solid var(--border);
  background-size: cover;
  background-position: center;
}
.city-card-airbnb:hover .city-card-circle {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: scale(1.04);
  border-color: var(--accent);
}
.city-card-circle svg {
  width: 32px;
  height: 32px;
  stroke: rgba(255,255,255,0.95);
  fill: none;
  stroke-width: 2;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.city-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.city-card-count {
  font-size: 13px;
  color: var(--muted);
}

/* City backgrounds — neutral */
.city-bg-honolulu  { background: var(--surface); }
.city-bg-phoenix   { background: var(--surface); }
.city-bg-austin    { background: var(--surface); }
.city-bg-miami     { background: var(--surface); }
.city-bg-tampa     { background: var(--surface); }
.city-bg-boise     { background: var(--surface); }

/* ─── TOP RATED PROS SHOWCASE ──────────────────── */
.top-rated-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.top-rated-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease;
}
.top-rated-card:hover {
  color: var(--ink);
}
.top-rated-avatar {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.top-rated-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.top-rated-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  line-height: 1.3;
}
.top-rated-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #008A05;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.top-rated-badge svg {
  width: 12px;
  height: 12px;
  color: #008A05;
}
.top-rated-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.top-rated-trade {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}
.top-rated-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

/* ─── GRIDS ─────────────────────────────────────── */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.three-col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }

/* ─── STEP NUMBERS ──────────────────────────────── */
.step-number {
  font-family: var(--font-primary);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

/* ─── PROBLEM GRID ──────────────────────────────── */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }

/* ─── 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); }

/* ─── TRUST SIGNAL ROW ──────────────────────────── */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  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-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.badge-verified  { background: transparent; border: 1px solid var(--border); color: var(--ink); font-family: var(--font-display); font-size: 9px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; }
.badge-top-rated { background: transparent; border: 1px solid var(--border); color: var(--ink); font-family: var(--font-display); font-size: 9px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; }
.badge-unclaimed { background: transparent; border: 1px solid var(--border); color: var(--ink); font-family: var(--font-display); font-size: 9px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; }
.badge-new       { background: transparent; border: 1px solid var(--border); color: var(--ink); font-family: var(--font-display); font-size: 9px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; }

/* 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(--success); background: #E8F5E9; border-color: #BBF7D0; }
.trust-badge.checked { color: #1D4ED8; background: #EFF6FF; border-color: #BFDBFE; }
.trust-badge.community { color: var(--ink); background: var(--surface); border-color: var(--border); }

/* ─── PRICING ───────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}
/* 4 columns get too narrow below 1100px — switch to 2 early */
@media (max-width: 1100px) and (min-width: 769px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
.pricing-card {
  padding: 24px;
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}
.pricing-card:hover {
  border-color: var(--muted);
  box-shadow: var(--shadow-md);
}
.pricing-card--popular {
  border-color: var(--accent);
  border-width: 2px;
}
.pricing-popular-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 5px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.pricing-card--popular { padding-top: 48px; }
.pricing-tier {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 4px;
}
.pricing-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }

/* ─── COMPARISON TABLE ──────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 14px;
}
.comparison-table th,
.comparison-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison-table thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}
.comparison-table thead th:first-child { color: var(--ink); font-weight: 700; }
.comparison-table thead th.highlight { background: var(--accent); color: #fff; font-weight: 700; letter-spacing: 0.04em; }
.comparison-table tbody td { color: var(--body); }
.comparison-table tbody td:first-child { color: var(--ink); font-weight: 500; }
.comparison-table tbody td.highlight { background: rgba(255, 90, 95, 0.04); font-weight: 600; color: var(--ink); }
.comparison-table .check { color: var(--success); font-weight: 700; }
.comparison-table .cross { color: var(--muted); }

/* ─── BROWSE OWNER CTA ─────────────────────────── */
.browse-owner-cta-section { padding: 64px 0; }
.browse-owner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
}
.browse-owner-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.browse-owner-heading {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
}
.browse-owner-desc {
  font-size: 17px;
  color: var(--body);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 32px;
  font-weight: 400;
}
.browse-owner-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── FAQ ───────────────────────────────────────── */
.faq-list {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.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: 24px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: background 0.12s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }
.faq-item summary::after { content: none !important; display: none !important; }
.faq-item[open] summary::after { content: none !important; display: none !important; }
/* Plus icon handled by inline SVG .faq-icon — rotates 45deg to × on open */
.faq-icon {
  color: var(--muted);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-item summary:hover { background: var(--surface); }
.faq-answer { padding: 0 24px 24px; }
.faq-answer p {
  color: var(--body);
  font-size: 15px;
  line-height: 1.7;
}

/* ─── CTA BOX ───────────────────────────────────── */
.cta-box {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 48px;
  text-align: center;
  margin: 64px 0;
}
.cta-box h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.cta-box p {
  color: var(--body);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-weight: 400;
}

/* ─── FOOTER ────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 64px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.5px;
  /* Ensure full-width bg even when inside a constrained parent */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.footer-brand {
  margin-bottom: 40px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  max-width: 400px;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}
.footer-legal a:hover {
  color: var(--ink);
}

/* Legacy footer classes (kept for backward compat with listing.js inline styles) */
.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px var(--page-padding) 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.footer-wordmark a { color: var(--ink); text-decoration: none; }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-meta {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Footer multi-column grid (legacy) */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
  text-align: left;
}
.footer-grid-heading {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-grid nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}
.footer-grid nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ─── SEARCH / BROWSE ───────────────────────────── */
.search-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.search-form { display: flex; gap: 0; }
.search-input {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s ease;
}
.search-input:focus { border-color: var(--ink); }
.search-input::placeholder { color: var(--muted); }
.search-submit {
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1.5px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  cursor: pointer;
  transition: background 0.15s ease;
}
.search-submit:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.results-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.result-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.result-card:hover { border-color: var(--muted); box-shadow: var(--shadow-sm); }
.result-accent {
  width: 3px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 2px;
}
.result-info { flex: 1; }
.result-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin-bottom: 4px;
}
.result-meta {
  font-size: 13px;
  color: var(--body);
  margin-bottom: 4px;
}
.result-meta span { margin-right: 12px; }
.result-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 10px;
  display: inline-block;
  border-radius: var(--radius-pill);
}
.result-badge--verified { color: var(--success); background: #E8F5E9; }
.result-badge--unclaimed { color: var(--muted); background: var(--surface); }
.result-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

/* Browse grids */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}
.browse-grid-item {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}
.browse-grid-item:hover { border-color: var(--muted); box-shadow: var(--shadow-sm); }
.browse-grid-item .item-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
  font-weight: 400;
}

.no-results {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.loading {
  padding: 32px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ─── HOW IT WORKS ──────────────────────────────── */
.phase-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.phase-section:last-of-type { border-bottom: none; }
.phase-number {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.phase-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}
.phase-body {
  font-size: 17px;
  color: var(--body);
  line-height: 1.6;
  max-width: 640px;
  font-weight: 400;
}
.phase-body p { margin-bottom: 16px; }
.phase-details {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.phase-detail-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.phase-detail-item:last-child { border-bottom: none; }
.phase-detail-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.phase-detail-item p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin: 0;
}

/* ─── PHOTO GRID ────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  max-width: calc(var(--max-width) - 48px);
  margin: 24px auto 16px;
  padding: 0;
}
.photo-grid-main { grid-row: 1 / 3; overflow: hidden; }
.photo-grid-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.photo-grid-item { overflow: hidden; }
.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.photo-grid-show-all {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
  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);
}

/* Single photo layout — when there's only 1 photo, span full width */
.photo-grid--single {
  display: block;
  height: 400px;
}
.photo-grid--single .photo-grid-main {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.photo-grid--single .photo-grid-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
}

/* Clickable photos */
.photo-grid-main,
.photo-grid-item {
  cursor: pointer;
}

/* ── Photo Lightbox ── */
.photo-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.photo-lightbox.open {
  display: flex;
}
.photo-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  z-index: 10;
}
.photo-lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}
.photo-lightbox-counter {
  position: absolute;
  top: 20px;
  left: 20px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
}
.photo-lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}
.photo-lightbox-prev,
.photo-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  z-index: 10;
}
.photo-lightbox-prev { left: 16px; }
.photo-lightbox-next { right: 16px; }
.photo-lightbox-prev:hover,
.photo-lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}
.photo-lightbox-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  max-width: 90vw;
  overflow-x: auto;
  padding: 8px 0;
}
.photo-lightbox-thumb {
  width: 64px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s ease;
  border: 2px solid transparent;
  flex-shrink: 0;
}
.photo-lightbox-thumb:hover { opacity: 0.8; }
.photo-lightbox-thumb.active { opacity: 1; border-color: #fff; }

/* Grey placeholder only shows when photo-grid has actual images —
   hide it completely since no-photo pages look cleaner without it */
.photo-grid-placeholder {
  display: none;
}

/* ─── TWO-COLUMN LISTING ────────────────────────── */
.listing-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
}
.listing-content { min-width: 0; }
.listing-panel {
  position: sticky;
  top: 80px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

/* ─── LISTING CARD ──────────────────────────────── */
.listing-card-body { padding: 16px; }
.listing-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.1px;
}

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

/* ─── REVIEW STRIP ──────────────────────────────── */
.review-strip {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  margin-bottom: 32px;
  padding-bottom: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.review-strip::-webkit-scrollbar { display: none; }
.review-strip-item {
  flex: 0 0 auto;
  width: 320px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  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: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── PRICE BENCHMARK ───────────────────────────── */
.price-benchmark {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.price-benchmark-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  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;
}

/* ─── GUARANTEE ─────────────────────────────────── */
.guarantee-option {
  background: #E8F5E9;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  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);
  line-height: 1.5;
}
.guarantee-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

/* ─── VERIFIED REVIEWS ──────────────────────────── */
.verified-review-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.verified-review-item:last-child { border-bottom: none; }
.verified-badge-small {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--success);
  background: #E8F5E9;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ─── COST CALCULATOR ───────────────────────────── */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.calc-inputs {
  padding: 32px;
  border-right: 1px solid var(--border);
}
.calc-results { padding: 32px; }
.calc-field { margin-bottom: 24px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.calc-field input {
  width: 100%;
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: var(--white);
  outline: none;
  transition: border-color 0.15s ease;
  -moz-appearance: textfield;
}
.calc-field input::-webkit-outer-spin-button,
.calc-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-field input:focus { border-color: var(--ink); }
.calc-result-group { margin-bottom: 24px; }
.calc-result-group:last-child { margin-bottom: 0; }
.calc-result-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 14px;
  color: var(--body);
}
.calc-row-value {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
  font-size: 14px;
}
.calc-delta {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.5px;
  padding: 16px 0 20px;
}
.calc-delta--positive { color: var(--success); }
.calc-delta--negative { color: var(--warning); }

/* ─── LIVE DEMO ─────────────────────────────────── */
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--white);
}
.demo-context {
  padding: 32px;
  border-right: 1px solid var(--border);
}
.demo-context h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 8px;
}
.demo-context p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 12px;
}
.demo-context ul { list-style: none; margin-bottom: 16px; }
.demo-context ul li {
  font-size: 13px;
  color: var(--body);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.demo-context ul li:last-child { border-bottom: none; }
.demo-chat {
  display: flex;
  flex-direction: column;
  height: 480px;
}
.demo-chat-header {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.demo-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.demo-msg {
  margin-bottom: 16px;
  max-width: 85%;
}
.demo-msg--agent { margin-right: auto; }
.demo-msg--user { margin-left: auto; }
.demo-msg-bubble {
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
}
.demo-msg--agent .demo-msg-bubble {
  background: var(--surface);
  color: var(--ink);
}
.demo-msg--user .demo-msg-bubble {
  background: var(--accent);
  color: #fff;
}
.demo-msg-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.demo-chat-input-row {
  display: flex;
  border-top: 1px solid var(--border);
}
.demo-chat-input {
  flex: 1;
  border: none;
  padding: 16px;
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  background: var(--white);
  border-radius: 0;
}
.demo-chat-input::placeholder { color: var(--muted); }
.demo-chat-send {
  padding: 16px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.demo-chat-send:hover { background: var(--accent-hover); }
.demo-lead-reveal {
  margin: 12px 0;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--success);
  background: #E8F5E9;
}
.demo-lead-reveal h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 8px;
}
.demo-lead-reveal p {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 4px;
}
.demo-lead-reveal .btn-primary {
  margin-top: 12px;
  font-size: 13px;
  padding: 8px 16px;
}

/* ─── HERO DUAL ENTRY ───────────────────────────── */
.hero-dual-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.hero-dual-cell {
  padding: 32px;
  text-align: center;
}
.hero-dual-cell:first-child {
  background: var(--white);
  border-right: 1px solid var(--border);
}
.hero-dual-cell:last-child { background: var(--surface); }
.hero-dual-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.hero-dual-cell .btn-primary,
.hero-dual-cell .btn-secondary {
  width: 100%;
  justify-content: center;
  font-size: 14px;
}

/* ─── MOBILE MENU TOGGLE ────────────────────────── */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 1px;
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
}

/* ─── RESPONSIVE: 1024px ────────────────────────── */
@media (max-width: 1024px) {
  .listing-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 var(--page-padding-mobile);
  }
  .listing-content {
    padding-bottom: 80px; /* space for fixed bottom panel */
  }
  .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;
    background: var(--white);
  }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── SMOOTH IMAGE LOADING ─────────────────────────── */
.img-lazy {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.4s ease, transform 0.4s ease;
  background: var(--surface);
}
.img-lazy.loaded {
  opacity: 1;
  transform: scale(1);
}
/* Shimmer placeholder while loading */
.img-placeholder {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-md);
}
.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
/* Responsive images */
.img-responsive {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── AI-NATIVE CONSUMER FEATURES ─────────────────── */

/* AI Match Score Badge */
.ai-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255,90,95,0.1) 0%, rgba(255,90,95,0.05) 100%);
  color: var(--accent);
  border: 1px solid rgba(255,90,95,0.2);
}
.ai-match-badge svg {
  flex-shrink: 0;
}

/* AI Ask Section */
.ai-ask-section {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-top: 24px;
}
.ai-ask-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-ask-section p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.ai-ask-input-wrap {
  display: flex;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}
.ai-ask-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.ai-ask-input::placeholder { color: var(--muted); }
.ai-ask-btn {
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.ai-ask-btn:hover { background: var(--accent-hover); }
.ai-ask-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ai-ask-chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--body);
  background: var(--white);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
}
.ai-ask-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.ai-ask-response {
  margin-top: 16px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  display: none;
}
.ai-ask-response.visible {
  display: block;
  animation: fadeSlideUp 0.3s ease;
}

/* AI Review Summary */
.ai-review-summary {
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.ai-review-summary h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-review-summary h4 svg {
  color: var(--accent);
}
.ai-review-pros,
.ai-review-cons {
  margin-bottom: 12px;
}
.ai-review-pros h5,
.ai-review-cons h5 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.ai-review-pros h5 { color: var(--success); }
.ai-review-cons h5 { color: var(--warning); }
.ai-review-pros li,
.ai-review-cons li {
  font-size: 13px;
  color: var(--body);
  line-height: 1.6;
  list-style: none;
  padding-left: 18px;
  position: relative;
}
.ai-review-pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.ai-review-cons li::before {
  content: '–';
  position: absolute;
  left: 2px;
  color: var(--warning);
  font-weight: 700;
}

/* Service breakdown cards */
.service-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.service-card {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.service-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.service-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.service-card .price-range {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
}

/* Response time badge */
.response-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  background: rgba(22,163,74,0.08);
  color: var(--success);
}
.response-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Animations */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE: 768px ─────────────────────────── */
@media (max-width: 768px) {
  :root {
    --page-padding: 20px;
  }

  /* --- GLOBAL: Prevent horizontal overflow --- */
  body { overflow-x: clip; }
  img, video, iframe { max-width: 100%; height: auto; }

  /* --- TYPOGRAPHY: Larger mobile fonts for readability --- */
  body { font-size: 18px; line-height: 1.7; }
  p { font-size: 17px; line-height: 1.7; }
  h1, .t-h1 { font-size: 36px; line-height: 1.15; letter-spacing: -1px; }
  h2, .t-h2, .chapter-title { font-size: 28px; letter-spacing: -0.5px; }
  h3, .t-h3 { font-size: 22px; }
  .t-display { font-size: 36px; letter-spacing: -1px; }
  .t-body { font-size: 18px; line-height: 1.7; }
  p { font-size: 18px; }
  .t-small { font-size: 15px; }
  .t-small { font-size: 15px; }

  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero-sub { font-size: 18px; line-height: 1.6; }

  /* Airbnb responsive overrides */
  .top-rated-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-inner { padding: 0 24px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .service-card-airbnb .service-card-visual { aspect-ratio: 5/3; }

  .chapter { padding: 48px 0; }
  .chapter-subtitle { font-size: 16px; margin-bottom: 24px; }

  /* --- NAV --- */
  .nav-inner { padding: 0 var(--page-padding-mobile); grid-template-columns: auto 1fr auto; }
  .nav-wordmark { font-size: 22px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  /* Transparent nav on homepage mobile */
  .nav--transparent { background: transparent !important; border-bottom: none !important; }
  .nav--transparent .nav-wordmark a { color: #fff; }
  .nav--transparent .nav-hamburger svg { stroke: #fff; }
  .nav--transparent.nav--scrolled { background: var(--page-bg) !important; border-bottom: 1px solid var(--border) !important; }
  .nav--transparent.nav--scrolled .nav-wordmark a { color: var(--ink); }
  .nav--transparent.nav--scrolled .nav-hamburger svg { stroke: var(--ink); }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--page-bg);
    border-bottom: 1px solid var(--border);
    padding: 20px var(--page-padding);
    gap: 16px;
    z-index: 100;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a,
  .nav-links.open .nav-dropdown-trigger { font-size: 16px; min-height: 44px; display: flex; align-items: center; }
  .nav-links.open .nav-dropdown { width: 100%; }
  .nav-links.open .nav-dropdown-trigger { width: 100%; padding: 0; }
  .nav-links.open .nav-dropdown-menu {
    display: none;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 20px;
    min-width: 0;
  }
  .nav-links.open .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-links.open .nav-dropdown-menu li a { padding: 8px 0; min-height: 40px; }
  .nav-links.open .nav-divider { display: block; height: 1px; background: var(--border); margin: 4px 0; }
  .nav-links.open + .nav-cta { display: none; }
  .nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-search { display: none; }
  .nav-location-btn { display: none; }
  .nav-links.open .nav-search-mobile {
    display: flex;
    flex: 1 1 100%;
    margin: 0;
  }
  .site-nav { position: sticky; top: 0; }
  .nav-mobile-cta { display: list-item; }
  .nav-links a.btn-primary { width: 100%; text-align: center; }

  /* --- GRIDS --- */
  .problem-grid,
  .two-col-grid,
  .grid-2 { grid-template-columns: 1fr; }
  .three-col-grid,
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  /* --- PRICING --- */
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-price { font-size: 32px; }
  .pricing-features li { font-size: 16px; line-height: 1.6; }
  .pricing-card .btn-primary { width: 100%; min-height: 48px; font-size: 16px; }

  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
  }
  .comparison-table th,
  .comparison-table td { padding: 10px 12px; }

  /* --- CTA BOX --- */
  .cta-box {
    padding: 32px 16px;
    border-radius: var(--radius-lg);
    margin: 48px 0;
  }
  .cta-box h2 { font-size: 24px; }
  .cta-box p { font-size: 16px; }

  /* --- FOOTER --- */
  .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-inner { padding: 0 24px; }
  .footer-content {
    flex-direction: column;
    text-align: left;
    gap: 12px;
  }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; }
  .footer-links a { font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; }
  .footer-meta { text-align: left; font-size: 15px; }

  /* --- SEARCH / BROWSE --- */
  .search-form { flex-direction: column; }
  .search-input {
    border-right: 1px solid var(--border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    min-height: 48px;
    font-size: 16px;
  }
  .search-submit {
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    min-height: 48px;
    font-size: 16px;
  }

  .browse-grid { grid-template-columns: repeat(2, 1fr); }
  .browse-grid-item { font-size: 16px; }

  .result-card { flex-direction: column; }
  .result-name { font-size: 18px; }
  .result-actions { width: 100%; }

  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-tokens { flex-wrap: wrap; gap: 12px; }
  .hero-dual-entry { grid-template-columns: 1fr; }
  .hero-dual-cell:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .calc-layout { grid-template-columns: 1fr; }
  .calc-inputs {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .demo-layout { grid-template-columns: 1fr; }
  .demo-context {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .demo-chat { height: 400px; }
  .review-strip-item { width: 260px; }

  .photo-grid {
    grid-template-columns: 1fr;
    max-height: 300px;
    border-radius: 0;
    overflow: hidden;
  }
  .photo-grid-item { display: none; }
  .photo-grid-main { grid-row: auto; aspect-ratio: 16/9; }
  .photo-grid--single { max-height: 280px; }
  .photo-grid--single .photo-grid-main img {
    max-height: 280px;
    border-radius: 0;
  }

  /* --- TOUCH TARGETS: 44px minimum --- */
  .btn, .btn-primary, .btn-secondary {
    min-height: 48px;
    padding: 14px 24px;
    font-size: 16px;
  }

  /* --- Step numbers: scale down for mobile --- */
  .step-number { font-size: 32px; }

  /* --- INPUTS: Prevent iOS auto-zoom (requires 16px+) --- */
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="tel"],
  input[type="search"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
    min-height: 48px;
    width: 100%;
  }

  /* --- STICKY SIDEBAR: remove on mobile --- */
  .listing-panel { position: static; }

  /* --- Category card labels larger --- */
  .service-card-info h3 { font-size: 16px; }
  .service-card-info p { font-size: 14px; }

  /* --- Top rated: larger card text --- */
  .top-rated-name { font-size: 16px; }
  .top-rated-trade { font-size: 14px; }
  .top-rated-rating { font-size: 14px; }

  /* --- City circles --- */
  .city-card-circle { width: 80px; height: 80px; }
  .city-card-name { font-size: 14px; }
  .city-card-count { font-size: 12px; }

  /* --- FAQ: larger tap targets --- */
  .faq-item summary { padding: 20px 16px; font-size: 17px; min-height: 48px; }
  .faq-answer p { font-size: 16px; }

  /* --- Photo card text --- */
  .photo-card-title { font-size: 15px; }
  .photo-card-meta { font-size: 14px; }

  /* --- Badges readable --- */
  .badge { font-size: 13px; padding: 5px 12px; }
}

/* ─── RESPONSIVE: 480px ─────────────────────────── */
@media (max-width: 480px) {
  body { font-size: 16px; line-height: 1.7; }
  h1, .t-h1 { font-size: 32px; line-height: 1.15; }
  h2, .t-h2, .chapter-title { font-size: 24px; }
  h3, .t-h3 { font-size: 20px; }
  .t-display { font-size: 32px; }
  .hero h1 { font-size: 32px; letter-spacing: -0.8px; }
  .hero-sub { font-size: 16px; }
  .pricing-price { font-size: 32px; }
  .browse-grid { grid-template-columns: 1fr 1fr; }
  .top-rated-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-columns { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .city-card-circle { width: 72px; height: 72px; }
  .city-card-name { font-size: 14px; }
  .nav-wordmark { font-size: 20px; }
  .cta-box h2 { font-size: 22px; }
  .cta-box p { font-size: 15px; }
  .container, .page-wrap, .container-narrow { padding: 0 16px; }
}

/* ─── 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;
  }
}

/* ─── BUTTON LOADING STATE ──────────────────────── */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── LARGE SCREENS ─────────────────────────────── */
@media (min-width: 1400px) {
  :root {
    --max-width: 1400px;
    --page-padding: 64px;
  }

  body { font-size: 18px; }

  .t-display { font-size: 56px; }
  .t-h1 { font-size: 42px; }
  .t-h2 { font-size: 32px; }
  .t-h3 { font-size: 24px; }

  .hero h1 { font-size: 52px; }
  .hero .hero-sub { font-size: 19px; }

  .chapter { padding: 96px 0; }
  .chapter-title { font-size: 36px; }
  .chapter-subtitle { font-size: 18px; }

  .three-col-grid { gap: 28px; }
  .two-col-grid { gap: 28px; }

  .pricing-grid { gap: 24px; }
  .pricing-card { padding: 32px; }

  .card { padding: 32px; }
  .listing-card { padding: 24px; }

  .browse-grid { gap: 24px; }

  .footer-content { padding: 48px 0; }

  /* Wider nav */
  .nav-inner { max-width: 100%; }
}

@media (min-width: 1800px) {
  :root {
    --max-width: 1600px;
    --page-padding: 80px;
  }

  body { font-size: 18px; }

  .hero h1 { font-size: 58px; }

  .nav-inner { max-width: 100%; }

  .three-col-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .four-col-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }

  .card { padding: 32px; }
  .listing-card { padding: 32px; }

  .browse-grid { gap: 32px; }
}

/* Ultra-wide (4K/Ultrawide monitors) */
@media (min-width: 2200px) {
  :root {
    --max-width: 1800px;
  }

  .nav-inner { max-width: 100%; }
  body { font-size: 19px; }
}

/* ─── UX ENHANCEMENTS ─────────────────────────────── */

/* 1. Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  /* On mobile, lifted above the tab bar via media query below */
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; pointer-events: auto; }
.back-to-top:hover { background: var(--accent); transform: translateY(-2px); }

/* 2. Share Button & Dropdown */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-primary);
}
.share-btn:hover { color: var(--ink); border-color: var(--ink); }

/* Share Pill (injected by share-button.js on detail pages) */
.share-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-primary);
  line-height: 1;
  vertical-align: middle;
}
.share-pill:hover { color: var(--ink); border-color: var(--ink); }
.share-pill svg { flex-shrink: 0; }

.share-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 180px;
  z-index: 50;
}
.share-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--body);
  transition: background 0.1s ease;
}
.share-dropdown a:hover { background: var(--surface); color: var(--ink); }
/* 3. Open/Closed Badges */
.badge-open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #16A34A;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  letter-spacing: 0.02em;
}
.badge-open::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #16A34A;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
.badge-closed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}
/* 4. Similar Businesses (enhanced) */
.similar-businesses { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.similar-businesses h3 { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.similar-biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) { .similar-biz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .similar-biz-grid { grid-template-columns: 1fr; } }
.similar-biz-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  text-decoration: none;
  color: var(--ink);
}
.similar-biz-card:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.similar-biz-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.similar-biz-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.similar-biz-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.similar-businesses {
  padding: 32px 0;
}
.similar-businesses h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

/* 5. Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--muted); transition: color 0.15s ease; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { font-size: 10px; opacity: 0.5; }

/* 6. Photo Gallery & Lightbox */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 24px 0;
}
.photo-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.photo-gallery img:hover { opacity: 0.85; }
.photo-gallery img:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
@media (max-width: 768px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .photo-gallery img:first-child { grid-column: span 2; }
}
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* 7. Compare Businesses Bar */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.compare-bar.visible { transform: translateY(0); }
.compare-bar-items { display: flex; gap: 12px; align-items: center; }
.compare-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  font-size: 13px;
}
.compare-bar-item .remove { cursor: pointer; opacity: 0.6; }
.compare-bar-item .remove:hover { opacity: 1; }

/* 8. Save/Bookmark Button */
.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-primary);
}
.save-btn:hover { border-color: var(--accent); color: var(--accent); }
.save-btn.saved { color: var(--accent); border-color: var(--accent); background: rgba(255,90,95,0.05); }
.save-btn.saved svg { fill: var(--accent); }

/* 9. Print-Friendly Styles */
@media print {
  .site-nav, .site-footer, .back-to-top, .compare-bar, .share-btn,
  .save-btn, .demo-chat, .cta-box, .color-scheme-toggle, .share-pill,
  .mobile-action-bar, .scroll-progress { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .container { max-width: 100%; padding: 0; }
  a { color: #000; text-decoration: underline; }
  .card { break-inside: avoid; border: 1px solid #ccc; box-shadow: none; }
  .hero { padding: 24px 0; }
}

/* 10. Search Autocomplete */
.search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 50;
}
.search-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.1s ease;
  font-size: 14px;
}
.search-autocomplete-item:hover,
.search-autocomplete-item.active { background: var(--surface); }
.search-autocomplete-item .match { font-weight: 600; color: var(--ink); }
.search-autocomplete-item .meta { font-size: 12px; color: var(--muted); }
/* 11. Price Range Indicator */
.price-range-indicator { display: inline-flex; gap: 1px; font-size: 13px; font-weight: 600; }
.price-range-indicator .active { color: var(--ink); }
.price-range-indicator .inactive { color: var(--border); }

/* 12. Skeleton Loading States */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, rgba(0,0,0,0.04) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text { height: 16px; margin-bottom: 8px; }
.skeleton-text.short { width: 60%; }
.skeleton-card { height: 200px; border-radius: var(--radius-lg); }
/* 13. Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 300;
  transition: transform 0.3s ease;
}
.toast.visible { transform: translateX(-50%) translateY(0); }
.toast.toast--success { background: #16A34A; }
.toast.toast--error { background: #DC2626; }

/* 14. Verified / Claimed Badges */
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #16A34A;
  letter-spacing: 0.02em;
}
.badge-claimed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255,90,95,0.08);
  border: 1px solid rgba(255,90,95,0.15);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  letter-spacing: 0.02em;
}

/* 15. Mobile Bottom Action Bar */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  z-index: 90;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
  .mobile-action-bar { display: flex; gap: 8px; align-items: center; }
}
.mobile-action-bar .btn-primary { flex: 1; text-align: center; }
.mobile-action-bar .btn-call {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success);
  color: white;
  border: none;
}
/* 16. Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
}

/* 17. Empty State */
.empty-state { text-align: center; padding: 64px 24px; color: var(--muted); }
.empty-state svg { width: 64px; height: 64px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.empty-state p { font-size: 14px; max-width: 400px; margin: 0 auto 24px; }

/* 18. Tooltips */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease;
  pointer-events: none;
  z-index: 50;
}
[data-tooltip]:hover::after { opacity: 1; visibility: visible; }

/* 19. Comparison Table */
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
}
.compare-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.compare-table tr:hover td { background: rgba(255,90,95,0.02); }
@media (max-width: 768px) {
  .compare-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* 20. Smooth Page Transitions */
.page-enter { animation: pageEnter 0.3s ease-out; }
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
main { animation: pageEnter 0.3s ease-out; }

/* ==========================================================================
   MOBILE RESPONSIVE OVERHAUL — Comprehensive fixes for 768px and 480px
   ========================================================================== */

/* ─── TABLET (768px) — Additional fixes ──────────────────── */
@media (max-width: 768px) {

  /* --- Sticky header stack: reduce vertical footprint --- */
  .site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .nav-inner {
    height: 52px;
    padding: 0 16px;
    gap: 8px;
  }
  .nav-links.open { top: 52px; }

  /* Category tabs strip below nav — compact */
  .category-tabs-strip {
    top: 49px; /* below shorter nav */
  }
  .category-tab {
    padding: 8px 14px 6px;
    font-size: 13px;
    gap: 4px;
  }
  .category-tab svg {
    width: 20px;
    height: 20px;
  }

  /* Sub-services bar — tighter */
  .sub-services-inner {
    padding: 0 16px;
    gap: 6px;
  }
  .sub-service-chip {
    padding: 6px 14px;
    font-size: 13px;
  }

  /* --- Service/niche category cards: 2 columns on tablet --- */
  .browse-service-grid,
  .service-card-grid,
  .niche-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* --- Browse cards: single column on tablet for readability --- */
  .browse-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* --- AI chat input: full width --- */
  .ai-input-container {
    max-width: 100%;
    padding: 0 12px;
  }
  .ai-input-box {
    border-radius: 20px;
    padding: 6px 6px 6px 12px;
  }

  /* --- Touch targets: min 44px tap area --- */
  .nav-hamburger {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-location-btn {
    min-height: 44px;
    padding: 8px 12px;
  }
  .filter-pill {
    min-height: 44px;
    padding: 10px 16px;
  }
  .sub-service-chip {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
  .category-tab {
    min-height: 44px;
  }
  .chat-chip {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 14px;
  }
  .chat-followup-chip {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 13px;
  }
  .back-to-top {
    width: 48px;
    height: 48px;
    /* Lift above tab bar (56px) + spacing */
    bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 16px);
  }
  /* On listing pages with CTA bar, lift even higher */
  body:has(.mobile-cta-bar) .back-to-top {
    bottom: calc(56px + 60px + env(safe-area-inset-bottom, 0px) + 16px);
  }
  .btn, .btn-primary, .btn-secondary {
    min-height: 44px;
  }

  /* --- Top rated grid: 2 col --- */
  .top-rated-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* --- City grid: 3 col on tablet --- */
  #cityGrid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }

  /* --- Pricing grid: stack --- */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* --- Footer: 2 cols --- */
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-inner { padding: 0 24px; }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* --- CTA box: tighter --- */
  .cta-box {
    padding: 32px 16px;
    margin: 40px 0;
    border-radius: var(--radius-lg);
  }
  .cta-box h2 { font-size: 24px; }

  /* --- Prevent horizontal overflow --- */
  body {
    overflow-x: hidden;
  }
  .container, .page-wrap, .container-narrow {
    padding: 0 16px;
    max-width: 100%;
  }
  img {
    max-width: 100%;
  }

  /* --- Photo card grid responsive --- */
  .photo-card-body { padding: 8px 2px 4px; }
  .photo-card-title { font-size: 15px; }
  .photo-card-meta { font-size: 14px; }

  /* --- Airbnb service cards --- */
  .service-card-airbnb .service-card-info {
    padding: 12px 14px 14px;
  }
  .service-card-airbnb .service-card-info h3 {
    font-size: 16px;
  }
  .service-card-airbnb .service-card-info p {
    font-size: 14px;
  }

  /* --- Chapter sections: tighter spacing --- */
  .chapter {
    padding: 40px 0;
  }
  .chapter-title {
    font-size: 24px;
    letter-spacing: -0.5px;
  }
  .chapter-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

  /* --- Browse owner CTA --- */
  .browse-owner-card {
    padding: 32px 20px;
  }
  .browse-owner-heading {
    font-size: 24px;
  }
  .browse-owner-desc {
    font-size: 16px;
  }

  /* --- Comparison table: horizontal scroll with hint --- */
  .compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }
  .compare-table {
    min-width: 600px;
  }

  /* --- Similar businesses grid --- */
  .similar-biz-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* --- Location modal: full screen on mobile --- */
  .location-modal {
    width: 100%;
    max-width: 100vw;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
  }
}

/* ─── MOBILE (480px) — Small phone fixes ──────────────────── */
@media (max-width: 480px) {

  /* --- Nav: slightly tighter on small phones --- */
  .nav-inner {
    height: 48px;
    padding: 0 12px;
    gap: 6px;
  }
  .nav-links.open { top: 48px; }

  /* Category tabs: smaller */
  .category-tabs-strip {
    top: 45px;
  }
  .category-tab {
    padding: 8px 12px 6px;
    font-size: 12px;
  }
  .category-tab svg {
    width: 20px;
    height: 20px;
  }

  /* --- Service/niche cards: 1 col on small phones --- */
  .browse-service-grid,
  .service-card-grid,
  .niche-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* --- Browse cards: single col --- */
  .browse-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  /* --- Top rated: 2 col tighter --- */
  .top-rated-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .top-rated-name { font-size: 15px; }
  .top-rated-trade { font-size: 13px; }
  .top-rated-rating { font-size: 13px; }

  /* --- City grid: 3 cols, smaller circles --- */
  #cityGrid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }
  .city-card-circle {
    width: 72px;
    height: 72px;
  }
  .city-card-name { font-size: 14px; }
  .city-card-count { font-size: 12px; }

  /* --- Type scale: use sizes from main 480px block (no override needed) --- */

  /* --- Hero heading --- */
  .hero h1 {
    font-size: 32px;
    letter-spacing: -0.8px;
  }
  .hero-sub { font-size: 16px; }

  /* --- CTA box --- */
  .cta-box {
    padding: 24px 16px;
    margin: 32px 0;
  }
  .cta-box h2 { font-size: 22px; }
  .cta-box p { font-size: 15px; }

  /* --- Footer: single col --- */
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-content {
    padding: 32px 16px 24px;
  }

  /* --- Pricing --- */
  .pricing-price { font-size: 32px; }
  .pricing-card { padding: 24px; }

  /* --- Photo cards --- */
  .photo-card-title { font-size: 14px; }
  .photo-card-meta { font-size: 13px; }

  /* --- Similar businesses: single col --- */
  .similar-biz-grid {
    grid-template-columns: 1fr;
  }

  /* --- Biz CTA banner --- */
  .biz-cta-banner {
    padding: 24px 16px !important;
  }
  .biz-cta-banner h2 {
    font-size: 22px !important;
  /* --- Prevent any horizontal overflow --- */
  .container, .page-wrap, .container-narrow {
    max-width: 100%;
    padding: 0 12px;
  }
    padding: 0 12px;
  }
}

/* ─── NEAR YOU SECTION (homepage geolocation) ──────────────── */
.near-you-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.near-you-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.near-you-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.15s ease;
}
.near-you-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.near-you-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}
.near-you-card-niche {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: capitalize;
  margin-bottom: 8px;
}
.near-you-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.near-you-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  color: var(--ink);
}
.near-you-card-rating svg {
  flex-shrink: 0;
}
.near-you-card-city {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .near-you-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .near-you-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .near-you-card {
    padding: 16px;
  }
}

/* ─── TRUST SCORE TOOLTIP ───────────────────────── */
.trust-tooltip {
  position: relative;
  cursor: help;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.trust-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1;
  font-weight: 600;
  font-style: normal;
}
.trust-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
  width: 260px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
  box-shadow: var(--shadow-md);
  text-align: left;
  font-weight: 400;
}
.trust-tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 101;
}
.trust-tooltip:hover::after,
.trust-tooltip:hover::before {
  opacity: 1;
}
/* On mobile, position tooltip below to avoid clipping */
@media (max-width: 768px) {
  .trust-tooltip::after {
    bottom: auto;
    top: calc(100% + 8px);
    left: 0;
    transform: none;
  }
  .trust-tooltip::before {
    bottom: auto;
    top: calc(100% + 2px);
    left: 16px;
    transform: none;
    border-top-color: transparent;
    border-bottom-color: var(--ink);
  }
}

/* ─── BOTTOM TAB BAR — Mobile Only ────────────────── */
.mobile-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 6px 0 env(safe-area-inset-bottom, 8px);
  justify-content: space-around;
  align-items: center;
}
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-width: 56px;
  font-family: var(--font-primary);
}
.tab-item svg { stroke: var(--muted); }
.tab-item:hover, .tab-item.active {
  color: var(--accent);
}
.tab-item:hover svg, .tab-item.active svg {
  stroke: var(--accent);
}
.tab-item--primary {
  color: var(--accent);
}
.tab-item--primary svg {
  stroke: var(--accent);
}

/* More sheet */
.more-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
}
.more-sheet.open { display: block; }
.more-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.more-sheet-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 16px 16px 0 0;
  padding: 16px 24px calc(24px + env(safe-area-inset-bottom, 8px));
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: slideUp 0.2s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.more-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 16px;
}
.more-sheet-content a {
  padding: 14px 0;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.more-sheet-content a:last-child { border-bottom: none; }

/* Homepage transparent nav override for tab bar */
.nav--transparent ~ .mobile-tab-bar {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nav--transparent ~ .mobile-tab-bar .tab-item { color: rgba(255,255,255,0.7); }
.nav--transparent ~ .mobile-tab-bar .tab-item svg { stroke: rgba(255,255,255,0.7); }
.nav--transparent ~ .mobile-tab-bar .tab-item.active { color: #fff; }
.nav--transparent ~ .mobile-tab-bar .tab-item.active svg { stroke: #fff; }
.nav--transparent ~ .mobile-tab-bar .tab-item--primary { color: rgba(255,255,255,0.9); }
.nav--transparent ~ .mobile-tab-bar .tab-item--primary svg { stroke: rgba(255,255,255,0.9); }

@media (max-width: 768px) {
  .mobile-tab-bar { display: flex; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 16px)); }
  .nav-hamburger { display: none !important; }
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
}

/* ─── LAZY IMAGE LOADING ─────────────────────────── */
/* Only fade-in images that explicitly opt in via .img-lazy class.
   Using img[loading="lazy"] caused invisible images when JS failed. */
img.img-lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}
img.img-lazy.loaded {
  opacity: 1;
}
/* Fallback: if img has loading="lazy" and loads natively, show it */
img[loading="lazy"] {
  opacity: 1;
}

/* ─── PHOTO CARDS — data-driven, not photo-led ─── */
.card-image, .card-img, .card-photo, .business-photo, .listing-photo,
.result-image, .result-card-image, .biz-img-wrap, .card-img-wrap {
  display: none;
}

/* ─── LISTING HERO — plain, no gradient ─── */
.ab-photo-placeholder, .ab-photo-hero {
  background: var(--bg-base);
  background-image: none;
  min-height: auto;
}
.ab-photo-hero h1, .ab-photo-hero h2, .ab-photo-hero .business-name {
  font-family: var(--font-display);
  color: var(--ink);
  text-shadow: none;
}

/* ─── CONTENT-VISIBILITY: below-the-fold sections ────────── */
.similar-businesses,
.lead-form-section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}
