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



export const metadata: Metadata = {
  title: 'M&M Rent A Car - Muscat\'s Trusted Fleet',
  description: 'M&M Rent A Car offers affordable daily and monthly car rentals in Muscat, Oman. Choose from our well-maintained economy, sedan, SUV, and 4x4 vehicles. Miles for Smiles, Rent the Difference!',
  keywords: ["car rental Muscat, Oman car hire, M&M Rent A Car, affordable car rental, monthly car rental, daily car rental, luxury car rental Muscat, SUV rental Oman, sedan rental Muscat"],
  openGraph: {
    "title": "M&M Rent A Car - Muscat",
    "description": "Miles for Smiles, Rent the Difference with M&M Rent A Car in Muscat, Oman. Your trusted partner for daily and monthly car rentals.",
    "url": "https://www.mmrentacar.com",
    "siteName": "M&M Rent A Car",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/young-woman-car-looking-into-car-mirror_1303-17040.jpg",
        "alt": "M&M Rent A Car Hero Image"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "M&M Rent A Car - Muscat",
    "description": "Miles for Smiles, Rent the Difference with M&M Rent A Car in Muscat, Oman. Your trusted partner for daily and monthly car rentals.",
    "images": [
      "http://img.b2bpic.net/free-photo/young-woman-car-looking-into-car-mirror_1303-17040.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const plusJakartaSans = Plus_Jakarta_Sans({ variable: "--font-plus-jakarta-sans", subsets: ["latin"] });

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