/* Botão flutuante — canto inferior esquerdo */
.desk-fav-launcher {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 100100;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--cor_principal, #246bfd);
  color: #fff;
  box-shadow: 0 8px 24px rgba(18, 45, 77, 0.22);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.desk-fav-launcher.desk-fav-launcher--enter {
  animation: deskFavLauncherPop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes deskFavLauncherPop {
  0% {
    opacity: 0;
    transform: scale(0.4) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.desk-fav-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 45, 77, 0.28);
}

.desk-fav-launcher:active {
  transform: scale(0.96);
}

.desk-fav-launcher .fa {
  font-size: 20px;
}

.desk-fav-launcher.hidden {
  display: none !important;
}

.hidden {
  display: none !important;
}

/* Painel lateral esquerdo */
.desk-fav-panel-root {
  position: fixed;
  inset: 0;
  z-index: 100110;
  pointer-events: none;
}

.desk-fav-panel-root:not(.hidden) {
  pointer-events: auto;
}

.desk-fav-panel-root.hidden {
  display: none !important;
}

.desk-fav-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 45, 77, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.desk-fav-panel-root.is-open .desk-fav-panel-backdrop {
  opacity: 1;
}

.desk-fav-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(380px, 92vw);
  max-width: 100%;
  background: #fff;
  box-shadow: 8px 0 32px rgba(18, 45, 77, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.desk-fav-panel-root.is-open .desk-fav-panel {
  transform: translateX(0);
}

.desk-fav-panel-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 18px 14px;
  border-bottom: 1px solid #eef1f5;
}

.desk-fav-panel-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #122d4d;
}

.desk-fav-panel-count {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #8997a9;
  margin-top: 2px;
}

.desk-fav-panel-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f4f6f9;
  color: #122d4d;
  cursor: pointer;
  flex-shrink: 0;
}

.desk-fav-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.desk-fav-panel-empty {
  text-align: center;
  padding: 40px 16px;
  color: #8997a9;
}

.desk-fav-panel-empty .fa {
  font-size: 36px;
  color: var(--cor_principal, #246bfd);
  opacity: 0.65;
  margin-bottom: 12px;
}

.desk-fav-panel-empty p {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #122d4d;
}

.desk-fav-panel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.desk-fav-panel-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eef1f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font: inherit;
  color: inherit;
}

.desk-fav-panel-item:hover {
  border-color: color-mix(in srgb, var(--cor_principal, #246bfd) 35%, #eef1f5);
  box-shadow: 0 4px 14px rgba(18, 45, 77, 0.08);
}

.desk-fav-panel-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eef1f5;
  display: grid;
  place-items: center;
}

.desk-fav-panel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desk-fav-panel-thumb .fa {
  font-size: 22px;
  color: #b9c4d0;
}

.desk-fav-panel-info {
  flex: 1;
  min-width: 0;
}

.desk-fav-panel-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--cor_principal, #246bfd);
}

.desk-fav-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: #122d4d;
  line-height: 1.35;
  margin: 2px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.desk-fav-panel-address {
  font-size: 12px;
  color: #8997a9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desk-fav-panel-price {
  font-size: 14px;
  font-weight: 700;
  color: #122d4d;
  margin-top: 4px;
}

.desk-fav-panel-item-remove {
  flex-shrink: 0;
  align-self: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #c0392b;
  cursor: pointer;
  opacity: 0.7;
}

.desk-fav-panel-item-remove:hover {
  opacity: 1;
  background: #fdecea;
}

.desk-fav-panel-foot {
  flex-shrink: 0;
  padding: 12px 16px 18px;
  border-top: 1px solid #eef1f5;
}

.desk-fav-panel-clear {
  width: 100%;
  height: 44px;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  background: #fff;
  color: #c0392b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.desk-fav-panel-clear:hover {
  background: #fdecea;
  border-color: #f5c6c0;
}

/* Botão salvar nos cards e detalhes — retângulo (não círculo) */
.desk-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: auto;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(18, 45, 77, 0.14);
  color: #8997a9;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.desk-fav-btn:hover {
  transform: scale(1.04);
  background: #fff;
}

.desk-fav-btn .fa {
  font-size: 16px;
}

.desk-fav-btn.saved {
  color: var(--cor_principal, #246bfd);
}

.desk-fav-btn.saved .fa {
  color: var(--cor_principal, #246bfd);
}

.desk-fav-btn--hero {
  position: static;
  display: inline-flex;
  vertical-align: middle;
  margin-left: 8px;
  min-width: 34px;
  height: 34px;
  border-radius: 6px;
}

/* Pesquisa: estrela à esquerda, tag de transação à direita */
.search-feat-grid .desk-fav-btn,
.search-feat-grid .desk-fav-btn--listing {
  top: 10px;
  left: 10px;
  right: auto;
  z-index: 5;
}

/* Quando há sobreposição, reposiciona no canto inferior esquerdo */
.desk-fav-btn--bl {
  top: auto;
  right: auto;
  bottom: 10px;
  left: 10px;
}

.desk-fav-btn--bl-rise {
  bottom: 48px;
}

.search-feat-grid .desk-fav-btn--bl {
  top: auto;
  right: auto;
  bottom: 10px;
  left: 10px;
}

.search-feat-grid .desk-fav-btn--bl-rise {
  bottom: 48px;
}

.search-feat-grid .search-feat-card .thmb_cntnt .tag2 {
  z-index: 3;
}

.feat_property .thumb,
.popular_listing_slider1 .thumb {
  position: relative;
}

@media (max-width: 767px) {
  .desk-fav-launcher,
  .desk-fav-panel-root {
    display: none !important;
  }
}
