"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import FeatureCardSixteen from '@/components/sections/feature/FeatureCardSixteen';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
import { Home, Users, TrendingUp, Award, MapPin, Calendar } from 'lucide-react';

export default function PropertiesPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="mediumLargeSizeMediumTitles"
      background="floatingGradient"
      cardStyle="outline"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="light"
    >
      {/* Navbar */}
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Luxury Estates Dubai"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Properties", id: "/properties" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Schedule Viewing",
            href: "/contact"
          }}
        />
      </div>

      {/* All Properties Section */}
      <div id="all-properties" data-section="all-properties">
        <ProductCardTwo
          title="Luxury Properties Portfolio"
          description="Discover our complete collection of premium properties across Dubai's most exclusive neighborhoods. From waterfront penthouses to private villas, each property represents the pinnacle of luxury living."
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          gridVariant="three-columns-all-equal-width"
          carouselMode="buttons"
          products={[
            {
              id: "1",
              brand: "Marina District",
              name: "Luxury Marina Penthouse",
              price: "AED 3,500,000",
              rating: 5,
              reviewCount: "12",
              imageSrc: "https://img.b2bpic.net/free-photo/luxury-architecture-exterior-design_23-2151920926.jpg",
              imageAlt: "Luxury Marina penthouse with waterfront views"
            },
            {
              id: "2",
              brand: "Downtown Dubai",
              name: "Burj Khalifa View Apartment",
              price: "AED 2,800,000",
              rating: 5,
              reviewCount: "18",
              imageSrc: "https://img.b2bpic.net/free-photo/attractive-woman-standing-with-coffee-near-window_7502-9288.jpg",
              imageAlt: "Downtown Dubai apartment with Burj Khalifa views"
            },
            {
              id: "3",
              brand: "Emirates Hills",
              name: "Exclusive Villa Estate",
              price: "AED 5,200,000",
              rating: 5,
              reviewCount: "9",
              imageSrc: "https://img.b2bpic.net/free-photo/attractive-woman-reading-magazine-near-panoramic-window_7502-9287.jpg",
              imageAlt: "Luxury villa with private garden and modern architecture"
            },
            {
              id: "4",
              brand: "Palm Jumeirah",
              name: "Beachfront Palace",
              price: "AED 8,900,000",
              rating: 5,
              reviewCount: "5",
              imageSrc: "https://img.b2bpic.net/free-photo/luxury-architecture-exterior-design_23-2151920931.jpg",
              imageAlt: "Luxury beachfront villa on Palm Jumeirah"
            },
            {
              id: "5",
              brand: "Business Bay",
              name: "Sky High Residence",
              price: "AED 4,200,000",
              rating: 5,
              reviewCount: "14",
              imageSrc: "https://img.b2bpic.net/free-photo/modern-kitchen-interior-design_23-2151821317.jpg",
              imageAlt: "Modern high-rise apartment in Business Bay"
            },
            {
              id: "6",
              brand: "Jumeirah Golf Estates",
              name: "Golf Course Mansion",
              price: "AED 6,750,000",
              rating: 5,
              reviewCount: "7",
              imageSrc: "https://img.b2bpic.net/free-photo/luxury-architecture-exterior-design_23-2151920926.jpg",
              imageAlt: "Luxury mansion overlooking golf course"
            }
          ]}
        />
      </div>

      {/* Property Investment Benefits */}
      <div id="investment-benefits" data-section="investment-benefits">
        <FeatureCardSixteen
          title="Dubai Property Investment Benefits"
          description="Understanding the advantages of investing in Dubai's luxury real estate market versus traditional investment options"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="invertDefault"
          negativeCard={{
            items: [
              "Volatile stock market returns",
              "Low savings account yields",
              "Currency devaluation risks",
              "Limited portfolio diversification"
            ]
          }}
          positiveCard={{
            items: [
              "Strong property appreciation",
              "Tax-free rental income",
              "Stable long-term investment",
              "Golden visa eligibility"
            ]
          }}
        />
      </div>

      {/* Market Performance Metrics */}
      <div id="market-metrics" data-section="market-metrics">
        <MetricCardThree
          title="Dubai Real Estate Market Performance"
          description="Key indicators demonstrating the strength and growth potential of Dubai's luxury property market"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          metrics={[
            {
              id: "1",
              icon: TrendingUp,
              title: "Price Growth",
              value: "15.2%"
            },
            {
              id: "2",
              icon: MapPin,
              title: "Prime Locations",
              value: "25+"
            },
            {
              id: "3",
              icon: Calendar,
              title: "Average ROI",
              value: "7.8%"
            },
            {
              id: "4",
              icon: Award,
              title: "Market Rank",
              value: "#3 Global"
            }
          ]}
        />
      </div>

      {/* Footer */}
      <FooterLogoEmphasis
        logoText="Luxury Estates Dubai"
        columns={[
          {
            items: [
              { label: "Home", href: "/" },
              { label: "Properties", href: "/properties" },
              { label: "About Us", href: "/about" }
            ]
          },
          {
            items: [
              { label: "Services", href: "/properties" },
              { label: "Testimonials", href: "/" },
              { label: "FAQ", href: "/about" }
            ]
          },
          {
            items: [
              { label: "Contact Us", href: "/contact" },
              { label: "Privacy Policy", href: "https://example.com/privacy" },
              { label: "Terms of Service", href: "https://example.com/terms" }
            ]
          }
        ]}
      />
    </ThemeProvider>
  );
}