﻿/* ==========================================
   NAVBAR
========================================== */

.navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 1000;
}


.navbar-content {
    width: 100%;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ==========================================
   LOGO
========================================== */

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: auto; /* Push menu to right */
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

    .logo-link:hover,
    .logo-link:focus,
    .logo-link:active {
        text-decoration: none;
    }

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-text {
    display: none;
}

/* ==========================================
   RIGHT MENU
========================================== */

.navbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

/* ==========================================
   POST PROPERTY
========================================== */

.btn-post-property {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg,#2563eb,#3b82f6);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all .3s ease;
    box-shadow: 0 8px 20px rgba(37,99,235,.20);
}

    .btn-post-property:hover {
        color: #fff;
        transform: translateY(-2px);
    }

/* ==========================================
   USER PROFILE
========================================== */

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 40px;
    background: #fff;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg,#2563eb,#3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.user-name {
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}

/* ==========================================
   NAV LINKS
========================================== */

.nav-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: .25s ease;
}

    .nav-menu-link:hover {
        color: #2563eb;
    }

/* ==========================================
   LOGOUT
========================================== */

.logout-form {
    margin: 0;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: #fef2f2;
    color: #dc2626;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s ease;
}

    .logout-btn:hover {
        background: #dc2626;
        color: #fff;
    }

/* ==========================================
   TABLET
========================================== */

@media (max-width: 992px) {

    .navbar-content {
        padding: 10px 18px;
    }

    .navbar-right {
        gap: 12px;
    }

    .logo-img {
        height: 30px;
    }

    .user-name {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .navbar-content {
        padding: 10px;
    }

    .logo-img {
        height: 30px;
    }

    .navbar-right {
        gap: 8px;
    }

    .btn-post-property {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 10px;
    }

        .btn-post-property i {
            font-size: 14px;
        }

    .user-profile {
        border: none;
        background: transparent;
        padding: 0;
        gap: 4px;
    }

    .user-avatar {
        display: none;
    }

    .user-name {
        display: block;
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
    }

    .nav-menu-link span,
    .logout-btn span {
        display: none;
    }

    .nav-menu-link,
    .logout-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }

        .nav-menu-link i,
        .logout-btn i {
            margin: 0;
            font-size: 16px;
        }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    .navbar-content {
        padding: 8px;
    }

    .logo-img {
        height: 30px;
    }

    .navbar-right {
        gap: 5px;
    }

    .btn-post-property {
        padding: 7px 10px;
        font-size: 12px;
    }

        .btn-post-property i {
            font-size: 13px;
        }

    .user-name {
        max-width: 55px;
        font-size: 11px;
    }

    .nav-menu-link,
    .logout-btn {
        width: 36px;
        height: 36px;
    }
}

.logo-img {
    height: 60px !important;
    width: 60px !important;
    object-fit: contain;
    display: block;
}
