/* Botão de favoritar (site público) — persistido no navegador via localStorage. */
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.18);
  color: #9aa6b8;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}

.fav-btn:hover {
  transform: scale(1.08);
}

.fav-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.fav-btn.is-active {
  color: #ef4444;
}

.fav-btn.is-active svg {
  fill: #ef4444;
  stroke: #ef4444;
}

/* Variante "linha" usada na barra lateral da página do imóvel. */
.fav-btn--wide {
  position: static;
  width: 100%;
  height: auto;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  background: #f4f6fb;
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
}

.fav-btn--wide .fav-btn__label::after {
  content: 'Salvar nos favoritos';
}

.fav-btn--wide.is-active {
  color: #ef4444;
  background: #fef2f2;
}

.fav-btn--wide.is-active .fav-btn__label::after {
  content: 'Salvo nos favoritos';
}

/* Barra de filtros da página de favoritos (filtra no navegador). */
.favbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.favbar__chips,
.favbar__selects {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.chip {
  padding: .5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: .85rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.chip:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
