/* Provider Details V2 - Premium Beauty Booking Experience
   Distinctive design with refined aesthetics
   WCAG AA compliant with luxury feel
*/

/* ===== PREMIUM ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(17, 17, 17, 0.2); }
  50% { box-shadow: 0 0 30px rgba(17, 17, 17, 0.4); }
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--panel-subtle);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: var(--space-l);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-screen p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
}

/* ===== MAIN LAYOUT ===== */
.provider-details-container {
  min-height: 100vh;
  background: var(--bg);
}

/* ===== HERO SECTION - Premium Card-Based Layout ===== */
.provider-hero {
  background: linear-gradient(180deg, var(--panel) 0%, rgba(17, 17, 17, 0.02) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* No decorative background layer here. A radial-gradient ::before (right -20%,
   width 60%) was cut off at its own left edge while still 2% dark, drawing a
   hard vertical line 60% across every venue page (reported 23 Sep 2026). */

.provider-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--container-padding);
  position: relative;
  z-index: 1;
}

/* Provider Gallery - Premium */
.provider-gallery {
  position: relative;
  animation: fadeInUp 0.5s ease-out;
}

.main-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--panel-subtle);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.gallery-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-image:hover .gallery-main-image {
  transform: scale(1.05);
}

.gallery-thumbnails {
  display: flex;
  gap: var(--space-s);
  margin-top: var(--space-l);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

.gallery-thumbnail {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-chip);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.gallery-thumbnail:hover {
  border-color: var(--primary);
}

.gallery-thumbnail.active {
  border-color: var(--brand-accent);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Provider Info - Premium Typography */
.provider-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: slideInRight 0.6s ease-out;
}

.provider-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-bottom: var(--space-l);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.breadcrumb-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.provider-name,
.provider-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 var(--space-l) 0;
  letter-spacing: -0.03em;
}

/* Provider Meta - Enhanced Layout */
.provider-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.provider-rating {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  /* Reserve one line of height so the async renderRating() fill-in
     (stars/"No reviews yet") doesn't grow this row after paint and
     push .provider-location/.provider-description/.provider-actions
     down — measured as the largest CLS culprit on /provider/<id>. */
  min-height: calc(var(--text-base) * var(--lh-normal));
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.star {
  width: 18px;
  height: 18px;
  /* Semantic amber (was --cal-orange — undefined var). Star-rating glyphs
     are a universal UX convention; keeping amber here is compliant with
     the brand rule that allows semantic colour for ratings. */
  color: #555555;
}

.star.empty {
  color: var(--border);
}

.rating-text {
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.rating-count {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.provider-location,
.provider-contact {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.provider-location svg,
.provider-contact svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.provider-status {
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-s);
  padding: 6px var(--space-m);
  border-radius: var(--radius-chip);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
}

.status-badge.open {
  background: var(--brand-accent-light);
  color: var(--brand-accent);
}

.status-badge.closed {
  background: #fafafa;
  color: #111111;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Provider Actions */
.provider-actions {
  margin-top: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-m);
  flex-wrap: wrap;
}

/* Contact row as text links, not stacked full-width pill buttons (W51 pair
   08: mobile stacked five bare full-width pills, one per row). Call,
   WhatsApp, Report, Block and Share sit inline next to the one black
   "Book Appointment" pill — each a small icon + label, no button chrome. */
.provider-actions .btn-link-action {
  background: none;
  border: none;
  padding: 8px 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary, #333333);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.provider-actions .btn-link-action:hover {
  color: var(--text-primary, #111111);
}

.provider-actions .btn-link-action svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  padding: 12px var(--space-xl);
  border-radius: var(--radius-button);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
  padding: 12px var(--space-xl);
  border-radius: var(--radius-button);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(17, 17, 17, 0.04);
}

.btn-secondary:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== CONTENT SECTIONS ===== */
.provider-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Tab Navigation - Modern Design */
.tab-navigation {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin: var(--space-2xl) 0 0 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tab-navigation::-webkit-scrollbar {
  display: none;
}

.tab-button {
  background: none;
  border: none;
  padding: var(--space-l) var(--space-xl);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.tab-button:hover {
  color: var(--text-primary);
}

.tab-button.active {
  color: var(--text-primary);
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-accent);
}

.tab-button:focus {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* Tab Content */
.tab-content {
  display: none;
  padding: var(--space-2xl) 0;
}

.tab-content.active {
  display: block;
}

/* ===== SERVICES SECTION - Premium Beauty Booking Design ===== */
.services-section {
  max-width: 800px;
  animation: fadeIn 0.5s ease-out;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-xl) 0;
  letter-spacing: -0.02em;
}

/* Service Category Groups - Premium Style */
.service-category {
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.5s ease-out backwards;
}

.service-category:nth-child(1) { animation-delay: 0.1s; }
.service-category:nth-child(2) { animation-delay: 0.2s; }
.service-category:nth-child(3) { animation-delay: 0.3s; }

.service-category:last-child {
  margin-bottom: 0;
}

.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
  padding-bottom: var(--space-m);
  border-bottom: 2px solid var(--primary);
}

.category-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.category-title {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.category-count {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-left: auto;
}

/* Services Container - Premium Card Design */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 20px rgba(17, 17, 17, 0.04);
  animation: fadeInUp 0.6s ease-out;
}

/* Service Card - Premium Horizontal Layout */
.service-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-xl);
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: fadeIn 0.4s ease-out backwards;
}

/* Staggered entrance animations */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.15s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.25s; }
.service-card:nth-child(5) { animation-delay: 0.3s; }

