/* ============================================================
    1. CORE VARIABLES & GLOBAL STYLES
   ============================================================ */
:root { 
    --p-blue: #1e4fa3; 
    --s-blue: #2f80ed; 
    --dark-navy: #0b1622;
    --gold: #ffc107;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fb;
    color: #444;
    margin: 0;
}

/* ============================================================
    2. TOP HEADER (BLACK BACKGROUND - WHITE TEXT)
   ============================================================ */
.top-header {
    background: #000000 !important; /* Pure Black Background */
    color: #ffffff !important; /* Pure White Text */
    font-size: 12px;
    padding: 8px 0; /* Compact but readable */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1001;
}

/* Links (Phone, Email, Social) inside Top Header */
.top-header a {
    color: #ffffff !important;
    text-decoration: none;
    transition: 0.3s ease;
    opacity: 0.9;
}

.top-header a:hover {
    color: var(--gold) !important; /* Hover par gold chamkega */
    opacity: 1;
}

/* Icons inside Top Header */
.top-header i {
    color: #ffffff !important;
    margin-right: 5px;
}

/* Hide on Mobile as requested */
@media (max-width: 991px) { 
    .top-header { 
        display: none !important; 
    } 
}
/* ============================================================
    3. MAIN NAVBAR (PERFECT SIZE & BLUE BACKGROUND)
   ============================================================ */
.main-navbar {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--p-blue), var(--s-blue)) !important;
    padding: 8px 0; /* Reduced padding for perfect size */
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Premium Navbar Shine Animation */
.main-navbar::before {
    content: "";
    position: absolute;
    top: 0; left: -200%;
    width: 25%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-25deg);
    animation: navbarShine 12s ease-in-out infinite;
    pointer-events: none;
}
@keyframes navbarShine {
    0%   { left: -200%; }
    30%  { left: 120%; }
    100% { left: 150%; }
}

/* 🔥 RESTORED UNDERLINE ANIMATION 🔥 */
.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 15px;
    margin: 0 15px;
    position: relative;
    padding: 8px 0 !important; /* Perfect height alignment */
    transition: 0.3s;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--gold);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--gold) !important;
}

/* ============================================================
    4. STYLISH MOBILE MENU ICON (HAMBURGER TO X)
   ============================================================ */
