"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroSplitDualMedia from '@/components/sections/hero/HeroSplitDualMedia';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import MetricCardTen from '@/components/sections/metrics/MetricCardTen';
import TextAbout from '@/components/sections/about/TextAbout';
import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCardTen';
import ContactFaq from '@/components/sections/contact/ContactFaq';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { Home, Flame, Search, TrendingUp, Map, Star, Phone } from "lucide-react";

export default function PropertyPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="slide-background"
      defaultTextAnimation="background-highlight"
      borderRadius="sharp"
      contentWidth="compact"
      sizing="largeSmallSizeMediumTitles"
      background="circleGradient"
      cardStyle="gradient-bordered"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="PropertyHub"
          navItems={[
            { name: "Browse", id: "featured" },
            { name: "Search", id: "search" },
            { name: "Map View", id: "map" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Get Started",            href: "#contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitDualMedia
          tag="Find Your Dream Property"
          tagIcon={Home}
          title="Discover Premium Real Estate Listings"
          description="Browse our curated collection of luxury homes, modern apartments, and investment properties. Advanced search filters and interactive map help you find the perfect property match."
          background={{ variant: "plain" }}
          mediaItems={[
            {
              imageSrc: "https://img.b2bpic.net/free-photo/swimming-pool-beach-luxury-hotel-type-entertainment-complex-amara-dolce-vita-luxury-hotel-resort-tekirova-kemer-turkey_146671-18719.jpg",              imageAlt: "Luxury home exterior"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/two-happy-woman-friends-with-sunglasses-vacation-tropical-country_343596-726.jpg",              imageAlt: "Modern residential property"
            }
          ]}
          rating={5}
          ratingText="Trusted by thousands of buyers"
          buttons={[
            { text: "Start Browsing", href: "#featured" },
            { text: "Advanced Search", href: "#search" }
          ]}
        />
      </div>

      <div id="featured" data-section="featured">
        <ProductCardOne
          title="Featured Listings"
          description="Explore our most popular properties currently on the market"
          tag="Hot Listings"
          tagIcon={Flame}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          gridVariant="three-columns-all-equal-width"
          products={[
            {
              id: "1",              name: "Modern Downtown Penthouse",              price: "$2,850,000",              imageSrc: "https://img.b2bpic.net/free-photo/full-shot-young-woman-stairs_23-2149204468.jpg",              imageAlt: "Downtown penthouse with city views"
            },
            {
              id: "2",              name: "Luxury Suburban Estate",              price: "$1,950,000",              imageSrc: "https://img.b2bpic.net/free-photo/happy-caucasian-woman-short-summer-dress-outside-villa-hotel-by-tree-blue-swimming-pool_343596-691.jpg",              imageAlt: "Suburban estate property"
            },
            {
              id: "3",              name: "Contemporary Waterfront Home",              price: "$3,200,000",              imageSrc: "https://img.b2bpic.net/free-photo/beach-chair-resort_1150-17976.jpg",              imageAlt: "Waterfront property"
            },
            {
              id: "4",              name: "Urban Loft Apartment",              price: "$1,450,000",              imageSrc: "https://img.b2bpic.net/free-photo/way-white-house_1162-117.jpg",              imageAlt: "Modern urban loft"
            }
          ]}
        />
      </div>

      <div id="search" data-section="search">
        <MetricCardTen
          title="Search & Filter Options"
          description="Use our advanced filters to narrow down your search by location, price, size, and amenities"
          tag="Smart Search"
          tagIcon={Search}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          metrics={[
            {
              id: "1",              title: "Location Filter",              subtitle: "Search by neighborhood, city, or zip code",              category: "Geography",              value: "500+ Areas",              buttons: [{ text: "Browse", href: "#" }]
            },
            {
              id: "2",              title: "Price Range",              subtitle: "Set minimum and maximum budget parameters",              category: "Budget",              value: "$100K - $10M",              buttons: [{ text: "Filter", href: "#" }]
            },
            {
              id: "3",              title: "Property Type",              subtitle: "Select house, apartment, condo, or commercial",              category: "Type",              value: "8 Categories",              buttons: [{ text: "Select", href: "#" }]
            },
            {
              id: "4",              title: "Size & Rooms",              subtitle: "Filter by square footage and bedroom count",              category: "Specs",              value: "1-10+ Rooms",              buttons: [{ text: "Customize", href: "#" }]
            },
            {
              id: "5",              title: "Amenities",              subtitle: "Pool, garage, basement, garden, smart home",              category: "Features",              value: "25+ Options",              buttons: [{ text: "Explore", href: "#" }]
            },
            {
              id: "6",              title: "Advanced Features",              subtitle: "Recently listed, open house, price reduction, auction",              category: "Advanced",              value: "12+ Filters",              buttons: [{ text: "Access", href: "#" }]
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTen
          title="Property Market Stats"
          description="Real-time market insights and analytics for informed decisions"
          tag="Market Data"
          tagIcon={TrendingUp}
          textboxLayout="centered"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          metrics={[
            {
              id: "1",              title: "Active Listings",              subtitle: "Properties currently available",              category: "Total",              value: "12,450"
            },
            {
              id: "2",              title: "Avg. Sale Price",              subtitle: "Median home price in market",              category: "Pricing",              value: "$892,500"
            },
            {
              id: "3",              title: "Days on Market",              subtitle: "Average listing duration",              category: "Speed",              value: "28 Days"
            },
            {
              id: "4",              title: "Price per Sq Ft",              subtitle: "Market average valuation",              category: "Value",              value: "$425/sqft"
            }
          ]}
        />
      </div>

      <div id="map" data-section="map">
        <TextAbout
          tag="Interactive Mapping"
          tagIcon={Map}
          title="Explore Properties on Interactive Map View"
          useInvertedBackground="noInvert"
          buttons={[
            { text: "Open Map View", href: "#" },
            { text: "Get Directions", href: "#" }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTen
          title="Client Success Stories"
          description="Real testimonials from satisfied buyers and sellers"
          tag="Reviews"
          tagIcon={Star}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          testimonials={[
            {
              id: "1",              title: "Found Our Dream Home",              quote: "The search filters made it incredibly easy to find properties matching our exact needs. We closed in 30 days!",              name: "Sarah Mitchell",              role: "Homebuyer",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-positive-businesswoman_1098-3531.jpg",              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",              title: "Seamless Selling Experience",              quote: "Listed my property and received multiple offers within 2 weeks. The platform's reach is exceptional.",              name: "James Chen",              role: "Home Seller",              imageSrc: "https://img.b2bpic.net/free-photo/closeup-smiling-beautiful-adult-businesswoman_1262-1760.jpg",              imageAlt: "James Chen"
            },
            {
              id: "3",              title: "Smart Investment Decision",              quote: "The market analytics and detailed property information helped me make an informed investment decision.",              name: "Emily Rodriguez",              role: "Real Estate Investor",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-business-woman-office_1398-6.jpg",              imageAlt: "Emily Rodriguez"
            },
            {
              id: "4",              title: "Outstanding Support",              quote: "The team was incredibly helpful throughout the entire process. Made my first home purchase stress-free.",              name: "Michael Thompson",              role: "First-Time Buyer",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-good-looking-smiling-friendly-female-trainee-ready-tackle-assignments-smiling-broadly-feeling-lucky-day-work-self-assured-encouraged-achieve-success-goal-white-wall_176420-35567.jpg",              imageAlt: "Michael Thompson"
            },
            {
              id: "5",              title: "Best Platform in Market",              quote: "Compared multiple real estate platforms. This one offers the best features and most active listings.",              name: "Jessica Wong",              role: "Real Estate Agent",              imageSrc: "https://img.b2bpic.net/free-photo/business-lady-looking-copyspace-with-interest_1262-2957.jpg",              imageAlt: "Jessica Wong"
            },
            {
              id: "6",              title: "Exceeded Expectations",              quote: "Found exactly what we were looking for in half the time we expected. Highly recommend to anyone house hunting.",              name: "David Park",              role: "Property Buyer",              imageSrc: "https://img.b2bpic.net/free-photo/blond-business-woman-blue-shirt_23-2148095792.jpg",              imageAlt: "David Park"
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactFaq
          ctaTitle="Ready to Find Your Perfect Property?"
          ctaDescription="Schedule a consultation with our real estate experts to get personalized recommendations."
          ctaButton={{
            text: "Schedule Consultation",            href: "#"
          }}
          ctaIcon={Phone}
          useInvertedBackground="noInvert"
          animationType="slide-up"
          faqs={[
            {
              id: "1",              title: "How do I search for properties?",              content: "Use our search bar and advanced filters to browse by location, price, property type, and amenities. Save favorites for easy comparison."
            },
            {
              id: "2",              title: "What's included in property listings?",              content: "Each listing includes high-quality photos, detailed descriptions, floor plans, price history, tax information, and nearby amenities."
            },
            {
              id: "3",              title: "Can I schedule property viewings?",              content: "Yes, click 'Schedule Tour' on any listing to book a viewing. Virtual tours are available for select properties."
            },
            {
              id: "4",              title: "How are properties priced?",              content: "Prices are determined by market analysis, property condition, location, size, and comparable sales in the area."
            },
            {
              id: "5",              title: "Do you help with selling my property?",              content: "Absolutely! List your property with us and reach thousands of qualified buyers. We handle marketing, viewings, and negotiations."
            }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoEmphasis
          logoText="PropertyHub"
          columns={[
            {
              items: [
                { label: "Browse Properties", href: "#featured" },
                { label: "Advanced Search", href: "#search" },
                { label: "Map View", href: "#map" }
              ]
            },
            {
              items: [
                { label: "For Sellers", href: "#" },
                { label: "List Property", href: "#" },
                { label: "Marketing Tools", href: "#" }
              ]
            },
            {
              items: [
                { label: "Resources", href: "#" },
                { label: "Market Guide", href: "#" },
                { label: "FAQ", href: "#contact" }
              ]
            },
            {
              items: [
                { label: "About Us", href: "#" },
                { label: "Contact", href: "#contact" },
                { label: "Careers", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}