/* Patch 20 — избранное */

.favorite-header-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #181a20;
  font-size: 24px;
  transition: .18s ease;
  flex: 0 0 auto;
}

.favorite-header-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 28px rgba(24,26,32,.12);
  color: var(--primary);
}

.favorite-header-btn b {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 21px;
  height: 21px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  border: 2px solid #fff;
}

.favorite-header-btn b:not(.has-items) { display: none; }

.favorite-object-card { position: relative; }

.favorite-card-btn {
  position: absolute;
  z-index: 5;
  right: 14px;
  top: 14px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #181a20;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  transition: .18s ease;
}

.favorite-card-btn:hover,
.favorite-card-btn.active {
  background: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

.detail-title-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.favorite-detail-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 13px 18px;
  font-weight: 900;
  cursor: pointer;
  transition: .18s ease;
}

.favorite-detail-btn:hover,
.favorite-detail-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(235,103,83,.22);
}

.favorite-toast {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 3000;
  background: #181a20;
  color: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 900;
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .18s ease;
}

.favorite-toast.active { opacity: 1; transform: translateY(0); }

.favorites-hero { background: #181a20; color: #fff; }
.favorites-page { padding-top: 46px; }

.favorites-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
}

.favorites-top h2 { margin: 0 0 6px; font-size: 32px; }
.favorites-top p { margin: 0; color: var(--muted-foreground); }

.favorites-empty {
  display: none;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px;
  background: #fff;
  text-align: center;
}

.favorites-empty h3 { margin: 0 0 10px; font-size: 26px; }
.favorites-empty p { color: var(--muted-foreground); margin-bottom: 22px; }

@media (max-width: 760px) {
  .favorite-header-btn { width: 42px; height: 42px; font-size: 22px; }
  .detail-title-actions { justify-items: start; margin-top: 14px; }
  .favorites-top { display: block; }
  .favorites-top .btn { width: 100%; margin-top: 14px; }
}
