import type { Metadata } from 'next';
import { CalculatorClient } from '../../components/CalculatorClient';

// Force dynamic rendering since we need to read URL search parameters
export const dynamic = 'force-dynamic';

export const metadata: Metadata = {
  title: 'Carbon Calculator',
  description: 'Calculate your yacht\'s carbon footprint and purchase verified carbon offsets. Enter fuel usage or nautical miles to get accurate CO2 emissions calculations and offset options.',
  keywords: ['carbon calculator', 'yacht emissions', 'CO2 calculator', 'fuel emissions', 'carbon footprint', 'offset calculator'],
  openGraph: {
    title: 'Yacht Carbon Calculator - Calculate & Offset Emissions',
    description: 'Calculate your yacht\'s carbon footprint based on fuel consumption or distance traveled, then offset through verified projects.',
    type: 'website',
    url: 'https://puffinoffset.com/calculator',
  },
};

export default function CalculatorPage() {
  return <CalculatorClient />;
}