.hamburger-icon {
    width: 26px; height: 18px;
    position: relative; display: block;
}
.hamburger-icon span {
    position: absolute; width: 100%; height: 2.5px;
    background: #ffffff; left: 0; border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 7.5px; width: 75%; }
.hamburger-icon span:nth-child(3) { bottom: 0; }

/* Animation to 'X' */
.navbar-toggler.active .hamburger-icon span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar-toggler.active .hamburger-icon span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.navbar-toggler.active .hamburger-icon span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.navbar-toggler { border: none !important; outline: none !important; padding: 0; }

/* ============================================================
    5. MOBILE OFFCANVAS MENU (BLUE GRADIENT)
   ============================================================ */
.offcanvas.custom-menu, 
.offcanvas {
    background: linear-gradient(135deg, var(--p-blue), var(--s-blue)) !important;
    color: #ffffff !important;
    width: 280px;
}

.offcanvas-title { color: var(--gold) !important; font-weight: 700; }
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

.offcanvas-body .nav-link {
    color: #ffffff !important;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 16px;
}

/* Submit Property Button inside Menu */
.menu-btn-gold {
    background-color: var(--gold) !important;
    color: #0b1622 !important;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px;
    width: 100%;
    text-align: center;
    display: block;
    margin-top: 20px;
    text-decoration: none;
    border: none;
}

/* ============================================================
    6. SLIDER TEXT (GORGEOUS & COMFORTABLE)
   ============================================================ */
.carousel-caption {
    /* Spacing fix: Search bar ke niche na jaye isliye bottom badhaya gaya hai */
    bottom: 35% !important; 
    z-index: 10;
    padding: 0 15px;
}

/* Slider Title Styling */
.carousel-caption h1 {
    font-size: clamp(26px, 5vw, 54px) !important; /* All device comfortable size */
    font-weight: 900 !important;
    letter-spacing: -1.2px;
    margin-bottom: 15px;
    line-height: 1.1;
    color: #ffffff; /* Contrast for images */
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* 🔥 Gorgeous Gradient for Slider Title Spans 🔥 */
.carousel-caption h1 span {
    background: linear-gradient(90deg, #ffc107, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Description Text (Black & Bold Look) */
.carousel-caption p {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 600;
    max-width: 700px;
    margin: 0 auto 25px;
    /* Aapne black kaha tha, but image par visibility ke liye ye best hai */
    color: #000000 !important; 
    background: rgba(255, 255, 255, 0.6); /* Slight background for readability */
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
}

/* ============================================================
    7. FEATURED SECTION TITLES 
   ============================================================ */
/* 1. Tagline (Gold Color) */
.subtitle {
    font-size: 12px;
    letter-spacing: 2px;
    color: #ffc107; /* Exactly like your image */
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
}

/* 2. Main Title (Mixed Blue/Black) */
.main-title {
    font-size: 42px;
    font-weight: 800;
    color: #0d1b2a; /* Pure Black-Navy look */
    text-align: center;
}

.main-title span {
    background: linear-gradient(90deg, #0d6efd, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3. Description (Soft Grey) */
.header-desc {
    color: #6c757d; /* Soft grey as per your old style */
    font-size: 15px;
    max-width: 520px;
    margin: 20px auto;
    line-height: 1.6;
    text-align: center;
}

/* 4. Explore Button (Blue with Icon) */
.btn-explore {
    background: #3b82f6;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* ============================================================
    8. SLIDE BUTTONS (PREMIUM STYLE)
   ============================================================ */
.slide-btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, #1e4fa3, #2f80ed);
    border-radius: 50px;
    text-decoration: none;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(30, 79, 163, 0.3);
    border: none;
    text-transform: uppercase;
    font-size: 14px;
}

.slide-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(30, 79, 163, 0.5);
    color: #fff !important;
}

/* ============================================================
    9. SEARCH BAR SPACING FIX (PREVENT OVERLAP)
   ============================================================ */
.compact-search {
    position: relative;
    margin-top: -60px; /* Slider ke thoda upar float karega */
    z-index: 25;
}

@media (max-width: 768px) {
    .carousel-caption {
        bottom: 40% !important; /* Mobile par text ko aur upar shift kiya */
    }
    .compact-search {
        margin-top: -40px;
    }
}
/* ============================================================
    10. SEARCH BUTTON & BAR (PERFECT FIT - MOBILE & DESKTOP)
   ============================================================ */
.compact-search-bar {
    display: flex;
    flex-direction: column; /* Mobile first: Stacked */
    gap: 12px;
    max-width: 95%; /* Better mobile fit */
    margin: -50px auto 40px;
    padding: 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
    z-index: 100;
    position: relative;
}

/* Inputs styling */
.compact-search-bar select, 
.compact-search-bar input {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    background: #eceff3 !important; /* Light Grey */
    border: 1px solid #dee2e6;
    border-radius: 12px;
    font-size: 15px;
    color: #333;
}

/* 🔥 SEARCH BUTTON FIX 🔥 */
.compact-search-bar button {
    width: 100%; /* Mobile: Full width */
    height: 50px;
    background: #1e4fa3 !important; /* Deep Blue */
    color: #fff !important;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    cursor: pointer;
}

/* Desktop Fix (Screen width > 992px) */
@media (min-width: 992px) {
    .compact-search-bar {
        flex-direction: row; /* Horizontal layout */
        max-width: 1100px;
        padding: 12px;
        align-items: center;
    }
    
    .compact-search-bar select, 
    .compact-search-bar input {
        flex: 1; /* Equal width for inputs */
        min-width: 150px;
    }

    .compact-search-bar button {
        width: auto; /* Desktop: Auto width */
        min-width: 160px;
        padding: 0 30px;
    }
}

/* ============================================================
    11. HERO ZOOM (SYNCED & MANUAL RESET FIX)
   ============================================================ */
.hero-img { 
    width: 100%; 
    height: 75vh; 
    object-fit: cover; 
    /* Zoom speed exactly matches slider interval (6s) */
    -webkit-transition: -webkit-transform 6s ease-in-out !important;
    transition: transform 6s ease-in-out !important; 
    transform: scale(1);
    will-change: transform;
}

/* Jab bhi slide change ho (Next/Prev click par), zoom reset hokar start hoga */
.carousel-item.active .hero-img { 
    -webkit-transform: scale(1.15) !important;
    transform: scale(1.15) !important; 
}

/* Caption Animation */
.carousel-caption {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s;
    z-index: 5;
}

.carousel-item.active .carousel-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
    12. PREMIUM GLASS CONTROLS (NEXT/PREV BUTTONS)
   ============================================================ */
.custom-glass-btn {
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.1) !important; /* Glass Transparency */
    backdrop-filter: blur(10px); /* Frosty Effect */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    transition: all 0.4s ease;
    opacity: 0; /* Only visible on hover */
    z-index: 20;
}

/* Hover over slider to show buttons */
.hero-section:hover .custom-glass-btn {
    opacity: 1;
}

.custom-glass-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.carousel-control-prev-icon, 
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
    filter: brightness(1.5); /* Icon visibility */
}

/* Mobile: Always visible and smaller size */
@media (max-width: 991px) {
    .custom-glass-btn {
        width: 45px !important;
        height: 45px !important;
        margin: 0 10px;
        opacity: 0.8; /* Always visible on touch devices */
        backdrop-filter: blur(5px);
    }
}
/* ============================================================
    12. CARDS & CATEGORY ANIMATION
   ============================================================ */
.property-card, .category-card {
    background: #ffffff !important;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #eee;
}

.property-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.property-card img { height: 220px; width: 100%; object-fit: cover; transition: 0.5s; }
.property-card:hover img { transform: scale(1.1); }

/* Category Shine effect */
.category-card::before {
    content: ""; position: absolute; top: 0; left: -100%; width: 80%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,193,7,0.3), transparent);
    transition: 0.6s;
}
.category-card:hover::before { left: 120%; }
.category-card:hover { transform: translateY(-8px); border-bottom: 4px solid var(--gold) !important; }

/* Icon Circle style inside categories */
.icon-box {
    width: 70px; height: 70px; background: #fff8e1;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; margin: 0 auto 15px;
}

/* ============================================================
    13. PREMIUM BUTTONS (SHIMMER & MOBILE COMPATIBLE)
   ============================================================ */
.btn-premium {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1e4fa3, #2f80ed); color: #fff !important;
    font-weight: 600; padding: 12px 32px; border-radius: 50px; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); z-index: 1; border: none;
    box-shadow: 0 4px 15px rgba(30, 79, 163, 0.2);
    text-decoration: none;
}

