/* Shared Factory Cards & Results Styles */
.results-header {
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e5e7eb;
}

.results-count {
  font-weight: 600;
  color: #1c1c1c;
  font-size: 1rem;
}

.results-count span {
  color: #013b2b;
  font-weight: 700;
  font-size: 1.2rem;
}

.factory-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.factory-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  gap: 1.25rem;
  transition: box-shadow 0.2s ease;
  border: 1px solid #e5e7eb;
  height: 100%;
}

.factory-item:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.factory-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 1.5rem;
  font-weight: 600;
}

.factory-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.factory-name {
  font-weight: 700;
  color: #1c1c1c;
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  transition: color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.factory-name a {
  color: inherit;
  text-decoration: none;
}

.factory-name a:hover {
  color: #013b2b;
}

.badge-tier {
  border-radius: 9999px;
  padding: 0.3rem 0.7rem;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-tier.premium {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-tier.paid {
  background: #e6f3ee;
  color: #0b5d43;
  border: 1px solid #a7f3d0;
}

.badge-tier.free {
  background: #f7f8f9;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.factory-info {
  color: #6b7280;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.factory-info i {
  color: #9ca3af;
}

.addr-box {
  background: #f7f8f9;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #3f3f3f;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.addr-box i {
  color: #6b7280;
}

.phone-chip {
  background: #ffffff;
  color: #1c1c1c;
  border: 1px solid #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.phone-chip:hover {
  background: #f7f8f9;
  color: #1c1c1c;
}

.btn-outline-primary {
  color: #013B2B;
  border: 1px solid #013B2B;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  background: #ffffff;
}

.btn-outline-primary:hover {
  background: #013B2B;
  border-color: #013B2B;
  color: #ffffff;
}

.btn-outline-secondary {
  color: #013B2B;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background: #ffffff;
}

.btn-outline-secondary:hover {
  background: #F1F8F5;
  border-color: #E5E7EB;
  color: #013B2B;

.alert-light {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
}

.pagination {
  margin-top: 2rem;
}

.pagination .page-link {
  color: #F59E0B;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin: 0 0.25rem;
  font-weight: 500;
  transition: all 0.2s ease;
  background: #ffffff;
}

.pagination .page-link:hover {
  background: #F59E0B;
  border-color: #F59E0B;
  color: #ffffff;
}

.pagination .page-item.active .page-link {
  background: #F59E0B;
  border-color: #F59E0B;
}
