/* =====================================================================
   ONE HUB · audit de design și responsive
   1. lizibilitate: sticlă fumurie în loc de sticlă transparentă
   2. performanță: fără blur pe suprafețe mari, fără imagini la hover
   3. antet fluid, fără suprapuneri la nicio lățime
   4. praguri: desktop lat / desktop îngust / tabletă / telefon / fereastră scundă
   ===================================================================== */

/* ---------- 1. Lizibilitate ---------- */
:root{
  --gl:linear-gradient(145deg,rgba(58,58,56,.78),rgba(30,30,30,.72));
  --gl-sh:inset 0 1px 0 rgba(255,255,255,.3),inset 0 0 0 1px rgba(255,255,255,.1),0 22px 44px -24px rgba(0,0,0,.6);
  --gl-blur:blur(14px) saturate(140%);
  --dk:rgba(20,20,20,.95);
}
/* widgetul care apare pe un punct al clădirii: opac, text alb clar */
.hq-co-text,.hq-menu{background:rgba(18,18,18,.96)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 24px 50px -20px rgba(0,0,0,.7)!important}
.hq-co-text p{color:rgba(255,255,255,.88)}
.hq-co-text .hq-k{color:rgba(255,255,255,.65)!important}
.hq-menu button{color:#fff}
.hq-menu button:hover{background:rgba(255,255,255,.12)}
.hq-menu button.hi,.hq-menu button.hi:hover{background:var(--y);color:#1b1b1b}
/* pe sticlă fumurie, elementul activ e alb */
.topbar .hq-rail .hq-ri.on,.loc-switch button.on,.hv-floors button.on{background:#fff;color:#1b1b1b}
.topbar .hq-rail button.hq-ri{background:rgba(255,255,255,.12)}
.hv-floors button{background:rgba(255,255,255,.1)}
.gh-tile > span,.hm-next > p,.gh-top{color:rgba(255,255,255,.92)}
.hv-meta span{color:rgba(255,255,255,.8)}
.page-head,.hv-hero{background:linear-gradient(90deg,rgba(14,14,14,.5),rgba(14,14,14,.18) 45%,transparent 70%);border-radius:28px}
.hm-ask h1{text-shadow:0 2px 26px rgba(0,0,0,.55)}

/* ---------- 2. Performanță ---------- */
#cursor-img{display:none!important}                                   /* imaginile care urmăreau cursorul acopereau textul */
.reveal{filter:none!important}
@keyframes vt-out{to{opacity:0;transform:translateY(-8px)}}
@keyframes vt-in{from{opacity:0;transform:translateY(12px)}}
.overlay{background:rgba(8,8,8,.66)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.sheet{background:#191919!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.pal{background:#171717!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.scan{background:rgba(8,8,8,.94)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.g-card.dark,.gh-band,.hq-stats,.pop,.toast,.topbar .logo,.brand{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.hq-pin i{backdrop-filter:none;background:rgba(255,255,255,.55)}
.hq-zoom{backdrop-filter:none}
#world canvas{will-change:auto}

/* ---------- 3. Antet fluid ---------- */
body.in-app .topbar{display:flex;align-items:center;gap:8px}
.topbar .logo{flex:none}
.topbar .hq-rail{position:static!important;transform:none!important;flex:0 1 auto;min-width:0;max-width:none;overflow:hidden;top:auto;left:auto;bottom:auto}
.topbar .hq-rail .hq-ri{flex:none}
.topbar .tb-spacer{min-width:8px}
.topbar .tb-icon,.topbar .tb-search,.topbar .me,.loc-switch{flex:none}
/* când pagina e derulată, antetul primește un fond ca să nu se amestece cu conținutul */
body.ambient::before{content:"";position:fixed;left:0;right:0;top:0;height:104px;z-index:58;pointer-events:none;background:linear-gradient(#0c0c0c 38%,rgba(12,12,12,0));opacity:var(--scr,0)}

/* ---------- 4. Praguri ---------- */
/* ecrane foarte late: conținutul nu se mai întinde la nesfârșit */
.pg-body > *{max-width:1560px;margin-left:auto;margin-right:auto}
.page-head,.hv-hero{padding-left:max(12px,calc((100% - 1560px)/2 + 12px))}
.gh-cards{max-width:none}

/* desktop: locația intră în „Contul meu” când nu mai are loc în antet */
@media (max-width:1479px){ .loc-switch{display:none!important} }
@media (max-width:1239px){
  .topbar .hq-rail a.hq-ri{padding:0 12px}
  .topbar .hq-rail a.hq-ri .o{display:block}
  .topbar .hq-rail a.hq-ri .t{display:none}
  .topbar .hq-rail a.hq-ri.on .t{display:block}
  .topbar .logo span{display:none}
}

/* desktop (≥1024 lățime, ≥680 înălțime): acasă ca tablou de bord peste clădire */
@media (min-width:1024px) and (min-height:680px){
  .gh-band{bottom:26px}
  .hm-ask{bottom:258px}
  .topbar .hq-rail{background:var(--gl)!important}
}
@media (min-width:1024px) and (max-width:1319px) and (min-height:680px){
  .gh-left{display:none}
  .hm-ask{left:28px;width:min(520px,46vw)}
  .gh-right{width:300px}
  .gh-cards{grid-template-columns:repeat(3,1fr)}
  .gh-item:nth-child(3){display:none}
  .hv-title{width:270px}.hv-panel{width:300px}
}
@media (min-width:1024px) and (max-width:1159px) and (min-height:680px){
  .gh-cards{grid-template-columns:1fr 1fr}
  .gh-item:nth-child(2){display:none}
  .hm-ask h1{font-size:34px}
}
@media (min-width:1024px) and (min-height:680px) and (max-height:819px){
  .gh-left,.gh-right{top:88px}
  .gh-mini{display:none}
  .gh-big b{font-size:44px}
  .gh-ringwrap{width:100px;height:100px}
  .hm-next h2{font-size:26px;margin-top:10px}
  .gh-tile{min-height:104px}
  .gh-tile b.n{font-size:32px}
  .hm-ask{bottom:228px}
  .hm-ask h1{font-size:clamp(30px,3vw,42px);margin-bottom:14px}
  .gh-band{padding:12px;gap:10px}
  .gh-item{padding:10px 12px 10px 16px}
  .hv-panel{max-height:calc(100vh - 250px);overflow:auto}
}
/* grilele de conținut pe desktop îngust */
@media (min-width:1024px) and (max-width:1239px){
  .grid.g-main{grid-template-columns:1fr}
  .grid.g-3{grid-template-columns:1fr 1fr}
  .grid.g-4{grid-template-columns:1fr 1fr}
  .hv-rows li{grid-template-columns:50px 80px 1fr 30px}
  .hv-rows .s{display:none}
}

/* tabletă și telefon: aspect stivuit (definit în mobile.css) — aici rafinările */
@media (max-width:1023px),(max-height:679px){
  /* foaia de acasă: opacă, fără blur peste canvas */
  .hq.hm{background:linear-gradient(180deg,rgba(38,38,37,.96),#141414 30%)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;margin-top:40svh;max-width:760px;margin-left:auto;margin-right:auto}
  /* titlul paginii începe sub clădire, nu peste ea */
  .page-head,.hv-hero{min-height:0!important;padding-top:37svh!important;background:linear-gradient(180deg,transparent 30%,rgba(14,14,14,.78) 62%)!important;border-radius:0 0 26px 26px}
  .pg-body > *{max-width:760px}
  .sheet{height:92dvh;max-width:640px;margin-left:auto;margin-right:auto}
  .overlay{justify-content:center}
  .field input,.field select,.field textarea,.pal-in input,.hm-find input{font-size:16px}
  .hv-panel{background:rgba(22,22,22,.95)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .hv-title{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(26,26,26,.92)!important}
  body.ambient::before{height:84px}
  .visitor{max-width:560px}
}
/* tabletă: două coloane unde are sens */
@media (min-width:700px) and (max-width:1023px){
  .hq.hm,.pg-body > *{max-width:880px}
  .grid.g-2,.grid.g-3{grid-template-columns:1fr 1fr!important}
  .grid.g-4{grid-template-columns:repeat(4,1fr)!important}
  .gh-cards{grid-template-columns:1fr 1fr!important}
  .gh-quick{grid-template-columns:repeat(4,1fr)}
  .gh-quick button:first-child{grid-column:span 4}
  .kanban{grid-template-columns:repeat(3,1fr)}
  .hv-rows li{grid-template-columns:52px 1fr 150px!important}
  .hv-rows .s{display:block}
  .mtab > *{min-width:60px;height:60px}
}
/* fereastră lată, dar scundă: păstrăm grilele de desktop în aspectul stivuit */
@media (min-width:1024px) and (max-height:679px){
  .hq.hm,.pg-body > *{max-width:1100px}
  .grid.g-2{grid-template-columns:1fr 1fr!important}
  .grid.g-3{grid-template-columns:repeat(3,1fr)!important}
  .grid.g-4{grid-template-columns:repeat(4,1fr)!important}
  .grid.g-main{grid-template-columns:1.55fr 1fr!important}
  .gh-cards{grid-template-columns:repeat(4,1fr)!important}
  .gh-quick{display:flex}
  .gh-quick button:first-child{grid-column:auto}
  .page-head,.hv-hero{padding-top:30svh!important}
}

/* ---------- atingere: fără efecte de hover care rămân „agățate” ---------- */
@media (hover:none){
  .hv-rows li:hover{color:inherit;padding-left:18px}
  .hv-rows li:hover::before{transform:scaleY(0)}
  .hv-rows li:hover .bar{background:rgba(255,255,255,.14)}
  .hv-rows li:hover .bar i{background:var(--y)}
  .hv-rows li:active{background:rgba(255,255,255,.08)}
  .role-row:hover{padding-left:6px;color:inherit}
  .role-row:hover::before{transform:scaleY(0)}
  .gh-quick button:hover,.btn:hover{background:rgba(255,255,255,.12);color:#fff}
  .gh-quick button.on:hover,.btn-y:hover,.hq-cta:hover{background:var(--y);color:#1b1b1b}
  .gh-item:hover .gh-go{transform:none}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* cand un punct de pe cladire e deschis, titlul si cardurile din jur se retrag */
.hm-ask,.gh-left{transition:opacity .4s}
.hm.has-sel .hm-ask{opacity:.12;pointer-events:none}
.hm.has-sel .gh-right{opacity:.25}
.hq-callout{z-index:8}
