Spaces:
Running

File size: 118,725 Bytes
5795bb5
 
 
 
 
 
 
 
c6fd6ba
 
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8d9e5e0
 
775b2b3
 
5795bb5
 
 
 
5b69a27
 
79f34b7
 
 
5b69a27
 
 
79f34b7
 
 
 
 
5b69a27
775b2b3
 
 
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
326abf5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
828421d
 
 
 
326abf5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97462c3
 
 
 
 
 
326abf5
97462c3
326abf5
 
 
 
 
5795bb5
012fef3
 
 
 
8819d51
 
 
 
 
012fef3
 
 
 
9de0fc9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
012fef3
 
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55b32ca
8680a49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55b32ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e5c9654
5795bb5
 
e5c9654
 
5795bb5
 
e5c9654
 
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
4f18ab0
5795bb5
 
9fe037a
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
959e2b6
5795bb5
 
 
 
9fe037a
5795bb5
 
 
 
 
 
 
 
 
e5c9654
5795bb5
 
 
 
 
 
e5c9654
da8173c
 
 
 
 
 
5795bb5
 
e5c9654
65a57c6
e5c9654
5795bb5
e5c9654
65a57c6
 
5795bb5
 
 
65a57c6
 
5795bb5
65a57c6
 
5795bb5
65a57c6
 
 
 
 
 
 
 
 
 
 
 
 
5795bb5
 
 
e5c9654
65a57c6
 
5795bb5
 
 
e5c9654
65a57c6
 
5795bb5
 
 
 
 
 
 
 
 
e5c9654
 
 
 
65a57c6
e5c9654
 
 
65a57c6
e5c9654
5795bb5
e5c9654
 
 
65a57c6
e5c9654
 
 
65a57c6
e5c9654
5795bb5
 
 
65a57c6
5795bb5
 
65a57c6
5795bb5
959e2b6
 
 
 
 
 
 
 
5795bb5
 
 
 
 
 
 
 
 
064abea
 
5795bb5
 
 
 
65a57c6
012fef3
c5a889b
 
738772e
c5a889b
5795bb5
 
55b32ca
5795bb5
 
 
 
 
 
 
 
5b69a27
5795bb5
 
738772e
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b25caf5
5795bb5
 
 
 
 
 
65a57c6
363006f
c5a889b
ec4a9ca
738772e
c5a889b
5795bb5
 
55b32ca
5795bb5
 
 
 
 
 
 
 
 
 
 
738772e
5795bb5
 
 
 
 
 
 
 
 
 
 
 
ec4a9ca
5795bb5
 
b25caf5
5795bb5
 
 
 
 
 
65a57c6
b68d367
 
156dd86
012fef3
40466f9
738772e
5795bb5
 
55b32ca
5795bb5
 
 
 
 
 
 
 
 
 
 
738772e
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b25caf5
5795bb5
 
 
 
 
 
2357a0a
b68d367
 
 
ec4a9ca
2357a0a
ec4a9ca
5795bb5
 
55b32ca
5795bb5
 
 
 
 
 
 
 
 
 
 
ec4a9ca
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b25caf5
5795bb5
 
 
 
 
 
2357a0a
02e4715
 
738772e
02e4715
5795bb5
 
55b32ca
5795bb5
 
 
 
 
 
 
 
 
 
 
738772e
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b25caf5
5795bb5
 
 
 
 
 
2357a0a
02e4715
 
738772e
02e4715
5795bb5
ce76a5d
55b32ca
5795bb5
 
 
 
 
 
 
 
 
 
 
738772e
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b25caf5
5795bb5
 
 
 
 
 
 
775b2b3
5795bb5
 
c7afee5
c327bee
 
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
c6fd6ba
5795bb5
 
 
 
 
 
 
 
 
 
e036662
5795bb5
 
83c5876
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8d9e5e0
5795bb5
 
8d9e5e0
 
 
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
e626035
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8d9e5e0
5795bb5
 
 
 
 
e626035
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5073908
 
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fd0d314
 
 
 
5795bb5
 
 
 
 
 
5073908
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c30ee0c
 
 
e859759
5795bb5
 
 
 
9fe037a
5795bb5
 
 
 
 
 
 
 
 
 
 
fd0d314
 
 
 
5795bb5
 
 
 
 
 
 
 
 
326abf5
 
 
97462c3
326abf5
 
 
 
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1934ef0
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
1934ef0
5795bb5
 
 
 
4e160f8
 
5795bb5
 
4e160f8
 
5795bb5
 
4e160f8
 
5795bb5
 
4e160f8
 
5795bb5
 
4e160f8
 
5795bb5
 
4e160f8
 
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3fa4356
 
 
 
 
 
 
 
 
 
 
5795bb5
 
 
 
 
 
 
0aae842
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c6fd6ba
 
 
d69bbde
c6fd6ba
012fef3
c6fd6ba
 
 
 
 
8819d51
 
c6fd6ba
 
8680a49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d69bbde
 
012fef3
d69bbde
012fef3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d69bbde
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
012fef3
 
 
 
8680a49
012fef3
 
8680a49
 
012fef3
8680a49
 
012fef3
8680a49
 
012fef3
8680a49
 
012fef3
8680a49
 
 
 
 
 
d69bbde
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
012fef3
 
 
 
 
d69bbde
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9de0fc9
d69bbde
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9de0fc9
d69bbde
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9de0fc9
 
d69bbde
 
 
 
 
 
 
 
 
 
c6fd6ba
 
 
 
 
 
1934ef0
c6fd6ba
 
1934ef0
c6fd6ba
 
1934ef0
 
 
 
 
c6fd6ba
 
8819d51
 
c6fd6ba
 
1934ef0
c6fd6ba
1934ef0
 
 
 
 
c6fd6ba
 
0aae842
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c6fd6ba
 
 
326abf5
0aae842
 
 
 
 
 
aaf45af
dfdebe8
02e4715
dfdebe8
02e4715
 
 
dfdebe8
02e4715
326abf5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eb003b7
326abf5
c6fd6ba
 
65a57c6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
775b2b3
251b9b0
 
775b2b3
 
65a57c6
775b2b3
251b9b0
65a57c6
 
 
 
 
02e4715
65a57c6
 
02e4715
 
 
 
65a57c6
b68d367
 
 
 
 
 
65a57c6
 
 
251b9b0
65a57c6
251b9b0
775b2b3
65a57c6
 
251b9b0
65a57c6
 
251b9b0
 
 
 
 
 
 
 
 
aaf45af
251b9b0
 
 
 
aaf45af
775b2b3
65a57c6
 
 
 
 
 
 
 
 
5795bb5
 
 
 
 
 
 
 
 
 
 
eb003b7
 
 
 
 
 
 
 
 
 
2430409
 
 
 
 
828421d
eb003b7
c5a889b
 
 
 
 
 
 
 
 
b25caf5
 
40466f9
2357a0a
40466f9
c5a889b
 
4e160f8
 
 
 
 
 
c5a889b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
012fef3
 
 
 
1934ef0
012fef3
1934ef0
 
012fef3
1934ef0
 
 
c5a889b
 
 
 
 
 
5795bb5
c5a889b
 
 
5795bb5
 
 
c5a889b
 
5795bb5
eb003b7
1934ef0
 
 
 
 
 
5795bb5
 
eb003b7
 
 
 
 
 
 
 
c5a889b
 
 
 
 
 
 
 
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
aaf45af
 
 
4f18ab0
aaf45af
4f18ab0
aaf45af
42e3da3
aaf45af
 
864a5bd
aaf45af
 
42e3da3
864a5bd
aaf45af
864a5bd
 
 
4f18ab0
 
aaf45af
 
 
42e3da3
aaf45af
 
 
 
 
 
 
 
 
 
 
 
 
 
 
011fab4
 
 
 
aaf45af
011fab4
aaf45af
011fab4
 
 
aaf45af
775b2b3
aaf45af
4f18ab0
 
aaf45af
4f18ab0
aaf45af
 
 
 
 
9fe037a
 
aaf45af
 
9fe037a
 
aaf45af
9fe037a
 
 
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8d9e5e0
 
 
 
 
8cf530f
8d9e5e0
 
363006f
8d9e5e0
 
 
 
 
 
 
 
 
 
 
 
 
 
363006f
8d9e5e0
363006f
8d9e5e0
 
 
 
363006f
8d9e5e0
 
 
 
8cf530f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8d9e5e0
 
8cf530f
 
 
 
 
 
8d9e5e0
 
 
 
 
775b2b3
 
 
c327bee
775b2b3
 
 
 
251b9b0
 
 
775b2b3
251b9b0
 
 
 
775b2b3
251b9b0
775b2b3
251b9b0
 
 
aaf45af
cddad49
aaf45af
 
251b9b0
cddad49
775b2b3
 
c327bee
dfdebe8
aaf45af
 
 
 
c327bee
 
 
 
dfdebe8
c327bee
aaf45af
 
 
 
 
 
 
c327bee
 
dfdebe8
 
 
 
 
 
 
 
 
 
 
 
775b2b3
 
 
c327bee
775b2b3
5795bb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dfdebe8
 
