// pages/room-detail.jsx — single room detail with gallery, amenities, policy function RoomDetailPage() { const { t, lang, navigate, currency, route } = useApp(); const idx = (route.params && route.params.roomIdx) || 0; const card = t.rooms.cards[idx] || t.rooms.cards[0]; const photos = photosFor(idx); const [activeImg, setActiveImg] = useState(0); const safeActive = Math.min(activeImg, Math.max(0, photos.length - 1)); return (
{card.desc}
{lang === "pl" ? "Wszystkie nasze stawki są transparentne — bez ukrytych dopłat. Podatek VAT i opłata klimatyczna w cenie." : "All our rates are transparent — no hidden fees. VAT and local tax are included."}
{lang === "pl" ? "Każdy gość ma własny pokój z prywatną łazienką, pełen spokój na noc. Do tego dostęp 24h do wspólnej kuchni z pełnym wyposażeniem." : "Every guest has their own room with a private bathroom — full quiet at night. Plus 24-hour access to a fully equipped shared kitchen."}
{lang === "pl" ? "Płyta indukcyjna, mikrofalówka, lodówka, ekspres do kawy, toster, czajnik elektryczny i podstawowe naczynia. Możliwość prasowania na prośbę." : "Induction hob, microwave, fridge, espresso machine, toaster, electric kettle, and basic crockery. Iron and ironing board available on request."}