/* Antetul Backlot: sigla, cele 4 linkuri, butoanele din dreapta (lupa, Add Listing, inima cu numărul, contul), meniul contului și hamburgerul.
   Sursa: redesign/css/base.css (antetul) și backlot-live.css (antetul de pe site, 13.11.2026); sunt valorile finale după cascada prototipului.
   Cifrele sunt cele măsurate pe site-ul de azi: meniul 11px, majuscule, spațiere .2em, #424242, pagina curentă #bfbfbf; roșu #d42521.
   Hamburgerul apare sub 1210px, când linkurile nu mai încap (măsurat 13.11.2026 la sigla de azi: 1043px necesari; 1210px acoperă și siglele propuse).
   Panoul lupei stă în header-search.css; comportamentul în js/backlot/header.js. Nu conține subsolul sau bara de jos. */

/* Bootstrap colorează linkurile la :hover și :focus (#23527c, subliniat): în antet linkurile își păstrează culoarea */
[data-d="d"] .hdr a:is(:hover, :focus) { text-decoration: none; }
/* css/style.css pune fontul vechi cu !important pe h1–h6, p, span (inclusiv numărul de pe inimă și titlurile panoului) */
[data-d="d"] .hdr :is(h1, h2, h3, h4, h5, h6, p, span) { font-family: var(--font) !important; }

