:root {
    --primary-color: #071d3a; /* Navy */
    --secondary-color: #0b2a4f; /* Navy 2 */
    --text-color: #132033; /* Dark Text */
    --text-light: #667085; /* Muted Text */
    --light-bg: #f5f7fb; /* Soft BG */
    --white: #ffffff;
    --border-color: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

/* ==================== HEADER & NAVBAR ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: var(--shadow-sm);
    margin: 0;
    padding: 0;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}

    main {
    margin-top: 160px; /* Adjust based on header height */
}

@media (max-width: 768px) {
    main {
        margin-top: 140px;
    }
}

@media (max-width: 480px) {
    main {
        margin-top: 130px;
    }
}

.logo {
    font-size: 2.11rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition-fast);
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

@media (max-width: 1024px) {
    .logo {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
        margin-bottom: 0;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;

        padding: 0;
        margin: 0;

        background: var(--primary-color);
        z-index: 9999;
    }

    .nav-links.active {
        left: 0;
    }
}
@media (max-width:768px){

    .header-top{
        position: relative;
        z-index:1000;
    }

    .navbar{
        position: relative;
        z-index:1001;
    }

    .nav-links{
        z-index:9999;
    }

}
@media (max-width:768px){

    header{
        overflow: visible !important;
    }

    .header-top{
        position:relative;
        z-index:1001;
    }

    .navbar{
        position:relative;
        z-index:1002;
    }

    .nav-links{
        position:fixed !important;
        top:0 !important;
        left:-280px;

        width:280px;
        height:100vh;

        margin:0;
        padding-top:0;

        z-index:99999;
    }

    .nav-links.active{
        left:0;
    }

}
    .nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
}

.nav-links a i {
    display: none;
}

/* Ensure user icon is always visible */
.nav-links a.user-icon i {
    display: inline-block !important;
}

@media (max-width: 768px) {
    .nav-links a i {
        display: inline-block;
    }
}

@media (max-width: 1024px) {
    .nav-links a {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-links a {
        font-size: 0.95rem;
    }
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.2);
}

.btn-primary:hover {
    background: #e55a00;
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    border-radius: 0 0 0 10px; /* optional */
    background: var(--primary-color);
    color: #fff;
    border: none;
   z-index:2002;
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Desktop: Show user menu, hide hamburger */
@media (min-width: 769px) {
    .user-menu-desktop {
        display: flex !important;
    }
    
    .menu-toggle {
        display: none !important;
    }
    
    .menu-overlay {
        display: none !important;
    }
}

/* Mobile: keep the account menu out of the main navigation. */
@media (max-width: 768px) {
    .user-menu-desktop { display: none !important; }
}

/* ==================== HERO SECTION ==================== */
.hero {
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.45)
        ),
        url('../images/properties/hero.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
}

.search-bar {
    background: var(--white);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    max-width: 900px;
    margin: 30px auto 0;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.8s ease-out 0.2s both;
    flex-wrap: wrap;
}

.search-bar input,
.search-bar select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    flex: 1;
    min-width: 150px;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    font-family: inherit;
}

.search-bar input:focus,
.search-bar select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.search-bar button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.2);
}

.search-bar button:hover {
    background: #e55a00;
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
    transform: translateY(-2px);
}

/* ==================== SECTIONS ==================== */
section {
    animation: fadeIn 0.6s ease-out;
}

