/* ============================================
   LOCAL BUSINESSES MODULE - Styles
   Consistent with Onwash design system
   ============================================ */

/* Local Businesses Button (Home Page) */
.local-business-container {
  margin: 0 16px 20px;
  animation: fadeIn 0.5s ease;
}

.local-business-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.local-business-btn:active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.local-business-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.local-business-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.local-business-content {
  flex: 1;
  text-align: left;
}

.local-business-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.local-business-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Business List */
.business-grid {
  display: grid;
  gap: 16px;
  padding: 0 16px 20px;
}

.business-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.business-card:active {
  transform: scale(0.98);
  border-color: var(--border-brand);
}

.business-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.business-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.business-logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.business-info {
  flex: 1;
  min-width: 0;
}

.business-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.business-category {
  font-size: 13px;
  color: var(--text-second);
  margin-bottom: 6px;
}

.business-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

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

.star {
  width: 14px;
  height: 14px;
}

.star-filled {
  color: #FFB700;
}

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

.business-rating-text {
  color: var(--text-second);
  font-weight: 500;
}

.business-discount-badge {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, #00e5a0 0%, #00b894 100%);
  color: white;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

/* Business Detail Page */
.business-detail-header {
  padding: 20px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  border-radius: 20px;
}

.business-detail-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.business-detail-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
}

.business-detail-category {
  font-size: 14px;
  color: var(--text-second);
  text-align: center;
  margin-bottom: 12px;
}

.business-detail-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.business-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.business-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.business-contact-btn:active {
  background: var(--bg-input);
  transform: scale(0.97);
}

.business-contact-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--brand);
}

.business-section {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}

.business-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.business-section-title svg {
  width: 20px;
  height: 20px;
  stroke: var(--brand);
}

.business-location-text {
  font-size: 14px;
  color: var(--text-second);
  line-height: 1.6;
}

.business-map-container {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 12px;
  background: var(--bg-elevated);
}

.business-description {
  font-size: 14px;
  color: var(--text-second);
  line-height: 1.6;
}

.business-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.business-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
}

.review-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
}

.review-user-info {
  flex: 1;
}

.review-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

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

.review-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}

.review-comment {
  font-size: 14px;
  color: var(--text-second);
  line-height: 1.6;
}

.review-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 16px;
}

.rating-selector {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}

.rating-star {
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted);
}

.rating-star:hover,
.rating-star.selected {
  color: #FFB700;
  transform: scale(1.1);
}

/* Registration Form */
.registration-step {
  padding: 20px 16px 100px;
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.3s ease;
}

.step-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--brand);
}

.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-card);
}

.upload-area:hover {
  border-color: var(--border-brand);
  background: var(--bg-elevated);
}

.upload-area svg {
  width: 48px;
  height: 48px;
  stroke: var(--text-muted);
  margin: 0 auto 12px;
}

.upload-text {
  font-size: 14px;
  color: var(--text-second);
  margin-bottom: 4px;
}

.upload-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.upload-preview {
  position: relative;
  margin-top: 12px;
}

.upload-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.upload-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terms-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.terms-content {
  font-size: 14px;
  color: var(--text-second);
  line-height: 1.8;
}

.terms-content h3 {
  color: var(--text-primary);
  font-size: 16px;
  margin: 16px 0 8px;
}

.terms-content h3:first-child {
  margin-top: 0;
}

.terms-content p {
  margin-bottom: 12px;
}

.terms-content ul {
  margin: 8px 0 12px 20px;
}

.terms-content li {
  margin-bottom: 6px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 16px;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--brand);
}

.checkbox-text {
  font-size: 14px;
  color: var(--text-second);
  line-height: 1.6;
}

.cooperation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.cooperation-card h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.cooperation-card p {
  font-size: 14px;
  color: var(--text-second);
  line-height: 1.6;
  margin-bottom: 16px;
}

.cooperation-options {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.cooperation-option {
  flex: 1;
  padding: 16px;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

.cooperation-option.selected {
  background: var(--bg-input);
  border-color: var(--brand);
}

.cooperation-option-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cooperation-option-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.discount-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin: 20px 16px;
}

.status-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-icon.pending {
  background: rgba(255, 183, 0, 0.1);
  color: var(--warning);
}

.status-icon.approved {
  background: rgba(0, 229, 160, 0.1);
  color: var(--success);
}

.status-icon.rejected {
  background: rgba(255, 77, 109, 0.1);
  color: var(--error);
}

.status-icon svg {
  width: 32px;
  height: 32px;
}

.status-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.status-message {
  font-size: 14px;
  color: var(--text-second);
  line-height: 1.6;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state svg {
  width: 80px;
  height: 80px;
  stroke: var(--text-muted);
  margin: 0 auto 20px;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-second);
}

/* Filter Bar */
.filter-bar {
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-second);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.filter-chip:active {
  transform: scale(0.95);
}

/* Image Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.fade-in {
  animation: fadeIn 0.4s ease;
}

/* ── Multi-select Category Filter ────────────────────── */
.category-filter-section {
  padding: 14px 16px 10px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 15px;
}

.category-filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.category-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px 8px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.category-chip:active {
  transform: scale(0.94);
}

.category-chip.active {
  background: rgba(0, 166, 255, 0.1);
  border-color: var(--brand);
}

.category-chip-icon {
  font-size: 20px;
  line-height: 1;
}

.category-chip-text {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-second);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.category-chip.active .category-chip-text {
  color: var(--brand);
}

