/* ═══════════════════════════════════════════════════════════════
   Uni Corso — KEDVENCEK
   ═══════════════════════════════════════════════════════════════ */
.nav-fav-item[hidden], .nav-fav-icon[hidden], #modalFav[hidden] { display: none !important; }

/* ── Szív ─────────────────────────────────────────────────── */
.fav-heart {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; cursor: none; color: rgba(250,250,248,.85);
  transition: color .25s, transform .25s, background .25s, border-color .25s;
}
.fav-heart svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; transition: fill .25s; }
.fav-heart:hover { color: var(--gold); }
.fav-heart.on { color: var(--gold); }
.fav-heart.on svg { fill: var(--gold); }
.fav-heart.pop { animation: fav-pop .45s ease; }
@keyframes fav-pop { 0% { transform: scale(1); } 40% { transform: scale(1.32); } 100% { transform: scale(1); } }

/* a lakásválasztó kártyáin: bal felső sarok (a státusz-címke a jobb felsőben van) */
.apt-unit .fav-heart-card {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(13,20,24,.72); border: 1px solid rgba(200,169,110,.3);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.apt-unit .fav-heart-card:hover { border-color: var(--gold); transform: scale(1.06); }
.apt-unit .fav-heart-card.on { background: rgba(13,20,24,.86); border-color: var(--gold); }

/* az adatlapon: a Nyomtatás gomb stílusában */
#modalFav {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
  background: transparent; border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.5); font-family: 'DM Sans', sans-serif;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  cursor: none; transition: all .3s; white-space: nowrap;
}
#modalFav svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linejoin: round; }
#modalFav:hover { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.3); }
#modalFav.on { color: var(--gold); border-color: rgba(200,169,110,.5); }
#modalFav.on svg { fill: var(--gold); }
#modalFav.pop svg { animation: fav-pop .45s ease; }

/* ── Menüpont + számláló ──────────────────────────────────── */
.nav-fav svg { display: inline-block; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; vertical-align: -2px; margin-right: 6px; }
.nav-fav .fav-count { margin-left: 6px; vertical-align: 1px; }
.fav-count {
  display: none; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--gold); color: var(--ink); font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: 0; line-height: 17px; text-align: center;
}
.fav-count.show { display: inline-block; }
.nav-fav-icon .fav-count.show, .mobile-menu .fav-count.show { display: inline-block; }
.fav-count.bump { animation: fav-pop .5s ease; }
.nav-fav-item .fav-count.show ~ svg, .nav-fav-item a:has(.fav-count.show) svg { fill: var(--gold); stroke: var(--gold); }

/* mobilon: szív ikon a hamburger mellett */
.nav-fav-icon {
  display: none; position: relative; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: none; border: 0; color: var(--white); cursor: none; padding: 0;
}
.nav-fav-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.nav-fav-icon .fav-count { position: absolute; top: 2px; right: 0; }
nav.solid .nav-fav-icon { color: var(--white); }
@media (max-width: 1024px) { .nav-fav-icon { display: inline-flex; } }
.mobile-menu .nav-fav svg { width: 26px; height: 26px; }
.mobile-menu .nav-fav .fav-count { font-style: normal; font-size: 12px; height: 22px; line-height: 22px; min-width: 22px; border-radius: 11px; }

/* ── Becsúszó panel ───────────────────────────────────────── */
html.fav-lock, html.fav-lock body { overflow: hidden; }
.fav-drawer { position: fixed; inset: 0; z-index: 1050; pointer-events: none; }
.fav-drawer.open { pointer-events: auto; }
.fav-backdrop {
  position: absolute; inset: 0; background: rgba(4,9,16,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .45s;
}
.fav-drawer.open .fav-backdrop { opacity: 1; }
.fav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 460px; max-width: 100%;
  background: var(--ink); border-left: 1px solid rgba(200,169,110,.22);
  box-shadow: -30px 0 80px rgba(0,0,0,.5);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .6s cubic-bezier(.23,1,.32,1);
  font-family: 'DM Sans', sans-serif; color: var(--white);
}
.fav-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 30%, #D9BE88 60%, transparent); }
.fav-drawer.open .fav-panel { transform: none; }

.fav-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 34px 32px 18px; }
.fav-eyebrow { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: 8px; }
.fav-head h2 { margin: 0; font-family: 'Playfair Display', serif; font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--white); }
.fav-head h2 span { font-size: 18px; color: var(--gold); vertical-align: super; margin-left: 4px; }
.fav-x { background: none; border: 1px solid rgba(255,255,255,.14); color: var(--muted); width: 40px; height: 40px; font-size: 15px; cursor: none; transition: all .3s; flex-shrink: 0; }
.fav-x:hover { color: var(--white); border-color: rgba(255,255,255,.35); }

.fav-tabs { display: flex; gap: 0; margin: 0 32px; border-bottom: 1px solid rgba(255,255,255,.08); }
.fav-tabs[hidden] { display: none; }
.fav-tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--muted); font-family: inherit; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  padding: 12px 0; margin-right: 26px; cursor: none; transition: color .3s, border-color .3s;
}
.fav-tabs button:hover { color: var(--white); }
.fav-tabs button.on { color: var(--white); border-bottom-color: var(--gold); }

.fav-body { flex: 1; overflow-y: auto; padding: 20px 32px 24px; overscroll-behavior: contain; }
.fav-body::-webkit-scrollbar { width: 4px; }
.fav-body::-webkit-scrollbar-thumb { background: rgba(200,169,110,.25); }