.featured-properties {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, rgba(11, 44, 61, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .featured-properties {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .featured-properties {
        padding: 40px 0;
    }
}

.featured-properties::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.featured-properties .section-title {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.latest-listings {
    padding: 60px 0;
}

.why-choose-us {
    padding: 60px 0 !important;
}

.section-title {
    text-align: center;
    margin: 0 0 50px;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

@media (max-width: 480px) {
    .section-title {
        margin-bottom: 30px;
    }
}

.section-title + .property-grid {
    animation: fadeIn 0.6s ease-out 0.1s both;
}

/* ==================== PROPERTY CARDS ==================== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .property-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.property-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    border: 1px solid rgba(255, 107, 0, 0.1);
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease-out;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.15);
    border-color: var(--primary-color);
}

.property-card:hover::before {
    transform: scaleX(1);
}

.property-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
    animation: slideInDown 0.4s ease-out;
}

.property-badge.sold {
    background: #999;
}

.property-badge.reserved {
    background: #4CAF50;
}

.property-badge.promo {
    background: var(--primary-color);
    color: #000;
    left: auto;
    right: 12px;
    font-weight: 800;
    box-shadow: 0 2px 12px rgba(255, 204, 0, 0.4);
}

.property-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-price {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-location {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-location i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: auto;
    flex-wrap: wrap;
    gap: 8px;
}

.property-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-meta i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.btn-view {
    display: block;
    text-align: center;
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--primary-color);
    color: var(--white) !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-fast);
    border: 2px solid var(--primary-color);
}

.btn-view:hover {
    background: transparent;
    color: var(--primary-color) !important;
}

/* ==================== FEATURES SECTION ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.feature-item {
    padding: 30px 20px;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
}

.feature-item:hover {
    transform: translateY(-8px);
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition);
}

.feature-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #051a28 100%);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 15px;
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 30px 0 10px;
        margin-top: 40px;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
    text-align: center;
}

.mt-50 {
    margin-top: 50px;
}

.mb-50 {
    margin-bottom: 50px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 15px;
    }

.nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100dvh;
    background: var(--primary-color);
    flex-direction: column;
    gap: 0;

    padding: 0;          /* dating 80px 0 20px */
    padding-top: 0;      /* alisin ang espasyo sa taas */

    overflow-y: auto;
padding-bottom: 120px;

    box-shadow: 5px 0 15px rgba(0,0,0,.1);
    z-index: 2001;
    transition: left .3s ease;
}

    .nav-links.active {
        left: 0;
        pointer-events: auto;   /* ADD THIS LINE */
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        padding: 0;
        margin:0;
    }
.nav-links li:first-child{
    margin-top:0;
}
    .nav-links a {
                padding:18px 25px;

        border-bottom: none;
        width: 100%;
        font-size: 1rem;
        text-align: left;
        color: #a0aec0;
        display: flex;
        align-items: center;
        gap: 12px;
        border-radius: 10px;
        transition: all 0.3s;
    }

    .nav-links a:hover {
        background: rgba(255,255,255,0.1);
        color: white;
        transform: translateX(5px);
    }

    .nav-links a::after {
        display: none;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        border-radius: 10px;
        background: var(--primary-color);
        color: white;
        font-size: 1.3rem;
        cursor: pointer;
        border: none;
        transition: all 0.3s ease;
        z-index: 2000;
    }
    .menu-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.45);
    display:none;
    z-index:1998;
}

.menu-overlay.active{
    display:block;
}
    .menu-toggle:hover {
        background: #e55a00;
    }

    /* Overlay for mobile menu */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1998;
        display: none;
        backdrop-filter: none;
        pointer-events: none;
    }

    .menu-overlay.active {
        display: block;
        pointer-events: auto;
    }

    /* Logo and User Menu adjustments for mobile */
    .logo {
        z-index: 1002;
        order: 1;
    }

    .nav-links .user-menu-desktop {
        z-index: 2001;
        order: 2;
        margin-left: auto;
        margin-right: 10px;
    }

    main {
        margin-top: 140px;
    }
}

