import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import "./globals.css";
import "@/lib/gsap-setup";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";
import { Mulish } from "next/font/google";



export const metadata: Metadata = {
  title: 'Elite Estates | Luxury Real Estate',
  description: 'Discover an unparalleled collection of luxury real estate and bespoke services for discerning clients globally. Find your dream home with Elite Estates.',
  keywords: ["luxury real estate, exclusive properties, high-end homes, luxury homes, elite estates, property sales, luxury broker, real estate consultation"],
  openGraph: {
    "title": "Elite Estates | Luxury Real Estate",
    "description": "Discover an unparalleled collection of luxury real estate and bespoke services for discerning clients globally. Find your dream home with Elite Estates.",
    "url": "https://www.eliteestates.com",
    "siteName": "Elite Estates",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/contemporary-house-architecture_23-2151050996.jpg",
        "alt": "Luxury Villa Exterior"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Elite Estates | Luxury Real Estate",
    "description": "Discover an unparalleled collection of luxury real estate and bespoke services for discerning clients globally. Find your dream home with Elite Estates.",
    "images": [
      "http://img.b2bpic.net/free-photo/contemporary-house-architecture_23-2151050996.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const mulish = Mulish({
  variable: "--font-mulish",
  subsets: ["latin"],
});

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <ServiceWrapper>
        <body className={`${mulish.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
