import type React from "react"
import type { Metadata } from "next"
import { Jost } from "next/font/google"
import { Analytics } from "@vercel/analytics/next"
import "./globals.css"
import { ToastContainer } from "react-toastify";

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

export const metadata: Metadata = {
  title: "Alegre Integrated Farm and Resort",
  description: "Where Nature Meets Luxury — Experience Farm Life with Resort Comfort",
  
  icons: {
    icon: [
      {
        url: "/icon-light-32x32.png",
        media: "(prefers-color-scheme: light)",
      },
      {
        url: "/icon-dark-32x32.png",
        media: "(prefers-color-scheme: dark)",
      },
      {
        url: "/icon.svg",
        type: "image/svg+xml",
      },
    ],
    apple: "/apple-icon.png",
  },
}

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode
}>) {
  return (
    <html lang="en">
      <body className={`${jost.variable} font-sans antialiased`}>
        {children}
        <Analytics />
         <ToastContainer
      position="top-right"
      autoClose={4000}
      hideProgressBar={false}
      newestOnTop={false}
      closeOnClick
      pauseOnFocusLoss
      draggable
      pauseOnHover
      theme={"light"}
      toastStyle={{
        fontSize: "0.8rem",
    lineHeight: "1.4",
        backgroundColor: "#ffffff",
        color: "#0f172a",
        borderRadius: "10px",
        boxShadow: "0 2px 12px rgba(0,0,0,0.15)",
      }}
    />
      </body>
    </html>
  )
}
