- /*
 Theme Name:   WpResidence child theme
 Theme URI:    https://themeforest.net/item/wp-residence-real-estate-wordpress-theme/7896392
 Description:  WpResidence child theme
 Author:       WpEstate
 Author URI:   http://wpestate.org
 Template:     wpresidence
 Version:      5.1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/
/* Prevent WP Admin Bar from hiding the floating nav */

:root {
    --primary-gold: #C69F50; 
    --primary-gold-dark: #A5823D;
    --dark-bg: #111111;
    --dark-grey: #222222;
    --text-main: #333333;
    --text-muted: #666666;
    --light-nature: #F9F9F6; 
    
    /* Updated Typography (Barlow & Montserrat) */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Barlow', sans-serif;
    
    /* Re-mapping the previous utility classes to the clean aesthetic */
    --font-script: 'Montserrat', sans-serif; /* Replaced cursive with clean Montserrat */
    --font-tagline: 'Barlow', sans-serif; 
    --font-url: 'Montserrat', sans-serif; 
}
body.admin-bar .premium-floating-nav {
    margin-top: 62px !important; 
}

/* ==========================================================================
   Ultra Premium Floating Navigation
   ========================================================================== */

/* The Floating "Pill" Layout */
.premium-floating-nav {
    position: fixed !important;
    top: 0 !important;
    z-index: 999999 !important; 
    left: 50% !important; /* Force centering */
    right: auto !important; /* Cancel Bootstrap's stretch */
    transform: translateX(-50%) !important; /* Force centering */
    margin-top: 30px;
    width: 92%;
    max-width: 1400px;
    background: rgba(17, 17, 17, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(198, 159, 80, 0.3);
    border-radius: 50px;
    padding: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* State when user scrolls down */
.premium-floating-nav.scrolled {
    margin-top: 15px;
    background: rgba(17, 17, 17, 0.9);
    border-color: rgba(198, 159, 80, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* The Custom Center Logo Shield (Brand Identity) */
.nav-brand-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -9px; /* Pulls it slightly up to overlap the border seamlessly */
    z-index: 100;
}

.brand-shield-wrapper {
    display: block;
    text-decoration: none;
}

.brand-shield {
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(198, 159, 80, 0.5);
    border-top: none;
    /* This creates the beautiful 'shield' drop shape matching your logo */
    border-radius: 0 0 40px 40px; 
    padding: 15px 35px 25px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.premium-floating-nav.scrolled .brand-shield {
    background: rgba(17, 17, 17, 1);
    padding: 10px 25px 15px;
}

.desktop-logo {
    height: 75px;
    filter: brightness(0) invert(1); /* Makes the black logo white */
    transition: all 0.4s ease;
}

.premium-floating-nav.scrolled .desktop-logo {
    height: 65px; /* Shrinks smoothly on scroll */
}

/* Nav Links Typography & Hover FX */
.premium-floating-nav .nav-link {
    color: #ffffff;
    letter-spacing: 2px;
    font-size: 0.8rem;
    padding: 10px 25px;
    position: relative;
    transition: color 0.3s;
}

/* Elegant gold dot hover effect */
.premium-floating-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #A5823D !important;
    opacity: 0;
    transition: all 0.3s ease;
}

.premium-floating-nav .nav-link:hover::after,
.premium-floating-nav .nav-link:focus::after {
    opacity: 1;
    bottom: 8px;
}

.premium-floating-nav .nav-link:hover {
    color: var(--primary-gold);
}

/* Premium Solid Gold Button - Foolproof WordPress Target */
li.btn-gold-solid a {
    background: #C69F50 !important;
    color: #ffffff !important;
    padding: 12px 30px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid #C69F50 !important;
    display: inline-block !important;
	margin-left: 20px !important;
}

li.btn-gold-solid a:hover {
    background: transparent !important;
    color: #C69F50 !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   Mobile Navigation Handlers
   ========================================================================== */

/* Custom Animated Hamburger Menu */
.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #C69F50 !important;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: .25s ease-in-out;
	color: #FFFFFF !important;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

/* Hamburger to 'X' animation when opened */
.custom-toggler[aria-expanded="true"] .hamburger span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}
.custom-toggler[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
    left: -20px;
}
.custom-toggler[aria-expanded="true"] .hamburger span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .premium-floating-nav {
        border-radius: 20px;
        padding: 10px 0;
        width: 95%;
    }
    
    .mobile-logo { height: 55px; }
    
    /* The dropdown menu box on mobile */
    .navbar-collapse {
        background: rgba(17, 17, 17, 0.98);
        border-radius: 15px;
        padding: 20px;
        margin-top: 15px;
        border: 1px solid rgba(198, 159, 80, 0.2);
        text-align: center;
    }
    
    .premium-floating-nav .nav-link {
        padding: 12px 15px;
    }
    
    /* Disable the desktop dot hover on mobile */
    .premium-floating-nav .nav-link::after { display: none; }
}

/* ==========================================================================
   Mega Menu Restyling (To match new nav)
   ========================================================================== */
.has-megamenu:hover .megamenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.megamenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 15px) !important; /* Centers dropdown under Destinations */
    width: 600px; /* Controlled width instead of full screen */
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .megamenu {
        position: static;
        width: 100%;
        transform: none !important;
        background: transparent;
        color: #fff;
    }
    .megamenu .title, .megamenu ul li a { color: #fff !important; }
}

@media (min-width: 992px) {
    .premium-floating-nav .navbar-collapse .me-auto {
        padding-right: 120px !important; 
        transition: padding 0.4s ease;
    }
    .premium-floating-nav .navbar-collapse .ms-auto {
        padding-left: 120px !important; 
        transition: padding 0.4s ease;
    }

    /* Shrink the gap smoothly when scrolled down to match the smaller logo */
    .premium-floating-nav.scrolled .navbar-collapse .me-auto {
        padding-right: 85px !important;
    }
    .premium-floating-nav.scrolled .navbar-collapse .ms-auto {
        padding-left: 85px !important;
    }
}
.megamenu::before {
    content: '';
    position: absolute;
    top: -20px; /* Reaches up to cover the 15px gap */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent; /* Invisible but clickable/hoverable */
}

/* 2. Premium Styling for Dropdown Links (Removing the default blue) */
.megamenu ul li a {
    color: var(--text-main) !important;
    font-family: var(--font-tagline);
    text-decoration: none !important;
    font-size: 0.95rem;
    display: block;
    padding: 8px 0;
    transition: all 0.3s ease;
}

/* Gold hover effect for dropdown links */
.megamenu ul li a:hover {
    color: var(--primary-gold) !important;
    padding-left: 6px; /* Smooth slide to the right on hover */
}