
:root {
    --nav-bg: rgba(255, 255, 255, 0.98);
    --nav-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    --nav-height: 70px;
    --nav-border: 1px solid rgba(0, 0, 0, 0.05);
    --nav-text: #2c3e50;
    --nav-hover: #003366;
    --nav-active: #f39c12;
    --accent-color: #f39c12;
}

/* Desktop Navigation */
.desktop-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--nav-bg);
    box-shadow: var(--nav-shadow);
    border-bottom: var(--nav-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

/* Restored desktop nav container & menu */
.desktop-nav-container {
    max-width: var(--max-width, 1300px);
    margin: 0 auto;
    padding: 0.5rem 1rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.desktop-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.desktop-nav-item { display: flex; align-items: center; }

.desktop-nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.desktop-nav-link:hover {
    color: var(--primary-color);
}

/* Mobile Navigation */
.mobile-navbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

@media (max-width: 768px) {
    .mobile-navbar {
        display: block;
    }
}

.mobile-nav-container {
    height: 80px;
}

.mobile-nav-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hamburger menu styles removed */

.mobile-nav-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 1rem 0;
    background: var(--bg-white);
}

.mobile-nav-item {
    margin: 0;
    padding: 0;
}

.mobile-nav-menu.active {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin: 0;
}

.mobile-nav-link:hover {
    background-color: var(--bg-light);
}

/* Logo styles */
.mobile-logo {
    display: flex;
    align-items: center;
}

.mobile-logo-img {
    height: 52px;
    width: auto;
}

@media (max-width: 768px) {
    .mobile-logo {
        margin-top: 0.5rem;
    }
    .mobile-nav-container {
        transition: height 0.3s;
    }
    .mobile-nav-container.scrolled {
        height: 130px !important;
    }
    .mobile-nav-container:not(.scrolled) {
        height: 80px !important;
    }
    .mobile-nav-container.scrolled .mobile-search-bar {
        width: 92%;
        margin: 0.7rem auto 0 auto;
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
    background: #f8fafc;
        box-shadow: 0 4px 24px rgba(0,51,102,0.08);
        overflow: hidden;
        margin-top: 20px;
        border-radius: 0;
    }
    .mobile-search-input {
        flex: 1;
        max-width: 340px;
        padding: 0.55rem 1rem;
        border-radius: 18px 0 0 18px;

        border: 1.5px solid #b6c2e1;
        font-size: 0.98rem;
        background: #fff;
        color: #003366;
        box-shadow: 0 2px 8px rgba(0,51,102,0.06);
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    .mobile-search-btn {
        padding: 0.55rem 1rem;
        background: var(--accent-color);
        color: #fff;
        border: none;
        border-top-left-radius: 0px !important;
        border-bottom-left-radius: 0px !important;
        border-top-right-radius: 18px !important;
        border-bottom-right-radius: 18px !important;
        font-size: 1rem;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(238,90,111,0.10);
        transition: background 0.2s, box-shadow 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-search-btn:hover, .mobile-search-btn:focus {
        background: #d63384;
        box-shadow: 0 4px 16px rgba(238,90,111,0.15);
        outline: none;
    }
    .mobile-search-btn i {
        font-size: 1.25em;
        margin-left: 2px;
    }
}
/* Adjust the page content to account for fixed navigation */
body {
    padding-top: 65px; /* Adjust this value based on your navigation height */
}

@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Slightly more padding for mobile nav */
    }
}

/* Favorites Navigation Button */
.favorites-nav-btn {

    background: #fff;
    border: 1px solid #d63384;
    color: #e74c3c;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 24px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.18s, box-shadow 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
    box-shadow: 0 2px 8px rgba(243,156,18,0.08);
    min-width: 110px;
    justify-content: center;
    height: 40px;
    letter-spacing: 0.01em;
    font-family: 'Poppins', 'Inter', sans-serif;
    overflow: hidden;
}


.favorites-nav-btn:hover {
    color: #e67e22;
    transform: translateY(-2px) scale(1.04);
}

.favorites-nav-btn:hover::before {
    left: 100%;
}

.favorites-nav-btn i {
    font-size: 1rem;
    transition: color 0.18s, transform 0.18s;
    z-index: 2;
    margin-right: 5px;
    position: relative;
    color: #e74c3c;
}

.favorites-nav-btn:hover i {
    transform: scale(1.16);
}

.favorites-nav-btn:active {
    transform: translateY(0) scale(1.01);
    box-shadow: 0 1px 4px rgba(230,126,34,0.10);
    transition: background 0.12s, box-shadow 0.12s, transform 0.12s;
}


/* Mobile favorites button */
/* Mobile favorites button */
.mobile-favorites {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
    justify-content: flex-start;
    padding: 1rem;
    color: white;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border-radius: 12px;
    margin-top: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-favorites-text {
    display: flex;
    align-items: center;
    gap: 8px;
}


.mobile-favorites:hover {
    background: linear-gradient(135deg, #ee5a6f, #d63384);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    text-decoration: none;
    color: white;
}

/* Sell Navigation Button */
.sell-nav-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
    min-width: 140px;
    justify-content: center;
    height: 42px;
    letter-spacing: 0.01em;
    overflow: hidden;
}

.sell-nav-btn:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, #f7b731 100%);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.25);
    border-color: transparent;
}

.sell-nav-btn:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}





