/* NekretnineXpert first-visit onboarding — isolated from the site design. */
.nx-guide-layer,
.nx-guide-layer *{box-sizing:border-box}
.nx-guide-layer{position:fixed;inset:0;z-index:2147483000;pointer-events:none;font-family:"DM Sans",Manrope,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f7f7f7}
.nx-guide-shade{position:fixed;background:rgba(5,8,12,.76);pointer-events:auto;touch-action:none}
.nx-guide-shade--full{inset:0}
.nx-guide-spotlight{position:fixed;border:2px solid #d8b45d;border-radius:13px;box-shadow:0 0 0 1px rgba(255,255,255,.12),0 0 0 5px rgba(216,180,93,.15);pointer-events:none;transition:top .18s ease,left .18s ease,width .18s ease,height .18s ease;z-index:2}
.nx-guide-card{position:fixed;z-index:3;pointer-events:auto;width:min(420px,calc(100vw - 32px));padding:22px 22px 18px;border:1px solid rgba(216,180,93,.35);border-radius:19px;background:linear-gradient(145deg,#171d23 0%,#0b1015 100%);box-shadow:0 24px 85px rgba(0,0,0,.48);color:#f7f7f7;max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain;animation:nxGuideIn .22s ease both}
.nx-guide-card[hidden],.nx-guide-layer[hidden]{display:none!important}
.nx-guide-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.nx-guide-brand{font-size:10px;font-weight:900;letter-spacing:.17em;color:#d8b45d}
.nx-guide-close{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid rgba(255,255,255,.13);border-radius:50%;background:rgba(255,255,255,.04);color:#fff;font-size:21px;line-height:1;cursor:pointer}
.nx-guide-close:hover,.nx-guide-close:focus-visible{background:rgba(255,255,255,.12);outline:2px solid #d8b45d;outline-offset:2px}
.nx-guide-progress{margin:0 0 16px}
.nx-guide-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px;color:#adb5bd;font-size:11px;font-weight:700}
.nx-guide-progress-track{height:4px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.13)}
.nx-guide-progress-fill{height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#b58c39,#efd58b);transition:width .2s ease}
.nx-guide-card h2{margin:0 0 9px;font-family:Manrope,"DM Sans",sans-serif;font-size:clamp(21px,3vw,25px);font-weight:800;line-height:1.15;letter-spacing:-.035em;color:#fff}
.nx-guide-card p{margin:0;color:#cbd1d7;font-size:14px;line-height:1.65}
.nx-guide-note{display:flex;align-items:flex-start;gap:9px;margin-top:14px;padding:11px 12px;border:1px solid rgba(216,180,93,.19);border-radius:11px;background:rgba(216,180,93,.07);color:#e9dfc7;font-size:12px;line-height:1.5}
.nx-guide-note-mark{flex:0 0 auto;color:#e4c578;font-size:15px;line-height:1.2}
.nx-guide-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:21px}
.nx-guide-skip{padding:8px 0;border:0;background:transparent;color:#aeb6be;font-size:12px;font-weight:700;cursor:pointer}
.nx-guide-skip:hover,.nx-guide-skip:focus-visible{color:#fff;text-decoration:underline;outline:none}
.nx-guide-actions-right{display:flex;align-items:center;gap:8px;margin-left:auto}
.nx-guide-btn{min-height:42px;padding:0 15px;border:1px solid rgba(255,255,255,.15);border-radius:10px;background:rgba(255,255,255,.04);color:#f3f3f3;font:700 12px/1 "DM Sans",sans-serif;cursor:pointer;transition:transform .15s ease,background .15s ease,border-color .15s ease}
.nx-guide-btn:hover{transform:translateY(-1px);background:rgba(255,255,255,.09)}
.nx-guide-btn:focus-visible{outline:2px solid #d8b45d;outline-offset:3px}
.nx-guide-btn--primary{border-color:#d8b45d;background:linear-gradient(135deg,#e4c779,#c39a42);color:#17140c;box-shadow:0 5px 18px rgba(216,180,93,.16)}
.nx-guide-btn--primary:hover{background:linear-gradient(135deg,#f0d995,#d2a94f)}
.nx-guide-btn[hidden]{display:none!important}
.nx-guide-help-link{cursor:pointer}
.nx-guide-help-link:focus-visible{outline:2px solid #d8b45d;outline-offset:3px;border-radius:3px}
.nx-guide-target-flash{animation:nxGuidePulse 1.25s ease-in-out 2}
@keyframes nxGuideIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes nxGuidePulse{0%,100%{filter:none}50%{filter:brightness(1.12)}}
@media(max-width:600px){
  .nx-guide-card{width:calc(100vw - 24px);left:12px!important;right:12px;margin-inline:auto;padding:19px 18px 16px;border-radius:17px;max-height:calc(100dvh - 24px)}
  .nx-guide-card h2{font-size:22px}
  .nx-guide-card p{font-size:13px;line-height:1.58}
  .nx-guide-actions{gap:8px;margin-top:17px}
  .nx-guide-skip{font-size:11px}
  .nx-guide-btn{min-height:41px;padding:0 12px;font-size:11px}
  .nx-guide-spotlight{border-radius:11px}
}
@media(prefers-reduced-motion:reduce){
  .nx-guide-card,.nx-guide-spotlight,.nx-guide-progress-fill,.nx-guide-btn{animation:none!important;transition:none!important}
}


/* Contextual mobile tours keep the highlight visible; the card scrolls independently if needed. */
@media(max-width:640px){
  .nx-guide-card{max-width:calc(100vw - 24px);overscroll-behavior:contain;scrollbar-width:thin;}
  .nx-guide-card .nx-guide-actions{position:sticky;bottom:-16px;padding-top:9px;padding-bottom:2px;background:linear-gradient(180deg,rgba(11,16,21,.88),#0b1015 28%);}
}


/* Keep highlighted controls below sticky site navigation during mobile tutorials. */
.nx-guide-target-flash{scroll-margin-top:92px;scroll-margin-bottom:28px;}

/* Desktop usability fix: keep the tour controls visible and clickable even when
   the explanatory card needs its own vertical scroll. */
.nx-guide-shade{z-index:1;}
.nx-guide-spotlight{z-index:2;}
.nx-guide-card{
  z-index:10;
  display:flex;
  flex-direction:column;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  -webkit-overflow-scrolling:touch;
}
.nx-guide-card[hidden]{display:none!important;}
.nx-guide-actions{
  position:sticky;
  bottom:-18px;
  z-index:12;
  flex:0 0 auto;
  padding:10px 0 2px;
  margin-top:auto;
  background:linear-gradient(180deg,rgba(11,16,21,.94),#0b1015 35%);
}
.nx-guide-actions-right,
.nx-guide-actions button{pointer-events:auto;}
.nx-guide-btn--primary{position:relative;z-index:13;}
@media(min-width:641px){
  .nx-guide-card{max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);}
  .nx-guide-card .nx-guide-actions{margin-top:18px;}
}
