/* ============================================================
   Dubai Property Lab — Navigation Bar (M11)
   Source: Module Library M11, Design System §3
   ============================================================ */

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--slate);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 var(--space-5);
}

.nav-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo / Wordmark */
.nav-bar__logo {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-bar__logo:hover {
    color: var(--text-primary);
}

/* Desktop nav links */
.nav-bar__links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-bar__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--transition-default);
}

.nav-bar__link:hover,
.nav-bar__link--active {
    color: var(--signal);
}

/* Active underline */
.nav-bar__link--active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--signal);
    border-radius: 1px;
}

/* Auth / Register button */
.nav-bar__auth {
    flex-shrink: 0;
}

/* Hamburger button (mobile) */
.nav-bar__hamburger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
}

.nav-bar__hamburger svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

/* --- Mobile overlay menu --- */

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--void);
    z-index: 200;
    flex-direction: column;
}

.mobile-menu--open {
    display: flex;
    animation: slide-in-right 200ms ease-out;
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 var(--space-5);
    background: var(--slate);
    border-bottom: 1px solid var(--border);
}

.mobile-menu__close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu__close svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.mobile-menu__nav {
    padding: var(--space-7) var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.mobile-menu__link {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    min-height: 48px;
    display: flex;
    align-items: center;
    transition: color var(--transition-default);
}

.mobile-menu__link:hover,
.mobile-menu__link--active {
    color: var(--signal);
}

.mobile-menu__divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--space-2) 0;
}

@keyframes slide-in-right {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* --- Responsive --- */

@media (max-width: 767px) {
    .nav-bar__links {
        display: none;
    }

    .nav-bar__auth {
        display: none;
    }

    .nav-bar__hamburger {
        display: flex;
    }
}
