import { Property } from "@/data/properties";

interface PropertyOverviewProps {
    overview: Property["overview"];
    description: string;
}

export default function PropertyOverview({ overview, description }: PropertyOverviewProps) {
    return (
        <div className="bg-white dark:bg-gray-900 rounded-2xl p-8 shadow-sm border border-gray-100 dark:border-gray-800">
            <h2 className="text-2xl font-bold text-foreground mb-6">Overview</h2>

            <div className="grid grid-cols-2 md:grid-cols-4 gap-6 mb-8">
                <div className="p-4 bg-gray-50 dark:bg-gray-800 rounded-xl text-center">
                    <p className="text-sm text-gray-500 dark:text-gray-400 mb-1">Configuration</p>
                    <p className="text-lg font-semibold text-foreground">{overview.bhk}</p>
                </div>
                <div className="p-4 bg-gray-50 dark:bg-gray-800 rounded-xl text-center">
                    <p className="text-sm text-gray-500 dark:text-gray-400 mb-1">Project Size</p>
                    <p className="text-lg font-semibold text-foreground">{overview.size}</p>
                </div>
                <div className="p-4 bg-gray-50 dark:bg-gray-800 rounded-xl text-center">
                    <p className="text-sm text-gray-500 dark:text-gray-400 mb-1">Possession</p>
                    <p className="text-lg font-semibold text-foreground">{overview.possession}</p>
                </div>
                <div className="p-4 bg-gray-50 dark:bg-gray-800 rounded-xl text-center">
                    <p className="text-sm text-gray-500 dark:text-gray-400 mb-1">Total Units</p>
                    <p className="text-lg font-semibold text-foreground">{overview.totalUnits}</p>
                </div>
            </div>

            <div>
                <h3 className="text-lg font-semibold text-foreground mb-3">About Project</h3>
                <p className="text-gray-600 dark:text-gray-400 leading-relaxed">
                    {description}
                </p>
            </div>
        </div>
    );
}
