/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f5f5;
  color: #222;
  min-height: 100vh;
}

/* ===== TOPO ===== */
.topo {
  background: linear-gradient(135deg, #ff3b30, #ff6b00);
  padding: 30px 20px;
  text-align: center;
  color: #fff;
}
.topo h1 { font-size: 1.8rem; margin-bottom: 6px; }
.topo p   { font-size: 1rem; opacity: .9; }

.topo--resultado {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.btn-voltar {
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  opacity: .85;
  align-self: flex-start;
}
.subtitulo { font-size: .9rem; opacity: .85; }

/* ===== BOTÃO LOCALIZAÇÃO ===== */
.btn-localizacao {
  display: block;
  width: calc(100% - 30px);
  margin: 15px;
  padding: 15px;
  border: none;
  background: #00b050;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: background .2s;
}
.btn-localizacao:hover { background: #009040; }

.loc-status {
  text-align: center;
  font-size: .85rem;
  color: #555;
  margin: -8px 15px 5px;
}

/* ===== BUSCA ===== */
.busca { padding: 0 15px 10px; }
.busca input {
  width: 100%;
  padding: 13px 18px;
  border-radius: 50px;
  border: 1px solid #ddd;
  font-size: 1rem;
  outline: none;
}
.busca input:focus { border-color: #ff3b30; }

/* ===== GRID DE CATEGORIAS ===== */
.grid {
  padding: 10px 15px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.card {
  background: #fff;
  padding: 20px 10px;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
  user-select: none;
}
.card:hover  { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.card:active { transform: scale(.97); }
.icone { font-size: 46px; margin-bottom: 8px; }
.card strong { font-size: .85rem; color: #333; }

/* ===== LISTA DE RESULTADOS ===== */
.lista { padding: 15px; }

.vazio {
  text-align: center;
  padding: 40px 20px;
  color: #777;
}

.empresa {
  background: #fff;
  padding: 18px;
  border-radius: 20px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  position: relative;
}
.empresa--destaque { border: 2px solid #ffcc00; }

.badge-destaque {
  position: absolute;
  top: 12px; right: 12px;
  background: #ffcc00;
  color: #333;
  font-size: .75rem;
  font-weight: bold;
  padding: 3px 9px;
  border-radius: 20px;
}

.empresa__topo {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.logo {
  width: 72px; height: 72px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}

.empresa__info h3 { font-size: 1rem; margin-bottom: 4px; }
.empresa__info p  { font-size: .82rem; color: #555; margin-bottom: 3px; }

.status { font-size: .85rem; font-weight: bold; }
.status--aberto  { color: #00b050; }
.status--fechado { color: #cc0000; }

.empresa__desc { font-size: .85rem; color: #555; margin-bottom: 10px; }

.empresa__acoes { display: flex; flex-wrap: wrap; gap: 8px; }

.btn-acao {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-size: .88rem;
  font-weight: bold;
  transition: opacity .15s;
}
.btn-acao:hover { opacity: .88; }
.btn-acao--azul    { background: #007bff; }
.btn-acao--verde   { background: #25d366; }
.btn-acao--laranja { background: #e67e22; }
.btn-acao--cinza   { background: #666; }

/* ===== RESPONSIVO ===== */
@media (max-width: 400px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .empresa__topo { flex-direction: column; }
}
