"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Landmark, Star, Phone, MapPin } from 'lucide-react';
import Link from 'next/link';

export default function PropertiesPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="entrance-slide"
      borderRadius="sharp"
      contentWidth="medium"
      sizing="mediumLargeSizeMediumTitles"
      background="fluid"
      cardStyle="solid"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="layered"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Dubai Realty"
          navItems={[
            { name: "Properties", id: "/properties" },
            { name: "Services", id: "services" },
            { name: "About", id: "/about" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Schedule Tour",            href: "/contact"
          }}
        />
      </div>

      <div id="properties-showcase" data-section="properties-showcase">
        <ProductCardOne
          title="Luxury Properties in Dubai"
          description="Explore our comprehensive portfolio of premium properties across Dubai's most sought-after locations"
          products={[
            {
              id: "1",              name: "Marina Towers Penthouse",              price: "AED 8,500,000",              imageSrc: "https://img.b2bpic.net/free-photo/view-luxurious-villa-with-modern-architectural-design_23-2151694041.jpg",              imageAlt: "Marina Towers Penthouse"
            },
            {
              id: "2",              name: "Palm Jumeirah Villa",              price: "AED 12,000,000",              imageSrc: "https://img.b2bpic.net/free-photo/summer-white-sea-vintage-maldives_1203-4459.jpg",              imageAlt: "Palm Jumeirah Villa"
            },
            {
              id: "3",              name: "Downtown Luxury Apartment",              price: "AED 5,200,000",              imageSrc: "https://img.b2bpic.net/free-photo/blue-sun-loungers-swimming-pool_198523-20.jpg",              imageAlt: "Downtown Luxury Apartment"
            },
            {
              id: "4",              name: "Emirates Hills Townhouse",              price: "AED 7,800,000",              imageSrc: "https://img.b2bpic.net/free-photo/mosque-pictures-moroccan-wall-pattern_1203-5080.jpg",              imageAlt: "Emirates Hills Townhouse"
            },
            {
              id: "5",              name: "Jumeirah Beach Residence",              price: "AED 6,200,000",              imageSrc: "https://img.b2bpic.net/free-photo/inner-courtyard-with-swimming-pool_661209-479.jpg",              imageAlt: "Jumeirah Beach Residence"
            },
            {
              id: "6",              name: "Business Bay Tower",              price: "AED 4,800,000",              imageSrc: "https://img.b2bpic.net/free-photo/futuristic-landscape-dubai_23-2151339807.jpg",              imageAlt: "Business Bay Tower"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="market-metrics" data-section="market-metrics">
        <MetricCardOne
          title="Dubai Real Estate Market Leadership"
          description="Our proven track record in the Dubai property market"
          metrics={[
            {
              id: "1",              value: "15B+",              title: "AED in Sales",              description: "Total property transactions facilitated",              icon: Landmark
            },
            {
              id: "2",              value: "98%",              title: "Client Satisfaction",              description: "Consistently high satisfaction ratings",              icon: Star
            },
            {
              id: "3",              value: "24/7",              title: "Support Available",              description: "Round-the-clock customer assistance",              icon: Phone
            },
            {
              id: "4",              value: "50+",              title: "Premium Locations",              description: "Exclusive properties across Dubai",              icon: MapPin
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCTA
          tag="Ready to Invest"
          tagIcon={Phone}
          title="Find Your Dream Property Today"
          description="Schedule a private viewing or consultation with our expert real estate advisors to discover the perfect property for your needs."
          buttons={[
            { text: "Schedule Viewing", href: "/contact" },
            { text: "Get Market Report", href: "/contact" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground={false}
        />
      </div>

      <FooterBaseReveal
        columns={[
          {
            title: "Company",            items: [
              { label: "About Us", href: "/about" },
              { label: "Our Team", href: "/about" },
              { label: "Careers", href: "#" },
              { label: "Blog", href: "#" }
            ]
          },
          {
            title: "Services",            items: [
              { label: "Buy Property", href: "/properties" },
              { label: "Sell Property", href: "#" },
              { label: "Property Management", href: "#" },
              { label: "Investment Advisory", href: "#" }
            ]
          },
          {
            title: "Support",            items: [
              { label: "Contact Us", href: "/contact" },
              { label: "FAQ", href: "#" },
              { label: "Privacy Policy", href: "#" },
              { label: "Terms & Conditions", href: "#" }
            ]
          }
        ]}
        copyrightText="© 2025 Dubai Realty. All rights reserved. | Dubai, UAE"
      />
    </ThemeProvider>
  );
}