.btn-premium::before {
    content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s; z-index: -1;
}

.btn-premium:hover::before { left: 100%; }
.btn-premium:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(30, 79, 163, 0.4); }

/* ============================================================
    14. MOBILE ACTION BAR (IMAGE MATCHED GLOW & ORBS)
   ============================================================ */
@media (max-width: 991px) {
    body { padding-bottom: 110px !important; }

    .mobile-action-bar {
        position: fixed; bottom: 20px; left: 5%; width: 90%; height: 70px;
        background: rgba(13, 27, 42, 0.98); /* Deep Dark */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px); /* Safari/Opera Fix */
        display: flex; align-items: center; justify-content: space-around;
        z-index: 10000; border-radius: 40px; 
        border: 1px solid rgba(255, 193, 7, 0.2);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    }

    /* Common Orb Style */
    .the-orb {
        position: absolute; top: -35px; left: 50%; transform: translateX(-50%);
        width: 68px; height: 68px; border-radius: 50%; display: flex; 
        align-items: center; justify-content: center; 
        border: 4px solid #0d1b2a;
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        cursor: pointer;
    }

    /* 🔥 SEARCH ORB (Yellow/Gold Glow - From Image 3424) */
    .search-orb { 
        background: linear-gradient(135deg, #ffc107, #ff9800); 
        color: #000 !important;
        font-size: 24px;
        box-shadow: 0 0 25px rgba(255, 193, 7, 0.8); /* Strong Gold Glow */
    }

    /* 🔥 SCROLL ORB (Blue Glow - From Image 3420) */
    .scroll-orb { 
        background: linear-gradient(135deg, #00d2ff, #3a7bd5); 
        color: #fff !important;
        font-size: 22px;
        box-shadow: 0 0 25px rgba(0, 210, 255, 0.8); /* Strong Blue Glow */
    }
    
    /* Animation Logic */
    .search-orb.hidden { transform: translateX(-50%) scale(0) rotate(-180deg); opacity: 0; pointer-events: none; }
    .scroll-orb { opacity: 0; transform: translateX(-50%) scale(0); pointer-events: none; }
    .scroll-orb.active { opacity: 1; transform: translateX(-50%) scale(1) rotate(360deg); pointer-events: auto; }

    /* Icons inside Bar */
    .action-item {
        display: flex; flex-direction: column; align-items: center; text-decoration: none;
    }

    .action-item i { font-size: 20px; margin-bottom: 4px; transition: 0.3s; }
    
    /* Call Blue Color */
    .action-item i.fa-phone, .action-item i.fa-phone-alt { color: #3b82f6 !important; }
    
    /* WhatsApp Green Color */
    .action-item i.fa-whatsapp { color: #22c55e !important; }

    .action-item span {
        font-size: 10px; font-weight: 700; color: #fff;
        text-transform: uppercase; letter-spacing: 0.5px;
    }
}

/* ============================================================
    15. MOBILE ACTION BAR (COLORED ICONS & ORBS)
   ============================================================ */
@media (max-width: 991px) {
    body { padding-bottom: 100px !important; }
    .mobile-action-bar {
        position: fixed; bottom: 20px; left: 5%; width: 90%; height: 70px;
        background: rgba(13, 27, 42, 0.95); backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex; align-items: center; justify-content: space-around;
        z-index: 10000; border-radius: 40px; border: 1px solid rgba(255, 193, 7, 0.3);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    }

    .the-orb {
        position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
        width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center;
        justify-content: center; border: 4px solid #0d1b2a;
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }
    .search-orb { background: linear-gradient(135deg, var(--gold), #ff9800); box-shadow: 0 0 20px rgba(255, 193, 7, 0.6); }
    .scroll-orb { background: linear-gradient(135deg, #00d2ff, #3a7bd5); box-shadow: 0 0 20px rgba(0, 210, 255, 0.6); }
    
    .search-orb.hidden { transform: translateX(-50%) scale(0) rotate(-180deg); opacity: 0; }
    .scroll-orb.active { transform: translateX(-50%) scale(1) rotate(360deg); opacity: 1; }

    .action-item i.fa-phone { color: #3b82f6; }
    .wp-glow i { color: #22c55e; }
}

/* ============================================================
    16. LOCAL EDGE & UTILITIES
   ============================================================ */
.local-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff; border: 1px solid #f0f0f0; border-radius: 15px;
}
.local-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important; background: #f8f9fa; }

.icon-anim { transition: transform 0.5s ease; display: inline-block; }
.local-card:hover .icon-anim { transform: rotateY(360deg) scale(1.1); }

.border-primary { border-top: 4px solid #007bff !important; }
.border-warning { border-top: 4px solid var(--gold) !important; }
.border-success { border-top: 4px solid #28a745 !important; }
@media (min-width: 1400px) { .container { max-width: 1440px !important; } }
.overflow-hidden { overflow: hidden; }