/* =============================================================================
   UNIFIED NAVBAR - PERFECT POSITIONING FROM DETAIL PAGE
   Extracted from PROPERTY-DETAIL-UNIFIED-RESPONSIVE.css working styles
   ============================================================================= */

/* ===== NAVBAR - SEAMLESS С ТЕМНЫМ ФОНОМ ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between !important; /* Logo left, menu center */
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    height: 100%;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start !important; /* Logo left */
    margin-left: 140px !important; /* FIGMA EXACT: Logo at x=140px from left edge (was 24px) */
    gap: var(--space-2);
}

.torg-logo-svg {
    display: flex;
    align-items: center;
    justify-content: flex-start !important; /* Logo left */
}

.navbar-logo-img {
    height: 36px !important;
    width: auto !important;
    max-width: 120px !important;
    margin-left: 0 !important;
    margin-top: 2px !important; /* Perfect vertical centering */
    filter: brightness(1.1); /* Слегка ярче для темного фона */
}


/* ===== NAVIGATION MENU ===== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 100px; /* FIGMA EXACT: 100px gaps between all nav items (was 32px - CRITICAL FIX!) */
    justify-content: center;
    flex: 1;
}

.nav-item {
    position: relative;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 22px; /* FIGMA EXACT: 22px line-height (was missing - CRITICAL FIX!) */
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover {
    background: rgba(243, 159, 27, 0.1);
    color: var(--primary-orange);
    transform: translateY(-1px);
}

.nav-item.active {
    background: rgba(243, 159, 27, 0.15);
    color: var(--primary-orange);
}

.nav-item .nav-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}


