/* Listing search styles
 * Shared between realtor_page.html and search_listings.html
 */

.property-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover {
  transform: translateY(-6px);
}

.property-card:hover .card-image img {
  transform: scale(1.05);
}

.card-image {
  overflow: hidden;
}

.card-image img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn {
  transition: all 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
}

/* Estilos para filtros expansíveis */
.expandable-filter-container {
  position: relative;
}

.expandable-filter-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.expandable-filter-icon:hover {
  border-color: #60a5fa;
  color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.15);
}

.expandable-filter-icon.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.2);
}

.expandable-filter-icon.has-value {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
}

.filter-label {
  font-weight: 500;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.25rem;
  padding: 0 0.375rem;
  background: #2563eb;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9999px;
  margin-left: 0.25rem;
  animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgePop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.expandable-filter-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 50;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  min-width: max-content;
}

.expandable-filter-panel::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 1.25rem;
  width: 12px;
  height: 12px;
  background: white;
  border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
  transform: rotate(45deg);
}

.furnished-panel {
  min-width: 280px;
}

/* Animação de entrada suave para os painéis */
.expandable-filter-panel[x-cloak] {
  display: none;
}
