.public-user-list {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.public-user-list h2 {
  color: #1a1a1a;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.toggle-map-button {
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.toggle-map-button:hover {
  background: var(--color-primary-dark);
}

.filter-toggle {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 1rem 0;
}

.filter-toggle-button {
  padding: 0.5rem 1rem;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.filter-toggle-button:hover {
  background: #5a6268;
}

.location-panel {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.location-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.location-button {
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.location-button:hover:not(:disabled) {
  background: var(--color-primary-dark);
}

.location-button:disabled {
  background: #b6b6b6;
  cursor: not-allowed;
}

.location-status {
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.location-status.success {
  background: #e8f5e9;
  color: var(--color-primary-dark);
}

.location-status.error {
  background: #ffebee;
  color: #c62828;
}

.postal-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.postal-search input[type="text"] {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  width: 150px;
}

.postal-search input[type="text"]:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.postal-search button {
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.postal-search button:hover:not(:disabled) {
  background: var(--color-primary-dark);
}

.postal-search button:disabled {
  background: #b6b6b6;
  cursor: not-allowed;
}

.radius-filter label {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.radius-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.radius-inputs input[type="range"] {
  flex: 1;
  accent-color: var(--color-primary);
}

.radius-inputs input[type="number"] {
  width: 80px;
  padding: 0.4rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}

.radius-inputs input:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.radius-hint {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.5rem;
}

.gps-hint {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #777;
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Jägerschaft-style card */
.user-card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.user-card-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.user-card-photo-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--color-border);
}

.user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.user-name {
  margin: 0 0 0.2rem;
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.user-role {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.user-address {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.user-type {
  margin: 0.5rem 0 0;
}

.type-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #f0f0f0;
  color: #444;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.user-phone {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.user-phone:hover {
  text-decoration: underline;
}

.user-gps {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
  font-size: 0.85rem;
  color: #888;
}

.user-distance {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e5e5;
  font-size: 0.85rem;
  color: #555;
  font-weight: 500;
}

.no-users {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: #666;
}

@media (max-width: 768px) {
  .user-grid {
    grid-template-columns: 1fr;
  }

  .public-user-list {
    padding: 1rem;
  }

  .radius-inputs {
    flex-direction: column;
    align-items: stretch;
  }

  .radius-inputs input[type="number"] {
    width: 100%;
  }
}