.sell-nav-btn i {
    font-size: 1rem;
    transition: all 0.3s ease;
}


/* Mobile sell button */
.mobile-sell {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
    justify-content: flex-start;
    padding: 1rem;
    color: white;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 12px;
    margin-top: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-sell:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    text-decoration: none;
    color: white;
}

.mobile-sell i {
    margin-right: 8px;
}

/* Mobile Property Filter Tab */
.mobile-property-filter-tab {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 8px 16px 8px;
    transform: translateY(0);
    transition: transform 0.3s ease;
    display: none; /* Hidden by default, shown only on mobile */
}

.property-filter-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    gap: 8px;
}

.property-filter-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 70px;
    position: relative;
}

.property-filter-btn i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.property-filter-btn span {
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

.property-filter-btn:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.property-filter-btn.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    font-weight: 600;
}

.property-filter-btn.active i {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

/* Show mobile filter tab only on mobile devices */
@media (max-width: 768px) {
    .mobile-property-filter-tab {
        display: block;
    }
    
    /* Add bottom padding to body to prevent content being hidden behind the tab */
    body {
        padding-bottom: 80px;
    }
}

/* Ensure proper spacing for mobile navigation */
@media (max-width: 768px) {
    .mobile-navbar {
        margin-bottom: 0;
    }
}

/* Favorite Button Styles */
.favorite-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
    height: 42px;
    letter-spacing: 0.01em;
}

/* User Profile Button - Premium Hover Effect */
.profile-icon-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s, transform 0.3s;
}

/* Favorites Button Inner Hover Styling (moved from index.html) */

.favorites-nav-btn:hover .favorites-btn-inner i.fas.fa-heart {
    transform: scale(1.25);
}
.favorites-nav-btn:hover .favorites-btn-inner span {
    color: #e74c3c;
}

.profile-icon-btn i {
    font-size: 1.8rem;
    color: #003366;
    transition: color 0.2s, text-shadow 0.3s;
}

.profile-icon-btn:hover {
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 24px rgba(243, 156, 18, 0.18);
    transform: scale(1.08);
    background: linear-gradient(135deg, #fffbe6 0%, #fff6d1 100%);
}

.profile-icon-btn:hover i {
    color: var(--accent-color);
    text-shadow: 0 2px 8px rgba(243, 156, 18, 0.18);
}

.profile-icon-btn-mobile {
    background: none;
    border: none;
    padding: 8px;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s, transform 0.3s;
}

.profile-icon-btn-mobile i {
    font-size: 2rem;
    color: #003366;
    transition: color 0.2s, text-shadow 0.3s;
}

.profile-icon-btn-mobile:hover {
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 24px rgba(243, 156, 18, 0.18);
    transform: scale(1.08);
    background: linear-gradient(135deg, #fffbe6 0%, #fff6d1 100%);
}

.profile-icon-btn-mobile:hover i {
    color: var(--accent-color);
    text-shadow: 0 2px 8px rgba(243, 156, 18, 0.18);
}

.favorite-btn i {
    font-size: 1.2rem;
    color: #6b7280;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    background: #e74c3c;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.18);
}

.favorite-btn:hover i {
    color: white;
    transform: scale(1.1);
}

.favorite-btn.favorited i {
    color: #ee5a6f;
}

.favorite-btn.favorited {
    background: rgba(238, 90, 111, 0.1);
    border: 2px solid rgba(238, 90, 111, 0.3);
}

.favorite-btn.favorited:hover {
    background: rgba(238, 90, 111, 0.2);
}