import type { Metadata } from 'next'

export const metadata: Metadata = {
  title: 'Pricing — Simple, Transparent Plans',
  description: 'CahooTravel plans start free. Upgrade for multi-country comparisons, price alerts and unlimited searches. One hotel booking saving covers months of subscription.',
}

const softwareApplicationSchema = {
  '@context': 'https://schema.org',
  '@type': 'SoftwareApplication',
  name: 'CahooTravel',
  applicationCategory: 'TravelApplication',
  operatingSystem: 'Web',
  url: 'https://www.cahootravel.com',
  offers: [
    { '@type': 'Offer', name: 'Free', price: '0', priceCurrency: 'EUR' },
    { '@type': 'Offer', name: 'Basic', price: '4.99', priceCurrency: 'EUR' },
    { '@type': 'Offer', name: 'Premium', price: '9.99', priceCurrency: 'EUR' },
    { '@type': 'Offer', name: 'Max', price: '19.00', priceCurrency: 'EUR' },
  ],
}

export default function PricingLayout({ children }: { children: React.ReactNode }) {
  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{ __html: JSON.stringify(softwareApplicationSchema) }}
      />
      {children}
    </>
  )
}
