import type { Metadata } from "next";
import { Italiana, Jost } 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";


export const metadata: Metadata = {
  title: 'Elysian Hotel | Luxury Stays & Exquisite Experiences',
  description: 'Experience unparalleled comfort and exquisite service at Elysian Hotel. Book your luxurious escape today and discover world-class amenities and elegant rooms.',
  keywords: ["luxury hotel, hotel, luxury stay, boutique hotel, hotel rooms, hotel suites, hotel amenities, spa, fine dining, hotel booking, getaway"],
  openGraph: {
    "title": "Elysian Hotel | Luxury Stays & Exquisite Experiences",    "description": "Experience unparalleled comfort and exquisite service at Elysian Hotel. Book your luxurious escape today and discover world-class amenities and elegant rooms.",    "url": "https://www.elysianhotel.com",    "siteName": "Elysian Hotel",    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/lounge-area-hotel-front-desk_482257-76248.jpg",        "alt": "Elysian Hotel Grand Lobby"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",    "title": "Elysian Hotel | Luxury Stays & Exquisite Experiences",    "description": "Experience unparalleled comfort and exquisite service at Elysian Hotel. Book your luxurious escape today and discover world-class amenities and elegant rooms.",    "images": [
      "http://img.b2bpic.net/free-photo/lounge-area-hotel-front-desk_482257-76248.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const italiana = Italiana({
  variable: "--font-italiana",  subsets: ["latin"],
  weight: ["400"],
});

const jost = Jost({
  variable: "--font-jost",  subsets: ["latin"],
  weight: ["300"],
});

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