@media (max-width: 480px) {
    .header-top .container {
        gap: 10px;
    }
    
    .btn-header {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-links {
        width: 260px;
        left: -260px;
            padding: 0;

    }

    .menu-toggle {
        display: flex !important;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 2000;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    main {
        margin-top: 125px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .search-bar {
        flex-direction: column;
        padding: 12px;
    }

    .search-bar input,
    .search-bar select,
    .search-bar button {
        width: 100%;
    }

    .property-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }

    .property-image {
        height: 200px;
    }

    .features-grid {
        gap: 24px;
    }

    .feature-item {
        padding: 20px 15px;
    }

    .feature-item i {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
}

/* Responsive Utility Classes */
.responsive-grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .mobile-stack {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .mobile-hide {
        display: none !important;
    }
    
    .mobile-padding-0 {
        padding: 0 !important;
    }
    
    .mobile-margin-0 {
        margin: 0 !important;
    }

    .mobile-text-center {
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .property-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 50vh;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .property-card {
        border-radius: 12px;
    }

    .property-price {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .footer-grid {
        gap: 30px;
    }
}

/* ==================== SCROLLBAR STYLING ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a00;
}


/* ==================== USER MENU DROPDOWN ==================== */
.user-menu {
    position: relative;
}

.user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.user-icon:hover {
    transform: scale(1.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;

    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);

    min-width: 220px;
    width: 220px;

    padding: 12px 0;
    margin-top: 12px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);

    z-index: 2002;
}

.user-menu:hover .dropdown-menu,
.user-menu:focus-within .dropdown-menu,
.user-menu.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-icon {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.dropdown-menu a i {
    width: 18px;
    text-align: center;
}

.dropdown-menu hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* Mobile dropdown menu positioning */
@media (max-width: 768px) {

    .nav-links .user-menu-desktop {
        position: sticky;
        bottom: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        background: #1f3553;
        padding: 10px;
        z-index: 9999;
    }

    .nav-links .user-menu-desktop .dropdown-menu {
        position: absolute;
        bottom: 60px;
        top: auto;
        left: 10px;
        right: 10px;

        max-height: 250px;
        overflow-y: auto;

        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }

    .nav-links .user-menu-desktop.active .dropdown-menu,
    .nav-links .user-menu-desktop:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

}

/* ==================== NEW HEADER BUTTONS & SOCIAL ==================== */
.header-top {
    background: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    position: relative;
    z-index: 1001;
}

.header-top .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-direction: row;
    flex-wrap: nowrap;
}
@media (max-width: 600px) {
    .btn-header {
        min-height: 22px;
        height: 22px;
        padding: 0 6px;
        font-size: 8px !important;
        line-height: 22px;
        border-radius: 4px;
        text-transform: uppercase;
    }

    .btn-header::before,
    .btn-enlist::after {
        font-size: 8px;
    }

    .social-icons a {
        width: 22px;
        height: 22px;
    }
}
@media (max-width: 768px) {
    .header-top .container {
        gap: 10px;
        padding: 8px 15px;
        justify-content: center;
        flex-wrap: nowrap;
    }
}

@media (max-width: 480px) {
    .header-top .container {
        gap: 5px;
        padding: 5px 8px;
        justify-content: center;
        flex-wrap: nowrap;
    }
}
.header-top-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .header-top-links {
        gap: 6px;
        flex-wrap: nowrap;
    }
}

@media (max-width: 480px) {
    .header-top-links {
        gap: 3px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: auto;
    }
}

.btn-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    color: white !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: var(--transition-fast);
}


.btn-email { background: #071d3a; }
.btn-call { background: #071d3a; }
.btn-enlist { background: #0056b3; }

.btn-header:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.social-icons {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .social-icons {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .social-icons {
        gap: 3px;
    }
}

.social-icons a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

@media (max-width: 480px) {
    .social-icons a {
        width: 21px;
        height: 21px;
        font-size: 0.65rem;
        border-radius: 3px;
    }
}

@media (max-width: 380px) {
    .header-top .container {
        gap: 2px;
        padding: 4px 6px;
    }

    .header-top-links {
        gap: 2px;
    }

    .btn-header {
        padding: 2px 4px;
        font-size: 0.46rem;
        min-height: 20px;
    }

    .social-icons {
        gap: 2px;
    }

    .social-icons a {
        width: 19px;
        height: 19px;
        font-size: 0.58rem;
    }
}
@media (max-width: 600px) {
    .header-top {
        padding: 4px 0;
    }

    .header-top .container {
        padding: 6px 8px;
        gap: 5px;
    }

    .btn-header {
        min-height: 28px;
        padding: 0 8px;
        border-radius: 4px;
    }

    .btn-header::before,
    .btn-enlist::after {
        font-size: 9px;
    }

    .btn-enlist i {
        font-size: 9px;
        margin-right: 3px;
    }

    .social-icons a {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
}

@media (max-width: 380px) {
    .header-top .container {
        padding: 3px 6px;
        gap: 4px;
    }

    .header-top-links {
        gap: 3px;
    }

    .btn-header {
        min-height: 21px;
        padding: 0 4px;
    }

    .btn-header::before,
    .btn-enlist::after,
    .btn-enlist i {
        font-size: 8px;
    }

    .social-icons {
        gap: 3px;
    }

    .social-icons a {
        width: 20px;
        height: 20px;
        min-width: 20px;
        font-size: 0.58rem;
    }
}

.social-facebook { background: #3b5998; }
.social-instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-youtube { background: #ff0000; }
.social-viber { background: #7360f2; }
.social-whatsapp { background: #25d366; }
.social-wechat { background: #7bb32e; }

.social-icons a:hover {
    transform: scale(1.1);
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-selector select {
    padding: 2px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8rem;
}

/* ==================== IMPROVED HERO SECTION ==================== */
.hero-new {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/properties/hero.png');
    background-size: cover;
    background-position: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 80px 0;
}

.hero-new .container{
    max-width:1400px;
    width:100%;
    margin:0 auto;
    padding:0 80px;
    display: flex;
    align-items: center;
    gap: 40px;
}

@media (max-width: 1024px) {
    .hero-new .container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .hero-new .container {
        padding: 0 20px;
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-new .container {
        padding: 0 15px;
    }
}

.hero-text-side{
    max-width:700px;
    margin-left:0;
    text-align:left;
    flex: 1;
}

@media (max-width: 768px) {
    .hero-text-side {
        max-width: 100%;
        text-align: left;
    }
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
}

.hero-text-side h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-text-side p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-btns {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
    }
    
    .btn-hero {
        width: 100%;
    }
}

.btn-hero {
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-budget { background: #d4a017; color: #000; }
.btn-budget:hover { background: #b8860b; }

.btn-location { background: #001f3f; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-location:hover { background: #002d5a; }

.btn-list { background: #fff; color: #000; }
.btn-list:hover { background: #f0f0f0; }

.hero-card-side {
    flex: 0 0 400px;
}

@media (max-width: 1024px) {
    .hero-card-side {
        flex: 0 0 350px;
    }
}

@media (max-width: 768px) {
    .hero-card-side {
        width: 100%;
        max-width: 450px;
        flex: 0 0 auto;
    }
}

.lookup-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    color: #000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .lookup-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .lookup-card {
        padding: 20px 15px;
    }
}

.lookup-card h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 700;
}

@media (max-width: 480px) {
    .lookup-card h2 {
        font-size: 1.3rem;
    }
}

.lookup-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lookup-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    border: 1px solid #eee;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.lookup-item:hover {
    background: #f9f9f9;
    border-color: #ddd;
    transform: translateX(5px);
}

/* ==================== BROWSE SECTIONS IMPROVEMENTS ==================== */
.browse-section {
    padding: 100px 0;
    background: #fff;
}

@media (max-width: 768px) {
    .browse-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .browse-section {
        padding: 40px 0;
    }
}

.browse-section .section-title {
    margin-bottom: 60px;
    font-size: 2.5rem;
    font-weight: 800;
}

.budget-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .budget-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .budget-grid-new {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.budget-card-new {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.budget-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b00, #e55a00);
}

.budget-card-new:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(255, 107, 0, 0.15);
    border-color: #ff6b00;
}

.budget-card-new h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #333;
}

.budget-card-new .budget-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 20px;
}

.budget-card-new p {
    color: #888;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.budget-card-new .view-link {
    font-weight: 700;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.budget-card-new:hover .view-link {
    gap: 12px;
    color: var(--primary-color);
}

.location-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .location-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .location-grid-new {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.location-card-new {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .location-card-new {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .location-card-new {
        height: 250px;
    }
}

.location-card-new:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.location-card-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-card-new:hover img {
    transform: scale(1.1);
}

.location-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    transition: all 0.3s ease;
}

.location-card-new:hover .location-overlay {
    padding-bottom: 50px;
}

.location-overlay h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.location-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.5;
}

.location-btn {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid #fff;
    padding-bottom: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}




/* ==================== PROPERTY DETAILS PAGE RESPONSIVENESS ==================== */
.property-details-layout-responsive {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

@media (max-width: 1024px) {
    .property-details-layout-responsive {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .property-details-layout-responsive {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.main-image-responsive {
    height: 500px;
}

@media (max-width: 768px) {
    .main-image-responsive {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .main-image-responsive {
        height: 250px;
    }
}

.thumbnail-grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

@media (max-width: 480px) {
    .thumbnail-grid-responsive {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }
}

.property-specs-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .property-specs-responsive {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .property-specs-responsive {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.sidebar {
    display: block;
}

@media (max-width: 768px) {
    .sidebar {
        order: -1;
    }
    
    .inquiry-form-card {
        position: static !important;
        top: auto !important;
    }
}

/* ==================== RESPONSIVE BUTTON SIZES ==================== */
@media (max-width: 768px) {
    .btn-hero {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .btn-hero {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

/* ==================== RESPONSIVE HERO SECTION BUTTONS ==================== */
@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
    }
    
    .btn-hero {
        width: 100%;
    }
}

/* ==================== RESPONSIVE SCROLL TO TOP BUTTON ==================== */
@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 82px !important;
        right: 14px !important;
        width: 40px;
        height: 40px;
        z-index: 9998 !important;
    }
}

/* ==================== MOBILE HEADER WITHOUT HAMBURGER ==================== */
@media (max-width: 768px) {
    header {
        overflow: visible !important;
    }

    .navbar {
        padding: 8px 0 0;
    }

    .navbar .container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0;
    }

    .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        margin: 0;
        padding: 0 14px;
        text-align: center;
        line-height: 1.2;
        white-space: normal;
    }

    .nav-links,
    .nav-links.active {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 0 12px 10px;
        overflow-x: auto;
        overflow-y: visible;
        background: #fff;
        box-shadow: none;
        z-index: auto;
        transition: none;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links::-webkit-scrollbar {
        height: 0;
    }

    .nav-links li {
        flex: 0 0 auto;
        width: auto;
        margin: 0;
        padding: 0;
        scroll-snap-align: start;
    }

    .nav-links a,
    .nav-links a.user-icon {
        width: auto;
        min-height: 38px;
        padding: 8px 11px;
        border: 1px solid rgba(7, 29, 58, 0.12);
        border-radius: 8px;
        background: #f7f9fc;
        color: var(--primary-color);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
        transform: none;
    }

    .nav-links a i {
        display: inline-flex !important;
        font-size: 0.9rem;
    }

    .nav-links a:hover {
        background: var(--primary-color);
        color: #fff;
        transform: none;
    }

    .nav-links a::after,
    .menu-toggle,
    .menu-overlay {
        display: none !important;
    }

    .nav-links .user-menu-desktop {
        position: static;
        width: auto;
        display: flex !important;
        justify-content: center;
        margin: 0;
        padding: 0;
        background: transparent;
        z-index: auto;
    }

    .login-text {
        display: none;
    }

    .nav-links .user-menu-desktop .dropdown-menu {
        position: fixed;
        top: 126px;
        right: 12px;
        left: auto;
        bottom: auto;
        width: min(220px, calc(100vw - 24px));
        min-width: 0;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
        margin-top: 0;
        transform: translateY(-8px);
        z-index: 3000;
    }

    .nav-links .user-menu-desktop.active .dropdown-menu,
    .nav-links .user-menu-desktop:hover .dropdown-menu,
    .nav-links .user-menu-desktop:focus-within .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    main {
        margin-top: 150px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding-top: 7px;
    }

    .logo {
        min-height: 34px;
        padding: 0 12px;
        font-size: 1.05rem;
    }

    .nav-links,
    .nav-links.active {
        padding: 0 10px 9px;
        gap: 6px;
    }

    .nav-links a,
    .nav-links a.user-icon {
        min-height: 34px;
        padding: 7px 9px;
        font-size: 0.72rem;
        gap: 6px;
    }

    .nav-links a i {
        font-size: 0.82rem;
    }

    .dropdown-menu {
        top: 116px;
    }

    main {
        margin-top: 137px;
    }
}

/* ==================== CONTACT PAGE RESPONSIVE FIX ==================== */
@media (max-width: 768px) {
    .contact-page-header {
        padding: 42px 0 !important;
    }

    .contact-page-header h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .contact-page-header p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .contact-content {
        margin-top: 32px !important;
        margin-bottom: 48px !important;
    }

    .contact-layout {
        grid-template-columns: 1fr !important;
        gap: 28px;
    }

    .contact-info h2,
    .contact-form-card h2 {
        font-size: 1.35rem;
        line-height: 1.25;
        margin-bottom: 22px !important;
    }

    .contact-info p,
    .contact-info h4 {
        overflow-wrap: anywhere;
    }

    .contact-form-card {
        padding: 24px !important;
        border-radius: 8px !important;
    }

    .contact-form-row {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .contact-form-container input,
    .contact-form-container textarea {
        max-width: 100%;
        font-size: 16px;
    }

    .map-placeholder {
        margin-bottom: 48px !important;
    }

    .contact-map-card {
        min-height: 320px;
        height: auto !important;
        padding: 28px 18px !important;
        border-radius: 8px !important;
    }

    .contact-map-card h3 {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .contact-map-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .contact-page-header {
        padding: 34px 0 !important;
    }

    .contact-page-header h1 {
        font-size: 1.5rem;
    }

    .contact-content {
        margin-top: 26px !important;
        margin-bottom: 40px !important;
    }

    .contact-layout {
        gap: 24px;
    }

    .contact-form-card {
        padding: 18px !important;
    }

    .contact-info h2,
    .contact-form-card h2 {
        font-size: 1.22rem;
        margin-bottom: 18px !important;
    }

    .contact-info > div {
        margin-bottom: 20px !important;
    }

    .btn-submit-enhanced {
        min-height: 48px;
        padding: 13px 18px;
        font-size: 0.95rem;
    }

    .contact-map-card {
        min-height: 280px;
        padding: 24px 16px !important;
    }

    .contact-map-card .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* ==================== MOBILE LOGIN MENU FIX ==================== */
@media (max-width: 768px) {
    .nav-links .user-menu {
        position: static !important;
        flex: 0 0 auto;
        width: auto !important;
        min-width: auto;
        display: flex !important;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
    }

    .nav-links .user-icon {
        position: relative;
        z-index: 2;
        min-width: 42px;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(7, 29, 58, 0.12);
    }

    .nav-links .user-menu .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        right: 12px !important;
        bottom: 18px !important;
        left: 12px !important;
        width: auto !important;
        max-width: 420px;
        min-width: 0;
        margin: 0 auto !important;
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 14px 34px rgba(7, 29, 58, 0.22);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(14px);
        z-index: 100000;
    }

    .nav-links .user-menu.active .dropdown-menu,
    .nav-links .user-menu:focus-within .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links .user-menu .dropdown-menu a {
        min-height: 46px;
        width: 100%;
        justify-content: flex-start;
        padding: 12px 14px;
        border: 0;
        background: transparent;
        color: var(--text-color);
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .nav-links .user-menu .dropdown-menu a:hover {
        background: var(--light-bg);
        color: var(--primary-color);
    }
}

/* ==================== RESPONSIVE HEADER-TOP USER MENU ==================== */
.user-menu-mobile { display: none !important; }
.user-menu-desktop { display: flex !important; }

@media (max-width: 768px) {
    .header-top {
        position: relative !important;
        z-index: 100000 !important;
        overflow: visible !important;
    }

    .header-top .container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        padding: 6px 8px !important;
    }

    .header-top-links {
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto;
        min-width: 0;
        gap: 4px !important;
    }

    .header-top .btn-header {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: 100%;
        box-sizing: border-box !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap !important;
    }

    .header-top .social-icons {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto;
        gap: 4px !important;
    }

    .user-menu-desktop,
    .navbar .nav-links .user-menu-desktop { display: none !important; }
    .header-top .user-menu-mobile {
        display: flex !important;
        position: relative !important;
        bottom: auto !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        order: unset !important;
        background: transparent !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        z-index: 9999 !important;
    }

    .header-top .user-menu-mobile .user-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 24px;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 1.45rem;
    }

    .header-top .user-menu-mobile .dropdown-menu {
        position: absolute !important;
        top: calc(100% + 9px) !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;
        width: min(220px, calc(100vw - 20px)) !important;
        min-width: 0 !important;
        max-height: calc(100vh - 110px);
        margin: 0 !important;
        overflow-y: auto;
        z-index: 100000 !important;
    }
}

@media (max-width: 480px) {
    .header-top .container { gap: 4px !important; padding: 5px 7px !important; }
    .header-top-links { gap: 3px !important; }
    .header-top .social-icons { gap: 3px !important; }
    .header-top .btn-header { min-width: 0; padding: 0 4px !important; font-size: .58rem !important; }
    .header-top .btn-enlist { font-size: .53rem !important; }
    .header-top .social-icons a { width: 22px !important; min-width: 22px !important; height: 22px !important; }
}

@media (max-width: 380px) {
    .header-top .container { gap: 3px !important; padding: 4px 6px !important; }
    .header-top .btn-header { padding: 0 3px !important; font-size: .49rem !important; }
    .header-top .btn-enlist { font-size: .46rem !important; }
    .header-top .social-icons a { width: 20px !important; min-width: 20px !important; height: 20px !important; }
    .header-top .user-menu-mobile .user-icon { min-width: 20px; font-size: 1.25rem; }
}

/* ==================== MOBILE AUTH PANEL OUTSIDE NAV ==================== */
@media (max-width: 768px) {
    body > .dropdown-menu.mobile-auth-panel {
        position: fixed !important;
        top: 124px !important;
        left: 14px !important;
        right: 14px !important;
        bottom: auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
        display: grid;
        gap: 8px;
        padding: 10px !important;
        margin: 0 !important;
        background: #fff;
        border: 1px solid rgba(7, 29, 58, 0.12);
        border-radius: 10px;
        box-shadow: 0 18px 45px rgba(7, 29, 58, 0.22);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        z-index: 100000 !important;
    }

    body > .dropdown-menu.mobile-auth-panel.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    body > .dropdown-menu.mobile-auth-panel a {
        min-height: 48px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 12px 14px;
        border: 0;
        border-radius: 8px;
        background: #f7f9fc;
        color: var(--primary-color);
        font-size: 0.98rem;
        font-weight: 700;
        text-decoration: none;
    }

    body > .dropdown-menu.mobile-auth-panel a:hover,
    body > .dropdown-menu.mobile-auth-panel a:focus {
        background: var(--primary-color);
        color: #fff;
    }
}

@media (max-width: 480px) {
    body > .dropdown-menu.mobile-auth-panel {
        top: 116px !important;
        left: 10px !important;
        right: 10px !important;
    }
}
