// Trend Home — buyer prototype data

const TH_COMPLEXES = [
  {
    id: 'kristal',
    name: 'Kompleksi Kristal',
    location: 'Pejë · Lagjia Kristal',
    tagline: 'Banim modern në zemër të qytetit, me pamje të Bjeshkëve të Nemuna.',
    status: 'Në ndërtim · Përfundim Q3 2026',
    delivery: '2026',
    floors: 9,
    units: 84,
    heroImg: 'uploads/img2.jpg',
    progressImg: 'uploads/img8.jpg',
    contextImg: 'uploads/img3.jpg',
    buildings: [
      { id: '1A', label: 'Kulla 1A', floors: 9, units: 27, available: 4, status: 'available' },
      { id: '2B', label: 'Kulla 2B', floors: 9, units: 36, available: 11, status: 'available' },
      { id: '3C', label: 'Kulla 3C', floors: 8, units: 21, available: 0, status: 'sold' },
    ],
  },
  {
    id: 'qendra',
    name: 'Kompleksi Qendra',
    location: 'Pejë · Qendër',
    tagline: 'Pesë minuta nga sheshi kryesor, me parking nëntokësor dhe bibliotekë të përbashkët.',
    status: 'Përfunduar · Banesa të lira',
    delivery: '2024',
    floors: 7,
    units: 48,
    heroImg: 'uploads/img1.jpg',
    progressImg: 'uploads/img4.jpg',
    contextImg: 'uploads/img2.jpg',
    buildings: [
      { id: 'A', label: 'Kulla A', floors: 7, units: 24, available: 2, status: 'limited' },
      { id: 'B', label: 'Kulla B', floors: 7, units: 24, available: 5, status: 'available' },
    ],
  },
  {
    id: 'kodra',
    name: 'Kompleksi Kodra',
    location: 'Pejë · Kodra e Trimave',
    tagline: 'Shtëpi në lartësi, me terasa të mëdha dhe ajër malor të pastër.',
    status: 'Pre-shitje · Hapur',
    delivery: '2027',
    floors: 6,
    units: 32,
    heroImg: 'uploads/img3.jpg',
    progressImg: 'uploads/img2.jpg',
    contextImg: 'uploads/img4.jpg',
    buildings: [
      { id: 'N1', label: 'Vila N1', floors: 6, units: 16, available: 14, status: 'available' },
      { id: 'N2', label: 'Vila N2', floors: 6, units: 16, available: 16, status: 'available' },
    ],
  },
];

