File size: 32,983 Bytes
516f522
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Boston Real Estate Market Analysis</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">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#003087',
                        secondary: '#C8102E',
                        accent: '#FFC72C',
                        dark: '#1a202c',
                        light: '#f7fafc'
                    }
                }
            }
        }
    </script>
    <style>
        .filter-card {
            transition: all 0.3s ease;
        }
        .filter-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        }
        .data-table th {
            background-color: #003087;
            color: white;
        }
        .data-table tr:nth-child(even) {
            background-color: #f0f4f8;
        }
        .data-table tr:hover {
            background-color: #e2e8f0;
        }
        .stat-card {
            transition: all 0.3s ease;
        }
        .stat-card:hover {
            transform: scale(1.02);
        }
        .upload-area {
            border: 2px dashed #cbd5e0;
            transition: all 0.3s ease;
        }
        .upload-area:hover {
            border-color: #003087;
            background-color: #f0f4f8;
        }
        .filter-section {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease-out;
        }
        .filter-section.expanded {
            max-height: 1000px;
        }
    </style>
</head>
<body class="bg-gray-100 font-sans">
    <!-- Header -->
    <header class="bg-primary text-white shadow-lg">
        <div class="container mx-auto px-4 py-6">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="flex items-center mb-4 md:mb-0">
                    <i class="fas fa-home text-3xl mr-3"></i>
                    <h1 class="text-2xl md:text-3xl font-bold">Boston Real Estate Market Analysis</h1>
                </div>
                <div class="flex items-center space-x-4">
                    <button class="bg-secondary hover:bg-red-800 text-white px-4 py-2 rounded-lg transition flex items-center">
                        <i class="fas fa-download mr-2"></i> Export Data
                    </button>
                    <button class="bg-accent hover:bg-yellow-600 text-dark px-4 py-2 rounded-lg transition flex items-center">
                        <i class="fas fa-sync-alt mr-2"></i> Refresh
                    </button>
                </div>
            </div>
        </div>
    </header>

    <!-- Main Content -->
    <main class="container mx-auto px-4 py-8">
        <!-- Upload Section -->
        <section class="mb-10 bg-white rounded-xl shadow-md p-6">
            <h2 class="text-xl font-bold text-dark mb-4 flex items-center">
                <i class="fas fa-file-upload text-primary mr-2"></i> Upload Market Data
            </h2>
            <div class="upload-area rounded-lg p-8 text-center cursor-pointer" id="uploadArea">
                <i class="fas fa-cloud-upload-alt text-4xl text-gray-400 mb-4"></i>
                <p class="text-gray-600 mb-2">Drag & drop your CSV or XLSX file here</p>
                <p class="text-gray-500 text-sm mb-4">or</p>
                <button class="bg-primary hover:bg-blue-800 text-white px-6 py-2 rounded-lg transition">
                    <i class="fas fa-folder-open mr-2"></i> Browse Files
                </button>
                <input type="file" id="fileInput" class="hidden" accept=".csv, .xlsx">
                <p class="text-gray-500 text-xs mt-4">Supported formats: CSV, XLSX (Max size: 10MB)</p>
            </div>
            <div class="mt-4 text-center text-sm text-gray-600">
                <p>Sample dataset included. Upload your own data to analyze Boston real estate trends.</p>
            </div>
        </section>

        <!-- Filters Section -->
        <section class="mb-10">
            <div class="flex justify-between items-center mb-4">
                <h2 class="text-xl font-bold text-dark flex items-center">
                    <i class="fas fa-filter text-primary mr-2"></i> Market Filters
                </h2>
                <button id="toggleFilters" class="text-primary hover:text-blue-800 flex items-center">
                    <span id="toggleText">Expand</span>
                    <i class="fas fa-chevron-down ml-2" id="toggleIcon"></i>
                </button>
            </div>
            
            <div class="filter-section bg-white rounded-xl shadow-md p-6" id="filterSection">
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                    <!-- Neighborhood Filter -->
                    <div class="filter-card bg-light p-5 rounded-lg border border-gray-200">
                        <h3 class="font-semibold text-dark mb-3 flex items-center">
                            <i class="fas fa-map-marker-alt text-secondary mr-2"></i> Neighborhood
                        </h3>
                        <select class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent">
                            <option value="">All Neighborhoods</option>
                            <option value="Back Bay">Back Bay</option>
                            <option value="Beacon Hill">Beacon Hill</option>
                            <option value="Charlestown">Charlestown</option>
                            <option value="Dorchester">Dorchester</option>
                            <option value="East Boston">East Boston</option>
                            <option value="Hyde Park">Hyde Park</option>
                            <option value="Jamaica Plain">Jamaica Plain</option>
                            <option value="Roxbury">Roxbury</option>
                            <option value="South Boston">South Boston</option>
                            <option value="South End">South End</option>
                            <option value="West Roxbury">West Roxbury</option>
                        </select>
                    </div>
                    
                    <!-- Price Range Filter -->
                    <div class="filter-card bg-light p-5 rounded-lg border border-gray-200">
                        <h3 class="font-semibold text-dark mb-3 flex items-center">
                            <i class="fas fa-dollar-sign text-secondary mr-2"></i> Price Range
                        </h3>
                        <select class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent">
                            <option value="">All Price Ranges</option>
                            <option value="<400000">Under $400K</option>
                            <option value="400000-599000">$400K - $599K</option>
                            <option value="600000-799000">$600K - $799K</option>
                            <option value="800000-999000">$800K - $999K</option>
                            <option value="1000000-1499000">$1M - $1.49M</option>
                            <option value="1500000-2999000">$1.5M - $2.99M</option>
                            <option value=">3000000">Over $3M</option>
                        </select>
                    </div>
                    
                    <!-- Bedrooms Filter -->
                    <div class="filter-card bg-light p-5 rounded-lg border border-gray-200">
                        <h3 class="font-semibold text-dark mb-3 flex items-center">
                            <i class="fas fa-bed text-secondary mr-2"></i> Bedrooms
                        </h3>
                        <select class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent">
                            <option value="">Any Number</option>
                            <option value="0">Studio</option>
                            <option value="1">1 Bedroom</option>
                            <option value="2">2 Bedrooms</option>
                            <option value="3">3 Bedrooms</option>
                            <option value="4">4+ Bedrooms</option>
                        </select>
                    </div>
                    
                    <!-- Living Area Filter -->
                    <div class="filter-card bg-light p-5 rounded-lg border border-gray-200">
                        <h3 class="font-semibold text-dark mb-3 flex items-center">
                            <i class="fas fa-ruler-combined text-secondary mr-2"></i> Living Area
                        </h3>
                        <select class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent">
                            <option value="">All Sizes</option>
                            <option value="<500">Under 500 SqFt</option>
                            <option value="501-1000">501-1000 SqFt</option>
                            <option value="1001-1500">1001-1500 SqFt</option>
                            <option value="1501-2000">1501-2000 SqFt</option>
                            <option value="2001-2500">2001-2500 SqFt</option>
                            <option value="2501-3000">2501-3000 SqFt</option>
                            <option value=">3000">Over 3000 SqFt</option>
                        </select>
                    </div>
                    
                    <!-- List Date Range -->
                    <div class="filter-card bg-light p-5 rounded-lg border border-gray-200">
                        <h3 class="font-semibold text-dark mb-3 flex items-center">
                            <i class="fas fa-calendar-plus text-secondary mr-2"></i> List Date
                        </h3>
                        <div class="flex space-x-2">
                            <input type="date" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent">
                            <input type="date" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent">
                        </div>
                    </div>
                    
                    <!-- Sale Date Range -->
                    <div class="filter-card bg-light p-5 rounded-lg border border-gray-200">
                        <h3 class="font-semibold text-dark mb-3 flex items-center">
                            <i class="fas fa-calendar-check text-secondary mr-2"></i> Sale Date
                        </h3>
                        <div class="flex space-x-2">
                            <input type="date" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent">
                            <input type="date" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent">
                        </div>
                    </div>
                </div>
                
                <div class="mt-6 flex justify-end">
                    <button class="bg-primary hover:bg-blue-800 text-white px-6 py-3 rounded-lg transition flex items-center">
                        <i class="fas fa-search mr-2"></i> Apply Filters
                    </button>
                </div>
            </div>
        </section>

        <!-- Statistics Overview -->
        <section class="mb-10">
            <h2 class="text-xl font-bold text-dark mb-4 flex items-center">
                <i class="fas fa-chart-line text-primary mr-2"></i> Market Overview
            </h2>
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
                <!-- Average Price -->
                <div class="stat-card bg-white p-6 rounded-xl shadow-md border-l-4 border-primary">
                    <div class="flex justify-between items-start">
                        <div>
                            <p class="text-gray-500 text-sm">Average Sale Price</p>
                            <h3 class="text-2xl font-bold text-dark mt-1">$1,245,000</h3>
                        </div>
                        <div class="bg-blue-100 p-3 rounded-full">
                            <i class="fas fa-dollar-sign text-primary text-xl"></i>
                        </div>
                    </div>
                    <div class="mt-4 flex items-center text-sm">
                        <span class="text-green-600 flex items-center">
                            <i class="fas fa-arrow-up mr-1"></i> 8.2%
                        </span>
                        <span class="text-gray-500 ml-2">vs last year</span>
                    </div>
                </div>
                
                <!-- Median Price -->
                <div class="stat-card bg-white p-6 rounded-xl shadow-md border-l-4 border-secondary">
                    <div class="flex justify-between items-start">
                        <div>
                            <p class="text-gray-500 text-sm">Median Sale Price</p>
                            <h3 class="text-2xl font-bold text-dark mt-1">$985,000</h3>
                        </div>
                        <div class="bg-red-100 p-3 rounded-full">
                            <i class="fas fa-coins text-secondary text-xl"></i>
                        </div>
                    </div>
                    <div class="mt-4 flex items-center text-sm">
                        <span class="text-green-600 flex items-center">
                            <i class="fas fa-arrow-up mr-1"></i> 6.7%
                        </span>
                        <span class="text-gray-500 ml-2">vs last year</span>
                    </div>
                </div>
                
                <!-- Days on Market -->
                <div class="stat-card bg-white p-6 rounded-xl shadow-md border-l-4 border-accent">
                    <div class="flex justify-between items-start">
                        <div>
                            <p class="text-gray-500 text-sm">Avg. Days on Market</p>
                            <h3 class="text-2xl font-bold text-dark mt-1">42 Days</h3>
                        </div>
                        <div class="bg-yellow-100 p-3 rounded-full">
                            <i class="fas fa-clock text-accent text-xl"></i>
                        </div>
                    </div>
                    <div class="mt-4 flex items-center text-sm">
                        <span class="text-red-600 flex items-center">
                            <i class="fas fa-arrow-down mr-1"></i> 12%
                        </span>
                        <span class="text-gray-500 ml-2">vs last year</span>
                    </div>
                </div>
                
                <!-- Sales Volume -->
                <div class="stat-card bg-white p-6 rounded-xl shadow-md border-l-4 border-green-500">
                    <div class="flex justify-between items-start">
                        <div>
                            <p class="text-gray-500 text-sm">Sales Volume</p>
                            <h3 class="text-2xl font-bold text-dark mt-1">1,248</h3>
                        </div>
                        <div class="bg-green-100 p-3 rounded-full">
                            <i class="fas fa-home text-green-500 text-xl"></i>
                        </div>
                    </div>
                    <div class="mt-4 flex items-center text-sm">
                        <span class="text-green-600 flex items-center">
                            <i class="fas fa-arrow-up mr-1"></i> 15.3%
                        </span>
                        <span class="text-gray-500 ml-2">vs last year</span>
                    </div>
                </div>
            </div>
        </section>

        <!-- Data Table -->
        <section class="mb-10">
            <div class="flex justify-between items-center mb-4">
                <h2 class="text-xl font-bold text-dark flex items-center">
                    <i class="fas fa-table text-primary mr-2"></i> Market Data
                </h2>
                <div class="flex space-x-2">
                    <button class="bg-gray-200 hover:bg-gray-300 text-dark px-4 py-2 rounded-lg transition flex items-center">
                        <i class="fas fa-download mr-2"></i> Export
                    </button>
                    <button class="bg-gray-200 hover:bg-gray-300 text-dark px-4 py-2 rounded-lg transition flex items-center">
                        <i class="fas fa-chart-bar mr-2"></i> Visualize
                    </button>
                </div>
            </div>
            
            <div class="bg-white rounded-xl shadow-md overflow-hidden">
                <div class="overflow-x-auto">
                    <table class="data-table min-w-full">
                        <thead>
                            <tr>
                                <th class="py-3 px-4 text-left">Listing ID</th>
                                <th class="py-3 px-4 text-left">Address</th>
                                <th class="py-3 px-4 text-left">Neighborhood</th>
                                <th class="py-3 px-4 text-left">Price</th>
                                <th class="py-3 px-4 text-left">Bedrooms</th>
                                <th class="py-3 px-4 text-left">SqFt</th>
                                <th class="py-3 px-4 text-left">List Date</th>
                                <th class="py-3 px-4 text-left">Sale Date</th>
                                <th class="py-3 px-4 text-left">Days on Market</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td class="py-3 px-4">72977332</td>
                                <td class="py-3 px-4">1638 Centre Street #1</td>
                                <td class="py-3 px-4">West Roxbury</td>
                                <td class="py-3 px-4">$685,000</td>
                                <td class="py-3 px-4">3</td>
                                <td class="py-3 px-4">1,379</td>
                                <td class="py-3 px-4">May 5, 2022</td>
                                <td class="py-3 px-4">May 17, 2022</td>
                                <td class="py-3 px-4">12</td>
                            </tr>
                            <tr>
                                <td class="py-3 px-4">73020759</td>
                                <td class="py-3 px-4">17 Business Ter #17</td>
                                <td class="py-3 px-4">Hyde Park</td>
                                <td class="py-3 px-4">$405,000</td>
                                <td class="py-3 px-4">3</td>
                                <td class="py-3 px-4">1,419</td>
                                <td class="py-3 px-4">Aug 3, 2022</td>
                                <td class="py-3 px-4">Sep 16, 2022</td>
                                <td class="py-3 px-4">20</td>
                            </tr>
                            <tr>
                                <td class="py-3 px-4">72914198</td>
                                <td class="py-3 px-4">46 Eutaw St #1</td>
                                <td class="py-3 px-4">East Boston</td>
                                <td class="py-3 px-4">$689,900</td>
                                <td class="py-3 px-4">3</td>
                                <td class="py-3 px-4">1,465</td>
                                <td class="py-3 px-4">Oct 29, 2021</td>
                                <td class="py-3 px-4">Jan 12, 2022</td>
                                <td class="py-3 px-4">39</td>
                            </tr>
                            <tr>
                                <td class="py-3 px-4">72935747</td>
                                <td class="py-3 px-4">11 Grovenor Rd #6</td>
                                <td class="py-3 px-4">Jamaica Plain</td>
                                <td class="py-3 px-4">$850,000</td>
                                <td class="py-3 px-4">3</td>
                                <td class="py-3 px-4">1,410</td>
                                <td class="py-3 px-4">Jan 20, 2022</td>
                                <td class="py-3 px-4">Feb 16, 2022</td>
                                <td class="py-3 px-4">20</td>
                            </tr>
                            <tr>
                                <td class="py-3 px-4">72938379</td>
                                <td class="py-3 px-4">3 Spruce Street #5</td>
                                <td class="py-3 px-4">Beacon Hill</td>
                                <td class="py-3 px-4">$2,799,000</td>
                                <td class="py-3 px-4">3</td>
                                <td class="py-3 px-4">1,978</td>
                                <td class="py-3 px-4">Feb 1, 2022</td>
                                <td class="py-3 px-4">Mar 9, 2022</td>
                                <td class="py-3 px-4">27</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                
                <div class="flex justify-between items-center p-4 border-t border-gray-200">
                    <div class="text-gray-600">
                        Showing 1 to 5 of 1248 entries
                    </div>
                    <div class="flex space-x-2">
                        <button class="px-3 py-1 rounded border border-gray-300 hover:bg-gray-100">Previous</button>
                        <button class="px-3 py-1 rounded border border-gray-300 bg-primary text-white">1</button>
                        <button class="px-3 py-1 rounded border border-gray-300 hover:bg-gray-100">2</button>
                        <button class="px-3 py-1 rounded border border-gray-300 hover:bg-gray-100">3</button>
                        <button class="px-3 py-1 rounded border border-gray-300 hover:bg-gray-100">Next</button>
                    </div>
                </div>
            </div>
        </section>

        <!-- Market Trends Chart -->
        <section class="mb-10">
            <h2 class="text-xl font-bold text-dark mb-4 flex items-center">
                <i class="fas fa-chart-pie text-primary mr-2"></i> Market Trends
            </h2>
            <div class="bg-white rounded-xl shadow-md p-6">
                <div class="flex flex-col md:flex-row">
                    <div class="w-full md:w-1/2 mb-6 md:mb-0 md:pr-4">
                        <h3 class="font-semibold text-lg mb-4">Average Price by Neighborhood</h3>
                        <div class="h-64 flex items-end space-x-2">
                            <div class="flex-1 flex flex-col items-center">
                                <div class="w-full bg-gray-200 rounded-t-lg" style="height: 40%;">
                                    <div class="bg-primary w-full h-full rounded-t-lg"></div>
                                </div>
                                <span class="text-xs mt-2">Back Bay</span>
                            </div>
                            <div class="flex-1 flex flex-col items-center">
                                <div class="w-full bg-gray-200 rounded-t-lg" style="height: 60%;">
                                    <div class="bg-primary w-full h-full rounded-t-lg"></div>
                                </div>
                                <span class="text-xs mt-2">Beacon Hill</span>
                            </div>
                            <div class="flex-1 flex flex-col items-center">
                                <div class="w-full bg-gray-200 rounded-t-lg" style="height: 30%;">
                                    <div class="bg-primary w-full h-full rounded-t-lg"></div>
                                </div>
                                <span class="text-xs mt-2">Charlestown</span>
                            </div>
                            <div class="flex-1 flex flex-col items-center">
                                <div class="w-full bg-gray-200 rounded-t-lg" style="height: 20%;">
                                    <div class="bg-primary w-full h-full rounded-t-lg"></div>
                                </div>
                                <span class="text-xs mt-2">Dorchester</span>
                            </div>
                            <div class="flex-1 flex flex-col items-center">
                                <div class="w-full bg-gray-200 rounded-t-lg" style="height: 35%;">
                                    <div class="bg-primary w-full h-full rounded-t-lg"></div>
                                </div>
                                <span class="text-xs mt-2">Jamaica Plain</span>
                            </div>
                        </div>
                    </div>
                    <div class="w-full md:w-1/2 md:pl-4">
                        <h3 class="font-semibold text-lg mb-4">Sales Volume by Price Range</h3>
                        <div class="h-64 flex items-end space-x-2">
                            <div class="flex-1 flex flex-col items-center">
                                <div class="w-full bg-gray-200 rounded-t-lg" style="height: 25%;">
                                    <div class="bg-secondary w-full h-full rounded-t-lg"></div>
                                </div>
                                <span class="text-xs mt-2">Under $400K</span>
                            </div>
                            <div class="flex-1 flex flex-col items-center">
                                <div class="w-full bg-gray-200 rounded-t-lg" style="height: 45%;">
                                    <div class="bg-secondary w-full h-full rounded-t-lg"></div>
                                </div>
                                <span class="text-xs mt-2">$400K-$599K</span>
                            </div>
                            <div class="flex-1 flex flex-col items-center">
                                <div class="w-full bg-gray-200 rounded-t-lg" style="height: 70%;">
                                    <div class="bg-secondary w-full h-full rounded-t-lg"></div>
                                </div>
                                <span class="text-xs mt-2">$600K-$799K</span>
                            </div>
                            <div class="flex-1 flex flex-col items-center">
                                <div class="w-full bg-gray-200 rounded-t-lg" style="height: 55%;">
                                    <div class="bg-secondary w-full h-full rounded-t-lg"></div>
                                </div>
                                <span class="text-xs mt-2">$800K-$999K</span>
                            </div>
                            <div class="flex-1 flex flex-col items-center">
                                <div class="w-full bg-gray-200 rounded-t-lg" style="height: 30%;">
                                    <div class="bg-secondary w-full h-full rounded-t-lg"></div>
                                </div>
                                <span class="text-xs mt-2">$1M+</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>

    <!-- Footer -->
    <footer class="bg-dark text-white py-8">
        <div class="container mx-auto px-4">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="mb-4 md:mb-0">
                    <h3 class="text-xl font-bold flex items-center">
                        <i class="fas fa-home text-accent mr-2"></i> Boston Real Estate Analytics
                    </h3>
                    <p class="text-gray-400 mt-2">Comprehensive market analysis for Boston neighborhoods</p>
                </div>
                <div class="flex space-x-6">
                    <a href="#" class="text-gray-400 hover:text-white transition">
                        <i class="fab fa-facebook-f"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-white transition">
                        <i class="fab fa-twitter"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-white transition">
                        <i class="fab fa-linkedin-in"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-white transition">
                        <i class="fab fa-instagram"></i>
                    </a>
                </div>
            </div>
            <div class="border-t border-gray-800 mt-6 pt-6 text-center text-gray-500 text-sm">
                <p>© 2023 Boston Real Estate Analytics. All rights reserved.</p>
                <p class="mt-2">Data sourced from Boston MLS. Updated monthly.</p>
            </div>
        </div>
    </footer>

    <script>
        // Toggle filter section
        document.getElementById('toggleFilters').addEventListener('click', function() {
            const filterSection = document.getElementById('filterSection');
            const toggleText = document.getElementById('toggleText');
            const toggleIcon = document.getElementById('toggleIcon');
            
            filterSection.classList.toggle('expanded');
            
            if (filterSection.classList.contains('expanded')) {
                toggleText.textContent = 'Collapse';
                toggleIcon.classList.remove('fa-chevron-down');
                toggleIcon.classList.add('fa-chevron-up');
            } else {
                toggleText.textContent = 'Expand';
                toggleIcon.classList.remove('fa-chevron-up');
                toggleIcon.classList.add('fa-chevron-down');
            }
        });
        
        // File upload handling
        const uploadArea = document.getElementById('uploadArea');
        const fileInput = document.getElementById('fileInput');
        
        uploadArea.addEventListener('click', () => {
            fileInput.click();
        });
        
        uploadArea.addEventListener('dragover', (e) => {
            e.preventDefault();
            uploadArea.classList.add('border-primary');
        });
        
        uploadArea.addEventListener('dragleave', () => {
            uploadArea.classList.remove('border-primary');
        });
        
        uploadArea.addEventListener('drop', (e) => {
            e.preventDefault();
            uploadArea.classList.remove('border-primary');
            
            if (e.dataTransfer.files.length) {
                fileInput.files = e.dataTransfer.files;
                handleFileUpload(e.dataTransfer.files[0]);
            }
        });
        
        fileInput.addEventListener('change', () => {
            if (fileInput.files.length) {
                handleFileUpload(fileInput.files[0]);
            }
        });
        
        function handleFileUpload(file) {
            const fileName = file.name;
            const fileSize = (file.size / 1024 / 1024).toFixed(2);
            
            uploadArea.innerHTML = `
                <div class="text-center">
                    <i class="fas fa-file-csv text-4xl text-primary mb-4"></i>
                    <p class="text-gray-700 font-medium">${fileName}</p>
                    <p class="text-gray-500 text-sm">${fileSize} MB</p>
                    <div class="mt-4">
                        <button class="bg-primary hover:bg-blue-800 text-white px-4 py-2 rounded-lg transition">
                            <i class="fas fa-upload mr-2"></i> Process Data
                        </button>
                    </div>
                </div>
            `;
        }
    </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=Southbeach/data" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>