/* kártya */
.fav-card {
  position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 16px;
  padding: 14px; margin-bottom: 12px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-left: 2px solid var(--teal);
  transition: border-color .3s, background .3s;
}
.fav-card:hover { background: rgba(255,255,255,.05); }
.fav-card.pending { border-left-color: var(--gold); }
.fav-card.reserved { border-left-color: rgba(220,120,120,.6); opacity: .72; }
.fav-thumb { width: 112px; height: 112px; padding: 0; border: 0; background: var(--cream); overflow: hidden; cursor: none; position: relative; }
.fav-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .5s; }
.fav-thumb:hover img { transform: scale(1.05); }
.fav-thumb.noimg { background: rgba(0,112,149,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 200' fill='none'%3E%3Crect x='8' y='8' width='144' height='184' stroke='rgba(0,143,176,.45)' stroke-width='3'/%3E%3Cline x1='8' y1='90' x2='90' y2='90' stroke='rgba(0,143,176,.35)' stroke-width='2'/%3E%3Cline x1='90' y1='8' x2='90' y2='90' stroke='rgba(0,143,176,.35)' stroke-width='2'/%3E%3C/svg%3E") center/48% no-repeat; }
.fav-info { min-width: 0; padding-right: 30px; }
.fav-id { font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: .14em; color: var(--teal-bright); }
.fav-id span { color: var(--muted); }
.fav-type { font-family: 'Playfair Display', serif; font-style: italic; font-size: 19px; margin: 4px 0 2px; color: var(--white); }
.fav-size { font-size: 13px; color: var(--muted); }
.fav-status { display: inline-block; margin-top: 8px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-bright); }
.fav-status.pending { color: var(--gold); }
.fav-status.reserved { color: rgba(220,120,120,.9); }
.fav-link { display: block; margin-top: 8px; background: none; border: 0; padding: 0; color: var(--gold); font-family: inherit; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; cursor: none; }
.fav-link:hover { color: #D9BE88; }
.fav-heart-list { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; }
.fav-heart-list svg { width: 19px; height: 19px; }

/* összehasonlítás */
.fav-cmp { overflow-x: auto; margin: 0 -4px;
  background: linear-gradient(to right, var(--ink) 30%, transparent) left / 24px 100% no-repeat local, linear-gradient(to left, var(--ink) 30%, transparent) right / 24px 100% no-repeat local,
              linear-gradient(to right, rgba(0,0,0,.45), transparent) left / 12px 100% no-repeat scroll, linear-gradient(to left, rgba(200,169,110,.25), transparent) right / 14px 100% no-repeat scroll; }
.fav-cmp table { border-collapse: collapse; width: 100%; font-size: 13px; }
.fav-cmp th, .fav-cmp td { text-align: left; padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,.06); white-space: nowrap; vertical-align: middle; }
.fav-cmp thead th { padding-bottom: 14px; }
.fav-cmp thead th button { background: none; border: 0; padding: 0; color: var(--teal-bright); font-family: 'DM Mono', monospace; font-size: 13px; letter-spacing: .12em; cursor: none; }
.fav-cmp thead th button:hover { color: var(--white); }
.fav-heart-th { margin-left: 6px; vertical-align: middle; }
.fav-heart-th svg { width: 15px; height: 15px; }
.fav-cmp tbody th { font-weight: 400; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); position: sticky; left: 0; background: var(--ink); }
.fav-cmp td.best { color: var(--white); font-weight: 500; }
.fav-cmp td.best::after { content: ' ▲'; color: var(--gold); font-size: 9px; }
.fav-cmp td .fav-status { margin: 0; }

/* üres állapot */
.fav-empty { text-align: center; padding: 60px 10px 20px; }
.fav-empty-ic svg { width: 46px; height: 46px; fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .8; }
.fav-empty h3 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 24px; margin: 16px 0 10px; color: var(--white); }
.fav-empty p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0 0 26px; }

/* lábléc */
.fav-foot { padding: 18px 32px 26px; border-top: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 10px; }
.fav-foot[hidden] { display: none; }
.fav-foot-row { display: flex; gap: 10px; }
.fav-foot-row .fav-btn { flex: 1; }
.fav-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; background: transparent; border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.75); font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  cursor: none; transition: all .3s;
}
.fav-btn:hover { color: var(--white); border-color: rgba(255,255,255,.35); }
.fav-btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 500; }
.fav-btn-gold:hover { background: #D9BE88; border-color: #D9BE88; color: var(--ink); }
.fav-btn:disabled { opacity: .4; pointer-events: none; }
.fav-note { min-height: 16px; font-size: 12px; color: var(--gold); text-align: center; }

@media (max-width: 640px) {
  .fav-panel { width: 100%; border-left: 0; }
  .fav-head { padding: 26px 20px 14px; }
  .fav-head h2 { font-size: 28px; }
  .fav-tabs { margin: 0 20px; }
  .fav-body { padding: 16px 20px 20px; }
  .fav-foot { padding: 14px 20px 20px; }
  .fav-card { grid-template-columns: 92px 1fr; gap: 12px; }
  .fav-thumb { width: 92px; height: 92px; }
  .apt-unit .fav-heart-card { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .fav-panel, .fav-backdrop { transition: none; }
  .fav-heart.pop, .fav-count.bump { animation: none; }
}
@media print { .fav-drawer, .fav-heart, .nav-fav-icon { display: none !important; } }
@media (max-width: 640px) { #modalFav { width: 100%; justify-content: center; } }
