/* ==========================================================================
   operator.fyi — Image System v2.0 (Clean, Minimal)
   Neutral placeholders, subtle patterns, no colorful gradients
   ========================================================================== */

/* ---------- Niche Color Tokens (neutral/muted) ---------- */
:root {
  --niche-plumbing-from: #e8e8e8;
  --niche-plumbing-to: #d4d4d4;
  --niche-electrical-from: #e8e8e8;
  --niche-electrical-to: #d4d4d4;
  --niche-hvac-from: #e8e8e8;
  --niche-hvac-to: #d4d4d4;
  --niche-roofing-from: #e8e8e8;
  --niche-roofing-to: #d4d4d4;
  --niche-painting-from: #e8e8e8;
  --niche-painting-to: #d4d4d4;
  --niche-landscaping-from: #e8e8e8;
  --niche-landscaping-to: #d4d4d4;
  --niche-foundation-from: #e8e8e8;
  --niche-foundation-to: #d4d4d4;
  --niche-water-restoration-from: #e8e8e8;
  --niche-water-restoration-to: #d4d4d4;
  --niche-medspa-from: #e8e8e8;
  --niche-medspa-to: #d4d4d4;
  --niche-pet-services-from: #e8e8e8;
  --niche-pet-services-to: #d4d4d4;
  --niche-dental-from: #e8e8e8;
  --niche-dental-to: #d4d4d4;
  --niche-auto-detailing-from: #e8e8e8;
  --niche-auto-detailing-to: #d4d4d4;
  --niche-fitness-from: #e8e8e8;
  --niche-fitness-to: #d4d4d4;
  --niche-locksmith-from: #e8e8e8;
  --niche-locksmith-to: #d4d4d4;
  --niche-tutoring-from: #e8e8e8;
  --niche-tutoring-to: #d4d4d4;
  --niche-photography-from: #e8e8e8;
  --niche-photography-to: #d4d4d4;
  --niche-catering-from: #e8e8e8;
  --niche-catering-to: #d4d4d4;
  --niche-florist-from: #e8e8e8;
  --niche-florist-to: #d4d4d4;
  --niche-veterinarian-from: #e8e8e8;
  --niche-veterinarian-to: #d4d4d4;
  --niche-accountant-from: #e8e8e8;
  --niche-accountant-to: #d4d4d4;
  --niche-insurance-from: #e8e8e8;
  --niche-insurance-to: #d4d4d4;
  --niche-real-estate-from: #e8e8e8;
  --niche-real-estate-to: #d4d4d4;
  --niche-lawyer-from: #e8e8e8;
  --niche-lawyer-to: #d4d4d4;
  --niche-tattoo-from: #e8e8e8;
  --niche-tattoo-to: #d4d4d4;
  --niche-salon-from: #e8e8e8;
  --niche-salon-to: #d4d4d4;
  --niche-daycare-from: #e8e8e8;
  --niche-daycare-to: #d4d4d4;
  --niche-it-support-from: #e8e8e8;
  --niche-it-support-to: #d4d4d4;
  --niche-martial-arts-from: #e8e8e8;
  --niche-martial-arts-to: #d4d4d4;
}

