/* FILTROS DE EDITAIS */
.bc-filtros-box {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.bc-filtros-header {
  margin-bottom: 12px;
  font-size: 16px;
}

.bc-filtro {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
  border-top: 1px solid #e5e5e5;
  padding-top: 8px;
  margin-top: 8px;
}

.bc-filtro-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  cursor: pointer;
  color: #333;
}

.bc-filtro-toggle span:last-child {
  color: #999;
}

.bc-filtro-toggle:hover {
  background: none !important;
  color: inherit;
}

.bc-filtro-toggle:focus,
.bc-filtro-toggle:focus-visible,
.bc-filtro-toggle:active {
  background: none !important;
  color: inherit !important;
  box-shadow: none !important;
  outline: none !important;
}

.bc-filtro-conteudo {
  margin-bottom: 12px;
  position: relative;
  overflow: visible !important;
}

.bc-filtro-conteudo,
.bc-filtro select,
.bc-filtro .bc-btn-cidade {
  display: none;
}

.bc-filtro.bc-filtro-aberto .bc-filtro-conteudo,
.bc-filtro.bc-filtro-aberto select,
.bc-filtro.bc-filtro-aberto .bc-btn-cidade {
  display: block;
}

.bc-campo label {
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

.bc-campo select {
  width: 100%;
  padding: 6px;
}

.bc-filtro select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  margin-top: 15px;
}

#bc-estado,
#bc-cidade {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
}

#bc-estado {
  margin-bottom: 10px;
}

#bc-cidade {
  margin-bottom: 10px;
}

#bc-estado:focus,
#bc-cidade:focus {
  outline: none;
  border: 3px solid #1e73be;
  box-shadow: 0 0 0 2px rgba(30, 115, 190, 0.15);
}

/* AUTOCOMPLETE DE CIDADES */
#bc-autocomplete-cidades {
  position: absolute;
  top: calc(100% - 38px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  z-index: 9999;
  max-height: 180px;
  overflow-y: auto;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  display: none;
}

.bc-autocomplete-item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
}

.bc-autocomplete-item:hover {
  background-color: #f2f7ff;
}

/* AÇÕES DOS FILTROS */
.bc-filtro-acoes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
}

.bc-btn-aplicar {
  width: 100%;
  padding: 14px 20px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bc-btn-aplicar:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.bc-btn-aplicar:active {
  transform: translateY(0);
}

.bc-btn-cidade {
  width: 100%;
  padding: 14px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bc-btn-cidade:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.bc-btn-cidade:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bc-btn-limpar {
  text-align: center;
}

.bc-btn-limpar:hover {
  color: #007bff;
  transform: translateY(-2px);
}

.bc-btn-cidade.loading {
  position: relative;
  color: transparent;
}

.bc-btn-cidade.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .bc-filtros-box,
  .bc-filtro {
    width: 100%;
  }
  
  .bc-filtro-acoes {
    gap: 10px;
  }
  
  .bc-btn-aplicar,
  .bc-btn-cidade,
  .bc-btn-limpar {
    padding: 12px 16px;
    font-size: 14px;
  }
}