// Cozmo Yachts — atomic components const { useState, useEffect, useRef, useMemo } = React; /* -- Logo SVG (faithful redraw using brand colors sampled from the logo file) -- */ function Logo({ light = false, compact = false }) { const ink = light ? "#F7FAFB" : "#16212B"; const sun = "#E8A317"; return ( COZMO YACHTS. EXCELLENCE IN YACHT CHARTER ); } /* -- Icons -- */ const Icons = { arrow: , arrowSm: , whatsapp: , phone: , heart: (filled) => , close: , check: , }; /* -- Navbar -- */ function Navbar({ scrolled, lang, setLang, shortlistCount, onShortlistClick }) { return (
{["EN","AR","RU","ZH"].map(l => ( ))}
{shortlistCount > 0 && ( )} Check Availability {Icons.arrow}
); } /* -- Hero (cinematic, image rotates every 7s) -- */ function Hero({ heroIdx, setHeroIdx, headline }) { useEffect(() => { const t = setInterval(() => setHeroIdx(i => (i + 1) % HEROES.length), 7000); return () => clearInterval(t); }, []); return (
{HEROES.map((h, i) => (
))}
{HEROES[heroIdx].title} · {HEROES[heroIdx].loc}
25.0773° N · 55.1373° E — Dubai Marina

{headline.split(' ').slice(0, -2).join(' ')} {' '} {headline.split(' ').slice(-2).join(' ')}

Crewed luxury charters from Dubai Marina since 2014 — celebrations, sunsets and sea days, arranged in a single WhatsApp message. Ten vessels, 38 to 120 feet, up to 90 guests.

Since 2014
4.8 / 5 · Tripadvisor
Travellers' Choice 2025
DMCA registered
{HEROES.map((_, i) => ( ))}
Scroll
); } /* -- Availability widget -- */ function AvailabilityWidget({ onSubmit, prefilledYacht }) { const today = new Date(); const defaultDate = new Date(today.getTime() + 3*24*3600*1000).toISOString().slice(0,10); const [date, setDate] = useState(defaultDate); const [time, setTime] = useState("Sunset · 17:00"); const [guests, setGuests] = useState(8); const [duration, setDuration] = useState("3 hours"); useEffect(() => { if (prefilledYacht) { // trigger scroll document.getElementById("availability")?.scrollIntoView({ behavior: "smooth", block: "center" }); } }, [prefilledYacht]); function submit() { onSubmit({ date, time, guests, duration, yacht: prefilledYacht }); } return (
setDate(e.target.value)} />
{guests}
From AED 500 / hr · peak & off-peak vary ● 20% deposit · 48-hr free cancellation ● Rates confirmed at booking
); } /* -- Trust strip -- */ function TrustStrip() { return (
Tripadvisor Travellers' Choice 2025
Tripadvisor Travellers' Choice 2025
4.8 / 5
464 Tripadvisor reviews
10
Vessels · 38ft → 120ft
#80
of 1,735 Dubai boat tours
12 yrs
Chartering since 2014
Live availability · Dubai Marina
); } /* -- Yacht card -- */ function YachtCard({ yacht, favorited, onFavorite, onEnquire }) { return (
onEnquire(yacht)}>
{yacht.hero ? {yacht.name} : {yacht.name} · photography pending}
{yacht.lengthFt}ft · up to {yacht.guests} guests

{yacht.name}

{yacht.sub}
{yacht.lengthFt}' length
{yacht.guests} guests
{yacht.builder ? <>{yacht.builder} : builder TBC}
from AED {yacht.indicative.toLocaleString()}/hr
{Icons.arrowSm}
); } Object.assign(window, { Logo, Icons, Navbar, Hero, AvailabilityWidget, TrustStrip, YachtCard });