"use client";

import Link from "next/link";
import { Sparkles } from "lucide-react";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import FooterBase from '@/components/sections/footer/FooterBase';

export default function PropertiesPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="reveal-blur"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="largeSmallSizeMediumTitles"
      background="circleGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline 
          brandName="Luxe Dubai"
          navItems={[
            { name: "Properties", id: "/properties" },
            { name: "About", id: "/about" },
            { name: "Services", id: "/services" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Schedule Viewing",
            href: "/contact"
          }}
          className="backdrop-blur-lg bg-white/80 border border-white/20"
          navItemClassName="text-foreground hover:text-primary-cta transition-colors"
          buttonClassName="bg-foreground text-white hover:bg-primary-cta"
          buttonTextClassName="font-semibold"
        />
      </div>

      <div id="properties-full" data-section="properties-full" className="pt-32">
        <ProductCardFour 
          title="All Properties"
          description="Browse our complete portfolio of luxury properties across Dubai's most sought-after locations. From downtown penthouses to beachfront villas."
          tag="Premium Collection"
          tagIcon={Sparkles}
          buttons={[
            { text: "Contact Agent", href: "/contact" },
            { text: "Schedule Tour", href: "/contact" }
          ]}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          products={[
            {
              id: "prop-1",
              name: "Downtown Dubai Luxury Apartment",
              price: "AED 2,850,000",
              variant: "3 Bedroom | 2,500 sqft",
              imageSrc: "https://img.b2bpic.net/free-photo/contemporary-living-room_1150-12613.jpg",
              imageAlt: "Modern luxury apartment in Downtown Dubai",
              isFavorited: false
            },
            {
              id: "prop-2",
              name: "Palm Jumeirah Villa",
              price: "AED 5,500,000",
              variant: "5 Bedroom | 6,000 sqft",
              imageSrc: "https://img.b2bpic.net/free-photo/luxury-architecture-exterior-design_23-2151920926.jpg",
              imageAlt: "Luxury villa on Palm Jumeirah",
              isFavorited: false
            },
            {
              id: "prop-3",
              name: "Emirates Hills Penthouse",
              price: "AED 8,200,000",
              variant: "4 Bedroom | 4,500 sqft",
              imageSrc: "https://img.b2bpic.net/free-photo/modern-spacious-room-with-large-panoramic-window_7502-7289.jpg",
              imageAlt: "Luxury penthouse in Emirates Hills",
              isFavorited: false
            },
            {
              id: "prop-4",
              name: "Marina District Duplex",
              price: "AED 4,200,000",
              variant: "4 Bedroom | 3,800 sqft",
              imageSrc: "https://img.b2bpic.net/free-photo/contemporary-living-room_1150-12613.jpg",
              imageAlt: "Modern duplex in Marina District",
              isFavorited: false
            },
            {
              id: "prop-5",
              name: "Business Bay Tower",
              price: "AED 1,950,000",
              variant: "2 Bedroom | 1,800 sqft",
              imageSrc: "https://img.b2bpic.net/free-photo/modern-spacious-room-with-large-panoramic-window_7502-7289.jpg",
              imageAlt: "High-rise apartment in Business Bay",
              isFavorited: false
            },
            {
              id: "prop-6",
              name: "Jumeirah Beach Residence",
              price: "AED 6,750,000",
              variant: "5 Bedroom | 5,200 sqft",
              imageSrc: "https://img.b2bpic.net/free-photo/luxury-architecture-exterior-design_23-2151920926.jpg",
              imageAlt: "Beachfront residence in JBR",
              isFavorited: false
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          cardClassName="backdrop-blur-lg bg-white/10 border border-white/20 rounded-2xl hover:bg-white/20 transition-all"
          cardNameClassName="text-foreground font-light text-lg"
          cardPriceClassName="text-primary-cta font-semibold text-xl"
          cardVariantClassName="text-foreground/70 text-sm font-light"
        />
      </div>

      <FooterBase 
        logoText="Luxe Dubai"
        copyrightText="© 2025 Luxe Dubai Real Estate. All rights reserved."
        columns={[
          {
            title: "Properties",
            items: [
              { label: "Buy", href: "/properties" },
              { label: "Rent", href: "/properties" },
              { label: "Invest", href: "/properties" }
            ]
          },
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Our Team", href: "/about" },
              { label: "Careers", href: "/about" }
            ]
          },
          {
            title: "Contact",
            items: [
              { label: "Email: info@luxedubai.ae", href: "/contact" },
              { label: "Phone: +971 4 XXX XXXX", href: "/contact" },
              { label: "Dubai, UAE", href: "/contact" }
            ]
          }
        ]}
        containerClassName="bg-foreground text-white py-16"
        logoTextClassName="text-white font-light text-2xl"
        columnTitleClassName="text-white font-light text-lg mb-4"
        columnItemClassName="text-white/70 hover:text-white font-light transition-colors"
        copyrightTextClassName="text-white/50 font-light"
      />
    </ThemeProvider>
  );
}