
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
        }

        /* Navigation */
        nav {
            background: #fff;
            padding: 1rem 5%;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        /* .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
        } */

        .nav-container {  
            display: flex;  
            justify-content: space-between;  
            align-items: center;  
            max-width: 1400px;  
            margin: 0 auto;  
            padding: 0 20px;
            }

            /* Nav items container */
            .nav-links {
            display: flex;
            gap: 30px;
            }

            /* Hamburger */
            .hamburger {
                display: none;
                flex-direction: column;
                cursor: pointer;
                gap: 5px;
                z-index: 10002; /* ensure it's above the slide-in menu */
                padding: 6px;
                -webkit-tap-highlight-color: transparent;
            }

            .hamburger span {
                width: 25px;
                height: 3px;
                background: #2c3e50;
                transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
                border-radius: 2px;
                display: block;
            }

            /* MOBILE & TABLET VIEW */
            @media (max-width: 900px) {
                .nav-links {
                    position: fixed;
                    top: 0;
                    right: -100%;
                    height: 100vh;
                    width: 60%;
                    background: #fff;
                    display: flex;
                    flex-direction: column;
                    padding: 100px 20px;
                    gap: 25px;
                    transition: 0.4s ease;
                    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
                    z-index: 10001;
                }

                .nav-links.show {
                    right: 0;
                }

                .hamburger {
                    display: flex;
                }

                /* transform hamburger into an "X" when active */
                .hamburger.active span:nth-child(1) {
                    transform: translateY(8px) rotate(45deg);
                }

                .hamburger.active span:nth-child(2) {
                    opacity: 0;
                    transform: scale(0);
                }

                .hamburger.active span:nth-child(3) {
                    transform: translateY(-8px) rotate(-45deg);
                }

                /* keep good contrast when menu is open */
                .hamburger.active span {
                    background: #2c3e50;
                }
            }

        .logo {
            font-size: 2rem;
            font-weight: bold;
            color: #2c3e50;
        }

        .logo span {
            color: #3498db;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: #2c3e50;
            font-weight: 500;
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: #3498db;
        }

        /* Hero Section */
        /* .hero {
            background: url("img/hero.jpg");
            color: white;
            padding: 8rem 5% 6rem;
            text-align:center;
        } */

        .hero {
        position: relative;
        overflow: hidden;
        padding: 8rem 5% 6rem;
        text-align: center;
        color: #fff;
        }

        /* BG Image */
        .hero-bg {
        position: absolute;
        inset: 0;
        background: url("..img/Pan1.jpg") center/cover no-repeat;
        min-height: 680px;
        background: -webkit-gradient(linear, left top, right top, from(rgba(4, 9, 30, 0.8)), to(rgba(4, 9, 30, 0.8))), url("../img/Pan1.jpg");
        background: -webkit-linear-gradient(left, rgba(4, 9, 30, 0.8), rgba(4, 9, 30, 0.8)), url("../img/Pan1.jpg");
        background: -o-linear-gradient(left, rgba(4, 9, 30, 0.8), rgba(4, 9, 30, 0.8)), url("../img/Pan1.jpg");
        background: linear-gradient(to right, rgba(4, 9, 30, 0.8), rgba(4, 9, 30, 0.8)), url("../img/Pan1.jpg");
        background-size: cover;
        z-index: -1;
        }

        /* Gradient overlay */
        .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(102,126,234,0.7), rgba(118,75,162,0.7));
        z-index: -1;
        }
        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            animation: fadeInDown 1s;
        }

        .hero p {
            font-size: 1.3rem;
            margin-bottom: 2rem;
            opacity: 0.95;
        }

        /* 360 Tour Section */
        .tour-section {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 2rem;
            max-width: 1000px;
            margin: 0 auto 3rem;
        }

        .tour-title {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .unit-selector {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .unit-btn {
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 1rem;
            border-radius: 10px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
        }
        .unit-btn:hover,
        .unit-btn:focus {
            /* Apply the active/blue styling */
            background: #3498db;
            border-color: #3498db;
            /* Retain the hover animation for smooth transition */
            transform: translateY(-3px); 
            /* Important: Remove the separate :hover rule */
        }

        .unit-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-3px);
        }

        .unit-btn.active {
            background: #3498db;
            border-color: #3498db;
        }

        .unit-btn i {
            font-size: 2rem;
        }


        
        .view-360-btn {
            color:inherit; 
            text-decoration:none; 
            outline:none; 
            -webkit-tap-highlight-color: transparent;
            background: #3498db;
            color: white;
            padding: 1.2rem 3rem;
            border: none;
            border-radius: 10px;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 0.8rem;
            font-weight: 600;
        }

        .view-360-btn:hover {
            background: #2980b9;
            transform: scale(1.05);
        }

        .view-360-btn i {
            font-size: 1.5rem;
        }

        /* 360 Viewer Modal */
        .viewer-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 10000;
            animation: fadeIn 0.3s;
        }

        .viewer-modal.active {
            display: block;
        }

        .viewer-header {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            padding: 1.5rem 2rem;
            background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 10001;
        }

        .viewer-title {
            color: white;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .close-viewer {
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .close-viewer:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }

        .viewer-controls {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 1rem;
            z-index: 10001;
        }

        .control-btn {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1rem;
        }

        .control-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-3px);
        }

        .control-btn.active {
            background: #3498db;
            border-color: #3498db;
        }

        #viewer-canvas {
            width: 100%;
            height: 100%;
            cursor: grab;
        }

        #viewer-canvas:active {
            cursor: grabbing;
        }

        .viewer-instructions {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            text-align: center;
            font-size: 1.2rem;
            opacity: 0.8;
            pointer-events: none;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.8; }
            50% { opacity: 0.4; }
        }

        /* Search Box */
        .search-box {
            background: white;
            padding: 2rem;
            border-radius: 10px;
            max-width: 900px;
            margin: 0 auto;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        }

        .search-form {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .search-form input,
        .search-form select {
            padding: 0.8rem;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 1rem;
        }

        .search-btn {
            background: #3498db;
            color: white;
            padding: 1rem 2rem;
            border: none;
            border-radius: 5px;
            font-size: 1.1rem;
            cursor: pointer;
            transition: background 0.3s;
        }

        .search-btn:hover {
            background: #2980b9;
        }

        /* Stats Section */
        .stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            padding: 4rem 5%;
            background: #f8f9fa;
            text-align: center;
        }

        .stat-item {
            padding: 2rem;
        }

        .stat-item i {
            font-size: 3rem;
            color: #3498db;
            margin-bottom: 1rem;
        }

        .stat-item h3 {
            font-size: 2.5rem;
            color: #2c3e50;
            margin-bottom: 0.5rem;
        }

        .stat-item p {
            color: #7f8c8d;
            font-size: 1.1rem;
        }

        /* Properties Section */
        .properties {
            padding: 5rem 5%;
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
            color: #2c3e50;
        }

        .property-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 2rem;
        }

        .property-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .property-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }

        .property-image {
            width: 100%;
            height: 250px;
            background: url("../img/fe_aerial.jpg") center/cover no-repeat;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 4rem;
            position: relative;
        }

        .property-image2 {
            width: 100%;
            height: 250px;
            background: url("../img/fe_eland.jpg") center/cover no-repeat;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 4rem;
            position: relative;
        }

        .property-image3 {
            width: 100%;
            height: 250px;
            background: url("../img/fe_twinbuilding.jpg") center/cover no-repeat;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 4rem;
            position: relative;
        }

        .property-image4 {
            width: 100%;
            height: 250px;
            background: url("../img/fe_3_building.jpg") center/cover no-repeat;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 4rem;
            position: relative;
        }

        .property-image5 {
            width: 100%;
            height: 250px;
            background: url("../img/fe_duplex1.jpg") center/cover no-repeat;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 4rem;
            position: relative;
        }

        .property-image6 {
            width: 100%;
            height: 250px;
            background: url("../img/fe_duplex_right-x.jpg") center/cover no-repeat;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 4rem;
            position: relative;
        }
        .property-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: #e74c3c;
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            font-size: 0.9rem;
        }

        .property-badge.sale {
            background: #27ae60;
        }

        .property-info {
            padding: 1.5rem;
        }

        .property-price {
            font-size: 1.8rem;
            color: #3498db;
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

        .property-title {
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
            color: #2c3e50;
        }

        .property-location {
            color: #7f8c8d;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .property-features {
            display: flex;
            gap: 1.5rem;
            padding-top: 1rem;
            border-top: 1px solid #ecf0f1;
            color: #7f8c8d;
        }

        .property-features span {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        /* Agents Section */
        .agents {
            padding: 5rem 5%;
            background: #f8f9fa;
        }

        .agents-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 2rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .agent-card {
            background: white;
            border-radius: 10px;
            padding: 2rem;
            text-align: center;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }

        .agent-card:hover {
            transform: translateY(-5px);
        }

        .agent-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            margin: 0 auto 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3rem;
        }

        .agent-avatar-fave {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            margin: 0 auto 1rem;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background-image: url("../img/favour-realtor.png");
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            color: white;
            font-size: 3rem;
        }
        .agent-name {
            font-size: 1.3rem;
            color: #2c3e50;
            margin-bottom: 0.5rem;
        }

        .agent-role {
            color: #7f8c8d;
            margin-bottom: 1rem;
        }

        .agent-contact {
            display: flex;
            justify-content: center;
            gap: 1rem;
        }

        .agent-contact a {
            color: #3498db;
            font-size: 1.2rem;
            transition: color 0.3s;
        }

        .agent-contact a:hover {
            color: #2980b9;
        }

        /* Footer */
        footer {
            background: #2c3e50;
            color: white;
            padding: 3rem 5%;
            text-align: center;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: white;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: #3498db;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .social-links a {
            color: white;
            font-size: 1.5rem;
            transition: color 0.3s;
        }

        .social-links a:hover {
            color: #3498db;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2rem;
            }

            .nav-links {
                gap: 1rem;
            }

            .property-grid {
                grid-template-columns: 1fr;
            }

            .unit-selector {
                grid-template-columns: 1fr;
            }

            .viewer-controls {
                flex-direction: column;
                bottom: 1rem;
            }
        }
