// vehicle.jsx — Vehicle Detail page + booking widget function VehicleDetail({ car, t, locale, onBack, onOpenCar }) { const [tab, setTab] = React.useState("specs"); const [gIdx, setGIdx] = React.useState(0); // Demo: we have 1 image per car. Fake a small gallery using the same image with different crops/zooms. const galleryImgs = [car.image, car.image, car.image, car.image]; const similar = window.FLEET.filter(c => c.id !== car.id && c.available).slice(0, 3); return (
{car.note}
}{t.detail.rate_note}
{message}
)}
{t.booking.privacy}