// Floor + unit grid for the focused building (Kristal · Kulla 2B)
// status: available | reserved | sold
const TH_FLOORS = [
  { n: 9, label: 'Kati 9 · Penthouse', units: [
    { id: 'B2-9A', type: '3+1', m2: 142.5, price: 168000, status: 'available', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Jug-Lindje' },
    { id: 'B2-9B', type: '3+1', m2: 138.2, price: 162000, status: 'reserved', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Veri-Perëndim' },
  ]},
  { n: 8, label: 'Kati 8', units: [
    { id: 'B2-8A', type: '3+1', m2: 136.2, price: 154000, status: 'available', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Jug-Lindje' },
    { id: 'B2-8B', type: '2+1', m2: 98.4, price: 118000, status: 'available', balconies: 1, bedrooms: 2, baths: 1, orientation: 'Veri' },
    { id: 'B2-8C', type: '2+1', m2: 96.8, price: 116000, status: 'sold', balconies: 1, bedrooms: 2, baths: 1, orientation: 'Veri-Perëndim' },
    { id: 'B2-8D', type: '3+1', m2: 134.0, price: 152000, status: 'sold', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Lindje' },
  ]},
  { n: 7, label: 'Kati 7', units: [
    { id: 'B2-7A', type: '3+1', m2: 136.2, price: 150000, status: 'available', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Jug-Lindje' },
    { id: 'B2-7B', type: '2+1', m2: 98.4, price: 114000, status: 'sold', balconies: 1, bedrooms: 2, baths: 1, orientation: 'Veri' },
    { id: 'B2-7C', type: '2+1', m2: 96.8, price: 112000, status: 'available', balconies: 1, bedrooms: 2, baths: 1, orientation: 'Veri-Perëndim' },
    { id: 'B2-7D', type: '3+1', m2: 134.0, price: 148000, status: 'sold', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Lindje' },
  ]},
  { n: 6, label: 'Kati 6', units: [
    { id: 'B2-6A', type: '3+1', m2: 136.2, price: 146000, status: 'sold', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Jug-Lindje' },
    { id: 'B2-6B', type: '2+1', m2: 98.4, price: 110000, status: 'reserved', balconies: 1, bedrooms: 2, baths: 1, orientation: 'Veri' },
    { id: 'B2-6C', type: '2+1', m2: 96.8, price: 108000, status: 'available', balconies: 1, bedrooms: 2, baths: 1, orientation: 'Veri-Perëndim' },
    { id: 'B2-6D', type: '3+1', m2: 134.0, price: 144000, status: 'available', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Lindje' },
  ]},
  { n: 5, label: 'Kati 5', units: [
    { id: 'B2-5A', type: '3+1', m2: 136.2, price: 142000, status: 'sold', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Jug-Lindje' },
    { id: 'B2-5B', type: '2+1', m2: 98.4, price: 106000, status: 'sold', balconies: 1, bedrooms: 2, baths: 1, orientation: 'Veri' },
    { id: 'B2-5C', type: '2+1', m2: 96.8, price: 104000, status: 'available', balconies: 1, bedrooms: 2, baths: 1, orientation: 'Veri-Perëndim' },
    { id: 'B2-5D', type: '3+1', m2: 134.0, price: 140000, status: 'available', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Lindje' },
  ]},
  { n: 4, label: 'Kati 4', units: [
    { id: 'B2-4A', type: '3+1', m2: 136.2, price: 138000, status: 'available', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Jug-Lindje' },
    { id: 'B2-4B', type: '2+1', m2: 98.4, price: 102000, status: 'sold', balconies: 1, bedrooms: 2, baths: 1, orientation: 'Veri' },
    { id: 'B2-4C', type: '2+1', m2: 96.8, price: 100000, status: 'sold', balconies: 1, bedrooms: 2, baths: 1, orientation: 'Veri-Perëndim' },
    { id: 'B2-4D', type: '3+1', m2: 134.0, price: 136000, status: 'reserved', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Lindje' },
  ]},
  { n: 3, label: 'Kati 3', units: [
    { id: 'B2-3A', type: '3+1', m2: 136.2, price: 134000, status: 'sold', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Jug-Lindje' },
    { id: 'B2-3B', type: '2+1', m2: 98.4, price: 98000, status: 'sold', balconies: 1, bedrooms: 2, baths: 1, orientation: 'Veri' },
    { id: 'B2-3C', type: '2+1', m2: 96.8, price: 96000, status: 'sold', balconies: 1, bedrooms: 2, baths: 1, orientation: 'Veri-Perëndim' },
    { id: 'B2-3D', type: '3+1', m2: 134.0, price: 132000, status: 'sold', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Lindje' },
  ]},
  { n: 2, label: 'Kati 2', units: [
    { id: 'B2-2A', type: '3+1', m2: 136.2, price: 130000, status: 'sold', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Jug-Lindje' },
    { id: 'B2-2B', type: '2+1', m2: 98.4, price: 94000, status: 'sold', balconies: 1, bedrooms: 2, baths: 1, orientation: 'Veri' },
    { id: 'B2-2C', type: '2+1', m2: 96.8, price: 92000, status: 'sold', balconies: 1, bedrooms: 2, baths: 1, orientation: 'Veri-Perëndim' },
    { id: 'B2-2D', type: '3+1', m2: 134.0, price: 128000, status: 'sold', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Lindje' },
  ]},
  { n: 1, label: 'Kati 1', units: [
    { id: 'B2-1A', type: '3+1', m2: 136.2, price: 124000, status: 'sold', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Jug-Lindje' },
    { id: 'B2-1B', type: '2+1', m2: 98.4, price: 90000, status: 'sold', balconies: 1, bedrooms: 2, baths: 1, orientation: 'Veri' },
    { id: 'B2-1C', type: '2+1', m2: 96.8, price: 88000, status: 'sold', balconies: 1, bedrooms: 2, baths: 1, orientation: 'Veri-Perëndim' },
    { id: 'B2-1D', type: '3+1', m2: 134.0, price: 122000, status: 'sold', balconies: 2, bedrooms: 3, baths: 2, orientation: 'Lindje' },
  ]},
  { n: 0, label: 'Përdhesë · Lokale', units: [
    { id: 'B2-LK1', type: 'Lokal', m2: 84.0, price: 168000, status: 'sold', balconies: 0, bedrooms: 0, baths: 1, orientation: 'Jug' },
    { id: 'B2-LK2', type: 'Lokal', m2: 62.0, price: 124000, status: 'available', balconies: 0, bedrooms: 0, baths: 1, orientation: 'Lindje' },
  ]},
];

// Featured unit (B2-8A) — galleries, plan, amenities
const TH_FEATURED_UNIT = {
  id: 'B2-8A',
  type: '3+1',
  building: 'Kompleksi Kristal · Kulla 2B',
  floor: 8,
  m2: 136.2,
  netM2: 118.4,
  bedrooms: 3,
  baths: 2,
  balconies: 2,
  parking: 1,
  orientation: 'Jug-Lindje',
  price: 154000,
  pricePerM2: 1131,
  delivery: 'Q3 2026',
  status: 'available',
  rooms: [
    { name: 'Sallon + Kuzhinë', m2: 38.6 },
    { name: 'Master room', m2: 18.4 },
    { name: 'Dhomë gjumi 1', m2: 14.2 },
    { name: 'Dhomë gjumi 2', m2: 11.8 },
    { name: 'Banjo', m2: 6.4 },
    { name: 'WC', m2: 3.2 },
    { name: 'Korridor', m2: 12.8 },
    { name: 'Terasa 1', m2: 5.5 },
    { name: 'Terasa 2', m2: 4.6 },
    { name: 'Shpajz', m2: 2.9 },
  ],
  gallery: ['uploads/img1.jpg', 'uploads/img2.jpg', 'uploads/img3.jpg', 'uploads/img8.jpg'],
  planImg: 'uploads/img7.jpg',
  amenities: [
    'Parket dru natyror',
    'Dritare alumini me tre xhama',
    'Ngrohje qendrore me dysheme',
    'Ashensor i ri OTIS',
    'Parking nëntokësor',
    'Sigurim 24/7',
    'Bibliotekë e përbashkët',
    'Kopësht i brendshëm',
  ],
};

Object.assign(window, { TH_COMPLEXES, TH_FLOORS, TH_FEATURED_UNIT });
