/* =========================================================
   LISTA DE ASSOCIADOS
========================================================= */

.sa-lista-associados {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  align-content: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: 20px;
}


/* =========================================================
   CAMPOS DO CADASTRO NO PAINEL
========================================================= */

.sa-meta-input {
  width: 100%;
  padding: 8px 10px;
  margin: 4px 0 12px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
}

.sa-meta-input:focus {
  border-color: #B74351;
  outline: none;
  box-shadow: 0 0 3px rgba(183, 67, 81, 0.5);
}

/* =========================================================
   CAMPOS DO CADASTRO NO PAINEL
========================================================= */

#sa_info .sa-meta-input {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 42px;
  padding: 8px 10px;
  margin: 6px 0 14px;
  box-sizing: border-box;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
}

#sa_info .sa-meta-input:focus {
  border-color: #B74351;
  outline: none;
  box-shadow: 0 0 0 1px #B74351;
}

#sa_info p {
  margin: 0 0 12px;
}

#sa_info label {
  display: block;
  margin-bottom: 5px;
}

#sa_info h3 {
  margin-top: 20px;
}


/* =========================================================
   FILTRO DE CATEGORIAS
========================================================= */

.sa-filtro-categorias {
  margin-bottom: 20px;
  text-align: left;
}

.sa-filtro-titulo {
  margin-bottom: 10px;
  color: #222;
  font-size: 16px;
  font-weight: 600;
}

.sa-filtro-btn {
  display: inline-block;
  margin: 0 6px 10px 0;
  padding: 6px 15px;
  background: #fff;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sa-filtro-btn h3 {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.sa-filtro-btn.active,
.sa-filtro-btn:hover {
  background: var(--wp--preset--color--custom-color-1);
  color: #fff;
  border-color: var(--wp--preset--color--custom-color-1);
}


/* =========================================================
   CARD DO ASSOCIADO
========================================================= */

.sa-associado {
  flex: 0 0 calc(25% - 20px);
  max-width: calc(25% - 20px);
  min-width: 300px;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding: 12px;
  background: #fff;
  border: 1px solid #BCBABA;
  border-radius: 10px;
  text-align: left;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.sa-associado:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}


/* =========================================================
   LOGO DO ASSOCIADO
========================================================= */

.sa-logo-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px 10px 0 0;
}

.sa-logo-wrap img,
.sa-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.sa-logo-default {
  color: var(--wp--preset--color--custom-color-1);
}

.sa-logo-default svg {
  display: block;
  fill: currentColor;
}

.sa-logo-default .sa-logo {
  width: 80px;
  height: auto;
}

.sa-logo-wrap svg {
  width: 30% !important;
  height: auto;
  max-height: 80%;
  fill: currentColor;
}

.sa-logo-default svg {
  color: #008AD2;
}


/* =========================================================
   NOME DA EMPRESA
========================================================= */

.sa-nome-empresa {
  margin: 20px 0 10px;
  color: #333;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}


/* =========================================================
   INFORMAÇÕES DO ASSOCIADO
========================================================= */

.sa-info {
  flex-grow: 1;
  margin-top: 10px;
  margin-bottom: 20px;
  text-align: left;
}

.sa-info p {
  margin: 7px 0;
  color: #333;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: normal;
}

.sa-info strong {
  color: var(--wp--preset--color--custom-color-1);
}

.sa-info a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: color 0.2s ease;
}

.sa-info a:hover {
  color: var(--wp--preset--color--custom-color-1);
  text-decoration: underline;
}


/* =========================================================
   TELEFONE
========================================================= */

.sa-telefone-link {
  color: inherit;
  text-decoration: none;
}

.sa-telefone-link:hover {
  color: var(--wp--preset--color--custom-color-1);
  text-decoration: underline;
}


/* =========================================================
   E-MAIL
========================================================= */

.sa-email {
  overflow: hidden;
}

