/* === Estilo Global === */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #f5f6fa;
  color: #333;
}

header {
  text-align: center;
  background: #fff;
  padding: 25px 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

header h1 {
  margin: 0;
  color: #1e40af;
  font-size: 1.8rem;
}

header p {
  margin: 5px 0 15px;
  color: #666;
}

#busca {
  width: 90%;
  max-width: 400px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

/* === Grid de Anúncios === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card h2 {
  margin: 10px;
  font-size: 1.1rem;
  color: #1e3a8a;
}

.card p {
  margin: 0 10px 10px;
  color: #555;
  font-size: 0.9rem;
}

.card small {
  display: block;
  margin: 0 10px 10px;
  color: #888;
}

.whatsapp {
  display: block;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 8px;
  text-align: center;
  margin: 10px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.whatsapp:hover {
  background: #128c7e;
}

/* === Lista de Links Rápidos === */
#links-anuncios {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

#links-anuncios h2 {
  margin-bottom: 15px;
  color: #1e3a8a;
}

#lista-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

#lista-links li a {
  text-decoration: none;
  color: #1e40af;
  padding: 8px 12px;
  background: #f0f2f5;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}

#lista-links li a:hover {
  background: #dbeafe;
  transform: scale(1.05);
}

/* === Páginas Individuais de Anúncios === */
.container-anuncio {
  max-width: 700px;
  margin: 30px auto;
  padding: 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.container-anuncio header {
  text-align: center;
  margin-bottom: 25px;
}

.container-anuncio header h1 {
  font-size: 2rem;
  color: #1e3a8a;
  margin-bottom: 5px;
}

.container-anuncio header p {
  font-size: 1rem;
  color: #555;
}

.container-anuncio img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: transform 0.2s;
}

.container-anuncio img:hover {
  transform: scale(1.02);
}

.descricao-anuncio {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 25px;
}

.contato-anuncio .whatsapp {
  display: inline-block;
  background: #25d366;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background 0.2s;
}

.contato-anuncio .whatsapp:hover {
  background: #128c7e;
}

.container-anuncio footer {
  text-align: center;
  padding: 15px;
  color: #777;
  font-size: 0.9rem;
  margin-top: 30px;
}

/* === Footer === */
footer {
  background: #fff;
  text-align: center;
  padding: 15px;
  color: #777;
  font-size: 0.9rem;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.05);
}

/* === Responsivo === */
@media (max-width: 768px) {
  .container-anuncio {
    margin: 15px;
    padding: 15px;
  }
  .container-anuncio img {
    height: 200px;
  }
}
