/* =========================================================
   ENCONTRE UM VETERINÁRIO
   ========================================================= */
.vet-hero {
  position: relative;
  overflow: hidden;
  background: url("../assets/img/bg-encontre.png") center / cover no-repeat;
}

.vet-hero .wrapper {
  position: relative;
  text-align: center;
  z-index: 2;
}

.vet-hero h1 {
  font-weight: 300; /* Light */
  font-size: 82px;
  line-height: 0.97; /* 97% */
  letter-spacing: 0;
  text-align: center;
  color: #132436;
  /* Glow do título (Figma exporta como box-shadow, mas em texto é text-shadow). */
  text-shadow: 0 0 29.4px rgba(46, 97, 133, 0.2);
  margin: 0 auto 2.5rem;
  max-width: 18ch;
}

/* Bloco do título: limita a área dos avatares (do topo até o fim do título),
   para eles não invadirem o .vet-search. O padding dá respiro acima/abaixo. */
.vet-hero-head {
  position: relative;
  padding: 6rem 0 3rem;
}

/* --- Avatares decorativos ao redor do título --- */
.vet-avatars {
  position: absolute;
  inset: 0; /* agora limitado ao .vet-hero-head */
  z-index: 1;
  pointer-events: none;
}

.vet-avatars .avatar {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  /* border: 4px solid var(--white-100); */
  box-shadow: 0 8px 24px rgba(19, 35, 54, 0.12);
}

/* Tamanhos individuais (spec) + posição dentro da região do título. */
.vet-avatars .a1 { top: 4%;  left: 15%;  width: 78px;  height: 78px;  }
.vet-avatars .a2 { top: 4%;  right: 17%; width: 80px;  height: 80px;  }
.vet-avatars .a3 { top: 55%; left: 0;  width: 100px; height: 100px; }
.vet-avatars .a4 { top: 50%; right: 0; width: 94px;  height: 94px;  }

/* --- Caixa de busca (spec) — envolve a linha de inputs E os resultados --- */
.vet-search {
  width: 984px;
  max-width: 100%;
  margin: 0 auto 4rem;
  padding: 32px 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5); /* #FFFFFF80 */
  border: 1px solid #ffffff;
  box-shadow: 0 0 4.6px 0 rgba(141, 190, 209, 0.4); /* #8DBED166 */
  text-align: left;
}

/* Linha de inputs + botão (fica oculta quando o resultado carrega). */
.vet-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* O display:flex acima venceria o atributo [hidden]; força ocultar. */
.vet-search-row[hidden] {
  display: none;
}

/* Cada campo é uma caixinha cinza (264.67 × 56, dividida igualmente). */
.vet-search .field {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  height: 56px;
  padding: 12px;
  border-radius: 4px;
  background: #f8f9fa; /* gray-100 */
  box-shadow: 0 0 4px 0 rgba(50, 54, 63, 0.1); /* #32363F1A */
}

.vet-search label {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 10px;
  line-height: 1.2; /* 120% */
  letter-spacing: 0;
  color: #a0a4ad; /* gray-300 */
}

.vet-search input,
.vet-search select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4; /* 140% */
  letter-spacing: 0;
  color: #32363f; /* gray-700 */
  padding: 0;
}
.vet-search input::placeholder {
  color: #32363f; /* gray-700 */
  opacity: 1;
}

/* Select: esconde a seta nativa e usa um chevron na cor do spec (#6A7282). */
.vet-search select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236A7282' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 20px;
}

.vet-search-btn {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  height: 50px;
  padding: 12px 21px;
  border-radius: 40px;
  font-family: var(--font-base);
  font-weight: 500; /* Medium */
  font-size: 14px;
  line-height: 1.2; /* 120% */
  white-space: nowrap;
  box-shadow: 0 0 4px 0 var(--cor-sombreado);
}
.vet-search-btn svg {
  flex: none; /* não deixa o flex espremer o ícone */
}

/* =========================================================
   RESULTADOS DA BUSCA — dois estados (achou / não achou)
   Carregam DENTRO da caixa .vet-search, no lugar da linha de
   inputs (toggle em js/veterinarios.js).
   ========================================================= */
.vet-results {
  text-align: left;
}

/* Padrão dos botões nos resultados (spec): pílula compacta. */
.vet-results .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 21px;
  border-radius: 40px;
  font-family: var(--font-base);
  font-weight: 500; /* Medium */
  font-size: 12px;
  line-height: 1.2; /* 120% */
  letter-spacing: 0;
  white-space: nowrap;
}
.vet-results .btn.primary {
  box-shadow: 0 0 4px 0 var(--cor-sombreado);
}

/* Versão "slim" (anexo 1) — spec. */
.vet-results .btn.slim {
  width: 154px;
  height: 28px;
  padding: 6px 12px;
  justify-content: space-between;
}

/* --- Anexo 1: lista de veterinários --- */
.vet-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.vet-results-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
}
.vet-results-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
}

.vet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vet-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  column-gap: 1.5rem;
  padding: 1rem 0;
}
.vet-row + .vet-row {
  border-top: 1px solid var(--gray-200);
}
.vet-name {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--slate-800);
}
.vet-clinic {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark-blue-900);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.vet-clinic svg {
  color: var(--red-700);
  flex: none;
}

/* --- Anexo 2: sem atendimento na região --- */
.vet-results--empty {
  text-align: center;
}
.vet-empty-title {
  font-weight: 400; /* Regular */
  font-size: 24px;
  line-height: 1; /* 100% */
  letter-spacing: 0;
  text-align: center;
  color: #234e64;
  margin: 1rem 0;
}
.vet-empty-text {
  max-width: 65%;
  margin: 0 auto 1.75rem;
  font-family: var(--font-base); /* Inter */
  font-weight: 400; /* Regular */
  font-size: 14px;
  line-height: 1.4; /* 140% */
  letter-spacing: 0;
  text-align: center;
  color: #6a7282; /* gray-400 */
}
.vet-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 768px) {
  .vet-hero {
    min-height: auto;
    padding: 3rem 0;
  }

  .vet-avatars .a1 { top: 2%; left: 4%; }
  .vet-avatars .a2 { top: 2%; right: 4%; }
  .vet-avatars .a3,
  .vet-avatars .a4 { display: none; }

  .vet-avatars .avatar {
    width: 3.5rem;
    height: 3.5rem;
  }

  .vet-search {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .vet-search .field + .field {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--gray-200);
    padding-top: 1rem;
  }

  .vet-search-btn {
    justify-content: center;
  }
}
