/* ==========================================================================
   getfound.now — Image System v1.0
   CSS-only visuals: niche heroes, business avatars, photo placeholders
   Zero external images — gradients, inline SVGs, CSS patterns only
   ========================================================================== */

/* ---------- Niche Color Tokens ---------- */
:root {
  --niche-plumbing-from: #1E88E5;
  --niche-plumbing-to: #0D47A1;
  --niche-electrical-from: #FFB300;
  --niche-electrical-to: #E65100;
  --niche-hvac-from: #26C6DA;
  --niche-hvac-to: #00838F;
  --niche-roofing-from: #8D6E63;
  --niche-roofing-to: #4E342E;
  --niche-painting-from: #EC407A;
  --niche-painting-to: #7B1FA2;
  --niche-landscaping-from: #66BB6A;
  --niche-landscaping-to: #2E7D32;
  --niche-foundation-from: #8E8E8E;
  --niche-foundation-to: #424242;
  --niche-water-restoration-from: #42A5F5;
  --niche-water-restoration-to: #1565C0;
}

/* ---------- Niche Hero Banners ---------- */
.niche-hero {
  position: relative;
  width: 100%;
  min-height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  color: #fff;
}
.niche-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none;
}
.niche-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.03) 40px,
    rgba(255,255,255,0.03) 80px
  );
  pointer-events: none;
}
.niche-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--max-width, 1280px);
}
.niche-hero-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.niche-hero-icon svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.niche-hero-text h1,
.niche-hero-text .niche-hero-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.niche-hero-text p,
.niche-hero-text .niche-hero-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin: 0;
  line-height: 1.5;
}
.niche-hero-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}

/* Niche-specific gradients */
.niche-hero--plumbing {
  background: linear-gradient(135deg, var(--niche-plumbing-from) 0%, var(--niche-plumbing-to) 100%);
}
.niche-hero--electrical {
  background: linear-gradient(135deg, var(--niche-electrical-from) 0%, var(--niche-electrical-to) 100%);
}
.niche-hero--hvac {
  background: linear-gradient(135deg, var(--niche-hvac-from) 0%, var(--niche-hvac-to) 100%);
}
.niche-hero--roofing {
  background: linear-gradient(135deg, var(--niche-roofing-from) 0%, var(--niche-roofing-to) 100%);
}
.niche-hero--painting {
  background: linear-gradient(135deg, var(--niche-painting-from) 0%, var(--niche-painting-to) 100%);
}
.niche-hero--landscaping {
  background: linear-gradient(135deg, var(--niche-landscaping-from) 0%, var(--niche-landscaping-to) 100%);
}
.niche-hero--foundation {
  background: linear-gradient(135deg, var(--niche-foundation-from) 0%, var(--niche-foundation-to) 100%);
}
.niche-hero--water-restoration {
  background: linear-gradient(135deg, var(--niche-water-restoration-from) 0%, var(--niche-water-restoration-to) 100%);
}