/* ===== NAVBAR CTA BUTTON - FILLED STYLE (VQA BLOCKER FIX) ===== */
.nav-cta-button {
    position: relative;
    text-decoration: none;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px !important;  /* FIGMA EXACT from node 128:3 */
    font-weight: 800 !important;  /* FIGMA EXACT: Extra Bold */
    line-height: 22px !important;  /* FIGMA EXACT: 22px line-height */
    color: #000000 !important;  /* FIGMA EXACT: BLACK text */
    background-color: #D4A574 !important;  /* VQA FIX: Solid filled background, NO border */
    background: #D4A574 !important;
    padding: 13px 24px;
    border-radius: 12px !important;  /* FIGMA EXACT: 12px radius */
    border: none !important;  /* VQA FIX: NO border - filled button, not outline */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 376px !important;  /* FIGMA EXACT: 376px width */
    height: 50px !important;  /* FIGMA EXACT: 50px height */
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Hover effects - darken filled button */
.nav-cta-button:hover {
    background-color: #C9995E !important;  /* Slightly darker on hover */
    background: #C9995E !important;
    transform: translateY(-1px);
    color: #000000 !important;  /* Keep BLACK text on hover */
}

/* Active state */
.nav-cta-button:active {
    transform: translateY(0);
    background-color: #BE8D52 !important;
}


/* ===== RESPONSIVE NAVBAR ===== */
@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo {
        margin-left: 16px !important;
    }
    
    .navbar-logo-img {
        height: 32px !important;
    }
    
    .phone-link {
        font-size: 12px;
    }
    
    .nav-menu {
        gap: 16px;
    }
    
    .nav-item {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .nav-item .nav-icon {
        width: 14px;
        height: 14px;
    }
    
    .nav-right {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-logo {
        margin-left: 8px !important;
    }
    
    .nav-menu {
        gap: 8px;
    }
    
    .nav-item {
        padding: 6px 8px;
        font-size: 11px;
    }
}
/* ═══════════════════════════════════════════════════════════════════════════
   SEARCH BUTTON WHITE TEXT OVERRIDE - FINAL SOLUTION
   ═══════════════════════════════════════════════════════════════════════════ */

/* UNIFIED nav-cta-button style - BLACK text + extra bold */
button.search-btn,
button.search-btn span,
button.search-btn *,
.search-btn,
.search-btn span,
.search-btn * {
    color: #000000 !important;  /* UNIFIED: Black text like nav-cta-button */
    fill: #000000 !important;
    font-weight: 800 !important;  /* UNIFIED: Extra bold like nav-cta-button */
    background: #D4A574 !important;  /* UNIFIED: Solid gold like nav-cta-button */
}

.search-btn:hover,
.search-btn:hover span,
.search-btn:active,
.search-btn:active span,
.search-btn:focus,
.search-btn:focus span {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCED STAT ICONS - SUPER QUALITY VISUAL EFFECTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* SUPER ENHANCED STAT ICONS - EMOJI VERSION */
.stat-icon {
    /* Enhanced visual effects while keeping layout */
    color: rgb(228, 169, 96) !important;
    filter: 
        drop-shadow(0 2px 4px rgba(228, 169, 96, 0.4))
        drop-shadow(0 0 8px rgba(228, 169, 96, 0.2)) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-origin: center !important;
    
    /* Subtle glow enhancement */
    opacity: 0.9 !important;
    
    /* Emoji specific styling */
    font-size: 16px !important;
    line-height: 1 !important;
    display: inline-block !important;
    text-shadow: 
        0 2px 4px rgba(228, 169, 96, 0.4),
        0 0 8px rgba(228, 169, 96, 0.2) !important;
}

/* ENHANCED HOVER EFFECTS FOR EMOJI */
.stat-icon:hover {
    color: rgb(255, 220, 160) !important;
    filter: 
        drop-shadow(0 4px 8px rgba(228, 169, 96, 0.6))
        drop-shadow(0 0 12px rgba(228, 169, 96, 0.4))
        drop-shadow(0 0 20px rgba(228, 169, 96, 0.2)) !important;
    text-shadow: 
        0 4px 8px rgba(228, 169, 96, 0.6),
        0 0 12px rgba(228, 169, 96, 0.4),
        0 0 20px rgba(228, 169, 96, 0.2) !important;
    transform: scale(1.1) translateY(-1px) !important;
    opacity: 1 !important;
}

/* ENHANCED PARENT CONTAINER HOVER FOR EMOJI */
.property-statistics div:hover .stat-icon {
    color: rgb(255, 230, 180) !important;
    filter: 
        drop-shadow(0 6px 12px rgba(228, 169, 96, 0.7))
        drop-shadow(0 0 16px rgba(228, 169, 96, 0.5))
        drop-shadow(0 0 24px rgba(228, 169, 96, 0.3)) !important;
    text-shadow: 
        0 6px 12px rgba(228, 169, 96, 0.7),
        0 0 16px rgba(228, 169, 96, 0.5),
        0 0 24px rgba(228, 169, 96, 0.3) !important;
    transform: scale(1.15) translateY(-2px) !important;
    animation: emojiGlowPulse 2s ease-in-out infinite !important;
}

/* EMOJI GLOW ANIMATION */
@keyframes emojiGlowPulse {
    0%, 100% { 
        text-shadow: 
            0 6px 12px rgba(228, 169, 96, 0.7),
            0 0 16px rgba(228, 169, 96, 0.5),
            0 0 24px rgba(228, 169, 96, 0.3);
        filter: 
            drop-shadow(0 6px 12px rgba(228, 169, 96, 0.7))
            drop-shadow(0 0 16px rgba(228, 169, 96, 0.5))
            drop-shadow(0 0 24px rgba(228, 169, 96, 0.3));
    }
    50% { 
        text-shadow: 
            0 8px 16px rgba(228, 169, 96, 0.8),
            0 0 20px rgba(228, 169, 96, 0.6),
            0 0 32px rgba(228, 169, 96, 0.4);
        filter: 
            drop-shadow(0 8px 16px rgba(228, 169, 96, 0.8))
            drop-shadow(0 0 20px rgba(228, 169, 96, 0.6))
            drop-shadow(0 0 32px rgba(228, 169, 96, 0.4));
    }
}

/* ENHANCED MOBILE EMOJI ICONS */
@media (max-width: 768px) {
    .stat-icon {
        font-size: 18px !important;
        filter: 
            drop-shadow(0 2px 4px rgba(228, 169, 96, 0.5))
            drop-shadow(0 0 6px rgba(228, 169, 96, 0.3)) !important;
        text-shadow: 
            0 2px 4px rgba(228, 169, 96, 0.5),
            0 0 6px rgba(228, 169, 96, 0.3) !important;
    }
    
    .stat-icon:hover {
        transform: scale(1.05) !important;
    }
}

/* DISABLE ANIMATIONS ON REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .stat-icon {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    .stat-icon:hover {
        transform: none !important;
    }
}