[data-d="d"] .hdr { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #eee; box-shadow: 0 0 5px rgb(136 136 136 / .55); }
[data-d="d"] .hdr-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; min-height: 80px; }
[data-d="d"] .logo-link { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
[data-d="d"] .logo-link img { display: block; height: 52px; width: auto; max-width: none; }

/* linkurile principale */
[data-d="d"] .hdr-nav { display: flex; align-items: center; justify-content: flex-end; gap: 0; }
[data-d="d"] .hdr-nav a { padding: 10px 11px; border-radius: var(--r-pill); font-size: 11px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  color: #424242; text-decoration: none; white-space: nowrap; transition: color .4s ease; }
[data-d="d"] .hdr-nav a[aria-current="page"] { color: #bfbfbf; }
@media (hover: hover) {
  [data-d="d"] .hdr-nav a:hover { color: var(--accent); }
  [data-d="d"] .hdr-nav a[aria-current="page"]:hover { color: #bfbfbf; }
}

/* dreapta-sus, roșu ca pe site: lupa, Add Listing, inima; pe site textul/iconița devin negre la hover */
[data-d="d"] .hdr-right { display: flex; align-items: center; gap: 8px; grid-column: -2; }   /* mereu în ultima coloană */
[data-d="d"] .hdr .add { min-height: 38px; padding: 0 12px; font-size: 11px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
[data-d="d"] .hdr .add .ico { width: 14px; height: 14px; }
[data-d="d"] .hdr :is(.hdr-heart, .hdr-lupa) { width: 38px; min-height: 38px; height: 38px; padding: 0; }
[data-d="d"] .hdr-heart { position: relative; }
[data-d="d"] .hdr :is(.hdr-heart, .hdr-lupa) .ico { width: 18px; height: 18px; }
/* numărul de pe inimă: mic, alb, cerc (rămâne rotund și cu colțurile drepte ale restului) */
[data-d="d"] .hdr-heart .count { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px;
  background: #fff; color: var(--accent); box-shadow: 0 0 0 1px var(--accent); font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
@media (hover: hover) {
  [data-d="d"] .hdr :is(.add, .hdr-heart, .hdr-lupa):hover { background: var(--accent); color: #000; }
}

/* contul: butonul cu avatar (iconița ≡ lângă avatar) */
[data-d="d"] .acct { display: inline-flex; align-items: center; gap: 8px; height: 38px; font-size: 15.5px; padding: 0 4px 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); text-decoration: none; }
[data-d="d"] .acct .avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--mute); color: var(--bg); }
@media (hover: hover) { [data-d="d"] .acct:hover { box-shadow: var(--shadow-2); } }
button.acct { font: inherit; cursor: pointer; }

/* meniul contului (doar logat) */
[data-d="d"] .hdr .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 230px; padding: 8px 0; margin: 0; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); }
[data-d="d"] .hdr .menu:not(.open) { display: none; }
[data-d="d"] .hdr .menu :is(a, button) { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 11px 18px; border: 0; background: none;
  font: inherit; font-size: 14.5px; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; }
[data-d="d"] .hdr .menu form { margin: 0; }
[data-d="d"] .hdr .menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
@media (hover: hover) { [data-d="d"] .hdr .menu :is(a, button):hover { background: var(--surface-2); } }
[data-d="d"] .hdr-acct { position: relative; }

/* hamburgerul: ascuns cât încap linkurile; .hdr-collapse (linkurile + lupa, Add Listing, inima, contul) face atunci parte din grila antetului */
[data-d="d"] .hdr-collapse { display: contents; }
/* butonul de pe site (bootstrap.css .navbar-toggle + style.css): chenar și bare #424242, bare de 22x2px la 4px; ≥44px pe telefon */
[data-d="d"] .hdr-burger { display: none; min-width: 44px; min-height: 44px; margin: 0; padding: 0; border: 1px solid #424242; border-radius: 0; background: transparent;
  place-content: center; gap: 4px; touch-action: manipulation; cursor: pointer; }
[data-d="d"] .hdr-burger .bar { display: block; width: 22px; height: 2px; background: #424242; transition: transform .25s ease, opacity .25s ease; }
/* deschis: X, ca pe site */
[data-d="d"] .hdr-burger[aria-expanded="true"] .bar:first-child { transform: translateY(6px) rotate(45deg); }
[data-d="d"] .hdr-burger[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
[data-d="d"] .hdr-burger[aria-expanded="true"] .bar:last-child { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1209px) {
  [data-d="d"] .hdr-in { grid-template-columns: 1fr auto; }
  [data-d="d"] .hdr-burger { display: grid; }
  [data-d="d"] .hdr-collapse { display: none; }
  /* meniul deschis, ca navbar-collapse de pe site: foaie albă sub antet, peste pagină, cu linkurile unul sub altul */
  [data-d="d"] .hdr-collapse.open { display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 50; background: #fff;
    border-bottom: 1px solid #eee; box-shadow: 0 6px 12px rgb(0 0 0 / .175); max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain;
    padding: 6px max(24px, calc((100% - 1360px) / 2)) 22px; }
  [data-d="d"] .hdr-nav { display: flex; flex-direction: column; align-items: stretch; }
  [data-d="d"] .hdr-nav a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  [data-d="d"] .hdr-right { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 10px; }
  [data-d="d"] .hdr-right > div { width: 100%; }
  [data-d="d"] .hdr :is(.hdr-heart, .hdr-lupa) { width: 44px; height: 44px; min-height: 44px; }
  [data-d="d"] .hdr :is(.add, .acct) { min-height: 44px; height: 44px; }
  /* în meniul hamburger, butonul contului rămâne doar cu avatarul: iconița ≡ de lângă el arăta ca un al doilea hamburger (QA, 13.11.2026) */
  [data-d="d"] .hdr .acct > .ico { display: none; }
  [data-d="d"] .hdr .acct { padding: 0 4px; }
  /* meniul contului se desface pe loc, nu plutește peste foaie */
  [data-d="d"] .hdr .menu { position: static; margin-top: 8px; min-width: 0; box-shadow: none; }
}
@media (max-width: 743px) {
  [data-d="d"] .hdr-in { min-height: 64px; }
  [data-d="d"] .logo-link img { height: 40px; }
  [data-d="d"] .hdr-collapse.open { padding-inline: 16px; max-height: calc(100dvh - 144px); }   /* 64px antet + 72px bara de jos + 8px */
}
