"""Seed sample data for Faisal Car Bazar."""
import uuid
from datetime import datetime, timezone


def _now():
    return datetime.now(timezone.utc).isoformat()


SAMPLE_CARS = [
    {
        "name": "Mercedes-Benz C-Class",
        "brand": "Mercedes-Benz",
        "model": "C-Class C220d",
        "year": 2021,
        "price": 3850000,
        "kilometers": 28500,
        "fuel_type": "Diesel",
        "transmission": "Automatic",
        "location": "Nagpur",
        "color": "Obsidian Black",
        "description": "Single owner, full service history, premium sound system, panoramic sunroof, ventilated leather seats.",
        "status": "available",
        "featured": True,
        "images": [
            "https://images.unsplash.com/photo-1618843479313-40f8afb4b4d8?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1606664515524-ed2f786a0bd6?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1606611013016-969c19ba27bb?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1605559424843-9e4c228bf1c2?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1617814086367-b3f7d7e84cba?auto=format&fit=crop&w=1200&q=80",
        ],
    },
    {
        "name": "BMW 3 Series",
        "brand": "BMW",
        "model": "320d Luxury Line",
        "year": 2020,
        "price": 3290000,
        "kilometers": 42000,
        "fuel_type": "Diesel",
        "transmission": "Automatic",
        "location": "Nagpur",
        "color": "Alpine White",
        "description": "Immaculate condition, sport seats, harman kardon audio, head-up display, certified pre-owned.",
        "status": "available",
        "featured": True,
        "images": [
            "https://images.unsplash.com/photo-1555215695-3004980ad54e?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1552519507-da3b142c6e3d?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1494976388531-d1058494cdd8?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1542362567-b07e54358753?auto=format&fit=crop&w=1200&q=80",
        ],
    },
    {
        "name": "Audi A4",
        "brand": "Audi",
        "model": "A4 Premium Plus",
        "year": 2019,
        "price": 2890000,
        "kilometers": 51000,
        "fuel_type": "Petrol",
        "transmission": "Automatic",
        "location": "Nagpur",
        "color": "Mythos Black",
        "description": "Virtual cockpit, ambient lighting, matrix LED headlamps, well-maintained, accident-free.",
        "status": "available",
        "featured": True,
        "images": [
            "https://images.unsplash.com/photo-1606664515524-ed2f786a0bd6?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1610647752706-3bb12232b3ab?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1542362567-b07e54358753?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1494976388531-d1058494cdd8?auto=format&fit=crop&w=1200&q=80",
        ],
    },
    {
        "name": "Toyota Fortuner",
        "brand": "Toyota",
        "model": "Fortuner Legender 4x4",
        "year": 2022,
        "price": 4250000,
        "kilometers": 18000,
        "fuel_type": "Diesel",
        "transmission": "Automatic",
        "location": "Nagpur",
        "color": "Phantom Brown",
        "description": "Top-end variant, 4x4, JBL audio, ventilated leather, dash cam installed, single owner.",
        "status": "available",
        "featured": True,
        "images": [
            "https://images.unsplash.com/photo-1606016159991-dfe4f2746ad5?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1568844293986-8d0400bd4745?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1581235720704-06d3acfcb36f?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1597248374161-426f0d6d2fc9?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1605559424843-9e4c228bf1c2?auto=format&fit=crop&w=1200&q=80",
        ],
    },
    {
        "name": "Honda City",
        "brand": "Honda",
        "model": "City ZX CVT",
        "year": 2021,
        "price": 1290000,
        "kilometers": 22000,
        "fuel_type": "Petrol",
        "transmission": "Automatic",
        "location": "Nagpur",
        "color": "Platinum White Pearl",
        "description": "First owner, sunroof, lane watch camera, alloy wheels, all original parts.",
        "status": "available",
        "featured": True,
        "images": [
            "https://images.unsplash.com/photo-1606611013016-969c19ba27bb?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1617814086367-b3f7d7e84cba?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1494905998402-395d579af36f?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1542228262-3d663b306a53?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1597248374161-426f0d6d2fc9?auto=format&fit=crop&w=1200&q=80",
        ],
    },
    {
        "name": "Hyundai Creta",
        "brand": "Hyundai",
        "model": "Creta SX(O) Turbo",
        "year": 2022,
        "price": 1690000,
        "kilometers": 19500,
        "fuel_type": "Petrol",
        "transmission": "Automatic",
        "location": "Nagpur",
        "color": "Phantom Black",
        "description": "Top-end with panoramic sunroof, ventilated seats, 360 camera, BOSE audio.",
        "status": "available",
        "featured": False,
        "images": [
            "https://images.unsplash.com/photo-1568844293986-8d0400bd4745?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1606016159991-dfe4f2746ad5?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1581235720704-06d3acfcb36f?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1605559424843-9e4c228bf1c2?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1542362567-b07e54358753?auto=format&fit=crop&w=1200&q=80",
        ],
    },
    {
        "name": "Maruti Suzuki Swift",
        "brand": "Maruti Suzuki",
        "model": "Swift ZXi+ AMT",
        "year": 2020,
        "price": 690000,
        "kilometers": 35000,
        "fuel_type": "Petrol",
        "transmission": "Automatic",
        "location": "Nagpur",
        "color": "Solid Fire Red",
        "description": "Well-maintained, single owner, all four tyres new, music system upgraded.",
        "status": "available",
        "featured": False,
        "images": [
            "https://images.unsplash.com/photo-1494976388531-d1058494cdd8?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1542362567-b07e54358753?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1494976388531-d1058494cdd8?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1597248374161-426f0d6d2fc9?auto=format&fit=crop&w=1200&q=80",
        ],
    },
    {
        "name": "Tata Harrier",
        "brand": "Tata",
        "model": "Harrier XZ+ Dark Edition",
        "year": 2021,
        "price": 1790000,
        "kilometers": 31000,
        "fuel_type": "Diesel",
        "transmission": "Manual",
        "location": "Nagpur",
        "color": "Atlas Black",
        "description": "Dark edition, panoramic sunroof, JBL audio, premium leather upholstery.",
        "status": "sold",
        "featured": False,
        "images": [
            "https://images.unsplash.com/photo-1581235720704-06d3acfcb36f?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1606016159991-dfe4f2746ad5?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1568844293986-8d0400bd4745?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1605559424843-9e4c228bf1c2?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1542362567-b07e54358753?auto=format&fit=crop&w=1200&q=80",
        ],
    },
    {
        "name": "Mahindra XUV700",
        "brand": "Mahindra",
        "model": "XUV700 AX7L AWD",
        "year": 2022,
        "price": 2490000,
        "kilometers": 21500,
        "fuel_type": "Diesel",
        "transmission": "Automatic",
        "location": "Nagpur",
        "color": "Napoli Black",
        "description": "Top-end AWD, ADAS features, panoramic sunroof, 12-speaker Sony 3D audio.",
        "status": "available",
        "featured": False,
        "images": [
            "https://images.unsplash.com/photo-1597248374161-426f0d6d2fc9?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1606016159991-dfe4f2746ad5?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1568844293986-8d0400bd4745?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1581235720704-06d3acfcb36f?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1605559424843-9e4c228bf1c2?auto=format&fit=crop&w=1200&q=80",
        ],
    },
    {
        "name": "Kia Seltos",
        "brand": "Kia",
        "model": "Seltos GTX+ DCT",
        "year": 2021,
        "price": 1590000,
        "kilometers": 27000,
        "fuel_type": "Petrol",
        "transmission": "Automatic",
        "location": "Nagpur",
        "color": "Intense Red",
        "description": "GT-Line, panoramic sunroof, BOSE audio, ventilated seats, 360 camera.",
        "status": "available",
        "featured": False,
        "images": [
            "https://images.unsplash.com/photo-1605559424843-9e4c228bf1c2?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1606016159991-dfe4f2746ad5?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1568844293986-8d0400bd4745?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1581235720704-06d3acfcb36f?auto=format&fit=crop&w=1200&q=80",
            "https://images.unsplash.com/photo-1542362567-b07e54358753?auto=format&fit=crop&w=1200&q=80",
        ],
    },
]


