export const slugify = (text: string) => {
  return text
    .split(' - ')[0]        // "VD Lipno 1 - Vltava" -> "VD Lipno 1"
    .replace(/^VD\s+/i, '') // Remove "VD " prefix -> "Lipno 1"
    .normalize('NFD')       // Decompose diacritics
    .replace(/[\u0300-\u036f]/g, '') // Remove diacritics
    .toLowerCase()
    .replace(/\s+/g, '-');  // Replace spaces with dashes -> "lipno-1"
};
