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";



export const metadata: Metadata = {
  title: 'La Cañita Bayside | Luxury Cuban Waterfront Dining Miami',
  description: 'Experience premier Cuban cuisine, vibrant live music, and exceptional service with breathtaking waterfront views at La Cañita Bayside in Miami\'s Bayside Marketplace. Book your table now!',
  keywords: ["Cuban restaurant Miami, waterfront dining Miami, luxury dining Miami, La Cañita Bayside, Miami Cuban food, Bayside Marketplace restaurant, Miami events venue, authentic Cuban cuisine"],
  openGraph: {
    "title": "La Cañita Bayside | Premier Cuban Waterfront Dining",
    "description": "Experience premier Cuban cuisine, vibrant live music, and exceptional service with breathtaking waterfront views at La Cañita Bayside in Miami.",
    "url": "https://www.lacanitabayside.com",
    "siteName": "La Cañita Bayside",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/elegant-wedding-reception-room-with-sea-view-through-windows_637285-8612.jpg",
        "alt": "La Cañita Bayside Restaurant Exterior"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "La Cañita Bayside | Premier Cuban Waterfront Dining",
    "description": "Experience premier Cuban cuisine, vibrant live music, and exceptional service with breathtaking waterfront views at La Cañita Bayside in Miami.",
    "images": [
      "http://img.b2bpic.net/free-photo/elegant-wedding-reception-room-with-sea-view-through-windows_637285-8612.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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