/* ═══════════════════════════════════════════════════
   navbar.css — Customer Navbar
   Mobile-first. Estate Web palette. Prefix: nb-
   ═══════════════════════════════════════════════════ */

:root {
  --nb-primary: #1a3c4e;
  --nb-secondary: #c19b76;
  --nb-accent: #8b7355;
  --nb-sale: #2563eb;
  --nb-lease: #16a34a;
  --nb-white: #ffffff;
  --nb-border: rgba(255, 255, 255, .1);
  --nb-h: 58px;
  --nb-ease: all 0.22s ease;
}

/* ═══════════════════════════════════════════════════
   NAVBAR BAR
   ═══════════════════════════════════════════════════ */
.nb-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--nb-h);
  background: linear-gradient(135deg, var(--nb-primary) 0%, #2a5266 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}

.nb-inner {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
}

/* Brand */
.nb-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nb-brand img {
  border-radius: 6px;
}

.nb-brand span {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--nb-white);
  letter-spacing: 0.3px;
  /* hide text on very small screens, show brand image only */
}

/* Desktop centre links — hidden on mobile */
.nb-desktop-links {
  display: none;
}

.nb-desktop-actions {
  display: none;
}

/* Hamburger */
.nb-toggle {
  margin-left: auto;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--nb-ease);
}

.nb-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--nb-white);
  border-radius: 2px;
  transition: var(--nb-ease);
}

.nb-toggle:hover {
  background: rgba(255, 255, 255, .16);
}


/* ═══════════════════════════════════════════════════
   OFFCANVAS
   ═══════════════════════════════════════════════════ */
.nb-canvas {
  width: 320px !important;
  background: var(--nb-primary);
  display: flex;
  flex-direction: column;
  border-left: none !important;
}

.nb-canvas.offcanvas {
  --bs-offcanvas-width: 320px;
}

/* Header */
.nb-canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--nb-border);
  flex-shrink: 0;
}

.nb-canvas-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nb-canvas-brand img {
  border-radius: 6px;
}

.nb-canvas-brand span {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--nb-white);
}

.nb-canvas-close {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, .1);
  border: none;
  border-radius: 7px;
  color: var(--nb-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--nb-ease);
}

.nb-canvas-close:hover {
  background: rgba(255, 255, 255, .18);
}

/* Body */
.nb-canvas-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .1) transparent;
}

.nb-canvas-body::-webkit-scrollbar {
  width: 3px;
}

.nb-canvas-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
}

/* Section labels */
.nb-canvas-section {
  margin-bottom: 0.25rem;
}

.nb-canvas-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, .4);
  padding: 0 0.25rem;
  margin: 0 0 0.3rem;
}

/* Divider */
.nb-canvas-divider {
  height: 1px;
  background: rgba(255, 255, 255, .08);
  margin: 0.6rem 0;
}

/* Nav links */
.nb-canvas-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: var(--nb-ease);
  margin-bottom: 2px;
  -webkit-tap-highlight-color: transparent;
}

.nb-canvas-link:hover {
  background: rgba(255, 255, 255, .08);
}

.nb-canvas-link:active {
  background: rgba(255, 255, 255, .12);
}

.nb-canvas-link.coming {
  opacity: 0.5;
  pointer-events: none;
}

.nb-canvas-link.primary-link:hover {
  background: rgba(193, 155, 118, .15);
}

/* Icon boxes */
.nb-canvas-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--nb-white);
}

.nb-canvas-icon.sale {
  background: var(--nb-sale);
}

.nb-canvas-icon.lease {
  background: var(--nb-lease);
}

.nb-canvas-icon.heart {
  background: #e11d48;
}

.nb-canvas-icon.profile {
  background: linear-gradient(135deg, var(--nb-primary), #2a5266);
  border: 1px solid rgba(255, 255, 255, .15);
}

.nb-canvas-icon.notif {
  background: #d97706;
}

.nb-canvas-icon.map {
  background: #0284c7;
}

.nb-canvas-icon.news {
  background: #7c3aed;
}

.nb-canvas-icon.help {
  background: var(--nb-secondary);
}

.nb-canvas-icon.feedback {
  background: #059669;
}

.nb-canvas-icon.terms {
  background: #374151;
}

.nb-canvas-icon.partner {
  background: linear-gradient(135deg, var(--nb-secondary), var(--nb-accent));
}

/* Link text */
.nb-canvas-text {
  flex: 1;
  min-width: 0;
}

.nb-canvas-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .92);
  line-height: 1.2;
}

.nb-canvas-text span {
  display: block;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, .45);
  line-height: 1.3;
}

.nb-canvas-arrow {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, .3);
  flex-shrink: 0;
}

.nb-soon {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  background: rgba(193, 155, 118, .2);
  color: var(--nb-secondary);
  border-radius: 10px;
  flex-shrink: 0;
}

