function Hero() { const t = window.t; const lang = window.__LANG__ || 'el'; const [from, setFrom] = React.useState('Αθήνα'); const [to, setTo] = React.useState('Θεσσαλονίκη'); const [swapped, setSwapped] = React.useState(false); const swapCities = () => { setSwapped(s => !s); const temp = from; setFrom(to); setTo(temp); }; const quickRoutes = lang === 'el' ? [ ['Αθήνα', 'Θεσσαλονίκη'] ] : [ ['Athens', 'Thessaloniki'] ]; return (
{/* Ambient background glow */}
{/* Top Badge Pill */}
{t('hero.badge')}
{/* Hero Grid Container */}
{/* Left Column: Search & Action Card */}

{t('hero.h1a')} {t('hero.h1b')}

{t('hero.sub')}

{/* Route Search Widget */}
{/* From / To Inputs Box */}
{/* From Input */}
setFrom(e.target.value)} placeholder="Αφετηρία (πόλη)" className="w-full bg-transparent outline-none text-base text-[#0A1628] placeholder:text-[#94a3b8] font-semibold" />
{/* To Input */}
setTo(e.target.value)} placeholder="Προορισμός (πόλη)" className="w-full bg-transparent outline-none text-base text-[#0A1628] placeholder:text-[#94a3b8] font-semibold" />
{/* Swap Button */}
{/* Quick Route Pills */}
{lang === 'el' ? 'Δημοφιλή:' : 'Popular:'} {quickRoutes.map(([f, tCity], idx) => ( ))}
{/* Store Badges (Replaces Pill Buttons per request) */}
{/* Trust Points */}
{t('hero.t1')} {t('hero.t2')}
{/* Right Column: Hero Visual Container with Floating Live Route Card */}
{/* Background Image */} ellaride Intercity Roadtrip {/* Gradient Overlay */}
); } window.Hero = Hero;