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 { Figtree } from "next/font/google";



export const metadata: Metadata = {
  title: 'Jhankar Palace | Luxury Heritage Hotel Rajasthan',
  description: 'Step into royalty at Jhankar Palace, a luxury heritage hotel in Rajasthan offering palatial rooms, fine dining, and authentic Indian hospitality for an unforgettable stay.',
  keywords: ["Jhankar Palace, luxury hotel, heritage hotel, Rajasthan, India, royal palace, fine dining, luxury rooms, wedding venue, corporate events, travel, tourism"],
  openGraph: {
    "title": "Jhankar Palace | Luxury Heritage Hotel Rajasthan",
    "description": "Step into royalty at Jhankar Palace, a luxury heritage hotel in Rajasthan offering palatial rooms, fine dining, and authentic Indian hospitality for an unforgettable stay.",
    "url": "https://jhankarpalace.com",
    "siteName": "Jhankar Palace",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/king-shiva-mahal-kingdom-palace_1376-59.jpg",
        "alt": "Jhankar Palace exterior at sunset"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Jhankar Palace | Luxury Heritage Hotel Rajasthan",
    "description": "Step into royalty at Jhankar Palace, a luxury heritage hotel in Rajasthan offering palatial rooms, fine dining, and authentic Indian hospitality for an unforgettable stay.",
    "images": [
      "http://img.b2bpic.net/free-photo/king-shiva-mahal-kingdom-palace_1376-59.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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