@import url('https://fonts.googleapis.css2?family=Inter:wght@400;500;600;700&family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=Roboto+Mono&display=swap');

:root {
  --primary: hsl(20, 90%, 48%);
  --primary-foreground: hsl(33, 100%, 96%);
  --background: hsl(0, 0%, 96%);
  --foreground: hsl(0, 0%, 9%);
  --card: hsl(0, 0%, 98%);
  --secondary: hsl(0, 0%, 32%);
  --accent: hsl(47, 100%, 96%);
  --accent-foreground: hsl(37, 92%, 50%); /* Estrelas/Destaque */
  --muted-foreground: hsl(0, 0%, 40%);
  --destructive: hsl(0, 72%, 50%);
  --border: hsl(0, 0%, 83%);
  --radius: 12px;
  --header-height: 70px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: hsl(27, 95%, 60%);
    --primary-foreground: hsl(12, 81%, 14%);
    --background: hsl(0, 0%, 9%);
    --foreground: hsl(0, 0%, 98%);
    --card: hsl(0, 0%, 14%);
    --secondary: hsl(0, 0%, 45%);
    --accent: hsl(20, 91%, 14%);
    --accent-foreground: hsl(43, 96%, 56%);
    --muted-foreground: hsl(0, 0%, 60%);
    --destructive: hsl(0, 84%, 60%);
    --border: hsl(0, 0%, 32%);
  }
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Caslon Text', serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-center { text-align: center; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}
.btn-outline:hover {
  background-color: var(--accent);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(var(--card), 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  font-family: 'Libre Caslon Text', serif;
}

.logo-slogan {
  display: none;
  font-size: 0.7rem;
  color: var(--muted-foreground);
  font-family: 'Inter', sans-serif;
  font-weight: normal;
}

@media(min-width: 768px) {
  .logo-slogan { display: block; }
}

.header-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Hero Section */
.hero {
  padding: 60px 16px;
  text-align: center;
  background: linear-gradient(135deg, rgba(230,126,34,0.1) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.hero p {
  color: var(--muted-foreground);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Search Bar */
.search-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.15);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* Filters */
.filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 100px;
  background-color: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

.filter-chip.active, .filter-chip:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* Cards Grid */
.places-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px 0;
}

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

.place-card {
  background-color: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.place-img-container {
  height: 200px;
  background-color: var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.place-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: white;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: bold;
  font-size: 0.85rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.place-info {
  padding: 16px;
}

.place-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.star {
  color: var(--accent-foreground);
}

.rating-val {
  font-weight: bold;
}

.rating-count {
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

.badge-fire {
  background-color: rgba(230, 126, 34, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin-left: auto;
}

.place-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* Utils and Layouts for Details */
.cover-photo {
  height: 200px;
  background: var(--border);
  width: 100%;
  object-fit: cover;
}
@media(min-width: 768px) { .cover-photo { height: 300px; } }

.details-header-card {
  background: var(--card);
  padding: 30px;
  border-radius: var(--radius);
  margin-top: -60px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}
@media(min-width: 768px) {
  .reviews-grid { grid-template-columns: 2fr 1fr; }
}

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

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

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