363006f
dfdebe8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5795bb5
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Venera Rielt | Premium Real Estate Moldova</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
    <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <style>
        :root {
            --gold: #FFD700;
            --black: #000000;
            --white: #FFFFFF;
            --glass: rgba(255, 255, 255, 0.05);
            --glass-border: rgba(255, 255, 255, 0.1);
            --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Montserrat', sans-serif;
            background-color: var(--black);
            color: var(--white);
            overflow-x: hidden;
        }
        
        .glass-effect {
            background: var(--glass);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
        }
        
        .gold-text {
            color: var(--gold);
        }
        
        .gold-border {
            border-color: var(--gold);
        }
        
        .gold-bg {
            background-color: var(--gold);
        }
        
        .neon-glow {
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
        }
        
        .hero-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
            opacity: 0.7;
        }
        
        .property-card, 
        #agents .glass-effect.hidden {
            display: none;
        }
        .property-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(255, 215, 0, 0.3);
        }
        
        .property-card h3 {
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
        }
        
        .property-card .flex.items-center span {
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
            display: inline;
            max-width: none;
        }
        .property-card.visible {
            display: block;
        }
        
        .agent-photo {
            transition: all 0.3s ease;
        }
        
        .agent-photo:hover {
            transform: scale(1.05);
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
        }
        
        .search-box {
            transition: all 0.3s ease;
        }
        
        .search-box:hover {
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
        }
        
        .btn-gold {
            transition: all 0.3s ease;
        }
        
        .btn-gold:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
        }
        
        .fade-in {
            animation: fadeIn 1s ease-in;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .slide-up {
            animation: slideUp 0.8s ease-out;
        }
        
        @keyframes slideUp {
            from { 
                opacity: 0;
                transform: translateY(50px);
            }
            to { 
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .property-details {
            max-width: 90%;
            max-height: 90%;
            overflow-y: auto;
        }
        
        .carousel-item {
            display: none;
        }
        
        .carousel-item.active {
            display: block;
        }
        
        .map-container {
            height: 500px;
            width: 100%;
            position: relative;
        }

        .map-expand-btn {
            position: absolute;
            left: 10px;
            bottom: 10px;
            z-index: 1000;
            background: rgba(0,0,0,0.7);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 8px 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .map-expand-btn:hover {
            background: rgba(0,0,0,0.9);
        }

        .map-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            z-index: 2000;
            display: none;
        }

        .overlay.active {
            z-index: 2001;
        }

        .map-overlay.active {
            display: block;
        }

        .map-overlay-container {
            width: 100%;
            height: 100%;
            position: relative;
        }

        .map-overlay-close {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 2001;
            background: rgba(0,0,0,0.7);
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 20px;
        }

        .map-overlay-close:hover {
            background: rgba(0,0,0,0.9);
        }
        
        .map-popup-container .leaflet-popup-content {
            margin: 12px;
        }
        
        /* Hide Leaflet attribution and Ukraine flag */
        .leaflet-control-attribution {
            display: none !important;
        }
        
        .map-popup {
            font-family: 'Montserrat', sans-serif;
        }
        
        .map-popup-mini {
            font-family: 'Montserrat', sans-serif;
            background: white;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .map-popup-mini h4 {
            margin-bottom: 4px;
            font-size: 14px;
        }
        
        .leaflet-popup-content {
            margin: 0 !important;
        }
        
        .leaflet-popup-content-wrapper {
            padding: 0 !important;
            border-radius: 0.5rem !important;
        }
        
        @media (max-width: 768px) {
            .map-popup-mini {
                width: 200px !important;
            }
        }
        
        .map-placeholder {
            background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
        }
        
        .social-icon {
            transition: all 0.3s ease;
        }
        
        .social-icon:hover {
            transform: scale(1.2);
            color: var(--gold);
        }
        
        .price-tag {
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 2;
        }

        /* Custom map markers */
        .custom-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            color: white;
            font-size: 14px;
            box-shadow: 0 0 10px rgba(0,0,0,0.5);
        }

        .premium-icon {
            background-color: #FFD700;
            color: #000;
        }

        .secondary-icon {
            background-color: #4CAF50;
        }

        .newbuilding-icon {
            background-color: #2196F3;
        }

        .commercial-icon {
            background-color: #9C27B0;
        }

        .rental-icon {
            background-color: #FF5722;
        }

        .type-tag {
            position: absolute;
            top: 15px;
            left: 15px;
            z-index: 2;
            font-weight: bold;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
        }

        .premium-tag {
            background-color: #FFD700;
            color: #000;
        }

        .secondary-tag {
            background-color: #4CAF50;
            color: #fff;
        }

        .newbuilding-tag {
            background-color: #2196F3;
            color: #fff;
        }

        .commercial-tag {
            background-color: #9C27B0;
            color: #fff;
        }

        .rental-tag {
            background-color: #FF5722;
            color: #fff;
        }
        
        .agent-badge {
            position: absolute;
            bottom: 15px;
            right: 15px;
            z-index: 2;
        }
        
        .testimonial-carousel {
            position: relative;
        }
        
        .testimonial-item {
            display: none;
        }
        
        .testimonial-item.active {
            display: block;
            animation: fadeIn 1s;
        }
        
        .nav-link {
            position: relative;
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background-color: var(--gold);
            transition: width 0.3s ease;
        }
        
        .nav-link:hover::after {
            width: 100%;
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .hero-content {
                padding-top: 100px;
            }
            
            .search-box {
                margin-top: 80px;
            }
            
            .search-box .grid-cols-2 > .grid {
                grid-template-columns: 1fr !important;
            }
            
            .map-container {
                height: 300px;
            }
        }
    </style>
</head>
<body class="antialiased">
    <!-- Header -->
    <header class="fixed w-full z-50 glass-effect">
        <div class="container mx-auto px-4 py-4">
            <div class="flex justify-between items-center">
                <div class="flex items-center">
                    <a href="#" id="logo-link" class="text-2xl font-bold gold-text hover:text-yellow-300 transition">Venera Rielt</a>
                </div>
                <nav class="hidden md:flex space-x-8">
                    <a href="#" id="home-link" class="nav-link text-white hover:text-gold-500 transition">Главная</a>
                    <a href="#properties" class="nav-link text-white hover:text-gold-500 transition">Объекты</a>
                    <a href="#agents" class="nav-link text-white hover:text-gold-500 transition">Специалисты</a>
                    <a href="#about" class="nav-link text-white hover:text-gold-500 transition">О компании</a>
                    <a href="#contact" class="nav-link text-white hover:text-gold-500 transition">Контакты</a>
                </nav>
                <div class="md:hidden">
                    <button id="mobile-menu-button" class="text-white focus:outline-none">
                        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
                        </svg>
                    </button>
                </div>
            </div>
            
        </div>
        <!-- Mobile menu -->
        <div id="mobile-menu" class="hidden md:hidden glass-effect w-full">
            <div class="px-2 pt-2 pb-3 space-y-1 sm:px-3">
                <a href="#" id="mobile-home-link" class="block px-3 py-2 text-white hover:bg-gray-800 rounded-md">Главная</a>
                <a href="#properties" class="block px-3 py-2 text-white hover:bg-gray-800 rounded-md">Объекты</a>
                <a href="#agents" class="block px-3 py-2 text-white hover:bg-gray-800 rounded-md">Специалисты</a>
                <a href="#about" class="block px-3 py-2 text-white hover:bg-gray-800 rounded-md">О компании</a>
                <a href="#contact" class="block px-3 py-2 text-white hover:bg-gray-800 rounded-md">Контакты</a>
            </div>
        </div>
    </header>

    <!-- Hero Section with Video Background -->
    <section class="relative min-h-screen flex items-center justify-center overflow-hidden">
        <video autoplay muted loop class="hero-video">
            <source src="https://assets.mixkit.co/videos/preview/mixkit-modern-residential-district-with-tall-buildings-15800-large.mp4" type="video/mp4">
            Your browser does not support the video tag.
        </video>
        <div class="absolute inset-0 bg-black opacity-50"></div>
        
        <div class="hero-content container mx-auto px-4 text-center relative z-10 fade-in pt-32">
            <h1 class="text-4xl md:text-6xl font-bold mb-6 text-white">
                <span class="block">PREMIUM</span>
                <span class="block my-2">REAL ESTATE</span>
                <span class="block gold-text">MOLDOVA</span>
            </h1>
            <p class="text-xl md:text-2xl mb-10 text-gray-300">Найдите свой идеальный дом среди наших предложений</p>
            
            <!-- Search Box -->
            <div class="glass-effect rounded-xl p-4 md:p-6 max-w-4xl mx-auto search-box mt-20 md:mt-0">
                <form id="search-form">
                <div class="grid grid-cols-1 md:grid-cols-3 gap-3 mb-3">
                    <div>
                        <label class="block text-left text-white mb-1 text-sm md:text-base">Город</label>
                        <select id="city" class="w-full bg-gray-800 text-white p-2 md:p-3 rounded-lg border border-gray-700 focus:border-gold-500 focus:outline-none text-sm md:text-base">
                            <option value="Все">Все города</option>
                            <option>Кишинёв</option>
                            <option>Бельцы</option>
                            <option>Тирасполь</option>
                            <option>Бендеры</option>
                            <option>Рыбница</option>
                            <option>Кагул</option>
                            <option>Унгень</option>
                            <option>Сороки</option>
                            <option>Оргеев</option>
                            <option>Комрат</option>
                            <option>Чадыр-Лунга</option>
                            <option>Страшены</option>
                            <option>Дрокия</option>
                            <option>Единцы</option>
                            <option>Флорешты</option>
                            <option>Резина</option>
                            <option>Глодяны</option>
                            <option>Кантемир</option>
                            <option>Леова</option>
                            <option>Ниспорены</option>
                            <option>Окница</option>
                            <option>Вадул-луй-Водэ</option>
                        </select>
                    </div>
                    <div>
                        <label class="block text-left text-white mb-1 text-sm md:text-base">Район</label>
                        <select id="district" class="w-full bg-gray-800 text-white p-2 md:p-3 rounded-lg border border-gray-700 focus:border-gold-500 focus:outline-none text-sm md:text-base">
                            <option value="Все">Все районы</option>
                        </select>
                    </div>
                    <div>
                        <label class="block text-left text-white mb-1 text-sm md:text-base">Тип предложения</label>
                        <select id="property-type" class="w-full bg-gray-800 text-white p-2 md:p-3 rounded-lg border border-gray-700 focus:border-gold-500 focus:outline-none text-sm md:text-base">
                            <option value="Все">Все типы</option>
                            <option>Премиум</option>
                            <option>Вторичка</option>
                            <option>Новострой</option>
                            <option>Аренда</option>
                            <option>Коммерческая</option>
                        </select>
                    </div>
                </div>
                
                <div class="grid grid-cols-1 md:grid-cols-2 gap-3 mb-3">
                    <div class="grid grid-cols-2 gap-3">
                        <div>
                            <label class="block text-left text-white mb-1 text-sm md:text-base">Цена от (€)</label>
                            <input id="min-price" type="number" placeholder="Минимум" class="w-full bg-gray-800 text-white p-2 md:p-3 rounded-lg border border-gray-700 focus:border-gold-500 focus:outline-none text-sm md:text-base">
                        </div>
                        <div>
                            <label class="block text-left text-white mb-1 text-sm md:text-base">Цена до (€)</label>
                            <input id="max-price" type="number" placeholder="Максимум" class="w-full bg-gray-800 text-white p-2 md:p-3 rounded-lg border border-gray-700 focus:border-gold-500 focus:outline-none text-sm md:text-base">
                        </div>
                    </div>
                    <div class="grid grid-cols-2 gap-3">
                        <div>
                            <label class="block text-left text-white mb-1 text-sm md:text-base">Площадь от (м²)</label>
                            <input id="min-area" type="number" placeholder="Минимум" class="w-full bg-gray-800 text-white p-2 md:p-3 rounded-lg border border-gray-700 focus:border-gold-500 focus:outline-none text-sm md:text-base">
                        </div>
                        <div>
                            <label class="block text-left text-white mb-1 text-sm md:text-base">Площадь до (м²)</label>
                            <input id="max-area" type="number" placeholder="Максимум" class="w-full bg-gray-800 text-white p-2 md:p-3 rounded-lg border border-gray-700 focus:border-gold-500 focus:outline-none text-sm md:text-base">
                        </div>
                    </div>
                </div>
                
                <button type="submit" class="mt-6 w-full bg-[#FFD700] text-black font-bold py-3 md:py-4 px-8 rounded-xl hover:shadow-lg hover:shadow-yellow-500/30 transition-all duration-300 text-base md:text-lg">
                    Поиск <i class="fas fa-search ml-2"></i>
                </button>
                </form>
            </div>
            
            <div class="mt-5 flex justify-center">
                <a href="#properties" class="text-white animate-bounce">
                    <svg class="w-10 h-10" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 14l-7 7m0 0l-7-7m7 7V3"></path>
                    </svg>
                </a>
            </div>
        </div>
    </section>

    <!-- Properties Section -->
    <section id="properties" class="py-20 bg-gradient-to-b from-black to-gray-900 slide-up">
        <div class="container mx-auto px-4">
            <div class="text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold mb-4 gold-text">Наши объекты</h2>
                <div class="w-20 h-1 gold-bg mx-auto mb-6"></div>
                <p class="text-gray-400 max-w-2xl mx-auto">Откройте для себя подборку лучших предложений по всей Молдове
                </p>
            </div>
            
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <!-- Property 1 -->
                <div class="property-card glass-effect rounded-xl overflow-hidden transition duration-500 ease-in-out hover:shadow-lg" 
                     data-city="Кишинёв" data-district="Буюканы" data-type="premium" data-coords="47.038673, 28.770806"
                     data-price="450000" data-area="250" data-rooms="5" data-floors="2" 
                     data-year="2018" data-land="10" data-parking="2" data-address="ул. Мирча чел Бэтрын 15"
                     data-full-address="Кишинёв, Буюканы, ул. Алба Юлия 194/2"
                     data-description="Элитная вилла в престижном районе Буюканы. Просторные светлые помещения, высокие потолки, панорамные окна. Современная отделка премиальными материалами. Кухня-гостиная с выходом на террасу и в сад. Мастер-спальня с гардеробной и собственной ванной комнатой. Дополнительно: камин, система 'умный дом', видеонаблюдение, автономное отопление. Ухоженный сад с зоной отдыха и летней кухней.">
                    <div class="relative">
                        <img src="https://images.unsplash.com/photo-1564013799919-ab600027ffc6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Luxury House" class="w-full h-64 object-cover">
                        <div class="type-tag premium-tag">ПРЕМИУМ</div>
                        <div class="price-tag gold-bg text-black font-bold px-4 py-2 rounded-full">
                            €450,000
                        </div>
                        <div class="agent-badge">
                            <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Agent" class="w-12 h-12 rounded-full border-2 border-white object-cover">
                        </div>
                    </div>
                    <div class="p-6">
                        <h3 class="text-xl font-semibold mb-2 truncate">Вилла в Буюканах</h3>
                        <div class="flex items-center text-gray-400 mb-4">
                            <i class="fas fa-map-marker-alt mr-2 gold-text"></i>
                            <span class="truncate">Кишинёв, Буюканы, ул. Алба Юлия 194/2</span>
                        </div>
                        <div class="grid grid-cols-3 gap-2 mb-4">
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Площадь</div>
                                <div class="font-semibold">250 м²</div>
                            </div>
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Комнат</div>
                                <div class="font-semibold">5</div>
                            </div>
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Этаж</div>
                                <div class="font-semibold">2</div>
                            </div>
                        </div>
                        <button class="view-details-btn w-full gold-bg text-black font-bold py-2 px-4 rounded-lg btn-gold hover:bg-yellow-600 transition duration-300" data-property="1" data-price="450000">
                            Подробнее
                        </button>
                    </div>
                </div>
                
                <!-- Property 2 -->
                <div class="property-card glass-effect rounded-xl overflow-hidden transition duration-500 ease-in-out hover:shadow-lg"
                     data-city="Кишинёв" data-district="Центр" data-type="Вторичка" data-coords="47.038673, 28.770806"
                     data-price="220000" data-area="120" data-rooms="3" data-floors="7" 
                     data-year="2015" data-parking="1" data-address="ул.Михай Еминеску 39"
                     data-full-address="Кишинёв, Центр, ул.Михай Еминеску 39"
                     data-description="Просторные апартаменты в историческом центре Кишинёва. Высокие потолки, панорамные окна с видом на город. Современный ремонт с использованием качественных материалов. Большая гостиная, отдельная кухня, 2 санузла. В шаговой доступности все инфраструктурные объекты: рестораны, театры, парки.">
                    <div class="relative">
                        <img src="https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Modern Apartment" class="w-full h-64 object-cover">
                        <div class="type-tag secondary-tag">ВТОРИЧКА</div>
                        <div class="price-tag gold-bg text-black font-bold px-4 py-2 rounded-full">
                            €220,000
                        </div>
                        <div class="agent-badge">
                            <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Agent" class="w-12 h-12 rounded-full border-2 border-white object-cover">
                        </div>
                    </div>
                    <div class="p-6">
                        <h3 class="text-xl font-semibold mb-2">Апартаменты в Центре</h3>
                        <div class="flex items-center text-gray-400 mb-4">
                            <i class="fas fa-map-marker-alt mr-2 gold-text"></i>
                            <span>Кишинёв, Центр, ул.Михай Еминеску 39</span>
                        </div>
                        <div class="grid grid-cols-3 gap-2 mb-4">
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Площадь</div>
                                <div class="font-semibold">120 м²</div>
                            </div>
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Комнат</div>
                                <div class="font-semibold">3</div>
                            </div>
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Этаж</div>
                                <div class="font-semibold">7/12</div>
                            </div>
                        </div>
                        <button class="view-details-btn w-full gold-bg text-black font-bold py-2 px-4 rounded-lg btn-gold hover:bg-yellow-600 transition duration-300" data-property="2" data-price="220000">
                            Подробнее
                        </button>
                    </div>
                </div>
                
                <!-- Property 3 -->
                <div class="property-card glass-effect rounded-xl overflow-hidden transition duration-500 ease-in-out hover:shadow-lg"
                     data-city="Кишинёв" data-district="Рышкановка" 
                     data-type="premium"
                     data-price="380000" data-coords="47.038673, 28.770806" 
                     data-address="ул. Албишоара 42"
                     data-area="180" data-rooms="4"
                     data-full-address="Кишинёв, Рышкановка, Мирона Костин 8">
                    <div class="relative">
                        <img src="https://images.unsplash.com/photo-1605276374104-dee2a0ed3cd6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Penthouse" class="w-full h-64 object-cover">
                        <div class="type-tag premium-tag">ПРЕМИУМ</div>
                        <div class="price-tag gold-bg text-black font-bold px-4 py-2 rounded-full">
                            €380,000
                        </div>
                        <div class="agent-badge">
                            <img src="https://randomuser.me/api/portraits/women/68.jpg" alt="Agent" class="w-12 h-12 rounded-full border-2 border-white object-cover">
                        </div>
                    </div>
                    <div class="p-6">
                        <h3 class="text-xl font-semibold mb-2">Пентхаус на Рышкановке</h3>
                        <div class="flex items-center text-gray-400 mb-4">
                            <i class="fas fa-map-marker-alt mr-2 gold-text"></i>
                            <span>Кишинёв, Рышкановка, ул. Мирона Костин 8</span>
                        </div>
                        <div class="grid grid-cols-3 gap-2 mb-4">
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Площадь</div>
                                <div class="font-semibold">180 м²</div>
                            </div>
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Комнат</div>
                                <div class="font-semibold">4</div>
                            </div>
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Этаж</div>
                                <div class="font-semibold">12</div>
                            </div>
                        </div>
                        <button class="view-details-btn w-full gold-bg text-black font-bold py-2 px-4 rounded-lg btn-gold hover:bg-yellow-600 transition duration-300" data-property="3" data-price="380000">
                            Подробнее
                        </button>
                    </div>
                </div>
                
                <!-- Property 4 -->
                <div class="property-card glass-effect rounded-xl overflow-hidden transition duration-500 ease-in-out hover:shadow-lg"
                     data-city="Вадул-луй-Водэ" data-district="Центр" 
                     data-type="premium"
                     data-price="320000" data-coords="47.087155, 29.082526"
                     data-address="ул. Штефан чел Маре 22"
                     data-area="300" data-rooms="6" data-land="15"
                     data-full-address="Вадул-луй-Водэ, ул. Штефан чел Маре 22">
                    <div class="relative">
                        <img src="https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Country House" class="w-full h-64 object-cover">
                        <div class="type-tag premium-tag">ПРЕМИУМ</div>
                        <div class="price-tag gold-bg text-black font-bold px-4 py-2 rounded-full">
                            €320,000
                        </div>
                        <div class="agent-badge">
                            <img src="https://randomuser.me/api/portraits/men/75.jpg" alt="Agent" class="w-12 h-12 rounded-full border-2 border-white object-cover">
                        </div>
                    </div>
                    <div class="p-6">
                        <h3 class="text-xl font-semibold mb-2">Загородный дом в Вадул-луй-Водэ</h3>
                        <div class="flex items-center text-gray-400 mb-4">
                            <i class="fas fa-map-marker-alt mr-2 gold-text"></i>
                            <span>Вадул-луй-Водэ, ул. Штефан чел Маре 22</span>
                        </div>
                        <div class="grid grid-cols-3 gap-2 mb-4">
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Площадь</div>
                                <div class="font-semibold">300 м²</div>
                            </div>
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Комнат</div>
                                <div class="font-semibold">6</div>
                            </div>
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Участок</div>
                                <div class="font-semibold">15 сот</div>
                            </div>
                        </div>
                        <button class="view-details-btn w-full gold-bg text-black font-bold py-2 px-4 rounded-lg btn-gold hover:bg-yellow-600 transition duration-300" data-property="4" data-price="320000">
                            Подробнее
                        </button>
                    </div>
                </div>
                
                <!-- Property 5 -->
                <div class="property-card glass-effect rounded-xl overflow-hidden transition duration-500 ease-in-out hover:shadow-lg"
                     data-city="Кишинёв" data-district="Центр" data-type="commercial" data-coords="47.026676, 28.838697"
                     data-price="280000" data-area="150" data-rooms="8" data-floors="3" 
                     data-full-address="Кишинёв, Центр, ул. Александр Пушкин 44/1"
                     data-description="Просторное офисное помещение в центре Кишинёва. 8 отдельных кабинетов, переговорная комната, кухня-столовая, 2 санузла. Современный ремонт, панорамные окна с видом на город. Отличная транспортная доступность, охраняемая парковка.">
                    <div class="relative">
                        <img src="https://images.unsplash.com/photo-1600607688969-a5bfcd646154?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Office Space" class="w-full h-64 object-cover">
                        <div class="type-tag commercial-tag">КОММЕРЧЕСКАЯ</div>
                        <div class="price-tag gold-bg text-black font-bold px-4 py-2 rounded-full">
                            €280,000
                        </div>
                        <div class="agent-badge">
                            <img src="https://randomuser.me/api/portraits/women/33.jpg" alt="Agent" class="w-12 h-12 rounded-full border-2 border-white object-cover">
                        </div>
                    </div>
                    <div class="p-6">
                        <h3 class="text-xl font-semibold mb-2">Офисное помещение</h3>
                        <div class="flex items-center text-gray-400 mb-4">
                            <i class="fas fa-map-marker-alt mr-2 gold-text"></i>
                            <span>Кишинёв, Центр, ул. Александр Пушкин 44/1</span>
                        </div>
                        <div class="grid grid-cols-3 gap-2 mb-4">
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Площадь</div>
                                <div class="font-semibold">150 м²</div>
                            </div>
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Кабинетов</div>
                                <div class="font-semibold">8</div>
                            </div>
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Этаж</div>
                                <div class="font-semibold">3</div>
                            </div>
                        </div>
                        <button class="view-details-btn w-full gold-bg text-black font-bold py-2 px-4 rounded-lg btn-gold hover:bg-yellow-600 transition duration-300" data-property="5" data-price="280000">
                            Подробнее
                        </button>
                    </div>
                </div>
                
                <!-- Property 6 -->
                <div class="property-card glass-effect rounded-xl overflow-hidden transition duration-500 ease-in-out hover:shadow-lg"
                     data-city="Кишинёв" data-district="Чеканы" data-type="newbuilding" data-coords="47.042654, 28.89339"
                     data-price="190000" data-area="90" data-rooms="2" data-floors="5" 
                     data-full-address="Кишинёв, Чеканы, ул. Петру Заднипру 14"
                     data-description="Современные апартаменты в новом жилом комплексе на Чеканах. Просторная гостиная с кухней-нишей, 2 спальни, санузел. Лоджия с панорамным остеклением. Подземный паркинг, детская площадка, зона отдыха. Отличная инфраструктура района.">
                    <div class="relative">
                        <img src="https://images.unsplash.com/photo-1600566752355-35792bedcfea?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Luxury Apartment" class="w-full h-64 object-cover">
                        <div class="type-tag newbuilding-tag">НОВОСТРОЙ</div>
                        <div class="price-tag gold-bg text-black font-bold px-4 py-2 rounded-full">
                            €190,000
                        </div>
                        <div class="agent-badge">
                            <img src="https://randomuser.me/api/portraits/men/44.jpg" alt="Agent" class="w-12 h-12 rounded-full border-2 border-white object-cover">
                        </div>
                    </div>
                    <div class="p-6">
                        <h3 class="text-xl font-semibold mb-2">Апартаменты на Чеканах</h3>
                        <div class="flex items-center text-gray-400 mb-4">
                            <i class="fas fa-map-marker-alt mr-2 gold-text"></i>
                            <span>Кишинёв, Чеканы, ул. Петру Заднипру 14</span>
                        </div>
                        <div class="grid grid-cols-3 gap-2 mb-4">
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Площадь</div>
                                <div class="font-semibold">90 м²</div>
                            </div>
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Комнат</div>
                                <div class="font-semibold">2</div>
                            </div>
                            <div class="text-center">
                                <div class="text-sm text-gray-400">Этаж</div>
                                <div class="font-semibold">5</div>
                            </div>
                        </div>
                        <button class="view-details-btn w-full gold-bg text-black font-bold py-2 px-4 rounded-lg btn-gold hover:bg-yellow-600 transition duration-300" data-property="6" data-price="190000">
                            Подробнее
                        </button>
                    </div>
                </div>
            </div>
            
            <div class="text-center mt-12">
                <button id="load-more-btn" class="gold-bg text-black font-bold py-3 px-8 rounded-lg btn-gold hover:bg-yellow-600 transition duration-300">
                    Показать ещё <i class="fas fa-chevron-down ml-2"></i>
                </button>
                <button id="close-btn" class="hidden btn-close text-white font-bold py-3 px-8 rounded-lg hover:bg-gray-800 transition duration-300">
                    Закрыть <i class="fas fa-chevron-up ml-2"></i>
                </button>
            </div>
        </div>
    </section>

    <!-- Property Map Section -->
    <section class="py-20 bg-black slide-up">
        <div class="container mx-auto px-4">
            <div class="text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold mb-4 gold-text">Наши объекты на карте</h2>
                <div class="w-20 h-1 gold-bg mx-auto mb-6"></div>
                <p class="text-gray-400 max-w-2xl mx-auto">Исследуйте расположение нашей недвижимости на интерактивной карте</p>
            </div>
            
            <div class="map-container glass-effect rounded-xl overflow-hidden">
                <div id="main-map" style="height: 100%;"></div>
            </div>
        </div>
    </section>

    <!-- Agents Section -->
    <section id="agents" class="py-20 bg-gradient-to-b from-gray-900 to-black slide-up">
        <div class="container mx-auto px-4">
            <div class="text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold mb-4 gold-text">Наши специалисты</h2>
                <div class="w-20 h-1 gold-bg mx-auto mb-6"></div>
                <p class="text-gray-400 max-w-2xl mx-auto">Профессиональные риелторы с многолетним опытом работы на рынке недвижимости</p>
            </div>
            
            <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8">
                <!-- Agent 1 -->
                <div class="glass-effect rounded-xl p-6 text-center transition duration-500 ease-in-out hover:shadow-lg">
                    <div class="agent-photo mx-auto mb-6 w-32 h-32 rounded-full overflow-hidden border-4 border-gray-700">
                        <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Agent" class="w-full h-full object-cover">
                    </div>
                    <h3 class="text-xl font-semibold mb-2">Анна Петренко</h3>
                    <p class="text-gray-400 mb-4">Старший риелтор</p>
                    <div class="gold-bg text-black font-bold px-3 py-1 rounded-full text-sm inline-block mb-4">
                        12 объектов
                    </div>
                    <div class="flex justify-center space-x-4 mb-4">
                        <a href="#" class="social-icon text-gray-400 hover:text-green-500"><i class="fab fa-whatsapp text-xl"></i></a>
                        <a href="#" class="social-icon text-gray-400 hover:text-blue-500"><i class="fab fa-telegram text-xl"></i></a>
                        <a href="#" class="social-icon text-gray-400 hover:text-purple-500"><i class="fab fa-viber text-xl"></i></a>
                        <a href="tel:+37312345678" class="social-icon text-gray-400 hover:text-gold-500"><i class="fas fa-phone-alt text-xl"></i></a>
                    </div>
                    <button class="w-full gold-bg text-black font-bold py-2 px-4 rounded-lg btn-gold hover:bg-yellow-600 transition duration-300">
                        Посмотреть объекты
                    </button>
                </div>
                
                <!-- Agent 2 -->
                <div class="glass-effect rounded-xl p-6 text-center transition duration-500 ease-in-out hover:shadow-lg">
                    <div class="agent-photo mx-auto mb-6 w-32 h-32 rounded-full overflow-hidden border-4 border-gray-700">
                        <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Agent" class="w-full h-full object-cover">
                    </div>
                    <h3 class="text-xl font-semibold mb-2">Виктор Кожухарь</h3>
                    <p class="text-gray-400 mb-4">Риелтор по коммерческой недвижимости</p>
                    <div class="gold-bg text-black font-bold px-3 py-1 rounded-full text-sm inline-block mb-4">
                        8 объектов
                    </div>
                    <div class="flex justify-center space-x-4 mb-4">
                        <a href="#" class="social-icon text-gray-400 hover:text-green-500"><i class="fab fa-whatsapp text-xl"></i></a>
                        <a href="#" class="social-icon text-gray-400 hover:text-blue-500"><i class="fab fa-telegram text-xl"></i></a>
                        <a href="#" class="social-icon text-gray-400 hover:text-purple-500"><i class="fab fa-viber text-xl"></i></a>
                        <a href="tel:+37312345678" class="social-icon text-gray-400 hover:text-gold-500"><i class="fas fa-phone-alt text-xl"></i></a>
                    </div>
                    <button class="w-full gold-bg text-black font-bold py-2 px-4 rounded-lg btn-gold hover:bg-yellow-600 transition duration-300">
                        Посмотреть объекты
                    </button>
                </div>
                
                <!-- Agent 3 -->
                <div class="glass-effect rounded-xl p-6 text-center transition duration-500 ease-in-out hover:shadow-lg">
                    <div class="agent-photo mx-auto mb-6 w-32 h-32 rounded-full overflow-hidden border-4 border-gray-700">
                        <img src="https://randomuser.me/api/portraits/women/68.jpg" alt="Agent" class="w-full h-full object-cover">
                    </div>
                    <h3 class="text-xl font-semibold mb-2">Елена Волошина</h3>
                    <p class="text-gray-400 mb-4">Эксперт по загородной недвижимости</p>
                    <div class="gold-bg text-black font-bold px-3 py-1 rounded-full text-sm inline-block mb-4">
                        15 объектов
                    </div>
                    <div class="flex justify-center space-x-4 mb-4">
                        <a href="#" class="social-icon text-gray-400 hover:text-green-500"><i class="fab fa-whatsapp text-xl"></i></a>
                        <a href="#" class="social-icon text-gray-400 hover:text-blue-500"><i class="fab fa-telegram text-xl"></i></a>
                        <a href="#" class="social-icon text-gray-400 hover:text-purple-500"><i class="fab fa-viber text-xl"></i></a>
                        <a href="tel:+37312345678" class="social-icon text-gray-400 hover:text-gold-500"><i class="fas fa-phone-alt text-xl"></i></a>
                    </div>
                    <button class="w-full gold-bg text-black font-bold py-2 px-4 rounded-lg btn-gold hover:bg-yellow-600 transition duration-300">
                        Посмотреть объекты
                    </button>
                </div>
                
                <!-- Agent 4 -->
                <div class="glass-effect rounded-xl p-6 text-center transition duration-500 ease-in-out hover:shadow-lg">
                    <div class="agent-photo mx-auto mb-6 w-32 h-32 rounded-full overflow-hidden border-4 border-gray-700">
                        <img src="https://randomuser.me/api/portraits/men/75.jpg" alt="Agent" class="w-full h-full object-cover">
                    </div>
                    <h3 class="text-xl font-semibold mb-2">Дмитрий Сырбу</h3>
                    <p class="text-gray-400 mb-4">Риелтор по новостройкам</p>
                    <div class="gold-bg text-black font-bold px-3 py-1 rounded-full text-sm inline-block mb-4">
                        10 объектов
                    </div>
                    <div class="flex justify-center space-x-4 mb-4">
                        <a href="#" class="social-icon text-gray-400 hover:text-green-500"><i class="fab fa-whatsapp text-xl"></i></a>
                        <a href="#" class="social-icon text-gray-400 hover:text-blue-500"><i class="fab fa-telegram text-xl"></i></a>
                        <a href="#" class="social-icon text-gray-400 hover:text-purple-500"><i class="fab fa-viber text-xl"></i></a>
                        <a href="tel:+37312345678" class="social-icon text-gray-400 hover:text-gold-500"><i class="fas fa-phone-alt text-xl"></i></a>
                    </div>
                    <button class="w-full gold-bg text-black font-bold py-2 px-4 rounded-lg btn-gold hover:bg-yellow-600 transition duration-300">
                        Посмотреть объекты
                    </button>
                </div>
            </div>
            
            <div class="text-center mt-12">
                <button id="load-more-agents-btn" class="gold-bg text-black font-bold py-3 px-8 rounded-lg btn-gold hover:bg-yellow-600 transition duration-300">
                    Показать ещё <i class="fas fa-chevron-down ml-2"></i>
                </button>
                <button id="close-agents-btn" class="hidden btn-close text-white font-bold py-3 px-8 rounded-lg hover:bg-gray-800 transition duration-300">
                    Закрыть <i class="fas fa-chevron-up ml-2"></i>
                </button>
            </div>
        </div>
    </section>

    <!-- About Company Section -->
    <section id="about" class="py-20 bg-black slide-up">
        <div class="container mx-auto px-4">
            <div class="text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold mb-4 gold-text">О компании</h2>
                <div class="w-20 h-1 gold-bg mx-auto mb-6"></div>
            </div>
            
            <div class="flex flex-col lg:flex-row items-center gap-12">
                <div class="lg:w-1/2 order-2 lg:order-1">
                    <div class="glass-effect rounded-xl p-8">
                        <h3 class="text-2xl font-semibold mb-6 gold-text">Venera Rielt</h3>
                        <p class="text-gray-400 mb-4">Мы — лидер на рынке элитной недвижимости Молдовы с 2010 года. Наша компания специализируется на премиальном сегменте жилой и коммерческой недвижимости.</p>
                        <p class="text-gray-400 mb-4">Наш подход сочетает в себе глубокое знание местного рынка, международные стандарты работы и индивидуальный подход к каждому клиенту.</p>
                        <p class="text-gray-400 mb-6">За годы работы мы помогли более 500 клиентам найти свой идеальный дом или выгодно инвестировать в недвижимость.</p>
                        <div class="grid grid-cols-2 md:grid-cols-4 gap-4 text-center">
                            <div class="glass-effect rounded-lg p-4">
                                <div class="text-3xl font-bold gold-text mb-2">12+</div>
                                <div class="text-sm text-gray-400">Лет опыта</div>
                            </div>
                            <div class="glass-effect rounded-lg p-4">
                                <div class="text-3xl font-bold gold-text mb-2">500+</div>
                                <div class="text-sm text-gray-400">Довольных клиентов</div>
                            </div>
                            <div class="glass-effect rounded-lg p-4">
                                <div class="text-3xl font-bold gold-text mb-2">45</div>
                                <div class="text-sm text-gray-400">Объектов в продаже</div>
                            </div>
                            <div class="glass-effect rounded-lg p-4">
                                <div class="text-3xl font-bold gold-text mb-2">100%</div>
                                <div class="text-sm text-gray-400">Гарантия надёжности</div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="lg:w-1/2 order-1 lg:order-2">
                    <div class="testimonial-carousel glass-effect rounded-xl overflow-hidden">
                        <!-- Testimonial 1 -->
                        <div class="testimonial-item active">
                            <img src="https://images.unsplash.com/photo-1600585152220-90363fe7e115?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Luxury Property" class="w-full h-96 object-cover">
                        </div>
                        
                        <!-- Testimonial 2 -->
                        <div class="testimonial-item">
                            <img src="https://images.unsplash.com/photo-1605146769289-440113cc3d00?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Luxury Property" class="w-full h-96 object-cover">
                        </div>
                        
                        <!-- Testimonial 3 -->
                        <div class="testimonial-item">
                            <img src="https://images.unsplash.com/photo-1600607688969-a5bfcd646154?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Luxury Property" class="w-full h-96 object-cover">
                        </div>
                        
                        <!-- Navigation arrows -->
                        <button class="carousel-prev absolute left-4 top-1/2 transform -translate-y-1/2 bg-black bg-opacity-50 text-white p-2 rounded-full hover:bg-opacity-70 transition">
                            <i class="fas fa-chevron-left"></i>
                        </button>
                        <button class="carousel-next absolute right-4 top-1/2 transform -translate-y-1/2 bg-black bg-opacity-50 text-white p-2 rounded-full hover:bg-opacity-70 transition">
                            <i class="fas fa-chevron-right"></i>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Contact Section -->
    <section id="contact" class="py-20 bg-gradient-to-b from-black to-gray-900 slide-up">
        <div class="container mx-auto px-4">
            <div class="text-center mb-16">
                <h2 class="text-3xl md:text-4xl font-bold mb-4 gold-text">Связаться с нами</h2>
                <div class="w-20 h-1 gold-bg mx-auto mb-6"></div>
                <p class="text-gray-400 max-w-2xl mx-auto">Оставьте свои контакты, и наш специалист свяжется с вами в ближайшее время</p>
            </div>
            
            <div class="flex flex-col lg:flex-row gap-12 justify-center">
                <div class="lg:w-1/3">
                    <div class="glass-effect rounded-xl p-8">
                        <h3 class="text-2xl font-semibold mb-6 gold-text">Контактная информация</h3>
                        
                        <div class="space-y-6">
                            <div class="flex items-start">
                                <div class="gold-text mr-4 mt-1">
                                    <i class="fas fa-map-marker-alt text-xl"></i>
                                </div>
                                <div>
                                    <h4 class="font-semibold mb-1">Адрес</h4>
                                    <p class="text-gray-400">Молдова, Кишинёв, ул. Пушкина 42, офис 15</p>
                                </div>
                            </div>
                            
                            <div class="flex items-start">
                                <div class="gold-text mr-4 mt-1">
                                    <i class="fas fa-phone-alt text-xl"></i>
                                </div>
                                <div>
                                    <h4 class="font-semibold mb-1">Телефон</h4>
                                    <p class="text-gray-400">+373 22 123 456</p>
                                    <p class="text-gray-400">+373 60 123 456 (Viber, WhatsApp)</p>
                                </div>
                            </div>
                            
                            <div class="flex items-start">
                                <div class="gold-text mr-4 mt-1">
                                    <i class="fas fa-envelope text-xl"></i>
                                </div>
                                <div>
                                    <h4 class="font-semibold mb-1">Email</h4>
                                    <p class="text-gray-400">info@venera-rielt.md</p>
                                </div>
                            </div>
                            
                            <div class="flex items-start">
                                <div class="gold-text mr-4 mt-1">
                                    <i class="fas fa-clock text-xl"></i>
                                </div>
                                <div>
                                    <h4 class="font-semibold mb-1">Часы работы</h4>
                                    <p class="text-gray-400">Пн-Пт: 9:00 - 18:00</p>
                                    <p class="text-gray-400">Сб: 10:00 - 15:00</p>
                                </div>
                            </div>
                            
                            <div class="pt-4">
                                <h4 class="font-semibold mb-4 gold-text">Мы в социальных сетях</h4>
                                <div class="flex space-x-4">
                                    <a href="#" class="social-icon text-gray-400 hover:text-blue-600"><i class="fab fa-facebook-f text-xl"></i></a>
                                    <a href="#" class="social-icon text-gray-400 hover:text-pink-600"><i class="fab fa-instagram text-xl"></i></a>
                                    <a href="#" class="social-icon text-gray-400 hover:text-red-600"><i class="fab fa-youtube text-xl"></i></a>
                                    <a href="#" class="social-icon text-gray-400 hover:text-white"><i class="fab fa-tiktok text-xl"></i></a>
                                    <a href="#" class="social-icon text-gray-400 hover:text-blue-500"><i class="fab fa-telegram text-xl"></i></a>
                                    <a href="#" class="social-icon text-gray-400 hover:text-green-500"><i class="fab fa-whatsapp text-xl"></i></a>
                                    <a href="#" class="social-icon text-gray-400 hover:text-purple-500"><i class="fab fa-viber text-xl"></i></a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="lg:w-1/3">
                    <div class="glass-effect rounded-xl p-8">
                        <h3 class="text-2xl font-semibold mb-6 gold-text">Форма обратной связи</h3>
                        
                        <form>
                            <div class="mb-6">
                                <label for="name" class="block text-gray-400 mb-2">Ваше имя</label>
                                <input type="text" id="name" class="w-full bg-gray-800 text-white p-3 rounded-lg border border-gray-700 focus:border-gold-500 focus:outline-none" placeholder="Введите ваше имя">
                            </div>
                            
                            <div class="mb-6">
                                <label for="phone" class="block text-gray-400 mb-2">Телефон</label>
                                <input type="tel" id="phone" class="w-full bg-gray-800 text-white p-3 rounded-lg border border-gray-700 focus:border-gold-500 focus:outline-none" placeholder="+373 XX XXX XXX">
                            </div>
                            
                            <div class="mb-6">
                                <label for="email" class="block text-gray-400 mb-2">Email</label>
                                <input type="email" id="email" class="w-full bg-gray-800 text-white p-3 rounded-lg border border-gray-700 focus:border-gold-500 focus:outline-none" placeholder="Введите ваш email">
                            </div>
                            
                            <div class="mb-6">
                                <label for="message" class="block text-gray-400 mb-2">Сообщение</label>
                                <textarea id="message" rows="4" class="w-full bg-gray-800 text-white p-3 rounded-lg border border-gray-700 focus:border-gold-500 focus:outline-none" placeholder="Опишите ваш запрос"></textarea>
                            </div>
                            
                            <button type="submit" class="w-full gold-bg text-black font-bold py-3 px-6 rounded-lg btn-gold hover:bg-yellow-600 transition duration-300">
                                Отправить <i class="fas fa-paper-plane ml-2"></i>
                            </button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-black py-12">
        <div class="container mx-auto px-4">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="mb-6 md:mb-0 text-center w-full">
                    <h2 class="text-3xl font-bold gold-text">Venera Rielt</h2>
                    <img src="https://i.ibb.co/35ZQ5g8X/logo.png" alt="Venera Rielt Logo" class="h-32 mx-auto mb-2">
                    <p class="text-gray-400 mt-2">REAL ESTATE MOLDOVA</p>
                </div>
                
                <div class="mb-6 md:mb-0">
                    <nav class="flex flex-wrap justify-center gap-4 md:gap-8">
                        <a href="#" id="footer-home-link" class="text-gray-400 hover:text-white transition">Главная</a>
                        <a href="#properties" class="text-gray-400 hover:text-white transition">Объекты</a>
                        <a href="#agents" class="text-gray-400 hover:text-white transition">Специалисты</a>
                        <a href="#about" class="text-gray-400 hover:text-white transition">О компании</a>
                        <a href="#contact" class="text-gray-400 hover:text-white transition">Контакты</a>
                    </nav>
                </div>
                
                <div class="flex space-x-4">
                    <a href="#" class="social-icon text-gray-400 hover:text-blue-600"><i class="fab fa-facebook-f"></i></a>
                    <a href="#" class="social-icon text-gray-400 hover:text-pink-600"><i class="fab fa-instagram"></i></a>
                    <a href="#" class="social-icon text-gray-400 hover:text-red-600"><i class="fab fa-youtube"></i></a>
                    <a href="#" class="social-icon text-gray-400 hover:text-white"><i class="fab fa-tiktok"></i></a>
                    <a href="#" class="social-icon text-gray-400 hover:text-blue-500"><i class="fab fa-telegram"></i></a>
                    <a href="#" class="social-icon text-gray-400 hover:text-green-500"><i class="fab fa-whatsapp"></i></a>
                    <a href="#" class="social-icon text-gray-400 hover:text-purple-500"><i class="fab fa-viber"></i></a>
                </div>
            </div>
            
            <div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-500">
                <p>© 2025 Venera Rielt. Все права защищены.</p>
            </div>
        </div>
    </footer>

    <!-- Map Overlay -->
    <div id="map-overlay" class="map-overlay">
        <button id="map-overlay-close" class="map-overlay-close">
            <i class="fas fa-times"></i>
        </button>
        <div id="map-overlay-container" class="map-overlay-container"></div>
    </div>

    <!-- Property Details Overlay -->
    <div id="property-overlay" class="overlay">
        <div class="property-details glass-effect rounded-xl max-w-4xl w-full relative">
            <button class="close-overlay absolute top-4 right-4 text-white text-2xl z-50 hover:text-gold-500">
                <i class="fas fa-times"></i>
            </button>
            
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-0">
                <div class="relative">
                    <!-- Carousel -->
                    <div class="property-carousel relative">
                        <div class="carousel-item active">
                            <img src="https://images.unsplash.com/photo-1564013799919-ab600027ffc6?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Property" class="w-full h-full object-cover rounded-tl-xl lg:rounded-bl-xl lg:rounded-tr-none">
                        </div>
                        <div class="carousel-item">
                            <img src="https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Property" class="w-full h-full object-cover rounded-tl-xl lg:rounded-bl-xl lg:rounded-tr-none">
                        </div>
                        <div class="carousel-item">
                            <img src="https://images.unsplash.com/photo-1600566752227-8688d0926d4b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Property" class="w-full h-full object-cover rounded-tl-xl lg:rounded-bl-xl lg:rounded-tr-none">
                        </div>
                        
                        <!-- Carousel controls -->
                        <button class="carousel-prev absolute left-4 top-1/2 transform -translate-y-1/2 bg-black bg-opacity-50 text-white p-2 rounded-full hover:bg-opacity-70 transition">
                            <i class="fas fa-chevron-left"></i>
                        </button>
                        <button class="carousel-next absolute right-4 top-1/2 transform -translate-y-1/2 bg-black bg-opacity-50 text-white p-2 rounded-full hover:bg-opacity-70 transition">
                            <i class="fas fa-chevron-right"></i>
                        </button>
                    </div>
                    
                    <!-- Map -->
                    <div class="p-4">
                        <h4 class="font-semibold mb-2 gold-text">Расположение</h4>
                        <div id="property-map" class="h-48 rounded-lg" style="background-color: #1a1a1a;"></div>
                    </div>
                </div>
                
                <div class="p-8">
                    <div class="flex justify-between items-start mb-6">
                        <h3 class="text-2xl font-bold">Вилла в Буюканах</h3>
                        <div class="gold-bg text-black font-bold px-4 py-2 rounded-full">
                            €450,000
                        </div>
                    </div>
                    
                    <div class="flex items-center text-gray-400 mb-6">
                        <i class="fas fa-map-marker-alt mr-2 gold-text"></i>
                        <span id="property-full-address"></span>
                    </div>
                    
                    <div class="grid grid-cols-2 md:grid-cols-3 gap-4 mb-6">
                        <div class="glass-effect rounded-lg p-3 text-center">
                            <div class="text-sm mb-1">Площадь</div>
                            <div class="font-semibold text-gray-400">250 м²</div>
                        </div>
                        <div class="glass-effect rounded-lg p-3 text-center">
                            <div class="text-sm mb-1">Комнат</div>
                            <div class="font-semibold text-gray-400">5</div>
                        </div>
                        <div class="glass-effect rounded-lg p-3 text-center">
                            <div class="text-sm mb-1">Этаж</div>
                            <div class="font-semibold text-gray-400">2</div>
                        </div>
                        <div class="glass-effect rounded-lg p-3 text-center">
                            <div class="text-sm mb-1">Состояние</div>
                            <div class="font-semibold text-gray-400">Евроремонт</div>
                        </div>
                        <div class="glass-effect rounded-lg p-3 text-center">
                            <div class="text-sm mb-1">Санузел</div>
                            <div class="font-semibold text-gray-400">Раздельный</div>
                        </div>
                        <div class="glass-effect rounded-lg p-3 text-center">
                            <div class="text-sm mb-1">Балкон</div>
                            <div class="font-semibold text-gray-400">2 лоджии</div>
                        </div>
                    </div>
                    
                    <div class="mb-6">
                        <h4 class="font-semibold mb-2 gold-text">Описание</h4>
                        <p class="text-gray-400">
                            Элитная вилла в престижном районе Буюканы. Просторные светлые помещения, высокие потолки, панорамные окна. 
                            Современная отделка премиальными материалами. Кухня-гостиная с выходом на террасу и в сад. 
                            Мастер-спальня с гардеробной и собственной ванной комнатой. Дополнительно: камин, система "умный дом", 
                            видеонаблюдение, автономное отопление. Ухоженный сад с зоной отдыха и летней кухней.
                        </p>
                    </div>
                    
                    <div class="mb-6">
                        <h4 class="font-semibold mb-2 gold-text">Риелтор</h4>
                        <div class="flex items-center">
                            <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Agent" class="w-12 h-12 rounded-full border-2 border-white object-cover mr-4">
                            <div>
                                <div class="font-semibold">Анна Петренко</div>
                                <div class="text-sm text-gray-400">Старший риелтор</div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="flex flex-col sm:flex-row gap-4">
                        <button class="flex-1 gold-bg text-black font-bold py-3 px-6 rounded-lg btn-gold hover:bg-yellow-600 transition duration-300">
                            <i class="fas fa-phone-alt mr-2"></i> Позвонить
                        </button>
                        <div class="flex-1 flex justify-center gap-4 items-center bg-transparent border border-gold-500 text-white font-bold py-3 px-6 rounded-lg hover:bg-gold-500 hover:text-black transition duration-300">
                            <a href="#" class="social-icon text-white hover:text-green-500">
                                <i class="fab fa-whatsapp text-2xl"></i>
                            </a>
                            <a href="#" class="social-icon text-white hover:text-blue-500">
                                <i class="fab fa-telegram text-2xl"></i>
                            </a>
                            <a href="#" class="social-icon text-white hover:text-purple-500">
                                <i class="fab fa-viber text-2xl"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // City districts data
        const cityDistricts = {
            'Кишинёв': ['Все районы', 'Центр', 'Ботаника', 'Рышкановка', 'Чеканы', 'Телецентр', 'Буюканы', 'Скулянка', 'Бубуечь', 'Дурлешты', 'Ватра', 'Друмул Таберей', 'Ставчены', 'Трушены'],
            'Бельцы': ['Все районы', 'Центр', 'Северный', 'Южный', 'Западный', 'Восточный'],
            'Тирасполь': ['Все районы', 'Центр', 'Микрорайон', 'Кировский', 'Октябрьский'],
            'Бендеры': ['Все районы', 'Центр', 'Ленинский', 'Фрунзенский'],
            'Рыбница': ['Все районы', 'Центр', 'Северный', 'Южный'],
            'Кагул': ['Все районы', 'Центр', 'Северный', 'Южный'],
            'Унгень': ['Все районы', 'Центр', 'Северный', 'Южный'],
            'Сороки': ['Все районы', 'Центр', 'Северный', 'Южный'],
            'Оргеев': ['Все районы', 'Центр', 'Северный', 'Южный'],
            'Комрат': ['Все районы', 'Центр', 'Северный', 'Южный'],
            'Чадыр-Лунга': ['Все районы', 'Центр', 'Северный', 'Южный'],
            'Страшены': ['Все районы', 'Центр'],
            'Дрокия': ['Все районы', 'Центр'],
            'Единцы': ['Все районы', 'Центр'],
            'Флорешты': ['Все районы', 'Центр'],
            'Резина': ['Все районы', 'Центр'],
            'Глодяны': ['Все районы', 'Центр'],
            'Кантемир': ['Все районы', 'Центр'],
            'Леова': ['Все районы', 'Центр'],
            'Ниспорены': ['Все районы', 'Центр'],
            'Окница': ['Все районы', 'Центр'],
            'Вадул-луй-Водэ': ['Все районы', 'Центр']
        };

        // Map initialization
        let mainMap, propertyMap;
        const propertyMarkers = [];
        const markerGroups = {}; // To track markers by coordinates
        
        // Property coordinates will be read from data-coords attribute

        function initMainMap() {
            mainMap = L.map('main-map').setView([47.0245, 28.8323], 13);
            
            L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
                attribution: '',
                detectRetina: true
            }).addTo(mainMap);

            // Custom icons for different property types
            const iconPremium = L.divIcon({
                className: 'custom-icon premium-icon',
                html: '<i class="fas fa-crown"></i>',
                iconSize: [30, 30]
            });

            const iconSecondary = L.divIcon({
                className: 'custom-icon secondary-icon',
                html: '<i class="fas fa-home"></i>',
                iconSize: [30, 30]
            });

            const iconNewbuilding = L.divIcon({
                className: 'custom-icon newbuilding-icon',
                html: '<i class="fas fa-building"></i>',
                iconSize: [30, 30]
            });

            const iconCommercial = L.divIcon({
                className: 'custom-icon commercial-icon',
                html: '<i class="fas fa-briefcase"></i>',
                iconSize: [30, 30]
            });

            const iconRental = L.divIcon({
                className: 'custom-icon rental-icon',
                html: '<i class="fas fa-key"></i>',
                iconSize: [30, 30]
            });

            // Collect all properties with their coordinates
            const properties = [];
            document.querySelectorAll('.property-card').forEach((card, index) => {
                card.dataset.index = index;
                const coords = card.dataset.coords;
                if (!coords) {
                    console.warn('Property card missing coordinates:', card.querySelector('h3').textContent);
                    return;
                }
                
                const [latStr, lngStr] = coords.split(',');
                const lat = parseFloat(latStr.trim());
                const lng = parseFloat(lngStr.trim());
                
                if (isNaN(lat) || isNaN(lng)) {
                    console.error('Invalid coordinates for property:', card.querySelector('h3').textContent, coords);
                    return;
                }
                
                properties.push({
                    card: card,
                    lat: lat,
                    lng: lng,
                    index: index
                });
            });

            // Group properties by coordinates
            const groupedProperties = {};
            properties.forEach(prop => {
                const key = `${prop.lat},${prop.lng}`;
                if (!groupedProperties[key]) {
                    groupedProperties[key] = [];
                }
                groupedProperties[key].push(prop);
            });

            // Create markers for each group
            Object.keys(groupedProperties).forEach(key => {
                const group = groupedProperties[key];
                const [lat, lng] = key.split(',').map(Number);
                const firstProperty = group[0];
                const card = firstProperty.card;
                
                const title = card.querySelector('h3').textContent;
                const typeTag = card.querySelector('.type-tag');
                const type = typeTag ? typeTag.textContent.trim() : '';
                
                let icon;
                switch(type.toLowerCase()) {
                    case 'премиум':
                        icon = iconPremium;
                        break;
                    case 'вторичка':
                        icon = iconSecondary;
                        break;
                    case 'новострой':
                        icon = iconNewbuilding;
                        break;
                    case 'коммерческая':
                        icon = iconCommercial;
                        break;
                    case 'аренда':
                        icon = iconRental;
                        break;
                    default:
                        icon = iconPremium;
                }

                // If multiple properties at same location, add badge
                if (group.length > 1) {
                    const badgeHtml = `<div style="position: relative; display: inline-block;">
                        ${icon.options.html}
                        <div style="position: absolute; top: -8px; right: -8px; background: #ff0000; color: white; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: bold; border: 2px solid white;">
                            ${group.length}
                        </div>
                    </div>`;
                    
                    icon = L.divIcon({
                        className: icon.options.className,
                        html: badgeHtml,
                        iconSize: [30, 30]
                    });
                }

                // Create marker
                const marker = L.marker([lat, lng], {
                    icon: icon,
                    title: title
                }).addTo(mainMap);
                
                // Bind popup with list of properties if multiple, or single property if one
                if (group.length > 1) {
                    let popupContent = `<div class="map-popup-list" style="max-height: 400px; overflow-y: auto; padding: 5px;">`;
                    
                    group.forEach(prop => {
                        const propertyCard = prop.card;
                        const propertyImage = propertyCard.querySelector('img').src;
                        const propertyTitle = propertyCard.querySelector('h3').textContent;
                        const propertyAddress = propertyCard.querySelector('.flex.items-center span').textContent;
                        const propertyPrice = propertyCard.querySelector('.price-tag').textContent;
                        const propertyType = propertyCard.querySelector('.type-tag').textContent;
                        const propertyFeatures = Array.from(propertyCard.querySelectorAll('.grid-cols-3 > div')).map(feature => ({
                            label: feature.querySelector('.text-sm').textContent,
                            value: feature.querySelector('.font-semibold').textContent
                        }));
                        
                        popupContent += `
                        <div class="map-popup-mini" style="width: 250px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
                            <div class="relative">
                                <img src="${propertyImage}" alt="${propertyTitle}" class="w-full h-32 object-cover rounded-t-lg">
                                <div class="absolute top-2 left-2 text-[10px] font-bold px-1.5 py-0.5 rounded ${propertyType === 'ПРЕМИУМ' ? 'bg-yellow-500 text-black' : 'bg-blue-500 text-white'}">
                                    ${propertyType}
                                </div>
                                <div class="absolute top-2 right-2 bg-yellow-500 text-black font-bold text-xs px-2 py-1 rounded-full">
                                    ${propertyPrice}
                                </div>
                            </div>
                            <div class="p-3">
                                <h4 class="font-bold text-sm mb-1 truncate">${propertyTitle}</h4>
                                <p class="text-gray-600 text-xs mb-2 truncate">
                                    <i class="fas fa-map-marker-alt text-yellow-500 mr-1"></i>
                                    ${propertyAddress}
                                </p>
                                <div class="grid grid-cols-3 gap-1 mb-3">
                                    ${propertyFeatures.slice(0, 3).map(feature => `
                                        <div class="text-center">
                                            <div class="text-xs text-gray-500">${feature.label}</div>
                                            <div class="text-sm font-semibold">${feature.value}</div>
                                        </div>
                                    `).join('')}
                                </div>
                                <button class="w-full bg-yellow-500 text-black text-xs font-bold py-2 px-3 rounded hover:bg-yellow-600 transition"
                                        onclick="openPropertyOverlay(${prop.index})">
                                    Подробнее
                                </button>
                            </div>
                        </div>`;
                    });
                    
                    popupContent += `</div>`;
                    
                    marker.bindPopup(popupContent, {
                        maxWidth: 270,
                        className: 'map-popup-list-container',
                        closeButton: true
                    });
                } else {
                    // Single property popup (existing code)
                    const propertyCard = card;
                    const propertyImage = propertyCard.querySelector('img').src;
                    const propertyTitle = propertyCard.querySelector('h3').textContent;
                    const propertyAddress = propertyCard.querySelector('.flex.items-center span').textContent;
                    const propertyPrice = propertyCard.querySelector('.price-tag').textContent;
                    const propertyType = propertyCard.querySelector('.type-tag').textContent;
                    const propertyFeatures = Array.from(propertyCard.querySelectorAll('.grid-cols-3 > div')).map(feature => ({
                        label: feature.querySelector('.text-sm').textContent,
                        value: feature.querySelector('.font-semibold').textContent
                    }));
                    
                    const popupContent = `
                        <div class="map-popup-mini" style="width: 250px;">
                            <div class="relative">
                                <img src="${propertyImage}" alt="${propertyTitle}" class="w-full h-32 object-cover rounded-t-lg">
                                <div class="absolute top-2 left-2 text-[10px] font-bold px-1.5 py-0.5 rounded ${propertyType === 'ПРЕМИУМ' ? 'bg-yellow-500 text-black' : 'bg-blue-500 text-white'}">
                                    ${propertyType}
                                </div>
                                <div class="absolute top-2 right-2 bg-yellow-500 text-black font-bold text-xs px-2 py-1 rounded-full">
                                    ${propertyPrice}
                                </div>
                            </div>
                            <div class="p-3">
                                <h4 class="font-bold text-sm mb-1 truncate">${propertyTitle}</h4>
                                <p class="text-gray-600 text-xs mb-2 truncate">
                                    <i class="fas fa-map-marker-alt text-yellow-500 mr-1"></i>
                                    ${propertyAddress}
                                </p>
                                <div class="grid grid-cols-3 gap-1 mb-3">
                                    ${propertyFeatures.slice(0, 3).map(feature => `
                                        <div class="text-center">
                                            <div class="text-xs text-gray-500">${feature.label}</div>
                                            <div class="text-sm font-semibold">${feature.value}</div>
                                        </div>
                                    `).join('')}
                                </div>
                                <button class="w-full bg-yellow-500 text-black text-xs font-bold py-2 px-3 rounded hover:bg-yellow-600 transition"
                                        onclick="openPropertyOverlay(${firstProperty.index})">
                                    Подробнее
                                </button>
                            </div>
                        </div>
                    `;
                    
                    marker.bindPopup(popupContent, {
                        maxWidth: 300,
                        minWidth: 200,
                        className: 'map-popup-mini-container',
                        closeButton: false,
                        offset: L.point(0, -20)
                    });
                }
                
                propertyMarkers.push(marker);
            });
        }

        function initPropertyMap(lat, lng) {
            // Remove existing map if it exists
            if (propertyMap) {
                propertyMap.remove();
                propertyMap = null;
            }
            
            // Create new map
            propertyMap = L.map('property-map', {
                zoomControl: false,
                attributionControl: false
            }).setView([lat, lng], 15);
            
            L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
                attribution: '',
                detectRetina: true
            }).addTo(propertyMap);

            // Add marker
            L.marker([lat, lng]).addTo(propertyMap);
            
            // Force map to update its size
            setTimeout(() => {
                propertyMap.invalidateSize();
            }, 0);
        }

        // Function to update districts based on selected city
        function updateDistricts() {
            const citySelect = document.getElementById('city');
            const districtSelect = document.getElementById('district');
            const selectedCity = citySelect.value;
            
            // Clear current options
            districtSelect.innerHTML = '';
            
            // Add new options based on selected city
            if (selectedCity && cityDistricts[selectedCity]) {
                cityDistricts[selectedCity].forEach(district => {
                    const option = document.createElement('option');
                    option.value = district;
                    option.textContent = district;
                    districtSelect.appendChild(option);
                });
            } else {
                // Default option if city not found
                const option = document.createElement('option');
                option.value = 'Все районы';
                option.textContent = 'Все районы';
                districtSelect.appendChild(option);
            }
        }

        // Initialize main map when page loads
        document.addEventListener('DOMContentLoaded', function() {
            initMainMap();
            
            // Set up city change event
            document.getElementById('city').addEventListener('change', updateDistricts);
            
            // Initialize districts for default city
            updateDistricts();
            
            // Show initial properties based on screen size
            const initialCount = window.innerWidth < 768 ? 5 : 6;
            document.querySelectorAll('.property-card').forEach((card, index) => {
                if (index < initialCount) {
                    card.classList.add('visible');
                }
            });
            visibleCount = initialCount;
            
            // Add expand button to main map
            const expandBtn = document.createElement('button');
            expandBtn.className = 'map-expand-btn';
            expandBtn.innerHTML = '<i class="fas fa-expand"></i>';
            expandBtn.title = 'Развернуть карту';
            document.querySelector('.map-container').appendChild(expandBtn);
            
            // Expand map functionality
            expandBtn.addEventListener('click', function() {
                document.getElementById('map-overlay').classList.add('active');
                
                // Initialize overlay map if not already initialized
                if (!window.overlayMap) {
                    window.overlayMap = L.map('map-overlay-container', {
                        zoomControl: true
                    }).setView(mainMap.getCenter(), mainMap.getZoom());
                    
                    L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
                        attribution: '',
                        detectRetina: true
                    }).addTo(window.overlayMap);
                    
                    // Copy markers from main map to overlay
                    propertyMarkers.forEach(marker => {
                        const overlayMarker = L.marker(marker.getLatLng(), {
                            icon: marker.options.icon
                        }).addTo(window.overlayMap);
                        
                        // Copy popup content
                        if (marker._popup) {
                            overlayMarker.bindPopup(marker._popup._content, {
                                maxWidth: 300,
                                minWidth: 200,
                                className: 'map-popup-mini-container',
                                closeButton: false,
                                offset: L.point(0, -20)
                            });
                        }
                    });
                } else {
                    // Update view if map already exists
                    window.overlayMap.setView(mainMap.getCenter(), mainMap.getZoom());
                }
            });
            
            // Close overlay map
            document.getElementById('map-overlay-close').addEventListener('click', function() {
                document.getElementById('map-overlay').classList.remove('active');
                enableBodyScroll();
            });
        });

        // Property search functionality
        document.getElementById('search-form').addEventListener('submit', function(e) {
            e.preventDefault();
            
            // Get filter values
            const city = document.getElementById('city').value;
            const district = document.getElementById('district').value;
            const propertyType = document.getElementById('property-type').value;
            const minPrice = parseInt(document.getElementById('min-price').value) || 0;
            const maxPrice = parseInt(document.getElementById('max-price').value) || Infinity;
            const minArea = parseInt(document.getElementById('min-area').value) || 0;
            const maxArea = parseInt(document.getElementById('max-area').value) || Infinity;
            
            // Get all property cards
            const propertyCards = document.querySelectorAll('.property-card');
            let hasMatches = false;
            
            // Reset pagination on new search
            const isMobile = window.innerWidth < 768;
            const itemsPerPage = isMobile ? 5 : 6;
            visibleCount = 0;
            
            // Filter properties
            let matchingCount = 0;
            const matchingCards = [];
            propertyCards.forEach(card => {
                const cardCity = card.dataset.city || '';
                const cardDistrict = card.dataset.district || '';
                const cardPrice = parseInt(card.dataset.price) || 0;
                const cardArea = parseInt(card.dataset.area) || 0;
                const cardType = card.dataset.type || '';
                
                // Check filters
                const cityMatch = city === 'Все города' || city === 'Все' || !city || 
                                city.toLowerCase() === cardCity.toLowerCase();
                const districtMatch = district === 'Все районы' || district === 'Все' || !district || 
                                    district.toLowerCase() === cardDistrict.toLowerCase();
                const typeMatch = propertyType === 'Все типы' || propertyType === 'Все' || !propertyType || 
                                propertyType.toLowerCase() === cardType.toLowerCase() ||
                                (propertyType === 'Премиум' && cardType.toLowerCase() === 'premium') ||
                                (propertyType === 'Вторичка' && cardType.toLowerCase() === 'вторичка') ||
                                (propertyType === 'Новострой' && cardType.toLowerCase() === 'newbuilding') ||
                                (propertyType === 'Аренда' && cardType.toLowerCase() === 'rental') ||
                                (propertyType === 'Коммерческая' && cardType.toLowerCase() === 'commercial');
                const priceMatch = cardPrice >= minPrice && cardPrice <= maxPrice;
                const areaMatch = cardArea >= minArea && cardArea <= maxArea;
                
                // Check matches and collect matching cards
                if (cityMatch && districtMatch && typeMatch && priceMatch && areaMatch) {
                    matchingCards.push(card);
                    matchingCount++;
                    hasMatches = true;
                }
                card.classList.remove('visible');
            });
            
            // Show first batch of matching properties
            const showCount = Math.min(itemsPerPage, matchingCount);
            for (let i = 0; i < showCount; i++) {
                matchingCards[i].classList.add('visible');
            }
            visibleCount = showCount;
            
            // Show/hide load more button
            if (matchingCount <= itemsPerPage) {
                loadMoreBtn.style.display = 'none';
                closeBtn.classList.add('hidden');
            } else {
                loadMoreBtn.style.display = 'inline-flex';
                closeBtn.classList.add('hidden');
            }
            
            // Show message if no matches
            if (!hasMatches) {
                alert('По вашему запросу ничего не найдено. Попробуйте изменить параметры поиска.');
            } else {
                // Scroll to properties section
                document.getElementById('properties').scrollIntoView({ behavior: 'smooth' });
            }
        });

        // Mobile menu toggle
        document.getElementById('mobile-menu-button').addEventListener('click', function() {
            const menu = document.getElementById('mobile-menu');
            menu.classList.toggle('hidden');
        });

        // Property details overlay
        const viewDetailsButtons = document.querySelectorAll('.view-details-btn');
        const overlay = document.getElementById('property-overlay');
        const closeOverlay = document.querySelector('.close-overlay');

        function disableBodyScroll() {
            document.body.style.overflow = 'hidden';
            document.body.style.touchAction = 'none';
        }

        function enableBodyScroll() {
            document.body.style.overflow = '';
            document.body.style.touchAction = '';
        }

        function openPropertyOverlay(buttonOrIndex) {
            // Handle both button element and index number
            const button = typeof buttonOrIndex === 'number' 
                ? document.querySelectorAll('.view-details-btn')[buttonOrIndex]
                : buttonOrIndex;
            
            disableBodyScroll();
            const propertyCard = button.closest('.property-card');
            const propertyData = propertyCard.dataset;
            const agentImg = propertyCard.querySelector('.agent-badge img').src;
            const agentName = propertyCard.querySelector('.p-6 h3').textContent;
            const propertyImg = propertyCard.querySelector('img').src;
            const propertyType = propertyCard.querySelector('.type-tag').textContent;
            
            // Update overlay with property data
            document.querySelector('#property-overlay .p-8 h3').textContent = agentName;
            const price = button.dataset.price ? `€${parseInt(button.dataset.price).toLocaleString()}` : `€${parseInt(propertyData.price || '0').toLocaleString()}`;
            document.querySelector('#property-overlay .p-8 .gold-bg').textContent = price;
            // Update full address from data attribute
            const fullAddress = propertyData.fullAddress || `${propertyData.city || ''}, ${propertyData.district || ''}, ${propertyData.address || ''}`.replace(/, , /g, ', ').replace(/^, |, $/g, '');
            document.getElementById('property-full-address').textContent = fullAddress;
            
            // Update property features
            document.querySelector('#property-overlay .grid-cols-2 div:nth-child(1) div.font-semibold').textContent = `${propertyData.area} м²`;
            document.querySelector('#property-overlay .grid-cols-2 div:nth-child(2) div.font-semibold').textContent = propertyData.rooms;
            document.querySelector('#property-overlay .grid-cols-2 div:nth-child(3) div.font-semibold').textContent = propertyData.floors || '1';
            document.querySelector('#property-overlay .grid-cols-2 div:nth-child(4) div.font-semibold').textContent = propertyData.condition || 'Евроремонт';
            document.querySelector('#property-overlay .grid-cols-2 div:nth-child(5) div.font-semibold').textContent = propertyData.bathroom || 'Раздельный';
            document.querySelector('#property-overlay .grid-cols-2 div:nth-child(6) div.font-semibold').textContent = propertyData.balcony || '1 балкон';
            
            // Update description
            document.querySelector('#property-overlay .p-8 p.text-gray-400').textContent = 
                propertyData.description || 'Описание данного объекта недвижимости.';
            
            // Update agent info
            document.querySelector('#property-overlay .flex.items-center img').src = agentImg;
            document.querySelector('#property-overlay .font-semibold').textContent = agentName.split(' ')[0] + ' ' + agentName.split(' ')[1];
            
            // Update images in carousel
            const carouselItems = document.querySelectorAll('.property-carousel .carousel-item');
            carouselItems.forEach(item => {
                item.querySelector('img').src = propertyImg;
            });
            
            // Get coordinates from property card and init map
            const coords = propertyCard.dataset.coords;
            if (coords) {
                const [lat, lng] = coords.split(',').map(Number);
                setTimeout(() => {
                    initPropertyMap(lat, lng);
                }, 100);
            } else {
                // Default coordinates if no coords specified
                setTimeout(() => {
                    initPropertyMap(47.0245, 28.8323);
                }, 100);
            }
            
            overlay.classList.add('active');
            document.body.style.overflow = 'hidden';
        }

        viewDetailsButtons.forEach(button => {
            button.addEventListener('click', function(e) {
                e.preventDefault();
                openPropertyOverlay(this);
            });
        });

        closeOverlay.addEventListener('click', function(e) {
            e.preventDefault();
            overlay.classList.remove('active');
            enableBodyScroll();
            
            // Clean up map when overlay closes
            if (propertyMap) {
                propertyMap.remove();
                propertyMap = null;
            }
        });

        // Close overlay when clicking outside content
        overlay.addEventListener('click', function(e) {
            if (e.target === overlay) {
                overlay.classList.remove('active');
                enableBodyScroll();
            }
        });

        // Close overlay when clicking outside content
        overlay.addEventListener('click', function(e) {
            if (e.target === overlay) {
                overlay.classList.remove('active');
                document.body.style.overflow = 'auto';
            }
        });

        // Carousel functionality for property details
        let currentPropertySlide = 0;
        const propertySlides = document.querySelectorAll('.property-carousel .carousel-item');
        const propertyPrev = document.querySelector('.property-carousel .carousel-prev');
        const propertyNext = document.querySelector('.property-carousel .carousel-next');

        function showPropertySlide(n) {
            propertySlides.forEach(slide => slide.classList.remove('active'));
            currentPropertySlide = (n + propertySlides.length) % propertySlides.length;
            propertySlides[currentPropertySlide].classList.add('active');
        }

        propertyPrev.addEventListener('click', () => showPropertySlide(currentPropertySlide - 1));
        propertyNext.addEventListener('click', () => showPropertySlide(currentPropertySlide + 1));

        // Testimonial carousel
        let currentTestimonial = 0;
        const testimonials = document.querySelectorAll('.testimonial-item');
        const testimonialPrev = document.querySelector('.carousel-prev');
        const testimonialNext = document.querySelector('.carousel-next');

        function showTestimonial(n) {
            testimonials.forEach(testimonial => testimonial.classList.remove('active'));
            currentTestimonial = (n + testimonials.length) % testimonials.length;
            testimonials[currentTestimonial].classList.add('active');
        }

        testimonialPrev.addEventListener('click', () => showTestimonial(currentTestimonial - 1));
        testimonialNext.addEventListener('click', () => showTestimonial(currentTestimonial + 1));

        // Auto-rotate testimonials
        setInterval(() => {
            showTestimonial(currentTestimonial + 1);
        }, 5000);

        // Reset page to initial state function
        function resetPage() {
            // 1. Reset search filters
            document.getElementById('search-form').reset();
            updateDistricts(); // Reset districts dropdown
            
            // 2. Show initial properties count based on screen size
            const initialCount = window.innerWidth < 768 ? 5 : 6;
            let visibleProperties = 0;
            
            document.querySelectorAll('.property-card').forEach((card, index) => {
                card.classList.remove('hidden'); // Make sure all cards are visible for filtering
                
                if (index < initialCount) {
                    card.classList.add('visible');
                    visibleProperties++;
                } else {
                    card.classList.remove('visible');
                }
            });
            
            // 3. Update pagination buttons
            visibleCount = visibleProperties;
            const totalProperties = document.querySelectorAll('.property-card').length;
            
            // 5. Hide "Show more" button if there are no more properties to load
            if (visibleCount >= totalProperties) {
                loadMoreBtn.style.display = 'none';
                closeBtn.classList.add('hidden');
            } else {
                loadMoreBtn.style.display = 'inline-flex';
                closeBtn.classList.add('hidden');
            }
            
            // Reset agents to initial state
            const initialAgentsCount = 4;
            document.querySelectorAll('#agents .glass-effect').forEach((card, index) => {
                if (index < initialAgentsCount) {
                    card.classList.remove('hidden');
                } else {
                    card.classList.add('hidden');
                }
            });
            
            // Close any open overlays
            overlay.classList.remove('active');
            document.getElementById('map-overlay').classList.remove('active');
            document.body.style.overflow = 'auto';
            
            // Close mobile menu if open
            document.getElementById('mobile-menu').classList.add('hidden');
            
            // Scroll to top smoothly
            window.scrollTo({
                top: 0,
                behavior: 'smooth'
            });
            
            // Reset main map view
            if (mainMap) {
                mainMap.setView([47.0245, 28.8323], 13);
            }
        }

        // Reset page when clicking logo or home links
        document.querySelectorAll('#home-link, #mobile-home-link, #footer-home-link, #logo-link').forEach(link => {
            link.addEventListener('click', function(e) {
                e.preventDefault();
                resetPage();
            });
        });

        // Smooth scrolling for anchor links
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function(e) {
                e.preventDefault();
                
                const targetId = this.getAttribute('href');
                if (targetId === '#') return;
                
                const targetElement = document.querySelector(targetId);
                if (targetElement) {
                    window.scrollTo({
                        top: targetElement.offsetTop - 80,
                        behavior: 'smooth'
                    });
                    
                    // Close mobile menu if open
                    const mobileMenu = document.getElementById('mobile-menu');
                    mobileMenu.classList.add('hidden');
                }
            });
        });

        // Agents pagination
        const agentCards = document.querySelectorAll('#agents .glass-effect');
        const loadMoreAgentsBtn = document.getElementById('load-more-agents-btn');
        const closeAgentsBtn = document.getElementById('close-agents-btn');
        let visibleAgentsCount = 0;
        const agentsPerPage = window.innerWidth < 768 ? 3 : 4;

        function showNextAgents() {
            const nextItems = Math.min(visibleAgentsCount + agentsPerPage, agentCards.length);
            
            for (let i = visibleAgentsCount; i < nextItems; i++) {
                agentCards[i].classList.remove('hidden');
            }
            
            visibleAgentsCount = nextItems;
            
            if (visibleAgentsCount >= agentCards.length) {
                loadMoreAgentsBtn.classList.add('hidden');
                closeAgentsBtn.classList.remove('hidden');
            }
        }

        function closeAgents() {
            // Hide all agents except first 3
            agentCards.forEach((card, index) => {
                if (index >= agentsPerPage) {
                    card.classList.add('hidden');
                }
            });
            
            visibleAgentsCount = agentsPerPage;
            closeAgentsBtn.classList.add('hidden');
            loadMoreAgentsBtn.classList.remove('hidden');
        }

        // Initialize - show first 3 agents on mobile, 4 on desktop
        // Initialize agents display based on screen size
        function initAgentsDisplay() {
            const agentsToShow = window.innerWidth < 768 ? 3 : 4;
            
            agentCards.forEach((card, index) => {
                if (index >= agentsToShow) {
                    card.classList.add('hidden');
                } else {
                    card.classList.remove('hidden');
                }
            });
            
            visibleAgentsCount = Math.min(agentsToShow, agentCards.length);
            if (agentCards.length <= agentsToShow) {
                loadMoreAgentsBtn.classList.add('hidden');
            } else {
                loadMoreAgentsBtn.classList.remove('hidden');
            }
        }
        
        // Initial setup
        initAgentsDisplay();
        
        // Update on resize
        window.addEventListener('resize', initAgentsDisplay);

        // Load more on button click
        loadMoreAgentsBtn.addEventListener('click', showNextAgents);
        closeAgentsBtn.addEventListener('click', closeAgents);

        // Property pagination
        const propertyCards = document.querySelectorAll('.property-card');
        const loadMoreBtn = document.getElementById('load-more-btn');
        const closeBtn = document.getElementById('close-btn');
        let visibleCount = 0;
        const itemsPerPage = 5;

        function showNextProperties() {
            const isMobile = window.innerWidth < 768;
            const itemsPerPage = isMobile ? 5 : 6;
            const hiddenCards = Array.from(document.querySelectorAll('.property-card:not(.visible)'));
            
            // Show next batch
            const showCount = Math.min(itemsPerPage, hiddenCards.length);
            for (let i = 0; i < showCount; i++) {
                hiddenCards[i].classList.add('visible');
            }
            visibleCount += showCount;
            
            // Update buttons
            const remainingHidden = document.querySelectorAll('.property-card:not(.visible)').length;
            if (remainingHidden === 0) {
                loadMoreBtn.style.display = 'none';
                closeBtn.classList.remove('hidden');
            } else {
                loadMoreBtn.style.display = 'inline-flex';
                closeBtn.classList.add('hidden');
            }
        }

        function closeProperties() {
            const initialCount = window.innerWidth < 768 ? 5 : 6;
            document.querySelectorAll('.property-card').forEach((card, index) => {
                if (index < initialCount) {
                    card.classList.add('visible');
                } else {
                    card.classList.remove('visible');
                }
            });
            
            visibleCount = initialCount;
            closeBtn.classList.add('hidden');
            
            // Only show "Show more" if there are properties to load
            if (document.querySelectorAll('.property-card').length > initialCount) {
                loadMoreBtn.style.display = 'inline-flex';
            } else {
                loadMoreBtn.style.display = 'none';
            }
        }

        // Initialize based on screen size
        const initialCount = window.innerWidth < 768 ? 5 : 6;
        document.querySelectorAll('.property-card').forEach((card, index) => {
            if (index < initialCount) {
                card.classList.add('visible');
            }
        });
        visibleCount = initialCount;
        
        if (propertyCards.length <= initialCount) {
            loadMoreBtn.classList.add('hidden');
        }

        // Load more on button click
        loadMoreBtn.addEventListener('click', showNextProperties);
        closeBtn.addEventListener('click', closeProperties);

        // Animation on scroll
        const animatedElements = document.querySelectorAll('.slide-up, .fade-in');
        
        function checkScroll() {
            animatedElements.forEach(element => {
                const elementTop = element.getBoundingClientRect().top;
                const windowHeight = window.innerHeight;
                
                if (elementTop < windowHeight - 100) {
                    element.style.opacity = '1';
                    element.style.transform = 'translateY(0)';
                }
            });
        }
        
        // Initial check
        checkScroll();
        
        // Handle window resize
        window.addEventListener('resize', function() {
            const initialCount = window.innerWidth < 768 ? 5 : 6;
            if (visibleCount <= initialCount) {
                propertyCards.forEach((card, index) => {
                    if (index < initialCount) {
                        card.classList.add('visible');
                    } else {
                        card.classList.remove('visible');
                    }
                });
                visibleCount = initialCount;
                closeBtn.classList.add('hidden');
            }
            
            if (propertyCards.length <= initialCount) {
                loadMoreBtn.classList.add('hidden');
            } else {
                loadMoreBtn.classList.remove('hidden');
            }
        });

        // Check on scroll
        window.addEventListener('scroll', checkScroll);
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=DISSASTER/vr" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>