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



export const metadata: Metadata = {
  title: 'Guest Residence | Your Premier Home Guest Residence',
  description: 'Discover unparalleled comfort and tranquility at Guest Residence, a luxurious home guest residence offering exquisite accommodations and personalized service for your perfect escape.',
  openGraph: {
    "title": "Serene Stays | Premier Home Guest Residence",
    "description": "Experience luxury and comfort in our exquisite home guest residence. Book your tranquil escape today.",
    "url": "https://www.serenestays.com",
    "siteName": "Serene Stays",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/high-angle-shot-bedroom-with-interior-stuff-beige-tones_181624-33128.jpg",
        "alt": "Luxurious master bedroom at Serene Stays"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Serene Stays | Premier Home Guest Residence",
    "description": "Experience luxury and comfort in our exquisite home guest residence. Book your tranquil escape today.",
    "images": [
      "http://img.b2bpic.net/free-photo/high-angle-shot-bedroom-with-interior-stuff-beige-tones_181624-33128.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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