SAMPLE_GALLERY = [
    {"title": "Showroom Entrance", "image_url": "https://images.unsplash.com/photo-1562141961-b5d1d4ed1aa6?auto=format&fit=crop&w=1200&q=80", "category": "showroom"},
    {"title": "Indoor Display", "image_url": "https://images.unsplash.com/photo-1567113463300-102a7eb3cb26?auto=format&fit=crop&w=1200&q=80", "category": "showroom"},
    {"title": "Delivery Moment - Patel Family", "image_url": "https://images.unsplash.com/photo-1559762717-99c81ac85459?auto=format&fit=crop&w=1200&q=80", "category": "delivery"},
    {"title": "New Owner Mr. Sharma", "image_url": "https://images.unsplash.com/photo-1605559424843-9e4c228bf1c2?auto=format&fit=crop&w=1200&q=80", "category": "delivery"},
    {"title": "Premium Lineup", "image_url": "https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1200&q=80", "category": "showroom"},
    {"title": "Happy Customers", "image_url": "https://images.unsplash.com/photo-1568605114967-8130f3a36994?auto=format&fit=crop&w=1200&q=80", "category": "delivery"},
    {"title": "SUV Range", "image_url": "https://images.unsplash.com/photo-1568844293986-8d0400bd4745?auto=format&fit=crop&w=1200&q=80", "category": "showroom"},
    {"title": "Mercedes Delivery", "image_url": "https://images.unsplash.com/photo-1618843479313-40f8afb4b4d8?auto=format&fit=crop&w=1200&q=80", "category": "delivery"},
    {"title": "Luxury Sedan Bay", "image_url": "https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1200&q=80", "category": "showroom"},
]


SAMPLE_OWNER = {
    "name": "Mohammed Faisal",
    "title": "Founder & CEO",
    "bio": "With over 15 years of experience in the pre-owned automobile industry, Mohammed Faisal founded Faisal Car Bazar with a single mission — to bring transparency, trust, and premium quality to the used car market in Nagpur. Every vehicle in our showroom is hand-picked, inspected on 150+ points, and delivered with complete documentation peace-of-mind.",
    "photo_url": "https://images.pexels.com/photos/15889538/pexels-photo-15889538.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940",
    "years_experience": 15,
    "cars_delivered": 1200,
    "happy_customers": 1100,
}


def cars_with_ids():
    return [{**c, "id": str(uuid.uuid4()), "created_at": _now(), "updated_at": _now()} for c in SAMPLE_CARS]


def gallery_with_ids():
    return [{**g, "id": str(uuid.uuid4()), "created_at": _now()} for g in SAMPLE_GALLERY]