/* ---------- Niche Cards (homepage / browse) ---------- */
.niche-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
  min-height: 140px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.niche-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.niche-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
}
.niche-card-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.niche-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.niche-card-label {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Niche card gradient variants */
.niche-card--plumbing { background: linear-gradient(135deg, var(--niche-plumbing-from), var(--niche-plumbing-to)); }
.niche-card--electrical { background: linear-gradient(135deg, var(--niche-electrical-from), var(--niche-electrical-to)); }
.niche-card--hvac { background: linear-gradient(135deg, var(--niche-hvac-from), var(--niche-hvac-to)); }
.niche-card--roofing { background: linear-gradient(135deg, var(--niche-roofing-from), var(--niche-roofing-to)); }
.niche-card--painting { background: linear-gradient(135deg, var(--niche-painting-from), var(--niche-painting-to)); }
.niche-card--landscaping { background: linear-gradient(135deg, var(--niche-landscaping-from), var(--niche-landscaping-to)); }
.niche-card--foundation { background: linear-gradient(135deg, var(--niche-foundation-from), var(--niche-foundation-to)); }
.niche-card--water-restoration { background: linear-gradient(135deg, var(--niche-water-restoration-from), var(--niche-water-restoration-to)); }

/* ---------- Niche Header Band (business pages) ---------- */
.niche-header-band {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  margin-bottom: 20px;
}
.niche-header-band--plumbing { background: linear-gradient(90deg, var(--niche-plumbing-from), var(--niche-plumbing-to)); }
.niche-header-band--electrical { background: linear-gradient(90deg, var(--niche-electrical-from), var(--niche-electrical-to)); }
.niche-header-band--hvac { background: linear-gradient(90deg, var(--niche-hvac-from), var(--niche-hvac-to)); }
.niche-header-band--roofing { background: linear-gradient(90deg, var(--niche-roofing-from), var(--niche-roofing-to)); }
.niche-header-band--painting { background: linear-gradient(90deg, var(--niche-painting-from), var(--niche-painting-to)); }
.niche-header-band--landscaping { background: linear-gradient(90deg, var(--niche-landscaping-from), var(--niche-landscaping-to)); }
.niche-header-band--foundation { background: linear-gradient(90deg, var(--niche-foundation-from), var(--niche-foundation-to)); }
.niche-header-band--water-restoration { background: linear-gradient(90deg, var(--niche-water-restoration-from), var(--niche-water-restoration-to)); }

/* ---------- Business Avatar (letter-based) ---------- */
.biz-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-primary);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
  line-height: 1;
  user-select: none;
}
.biz-avatar--sm {
  width: 36px;
  height: 36px;
  font-size: 14px;
}
.biz-avatar--md {
  width: 48px;
  height: 48px;
  font-size: 18px;
}
.biz-avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 24px;
}
.biz-avatar--xl {
  width: 80px;
  height: 80px;
  font-size: 32px;
}

/* Avatar colors — uses niche gradient as background */
.biz-avatar--plumbing { background: linear-gradient(135deg, var(--niche-plumbing-from), var(--niche-plumbing-to)); }
.biz-avatar--electrical { background: linear-gradient(135deg, var(--niche-electrical-from), var(--niche-electrical-to)); }
.biz-avatar--hvac { background: linear-gradient(135deg, var(--niche-hvac-from), var(--niche-hvac-to)); }
.biz-avatar--roofing { background: linear-gradient(135deg, var(--niche-roofing-from), var(--niche-roofing-to)); }
.biz-avatar--painting { background: linear-gradient(135deg, var(--niche-painting-from), var(--niche-painting-to)); }
.biz-avatar--landscaping { background: linear-gradient(135deg, var(--niche-landscaping-from), var(--niche-landscaping-to)); }
.biz-avatar--foundation { background: linear-gradient(135deg, var(--niche-foundation-from), var(--niche-foundation-to)); }
.biz-avatar--water-restoration { background: linear-gradient(135deg, var(--niche-water-restoration-from), var(--niche-water-restoration-to)); }

/* Fallback neutral avatar */
.biz-avatar--default {
  background: linear-gradient(135deg, var(--muted), var(--ink));
}