.service-card:last-child {
  border-bottom: none;
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  opacity: 0;
  transform: scaleY(0);
  transition: all 0.3s ease;
}

.service-card:hover {
  background: linear-gradient(to right, rgba(17, 17, 17, 0.03), var(--panel));
  transform: translateX(4px);
}

.service-card:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

/* Service Info - Left Side */
.service-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.service-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.service-card:hover .service-name {
  color: var(--primary-dark);
}

.service-description {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.service-duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(17, 17, 17, 0.06);
  border-radius: 20px;
}

.service-duration svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary);
}

/* Service Price - Premium Typography */
.service-price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  text-align: right;
  min-width: 100px;
  letter-spacing: -0.03em;
}

.service-price-from {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Book Button - Premium Gradient with Glow */
.service-actions {
  flex-shrink: 0;
}

.service-book-btn,
.btn-book {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-book-btn:hover,
.btn-book:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 24px rgba(17, 17, 17, 0.35),
    0 0 0 3px rgba(17, 17, 17, 0.1);
}

.service-book-btn:active,
.btn-book:active {
  transform: translateY(-1px) scale(1);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.25);
}

.service-book-btn:focus,
.btn-book:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(17, 17, 17, 0.3),
    0 4px 16px rgba(17, 17, 17, 0.3);
}

/* Hide the calendar icon in button on service cards */
.service-book-btn svg,
.service-card .btn-primary svg {
  display: none;
}

/* Service Image Thumbnail (optional) */
.service-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
}

.service-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Loading and Empty States */
.services-grid .loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--text-muted);
  border: none;
}

.loading-state .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e5e5;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

.no-services {
  text-align: center;
  padding: 48px 24px;
  color: #9e9e9e;
}

.no-services h3 {
  font-size: 18px;
  font-weight: 600;
  color: #555555;
  margin: 0 0 8px 0;
}

.no-services p {
  font-size: 14px;
  margin: 0;
}

/* Popular/Featured Badge */
.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.service-badge.popular {
  background: linear-gradient(135deg, #fafafa 0%, #e5e5e5 100%);
  color: #555555;
}

.service-badge.new {
  background: linear-gradient(135deg, #fafafa 0%, #d4d4d4 100%);
  color: #555555;
}

/* Reviews Section */
.reviews-summary {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  margin-bottom: var(--space-xl);
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-l);
}

.reviews-title {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: 0;
}

.overall-rating {
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.rating-score {
  font-size: var(--text-2xl);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.review-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-m);
}

.reviewer-name {
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.review-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.review-content {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--lh-sm);
}

/* About Section */
.about-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
}

.about-text {
  font-size: var(--text-base);
  line-height: var(--lh-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.business-details {
  display: grid;
  gap: var(--space-l);
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-m);
}

.detail-icon {
  color: var(--text-muted);
  margin-top: 2px;
  flex-shrink: 0;
}

.detail-content h4 {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.detail-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--lh-sm);
  margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .provider-hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--space-l);
  }

  .provider-name {
    font-size: var(--text-xl);
    line-height: var(--lh-xl);
  }

  .provider-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Only the one primary CTA goes full-width on mobile; the contact links
     stay an inline wrapping row underneath it, never a stack of pills. */
  .provider-actions .contact-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px var(--space-l);
  }

  .services-section {
    max-width: 100%;
  }

  .services-grid {
    border-radius: 12px;
    margin: 0;
  }

  .service-card {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    padding: 16px;
    gap: 12px;
  }

  .service-header {
    grid-column: 1 / -1;
  }

  .service-price {
    font-size: 15px;
    min-width: auto;
  }

  .service-book-btn,
  .btn-book {
    padding: 10px 20px;
    font-size: 13px;
  }

  .tab-navigation {
    padding: 0 var(--space-l);
    margin-left: calc(-1 * var(--space-l));
    margin-right: calc(-1 * var(--space-l));
  }

  .provider-content {
    padding: 0 var(--space-l);
  }

  .category-header {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .provider-hero-content {
    padding: var(--space-l);
  }

  .provider-name {
    font-size: var(--text-lg);
    line-height: var(--lh-lg);
  }

  /* Stack service card content on mobile */
  .service-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }

  .service-header {
    order: 1;
  }

  .service-price {
    order: 2;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
  }

  .service-actions {
    order: 3;
    width: 100%;
  }

  .service-book-btn,
  .btn-book {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 14px;
  }

  .service-name {
    font-size: 15px;
  }

  .service-description {
    font-size: 13px;
  }

  .category-title {
    font-size: 16px;
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.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;
}

/* Focus indicators for better accessibility */
.provider-gallery .gallery-thumbnail:focus,
.service-card:focus-within,
.review-card:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .status-badge.open {
    background: #000;
    color: #fff;
    border: 1px solid #fff;
  }
  
  .status-badge.closed {
    background: #fff;
    color: #000;
    border: 1px solid #000;
  }
}
/* Photos attached to a review — small squares, tap to open. */
.review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.review-photo {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--border-light, #e5e5e5);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-tertiary, #fafafa);
  cursor: pointer;
}
.review-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