/* Canvas footer */
.nb-canvas-footer {
  flex-shrink: 0;
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--nb-border);
  background: rgba(0, 0, 0, .2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nb-footer-contact {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
  transition: var(--nb-ease);
}

.nb-footer-contact i {
  color: var(--nb-secondary);
}

.nb-footer-contact:hover {
  color: var(--nb-secondary);
}

.nb-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0.75rem;
  background: rgba(220, 38, 38, .15);
  border: 1px solid rgba(220, 38, 38, .25);
  border-radius: 9px;
  color: #fca5a5;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--nb-ease);
}

.nb-logout:hover {
  background: rgba(220, 38, 38, .3);
  color: var(--nb-white);
}

.nb-logout i {
  font-size: 1rem;
}

.nb-footer-copy {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, .22);
  text-align: center;
  margin: 0;
}


/* ═══════════════════════════════════════════════════
   Body padding so content doesn't hide under navbar
   ═══════════════════════════════════════════════════ */
body {
  padding-top: var(--nb-h);
}


/* ═══════════════════════════════════════════════════
   900px — desktop layout
   ═══════════════════════════════════════════════════ */
@media (min-width: 900px) {

  .nb-nav {
    height: 62px;
  }

  body {
    padding-top: 62px;
  }

  .nb-inner {
    padding: 0 2rem;
    gap: 0;
  }

  /* Brand */
  .nb-brand span {
    font-size: 1.2rem;
  }

  /* Centre links */
  .nb-desktop-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 2rem;
    flex: 1;
  }

  .nb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.9rem;
    color: rgba(255, 255, 255, .78);
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--nb-ease);
  }

  .nb-link i {
    font-size: 0.88rem;
    color: var(--nb-secondary);
  }

  .nb-link:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--nb-white);
  }

  .nb-link.active {
    background: rgba(193, 155, 118, .15);
    color: var(--nb-secondary);
  }

  /* Right actions */
  .nb-desktop-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
  }

  .nb-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    color: rgba(255, 255, 255, .88);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--nb-ease);
  }

  .nb-profile-btn i {
    color: var(--nb-secondary);
  }

  .nb-profile-btn:hover {
    background: rgba(255, 255, 255, .14);
    color: var(--nb-white);
  }

  .nb-logout-btn {
    width: 36px;
    height: 36px;
    background: rgba(220, 38, 38, .15);
    border: 1px solid rgba(220, 38, 38, .25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fca5a5;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--nb-ease);
  }

  .nb-logout-btn:hover {
    background: rgba(220, 38, 38, .3);
    color: var(--nb-white);
  }

  /* Hide hamburger on desktop */
  .nb-toggle {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════
   Reduced motion
   ═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ── Company navbar icon colours ── */
.nb-canvas-icon.listings {
  background: linear-gradient(135deg, #1a3c4e, #2d5a73);
}

.nb-canvas-icon.dashboard {
  background: linear-gradient(135deg, #c19b76, #8b7355);
}

.nb-canvas-icon.leads {
  background: #0284c7;
}

.nb-canvas-icon.schedule {
  background: #7c3aed;
}

.nb-canvas-icon.team {
  background: #0891b2;
}

.nb-canvas-icon.talents {
  background: #059669;
}

.nb-canvas-icon.applications {
  background: #d97706;
}

.nb-canvas-icon.analytics {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.nb-canvas-icon.jobs {
  background: #1d4ed8;
}

.nb-canvas-icon.settings {
  background: #374151;
}

/* ── Desktop "More" dropdown ── */
.nb-more-wrap {
  position: relative;
}

.nb-more-btn {
  display: none;
  /* shown at 900px+ */
  align-items: center;
  gap: 5px;
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  color: rgba(255, 255, 255, .78);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--nb-ease);
  white-space: nowrap;
}

.nb-more-btn:hover {
  background: rgba(255, 255, 255, .14);
  color: var(--nb-white);
}

.nb-more-btn i {
  font-size: 0.78rem;
  transition: transform 0.2s ease;
}

.nb-more-btn.open i.bi-chevron-down {
  transform: rotate(180deg);
}

.nb-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1a3c4e;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
  z-index: 1050;
}

.nb-more-menu.open {
  display: block;
}

.nb-more-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--nb-ease);
  color: rgba(255, 255, 255, .82);
  font-size: 0.82rem;
  font-weight: 500;
}

.nb-more-item:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--nb-white);
}

.nb-more-item i {
  color: var(--nb-secondary);
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.nb-more-item .nb-soon {
  margin-left: auto;
  font-size: 0.6rem;
  padding: 1px 5px;
}

.nb-more-divider {
  height: 1px;
  background: rgba(255, 255, 255, .08);
  margin: 0.35rem 0;
}

@media (min-width: 900px) {
  .nb-more-btn {
    display: inline-flex;
  }
}

.nb-compare-link {
  position: relative;
}

.nb-cmp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  margin-left: 3px;
}