/* encontre.css — estilos próprios da página, vindos do <style> de Encontre um Arteterapeuta.dc.html */

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body { font-family: 'Archivo', sans-serif; color: #363435; background: #F6F5F2; -webkit-font-smoothing: antialiased; }
  ::selection { background: #C9A44A; color: #363435; }
  details > summary { list-style: none; cursor: pointer; }
  details > summary::-webkit-details-marker { display: none; }
  select { font-family: 'Archivo', sans-serif; }

  /* ---------- Filtro e cards de sócio ---------- */
  .finder-avatar {
    width: 52px; height: 52px; border-radius: 50%; color: #F6F5F2;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif; font-size: 20px; flex-shrink: 0;
  }
  .finder-avatar-at { background: #8A6A22; }
  .finder-avatar-ae { background: #4C8E68; }

  .finder-campo { font-size: 14px; color: #363435; }
  .finder-campo-vazio { font-size: 14px; color: #A8A5A1; }

  /* A seta nativa do <select> cola na borda direita e o navegador não deixa
     afastar. Desenhamos a nossa, com respiro de 14px. */
  .finder-select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    padding-right: 38px !important;
    background-color: #F6F5F2 !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235B5957' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
  }

  .finder-nota {
    margin-top: 18px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #7A7876;
  }

  .finder-mais {
    margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  }
  .finder-mais button {
    border: 1px solid #363435; background: transparent; color: #363435;
    font-family: 'Archivo', sans-serif; font-size: 12px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; padding: 14px 42px; cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  .finder-mais button:hover { background: #363435; color: #F6F5F2; }
  .finder-mais span { font-size: 12px; color: #7A7876; }

  .finder-tipo {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 12px; color: #5B5957;
  }
  .finder-pill {
    border: 1px solid #D3C7B0; background: transparent; color: #5B5957;
    font-family: 'Archivo', sans-serif; font-size: 12px;
    padding: 8px 18px; border-radius: 100px; cursor: pointer; white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }
  .finder-pill:hover { border-color: #363435; color: #363435; }
  .finder-pill-on { border-color: #363435; background: #363435; color: #F6F5F2; }
  .finder-pill-on:hover { color: #F6F5F2; }

  /* ---------- Busca: comportamento no mobile ----------
     O grid era fixo em 300px 1fr, sem breakpoint: a 390px a coluna de
     resultados caía em left:396px, fora da tela, e os perfis não
     apareciam no celular. Os !important vencem o style inline. */
  @media (max-width: 900px) {
    .finder-grid {
      grid-template-columns: 1fr !important;
      gap: 28px !important;
    }
    /* empilhada, a caixa de filtros não deve grudar no topo */
    .finder-filters { position: static !important; }
    /* item de grid tem min-width:auto: sem isto o <select> de opções
       longas ("Autismo (TEA), TDAH, Neurodivergências") impõe sua
       largura mínima e a coluna estoura a viewport */
    .finder-grid > * { min-width: 0 !important; }
    .finder-filters select,
    .finder-filters input { min-width: 0 !important; max-width: 100% !important; }
  }

  @media (max-width: 560px) {
    /* os campos do perfil em 2 colunas davam ~100px cada */
    .finder-fields {
      grid-template-columns: 1fr !important;
      gap: 16px !important;
    }
    /* o "Ver perfil +" na mesma linha quebrava o nome em 3 linhas */
    .finder-card-head {
      flex-wrap: wrap !important;
      row-gap: 12px !important;
      padding: 20px !important;
    }
    .finder-card-cta { flex: 1 0 100% !important; text-align: right; }
  }
