.sidebar-desktop {
  position: sticky;
  top: 20px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  border: 1px solid #e9ecef;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.sidebar-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-filter-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-imovel {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-imovel:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-imovel:hover .card-img-top {
  transform: scale(1.05);
}

.badge-tipo {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(26, 46, 53, 0.9);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.card-text-bairro {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-features {
  display: flex;
  gap: 15px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #555;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-top: auto;
  margin-bottom: 1rem;
}

.btn-detalhes {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-detalhes:hover {
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
}

@media (min-width: 992px) {

  .card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .mobile-filter-trigger {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .sidebar-desktop-wrapper {
    display: none;
  }

  .card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}