@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #f5f0e8;
  --surface: #fffdf8;
  --surface2: #f0ebe0;
  --border: #ddd5c0;
  --text: #2a2318;
  --text-muted: #7a6e5e;
  --accent: #c45c2a;
  --accent-light: #f5e6dc;
  --accent2: #2a6e4f;
  --accent2-light: #ddf0e8;
  --gold: #d4a843;
  --shadow: rgba(42, 35, 24, 0.10);
  --radius: 12px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── HEADER ── */
header {
  background: var(--text);
  padding: 28px 24px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.025) 20px,
    rgba(255,255,255,0.025) 21px
  );
  pointer-events: none;
}
header .building-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 6px;
}
header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
header p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-top: 6px;
  font-weight: 300;
}
header .btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
header .btn-add:hover { background: #a84d22; transform: translateY(-1px); }

/* Botão voltar à página inicial */
.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 99px;
  border: 1.5px solid rgba(255,255,255,0.35);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-home:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-1px);
}

/* ── SEARCH BAR ── */
.search-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}
.search-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.search-inner label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.search-inner select, .search-inner input {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
}
.search-inner select:focus, .search-inner input:focus {
  border-color: var(--accent);
}
.btn-buscar {
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-buscar:hover { background: #a84d22; }
.btn-limpar {
  padding: 10px 16px;
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-limpar:hover { border-color: var(--text-muted); color: var(--text); }

/* ── MAIN CONTENT ── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.results-header h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}
.results-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--surface2);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--border);
}

/* ── FILTER PILLS ── */
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.pill {
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  background: var(--surface);
  transition: all 0.2s;
  cursor: pointer;
}
.pill:hover, .pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.card:hover {
  box-shadow: 0 8px 28px var(--shadow);
  transform: translateY(-2px);
}
.card:hover::before { opacity: 1; }

.card-service {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.card-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.card-name {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  flex: 1;
}
.card-stars {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.stars-row { display: flex; gap: 2px; }
.star { width: 14px; height: 14px; }
.star-cheia  { fill: var(--gold); }
.star-meia   { fill: var(--gold); }
.star-vazia  { fill: #ddd5c0; }
.media-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Lista de múltiplos indicadores */
.indicadores-lista {
  list-style: none;
  padding: 0;
  margin: 2px 0 0;
}
.indicadores-lista li {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.indicadores-lista li::before {
  content: '· ';
  color: var(--accent);
  font-weight: 700;
}

/* WhatsApp button */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
  justify-content: center;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}

/* ── NOTAS ── */
.notas-bloco {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.nota-item {}
.nota-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.nota-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}
.nota-num {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}
.nota-num small {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-muted);
}
.nota-bar-bg {
  height: 5px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
}
.nota-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.card-indicator {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.card-indicator strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  opacity: 0.7;
  margin-bottom: 1px;
}

.rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.stars {
  display: flex;
  gap: 2px;
}
.star {
  width: 13px; height: 13px;
  fill: #ddd5c0;
}
.star.on { fill: var(--gold); }
.rating-num {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── EMPTY STATE ── */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty .icon { font-size: 3rem; margin-bottom: 12px; }
.empty h3 { font-family: 'Fraunces', serif; font-size: 1.2rem; margin-bottom: 6px; color: var(--text); }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-dev {
  margin-top: 8px;
  font-size: 0.75rem;
  opacity: 0.7;
}
.footer-dev a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.footer-dev a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── RESPONSIVO ── */
@media (max-width: 600px) {
  .search-inner { flex-direction: column; }
  .search-inner select, .search-inner input { min-width: 0; width: 100%; }
  .cards-grid { grid-template-columns: 1fr; }
}