/* ---------- Niche Hero Banners ---------- */
.niche-hero {
  position: relative;
  width: 100%;
  min-height: 120px;
  border-radius: var(--radius-lg, 3px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--surface, #e6e2db);
  border: 1px solid var(--border, #e8e8e8);
}
.niche-hero::before,
.niche-hero::after { display: none; }

.niche-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--max-width, 960px);
}
.niche-hero-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page-bg, #eeebe4);
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 3px;
}
.niche-hero-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--muted, #8a8a8a);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.niche-hero-text h1,
.niche-hero-text .niche-hero-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--ink, #1a1a1a);
  margin: 0 0 4px;
  text-shadow: none;
}
.niche-hero-text p,
.niche-hero-text .niche-hero-subtitle {
  font-size: 15px;
  color: var(--body, #4a4a4a);
  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: var(--muted, #8a8a8a);
  margin-top: 4px;
}

/* Niche-specific — all use the same neutral bg now */
.niche-hero--plumbing,
.niche-hero--electrical,
.niche-hero--hvac,
.niche-hero--roofing,
.niche-hero--painting,
.niche-hero--landscaping,
.niche-hero--foundation,
.niche-hero--water-restoration,
.niche-hero--medspa,
.niche-hero--pet-services,
.niche-hero--dental,
.niche-hero--auto-detailing,
.niche-hero--fitness,
.niche-hero--locksmith,
.niche-hero--tutoring,
.niche-hero--photography,
.niche-hero--catering,
.niche-hero--florist,
.niche-hero--veterinarian,
.niche-hero--accountant,
.niche-hero--insurance,
.niche-hero--real-estate,
.niche-hero--lawyer,
.niche-hero--tattoo,
.niche-hero--salon,
.niche-hero--daycare,
.niche-hero--it-support,
.niche-hero--martial-arts {
  background: var(--surface, #e6e2db);
}

/* ---------- Niche Cards (browse grid) ---------- */
.niche-card {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0;
  padding: 20px;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.niche-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  color: #fff;
}
.niche-card::after { display: none; }
.niche-card-icon {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  margin-bottom: 8px;
}
.niche-card-icon svg {
  width: 40px;
  height: 40px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}
/* Lottie player inside icon container */
.niche-card-icon lottie-player {
  width: 40px;
  height: 40px;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,0.3));
  opacity: 0.95;
}
/* When lottie-player has loaded, hide the SVG fallback */
.niche-card-icon lottie-player[ready] ~ .niche-card-svg,
.niche-card-icon lottie-player.lottie-ready ~ .niche-card-svg {
  display: none;
}
/* SVG fallback icon */
.niche-card-icon .niche-card-svg {
  width: 40px;
  height: 40px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Hide SVG by default when lottie-player is present (show on error via JS) */
.niche-card-icon lottie-player + .niche-card-svg {
  display: none;
}
/* Hover scale effect on the lottie icon — Airbnb-style delight */
.niche-card:hover .niche-card-icon lottie-player {
  transform: scale(1.15);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.niche-card-icon lottie-player {
  transition: transform 0.2s ease;
}
.niche-card-label {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.25);
  line-height: 1.3;
}

/* Niche-card gradient variants — photos set via inline style, no fallback gradient needed */
.niche-card--plumbing,
.niche-card--electrical,
.niche-card--hvac,
.niche-card--roofing,
.niche-card--painting,
.niche-card--landscaping,
.niche-card--foundation,
.niche-card--water-restoration,
.niche-card--medspa,
.niche-card--pet-services,
.niche-card--dental,
.niche-card--auto-detailing,
.niche-card--fitness,
.niche-card--locksmith,
.niche-card--tutoring,
.niche-card--photography,
.niche-card--catering,
.niche-card--florist,
.niche-card--veterinarian,
.niche-card--accountant,
.niche-card--insurance,
.niche-card--real-estate,
.niche-card--lawyer,
.niche-card--tattoo,
.niche-card--salon,
.niche-card--daycare,
.niche-card--it-support,
.niche-card--martial-arts {
  background-color: #333;
}

/* ---------- Niche Header Band (business pages) ---------- */
.niche-header-band {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 20px;
  background: var(--border, #e8e8e8);
}
.niche-header-band--plumbing,
.niche-header-band--electrical,
.niche-header-band--hvac,
.niche-header-band--roofing,
.niche-header-band--painting,
.niche-header-band--landscaping,
.niche-header-band--foundation,
.niche-header-band--water-restoration,
.niche-header-band--medspa,
.niche-header-band--pet-services,
.niche-header-band--dental,
.niche-header-band--auto-detailing,
.niche-header-band--fitness,
.niche-header-band--locksmith,
.niche-header-band--tutoring,
.niche-header-band--photography,
.niche-header-band--catering,
.niche-header-band--florist,
.niche-header-band--veterinarian,
.niche-header-band--accountant,
.niche-header-band--insurance,
.niche-header-band--real-estate,
.niche-header-band--lawyer,
.niche-header-band--tattoo,
.niche-header-band--salon,
.niche-header-band--daycare,
.niche-header-band--it-support,
.niche-header-band--martial-arts {
  background: var(--border, #e8e8e8);
}

/* ---------- 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: 600;
  color: var(--muted, #8a8a8a);
  background: var(--surface, #e6e2db);
  border: 1px solid var(--border, #e8e8e8);
  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; }

/* All avatar variants — same neutral */
.biz-avatar--plumbing,
.biz-avatar--electrical,
.biz-avatar--hvac,
.biz-avatar--roofing,
.biz-avatar--painting,
.biz-avatar--landscaping,
.biz-avatar--foundation,
.biz-avatar--water-restoration,
.biz-avatar--default,
.biz-avatar--medspa,
.biz-avatar--pet-services,
.biz-avatar--dental,
.biz-avatar--auto-detailing,
.biz-avatar--fitness,
.biz-avatar--locksmith,
.biz-avatar--tutoring,
.biz-avatar--photography,
.biz-avatar--catering,
.biz-avatar--florist,
.biz-avatar--veterinarian,
.biz-avatar--accountant,
.biz-avatar--insurance,
.biz-avatar--real-estate,
.biz-avatar--lawyer,
.biz-avatar--tattoo,
.biz-avatar--salon,
.biz-avatar--daycare,
.biz-avatar--it-support,
.biz-avatar--martial-arts {
  background: var(--surface, #e6e2db);
  color: var(--muted, #8a8a8a);
}

/* ---------- Listing Card Photo Placeholder ---------- */
.listing-card-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  background: var(--surface, #e6e2db);
  border-radius: 3px 3px 0 0;
}
.listing-card-placeholder::before { display: 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: var(--muted, #8a8a8a);
}

/* All placeholder variants — neutral */
.listing-card-placeholder--plumbing,
.listing-card-placeholder--electrical,
.listing-card-placeholder--hvac,
.listing-card-placeholder--roofing,
.listing-card-placeholder--painting,
.listing-card-placeholder--landscaping,
.listing-card-placeholder--foundation,
.listing-card-placeholder--water-restoration,
.listing-card-placeholder--medspa,
.listing-card-placeholder--pet-services,
.listing-card-placeholder--dental,
.listing-card-placeholder--auto-detailing,
.listing-card-placeholder--fitness,
.listing-card-placeholder--locksmith,
.listing-card-placeholder--tutoring,
.listing-card-placeholder--photography,
.listing-card-placeholder--catering,
.listing-card-placeholder--florist,
.listing-card-placeholder--veterinarian,
.listing-card-placeholder--accountant,
.listing-card-placeholder--insurance,
.listing-card-placeholder--real-estate,
.listing-card-placeholder--lawyer,
.listing-card-placeholder--tattoo,
.listing-card-placeholder--salon,
.listing-card-placeholder--daycare,
.listing-card-placeholder--it-support,
.listing-card-placeholder--martial-arts {
  background: var(--surface, #e6e2db);
}

/* ---------- Photo Placeholder (full-width, business pages) ---------- */
.photo-placeholder {
  width: 100%;
  min-height: 200px;
  border-radius: var(--radius-lg, 3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--surface, #e6e2db);
  border: 1px solid var(--border, #e8e8e8);
}
.photo-placeholder::before { display: none; }
.photo-placeholder-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page-bg, #eeebe4);
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 50%;
}
.photo-placeholder-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--muted, #8a8a8a);
  fill: none;
  stroke-width: 1.5;
}
.photo-placeholder-text {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted, #8a8a8a);
  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: var(--ink, #1a1a1a);
  background: var(--white, #f5f2ed);
  padding: 8px 16px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s ease;
  border: 1px solid var(--border, #e8e8e8);
}
.photo-placeholder-cta:hover {
  background: var(--surface, #e6e2db);
  color: var(--ink, #1a1a1a);
}

/* All photo-placeholder variants — neutral */
.photo-placeholder--plumbing,
.photo-placeholder--electrical,
.photo-placeholder--hvac,
.photo-placeholder--roofing,
.photo-placeholder--painting,
.photo-placeholder--landscaping,
.photo-placeholder--foundation,
.photo-placeholder--water-restoration,
.photo-placeholder--medspa,
.photo-placeholder--pet-services,
.photo-placeholder--dental,
.photo-placeholder--auto-detailing,
.photo-placeholder--fitness,
.photo-placeholder--locksmith,
.photo-placeholder--tutoring,
.photo-placeholder--photography,
.photo-placeholder--catering,
.photo-placeholder--florist,
.photo-placeholder--veterinarian,
.photo-placeholder--accountant,
.photo-placeholder--insurance,
.photo-placeholder--real-estate,
.photo-placeholder--lawyer,
.photo-placeholder--tattoo,
.photo-placeholder--salon,
.photo-placeholder--daycare,
.photo-placeholder--it-support,
.photo-placeholder--martial-arts {
  background: var(--surface, #e6e2db);
}

/* ---------- 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: 280px;
  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: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface, #e6e2db);
  border: 1px solid var(--border, #e8e8e8);
  opacity: 0;
  animation: heroGridFadeIn 0.4s ease-out forwards;
}
.hero-visual-cell svg {
  width: 24px;
  height: 24px;
  stroke: var(--muted, #8a8a8a);
  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.9); }
  to { opacity: 1; transform: scale(1); }
}

.hero-visual-pulse {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent, #1a1a1a);
  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, #1a1a1a);
  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: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface, #e6e2db);
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 3px;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}
.city-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--muted, #8a8a8a);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s ease;
}
a:hover .city-card-icon { border-color: var(--ink, #1a1a1a); }
a:hover .city-card-icon svg { stroke: var(--ink, #1a1a1a); }

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

/* ==========================================================================
   Listing Card Grid
   ========================================================================== */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .listing-grid { grid-template-columns: 1fr; } }

.listing-card {
  border-radius: 3px;
  overflow: hidden;
  background: var(--white, #f5f2ed);
  border: 1px solid var(--border, #e8e8e8);
  transition: border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  border-color: var(--ink, #1a1a1a);
  box-shadow: none;
  transform: none;
}
.listing-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.listing-card-photo-wrap {
  position: relative;
  overflow: hidden;
}
.listing-card-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.listing-card:hover .listing-card-photo { transform: none; }

.listing-card-placeholder {
  width: 100%;
  height: 180px;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  background: var(--surface, #e6e2db);
}

.listing-card-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.listing-card-photo-count {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  background: rgba(0,0,0,0.5); color: #fff;
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 4px;
}

.listing-card-body {
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px; flex: 1;
}
.listing-card-title {
  font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.listing-card-rating {
  display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink);
}
.listing-card-rating strong { font-weight: 600; font-size: 13px; }
.listing-card-rating .count { color: var(--muted); font-weight: 400; }
.listing-card-stars { display: inline-flex; align-items: center; gap: 1px; }

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

.listing-card-cta {
  margin-top: auto; padding-top: 6px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  transition: color 0.15s ease;
}
.listing-card:hover .listing-card-cta { color: var(--ink); }

/* ==========================================================================
   Hero Gallery — Business Page
   ========================================================================== */

.hero-gallery {
  position: relative;
  border-radius: var(--radius-lg, 3px);
  overflow: hidden;
  max-height: 400px;
}
.hero-gallery-main { width: 100%; max-height: 340px; overflow: hidden; }
.hero-gallery-main img {
  width: 100%; height: 340px; object-fit: cover; display: block;
}
.hero-gallery-main--solo img { height: 340px; }

.hero-gallery-thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 3px;
}
.hero-gallery-thumb { overflow: hidden; border-radius: 3px; cursor: pointer; }
.hero-gallery-thumb img {
  width: 100%; height: 72px; object-fit: cover; display: block;
  transition: opacity 0.15s ease;
}
.hero-gallery-thumb:hover img { opacity: 0.85; }
.hero-gallery-main:hover img { transform: none; }

@media (max-width: 768px) {
  .hero-gallery { border-radius: 0; max-height: 280px; }
  .hero-gallery-main img, .hero-gallery-main--solo img { height: 220px; }
  .hero-gallery-thumbs { gap: 2px; margin-top: 2px; }
  .hero-gallery-thumb img { height: 48px; }
}
@media (max-width: 480px) {
  .hero-gallery-thumbs { display: none; }
  .hero-gallery-main img { height: 200px; }
}

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