"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import FeatureCardSeven from '@/components/sections/feature/FeatureCardSeven';
import MetricCardSeven from '@/components/sections/metrics/MetricCardSeven';
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { CheckCircle, Home, Mail, Sparkles, Star, TrendingUp, Zap } from "lucide-react";

export default function PropertyPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="largeSmallSizeMediumTitles"
      background="aurora"
      cardStyle="layered-gradient"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="solid"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="PropertyHub"
          navItems={[
            { name: "Browse", id: "listings" },
            { name: "About", id: "about" },
            { name: "Market Insights", id: "metrics" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "List Property",            href: "https://example.com/list-property"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Find Your Dream Property"
          description="Discover curated real estate listings with advanced search filters, interactive maps, and detailed property information. Your perfect home is just a few clicks away."
          tag="Premium Listings"
          tagIcon={Home}
          background={{ variant: "glowing-orb" }}
          imageSrc="https://img.b2bpic.net/free-photo/modern-spacious-room-with-large-panoramic-window_7502-7289.jpg"
          imageAlt="Luxury modern property"
          imagePosition="right"
          buttons={[
            { text: "Start Browsing", href: "#listings" },
            { text: "Schedule Tour", href: "#contact" }
          ]}
        />
      </div>

      <div id="listings" data-section="listings">
        <ProductCardOne
          title="Featured Properties"
          description="Browse our latest premium property listings with detailed information and professional photography"
          tag="New Listings"
          tagIcon={Sparkles}
          products={[
            {
              id: "1",              name: "Modern Downtown Loft",              price: "$850,000",              imageSrc: "https://img.b2bpic.net/free-photo/modern-villa-with-multiple-lights-sun-loungers-asprovalta-greece_1268-16093.jpg",              imageAlt: "Modern downtown loft"
            },
            {
              id: "2",              name: "Waterfront Penthouse",              price: "$2,450,000",              imageSrc: "https://img.b2bpic.net/free-photo/aerial-view-amazing-porch-with-garden-umbrella-loungers_116348-109.jpg",              imageAlt: "Waterfront penthouse apartment"
            },
            {
              id: "3",              name: "Suburban Family Home",              price: "$625,000",              imageSrc: "https://img.b2bpic.net/free-photo/mosque-pictures-moroccan-wall-pattern_1203-5080.jpg",              imageAlt: "Suburban family home"
            },
            {
              id: "4",              name: "Historic Victorian Estate",              price: "$1,800,000",              imageSrc: "https://img.b2bpic.net/free-photo/los-angeles-downtown-night-with-urban-buildings-lake_649448-4079.jpg",              imageAlt: "Historic Victorian estate"
            },
            {
              id: "5",              name: "Contemporary Villa",              price: "$3,200,000",              imageSrc: "https://img.b2bpic.net/free-photo/fiance-with-friends-drining-wedding-day-indoors_8353-12087.jpg",              imageAlt: "Contemporary villa with pool"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          buttons={[
            { text: "View All Properties", href: "#" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <MetricSplitMediaAbout
          tag="Why Choose Us"
          tagIcon={CheckCircle}
          title="Advanced Search & Discovery Tools"
          description="Our intelligent property search platform combines powerful filtering, real-time listings, interactive mapping, and detailed property analytics to help you find exactly what you're looking for."
          metrics={[
            { value: "500+", title: "Active Listings" },
            { value: "98%", title: "Client Satisfaction" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/modern-spacious-room-with-large-panoramic-window_7502-7289.jpg"
          imageAlt="Real estate search interface"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardSeven
          title="Explore Smart Search Features"
          description="Powerful tools designed to make property hunting effortless"
          tag="Key Features"
          tagIcon={Zap}
          features={[
            {
              id: 1,
              title: "Advanced Search Filters",              description: "Filter by price, location, bedrooms, amenities, property type, and custom criteria. Refine results instantly with our intuitive filter interface.",              imageSrc: "https://img.b2bpic.net/free-photo/modern-villa-with-multiple-lights-sun-loungers-asprovalta-greece_1268-16093.jpg",              imageAlt: "Search filter interface"
            },
            {
              id: 2,
              title: "Interactive Map Integration",              description: "View properties on an interactive map with neighborhood insights, nearby amenities, schools, transit options, and walking scores.",              imageSrc: "https://img.b2bpic.net/free-photo/aerial-view-amazing-porch-with-garden-umbrella-loungers_116348-109.jpg",              imageAlt: "Property map view"
            },
            {
              id: 3,
              title: "Virtual Tours & Gallery",              description: "Explore high-quality photos, 360° virtual tours, and video walkthroughs from the comfort of your home before scheduling visits.",              imageSrc: "https://img.b2bpic.net/free-photo/mosque-pictures-moroccan-wall-pattern_1203-5080.jpg",              imageAlt: "Virtual tour interface"
            },
            {
              id: 4,
              title: "Real-Time Notifications",              description: "Get instant alerts for new listings matching your criteria, price drops, and open house events in your favorite neighborhoods.",              imageSrc: "https://img.b2bpic.net/free-photo/los-angeles-downtown-night-with-urban-buildings-lake_649448-4079.jpg",              imageAlt: "Notification settings"
            }
          ]}
          animationType="blur-reveal"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          buttons={[
            { text: "Explore Features", href: "#" }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardSeven
          title="Platform Impact"
          description="Real numbers showing how PropertyHub is transforming real estate discovery"
          tag="Market Leadership"
          tagIcon={TrendingUp}
          metrics={[
            {
              id: "1",              value: "50K+",              title: "Happy Customers",              items: ["5-star reviews", "Trusted by families", "Active in 20 cities"]
            },
            {
              id: "2",              value: "$8.5B",              title: "Properties Sold",              items: ["Through our platform", "Record transactions", "Growing monthly"]
            },
            {
              id: "3",              value: "24/7",              title: "Customer Support",              items: ["Dedicated team", "Live chat available", "Expert agents ready"]
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwo
          title="What Our Clients Say"
          description="Real stories from satisfied homebuyers and sellers who found success on PropertyHub"
          tag="Client Reviews"
          tagIcon={Star}
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell",              role: "Homebuyer",              testimonial: "PropertyHub made finding our dream home incredibly easy. The search filters are intuitive, and the virtual tours saved us so much time!",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-businessman-office-2_1262-1488.jpg",              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",              name: "James Rodriguez",              role: "Property Investor",              testimonial: "The market insights and real-time notifications helped me identify investment opportunities before they hit mainstream listings. Excellent platform!",              imageSrc: "https://img.b2bpic.net/free-photo/happy-young-businessman-walking-near-business-center_171337-19784.jpg",              imageAlt: "James Rodriguez"
            },
            {
              id: "3",              name: "Emily Chen",              role: "First-Time Buyer",              testimonial: "As a first-time homebuyer, I was overwhelmed until I found PropertyHub. The guidance and tools made the entire process smooth and stress-free.",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-businessman-standing-airport_107420-85035.jpg",              imageAlt: "Emily Chen"
            },
            {
              id: "4",              name: "Michael Thompson",              role: "Real Estate Agent",              testimonial: "PropertyHub has transformed how I showcase listings. The exposure and quality of leads through the platform are unmatched.",              imageSrc: "https://img.b2bpic.net/free-photo/confident-middle-aged-businesswoman-looking-camera_74855-4120.jpg",              imageAlt: "Michael Thompson"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          buttons={[
            { text: "Join Our Community", href: "#contact" }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Get Started"
          tagIcon={Mail}
          title="Ready to Find Your Perfect Home?"
          description="Subscribe to our newsletter for exclusive listings, market updates, and expert real estate tips delivered to your inbox."
          background={{ variant: "radial-gradient" }}
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/modern-spacious-room-with-large-panoramic-window_7502-7289.jpg"
          imageAlt="Real estate marketplace"
          mediaPosition="right"
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime. Check our privacy policy for details."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          logoText="PropertyHub"
          columns={[
            {
              items: [
                { label: "Browse Listings", href: "#listings" },
                { label: "Search Tips", href: "#features" },
                { label: "Market Insights", href: "#metrics" }
              ]
            },
            {
              items: [
                { label: "About Us", href: "#about" },
                { label: "Our Team", href: "#" },
                { label: "Careers", href: "#" }
              ]
            },
            {
              items: [
                { label: "Contact Support", href: "#contact" },
                { label: "Help Center", href: "#" },
                { label: "Feedback", href: "#" }
              ]
            },
            {
              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" },
                { label: "Cookie Settings", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}