/* ---------- Listing Card Photo Placeholder ---------- */
.listing-card-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.listing-card-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(255,255,255,0.5) 20px,
      rgba(255,255,255,0.5) 40px
    );
  pointer-events: none;
}
.listing-card-placeholder .biz-avatar {
  position: relative;
  z-index: 1;
}
.listing-card-placeholder-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* Placeholder niche colors (lighter versions for card backgrounds) */
.listing-card-placeholder--plumbing { background: linear-gradient(135deg, #1E88E5, #1565C0); }
.listing-card-placeholder--electrical { background: linear-gradient(135deg, #FFB300, #F57C00); }
.listing-card-placeholder--hvac { background: linear-gradient(135deg, #26C6DA, #0097A7); }
.listing-card-placeholder--roofing { background: linear-gradient(135deg, #8D6E63, #5D4037); }
.listing-card-placeholder--painting { background: linear-gradient(135deg, #EC407A, #AB47BC); }
.listing-card-placeholder--landscaping { background: linear-gradient(135deg, #66BB6A, #388E3C); }
.listing-card-placeholder--foundation { background: linear-gradient(135deg, #8E8E8E, #616161); }
.listing-card-placeholder--water-restoration { background: linear-gradient(135deg, #42A5F5, #1976D2); }

/* ---------- Photo Placeholder (full-width, business pages) ---------- */
.photo-placeholder {
  width: 100%;
  min-height: 280px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.photo-placeholder-icon {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.photo-placeholder-icon svg {
  width: 36px;
  height: 36px;
  stroke: rgba(255,255,255,0.8);
  fill: none;
  stroke-width: 1.5;
}
.photo-placeholder-text {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  max-width: 300px;
}
.photo-placeholder-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.15s ease;
  border: 1px solid rgba(255,255,255,0.3);
}
.photo-placeholder-cta:hover {
  background: rgba(255,255,255,0.3);
  color: #fff;
}

/* Photo placeholder niche colors */
.photo-placeholder--plumbing { background: linear-gradient(135deg, var(--niche-plumbing-from), var(--niche-plumbing-to)); }
.photo-placeholder--electrical { background: linear-gradient(135deg, var(--niche-electrical-from), var(--niche-electrical-to)); }
.photo-placeholder--hvac { background: linear-gradient(135deg, var(--niche-hvac-from), var(--niche-hvac-to)); }
.photo-placeholder--roofing { background: linear-gradient(135deg, var(--niche-roofing-from), var(--niche-roofing-to)); }
.photo-placeholder--painting { background: linear-gradient(135deg, var(--niche-painting-from), var(--niche-painting-to)); }
.photo-placeholder--landscaping { background: linear-gradient(135deg, var(--niche-landscaping-from), var(--niche-landscaping-to)); }
.photo-placeholder--foundation { background: linear-gradient(135deg, var(--niche-foundation-from), var(--niche-foundation-to)); }
.photo-placeholder--water-restoration { background: linear-gradient(135deg, var(--niche-water-restoration-from), var(--niche-water-restoration-to)); }

/* ---------- Niche Icon Component ---------- */
.niche-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.niche-icon svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.niche-icon--sm svg { width: 18px; height: 18px; }
.niche-icon--md svg { width: 24px; height: 24px; }
.niche-icon--lg svg { width: 32px; height: 32px; }

/* ---------- Homepage Hero Visual ---------- */
.hero-visual {
  position: relative;
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 400px;
}
.hero-visual-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: heroGridFadeIn 0.4s ease-out forwards;
}
.hero-visual-cell svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-visual-cell:nth-child(1) { animation-delay: 0.1s; }
.hero-visual-cell:nth-child(2) { animation-delay: 0.2s; }
.hero-visual-cell:nth-child(3) { animation-delay: 0.3s; }
.hero-visual-cell:nth-child(4) { animation-delay: 0.4s; }
.hero-visual-cell:nth-child(5) { animation-delay: 0.5s; }
.hero-visual-cell:nth-child(6) { animation-delay: 0.6s; }
.hero-visual-cell:nth-child(7) { animation-delay: 0.7s; }
.hero-visual-cell:nth-child(8) { animation-delay: 0.8s; }

@keyframes heroGridFadeIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

/* Floating pulse dot animation for the hero */
.hero-visual-pulse {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  top: 20px;
  right: 40px;
  animation: heroVisualPulse 2s ease-in-out infinite;
}
.hero-visual-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: heroVisualPulseRing 2s ease-in-out infinite;
}
@keyframes heroVisualPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes heroVisualPulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

/* ---------- City Card Visual Treatment ---------- */
.city-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.city-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s ease;
}
a:hover .city-card-icon {
  background: rgba(255,90,95,0.08);
}
a:hover .city-card-icon svg {
  stroke: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .niche-hero {
    min-height: 160px;
    padding: 28px 20px;
    border-radius: 0;
  }
  .niche-hero-icon {
    width: 48px;
    height: 48px;
  }
  .niche-hero-icon svg {
    width: 24px;
    height: 24px;
  }
  .niche-hero-text h1,
  .niche-hero-text .niche-hero-title {
    font-size: 22px;
  }
  .photo-placeholder {
    min-height: 200px;
    border-radius: 0;
  }
  .hero-visual-grid {
    max-width: 280px;
    gap: 6px;
  }
  .hero-visual-cell svg {
    width: 22px;
    height: 22px;
  }
  .listing-card-placeholder .biz-avatar--lg {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}

/* ==========================================================================
   Listing Card Grid — Photo-Forward (Angi/Thumbtack style)
   ========================================================================== */

/* Responsive grid: 3 cols desktop, 2 tablet, 1 mobile */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .listing-grid { grid-template-columns: 1fr; }
}

/* Card container */
.listing-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.listing-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Photo area */
.listing-card-photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.listing-card-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.listing-card:hover .listing-card-photo {
  transform: scale(1.04);
}

/* Placeholder (no photo) — aspect ratio 16:10 */
.listing-card-placeholder {
  width: 100%;
  height: 200px;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

/* Badge overlays */
.listing-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
.listing-card-photo-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Card body */
.listing-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.listing-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.2px;
}

/* Rating row */
.listing-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--ink);
}
.listing-card-rating strong {
  font-weight: 700;
  font-size: 14px;
}
.listing-card-rating .count {
  color: var(--muted);
  font-weight: 400;
}
.listing-card-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

/* Location */
.listing-card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}
.listing-card-location svg {
  flex-shrink: 0;
  stroke: var(--muted);
}

/* View Profile CTA */
.listing-card-cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.15s ease;
}
.listing-card:hover .listing-card-cta {
  color: #E00007;
}

/* ==========================================================================
   Hero Gallery — Business Page (Airbnb-style photo grid)
   ========================================================================== */

.hero-gallery {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 480px;
}
.hero-gallery-main {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}
.hero-gallery-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.hero-gallery-main:hover img {
  transform: scale(1.02);
}
.hero-gallery-main--solo img {
  height: 400px;
}

/* Thumbnail strip below main photo */
.hero-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 4px;
}
.hero-gallery-thumb {
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}
.hero-gallery-thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.hero-gallery-thumb:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Responsive hero gallery */
@media (max-width: 768px) {
  .hero-gallery {
    border-radius: 0;
    max-height: 320px;
  }
  .hero-gallery-main img,
  .hero-gallery-main--solo img {
    height: 260px;
  }
  .hero-gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin-top: 2px;
  }
  .hero-gallery-thumb img {
    height: 56px;
  }
}
@media (max-width: 480px) {
  .hero-gallery-thumbs {
    display: none;
  }
  .hero-gallery-main img {
    height: 220px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-visual-cell { animation: none; opacity: 1; }
  .hero-visual-pulse { animation: none; }
  .hero-visual-pulse::after { animation: none; }
  .listing-card,
  .listing-card-photo,
  .hero-gallery-main img,
  .hero-gallery-thumb img {
    transition: none;
  }
  .listing-card:hover {
    transform: none;
  }
  .listing-card:hover .listing-card-photo {
    transform: none;
  }
}

/* ---------- High Contrast ---------- */
@media (prefers-contrast: high) {
  .niche-hero-text h1,
  .niche-hero-text .niche-hero-title {
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  }
  .biz-avatar {
    border: 2px solid #fff;
  }
  .photo-placeholder-text {
    color: #fff;
  }
  .listing-card {
    border: 1px solid var(--ink);
  }
}
