@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #faf8f5;
  --bg-surface: #ffffff;
  --bg-inset: #f5f0e8;
  --fg: #1a1a2e;
  --fg-muted: #6b6b7b;
  --border: #e8e0d4;
  --accent: #2c3e50;
  --accent-light: #d4a574;
  --gold: #c9a66b;
  --navy: #1a1a2e;
  --cream: #fdfcfa;
  --rose: #c17b7b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  border-radius: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  padding: 1.25rem;
  min-height: 300px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
}

.header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.header-icon {
  font-size: 1.5rem;
}

.header-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.header-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  background: var(--bg-inset);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

.header-badge.personalized {
  background: linear-gradient(135deg, #d4a574 0%, #c9a66b 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(201, 166, 107, 0.3);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(26, 26, 46, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.1);
}

.card-image-container {
  position: relative;
}

.card-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.card-favorite {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: var(--rose);
  font-size: 1.25rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.card-content {
  padding: 1rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  background: var(--bg-inset);
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
}

.card-rating-star {
  color: var(--gold);
}

.card-rating-value {
  color: var(--fg);
  font-weight: 500;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.card-specialty {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-style: italic;
}

.footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--fg-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 280px;
  text-align: center;
  padding: 2rem;
}

.icon-large {
  font-size: 2.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1.5s ease-in-out infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.card:nth-child(1) {
  animation-delay: 0s;
}
.card:nth-child(2) {
  animation-delay: 0.05s;
}
.card:nth-child(3) {
  animation-delay: 0.1s;
}
.card:nth-child(4) {
  animation-delay: 0.15s;
}
.card:nth-child(5) {
  animation-delay: 0.2s;
}
.card:nth-child(6) {
  animation-delay: 0.25s;
}
