/* Listing Pages CSS - Fotografi e Modelle */

/* Page Header */
.listing-header {
  margin-bottom: 2rem;
}

.listing-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.listing-header p {
  color: #6b7280;
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .listing-header h1 {
    font-size: 2.5rem;
  }
}

/* Search and Filters */
.listing-filters {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e5e7eb;
}

.listing-filters .grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .listing-filters .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.listing-filters .relative {
  position: relative;
}

.listing-filters input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}

.listing-filters input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.listing-filters select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background-color: white;
  transition: all 0.15s ease;
}

.listing-filters select:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.listing-filters svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
}

/* Cards Grid */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .listing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Profile Cards */
.profile-card {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  overflow: hidden;
}

.profile-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.profile-card .card-content {
  padding: 1.5rem;
  padding-top: 0;
}

.profile-card .card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-card .avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

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

.profile-card .profile-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card .profile-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.profile-card .profile-location svg {
  width: 0.75rem;
  height: 0.75rem;
}

.profile-card .profile-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.profile-card .tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.profile-card .tag-primary {
  background-color: #f3f4f6;
  color: #374151;
}

.profile-card .tag-secondary {
  background-color: rgba(107, 114, 128, 0.2);
  color: #374151;
}

.profile-card .tag-gradient {
  background: linear-gradient(to right, #f3f4f6, #e5e7eb);
  color: #000000;
}

.profile-card .tag-border {
  border: 1px solid #e5e7eb;
  color: #374151;
}

.profile-card .description {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Photo Preview */
.photo-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.photo-preview .photo-item {
  aspect-ratio: 1 / 1;
  border-radius: 0.375rem;
  overflow: hidden;
}

.photo-preview .photo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f8f9fa;
}

/* Profile Stats */
.profile-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.profile-stats .stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.profile-stats .stat svg {
  width: 1rem;
  height: 1rem;
}

/* Action Button */
.profile-card .action-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  background-color: #d4af37;
  color: white;
}

.profile-card .action-button:hover {
  background-color: #b8941f;
  transform: translateY(-1px);
}

.profile-card .action-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* Button Classes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  /* Rimuove gli stili di default dei link */
  color: inherit;
  background: none;
  outline: none;
}

.btn:visited {
  color: inherit;
}

.btn:active {
  color: inherit;
  background: inherit;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn-primary {
  background-color: #d4af37;
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #b8941f;
  transform: translateY(-1px);
  color: white;
}

.btn-primary:visited {
  color: white;
}

.btn-primary:active {
  background-color: #a0851a;
  color: white;
}

.btn-outline {
  border: 1px solid #d1d5db;
  background-color: white;
  color: #374151;
}

.btn-outline:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

/* Load More Button */
.load-more {
  text-align: center;
  margin-top: 2rem;
}

.load-more button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background-color: white;
  color: #374151;
}

.load-more button:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.load-more button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Responsive Design */
@media (max-width: 640px) {
  .listing-filters .grid {
    grid-template-columns: repeat(1, 1fr);
  }
  
  .listing-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
  }
  
  .profile-card .card-content {
    padding: 1rem;
  }
  
  .profile-card .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .profile-card .avatar {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .profile-card .profile-name {
    font-size: 1rem;
  }
  
  .photo-preview {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Container */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* Utility Classes */
.min-h-screen {
  min-height: 100vh;
}

.bg-background {
  background-color: black !important;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.font-bold {
  font-weight: 700;
}

.text-gray-600 {
  color: #6b7280;
}

.bg-surface {
  background-color: #f9fafb;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.p-6 {
  padding: 1.5rem;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.left-3 {
  left: 0.75rem;
}

.top-1\/2 {
  top: 50%;
}

.transform {
  transform: translateY(-50%);
}

.-translate-y-1\/2 {
  transform: translateY(-50%);
}

.h-4 {
  height: 1rem;
}

.w-4 {
  width: 1rem;
}

.text-gray-400 {
  color: #9ca3af;
}

.w-full {
  width: 100%;
}

.pl-10 {
  padding-left: 2.5rem;
}

.pr-4 {
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.border {
  border-width: 1px;
}

.border-border {
  border-color: #e5e7eb;
}

.rounded-md {
  border-radius: 0.375rem;
}

.focus\:outline-none:focus {
  outline: none;
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px #d4af37;
}

.focus\:ring-primary:focus {
  box-shadow: 0 0 0 2px #d4af37;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Grid Responsive */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