.sa-email-link {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sa-email-link:hover {
  color: var(--wp--preset--color--custom-color-1);
  text-decoration: underline;
}


/* =========================================================
   SITE
========================================================= */

.sa-site-link {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sa-site-link:hover {
  color: var(--wp--preset--color--custom-color-1);
  text-decoration: underline;
}


/* =========================================================
   ENDEREÇO E GOOGLE MAPS
========================================================= */

.sa-endereco {
  overflow-wrap: anywhere;
}

.sa-maps-link {
  color: inherit;
  text-decoration: none;
}

.sa-maps-link:hover {
  color: var(--wp--preset--color--custom-color-1);
  text-decoration: underline;
}


/* =========================================================
   REDES SOCIAIS
========================================================= */

.sa-socials {
  position: relative;
  left: -12px;
  width: calc(100% + 24px);
  box-sizing: border-box;
  margin-top: auto;
  padding: 20px 12px 8px;
  border-top: 1px solid #ccc;
  text-align: center;
}

.sa-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  color: var(--wp--preset--color--custom-color-1);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.sa-social-link:hover {
  transform: scale(1.1);
}

.sa-social-icon {
  display: block;
  color: var(--wp--preset--color--custom-color-1);
  transition: 0.3s ease;
}

.sa-social-icon svg {
  width: 30px;
  height: 30px;
  display: block;
  fill: currentColor;
}


/* =========================================================
   CONTAINER PRINCIPAL
========================================================= */

.sa-associados-container {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
}

.sa-associados-container.sa-loading {
  opacity: 0.6;
  pointer-events: none;
}

.sa-nenhum-associado {
  width: 100%;
}


/* =========================================================
   CARROSSEL DE LOGOS
========================================================= */

.logo-carrossel {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #fff;
}

.logos-container {
  width: 100%;
  overflow-x: auto;
  display: flex;
  justify-content: flex-start;
  scroll-behavior: smooth;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.logos-container::-webkit-scrollbar {
  display: none;
}

.logos-container.active {
  cursor: grabbing;
}

.logos {
  width: max-content;
  display: flex;
  gap: 20px;
  padding: 30px 20px 40px 0;
}

.logo-item {
  flex: 0 0 auto;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px !important;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.logo-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.logo-item-link {
  width: 100%;
  display: block;
  color: inherit;
  text-decoration: none;
}

.logo-item img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  object-position: center;
  background-color: #fff;
  border-radius: 10px;
}

.logo-item .sa-logo-default {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item .sa-logo-default svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.logo-carrossel h3 {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}


/* =========================================================
   SETAS DO CARROSSEL
========================================================= */

.arrow {
  position: absolute;
  z-index: 9999;
  padding: 8px;
  background-color: transparent;
  border: none;
  color: #333;
  font-size: 25px;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.arrow:hover {
  color: var(--wp--preset--color--custom-color-1);
  background: transparent;
}

.arrow:focus,
.arrow:focus-visible,
.arrow:active {
  outline: none;
  box-shadow: none;
  background: transparent;
}

.arrow.left {
  left: 15px;
}

.arrow.right {
  right: 15px;
}


/* =========================================================
   RESPONSIVIDADE
========================================================= */

@media (max-width: 1482px) {

  .sa-associado {
    min-width: 270px;
  }
}


@media (max-width: 1365px) {

  .sa-associado {
    min-width: 250px;
  }
}


@media (max-width: 1280px) {

  .sa-associado {
    min-width: 200px;
  }
}


@media (max-width: 1024px) {

  .sa-associado {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
  }
}


@media (max-width: 768px) {

  .sa-lista-associados {
    padding-left: 0;
  }

  .sa-associado {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }

  .sa-logo-wrap svg {
    width: 30% !important;
  }

  .logos {
    gap: 20px;
    padding: 10px 20px;
  }

  .logo-carrossel .sa-logo-wrap {
    height: 100px;
  }

  .logo-carrossel .sa-logo-wrap svg {
    width: 50% !important;
  }

  .logo-item {
    width: 100px;
  }

  .logo-item img {
    width: 90px;
    height: 90px;
  }

  .logo-item h3 {
    font-size: 12px;
  }

  .arrow {
    padding: 8px;
    font-size: 24px;
  }

  .sa-btn-filtro {
    width: 100%;
  }

  .sa-filtro-modal-wrap {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }
}


@media (max-width: 480px) {

  .sa-associado {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }

  .sa-logo-wrap {
    height: 180px;
  }

  .sa-info p {
    font-size: 14px;
  }

  .sa-social-link {
    margin: 0 6px;
  }

  .sa-social-icon svg {
    width: 28px;
    height: 28px;
  }
}