File size: 66,265 Bytes
83f8682
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from __future__ import annotations

from copy import deepcopy
from typing import Any


CATALOG_SPECS: list[dict[str, Any]] = [
    {
        "slug": "trinity-bellwoods-townhouse",
        "title": "Trinity Bellwoods Townhouse",
        "city": "Toronto",
        "country": "Canada",
        "neighborhood": "Trinity Bellwoods",
        "host_id": 2,
        "price_per_night": 268,
        "cleaning_fee": 46,
        "service_fee": 30,
        "bedrooms": 2,
        "beds": 2,
        "baths": 1.5,
        "max_guests": 4,
        "rating": 4.91,
        "review_count": 76,
        "description": "A polished townhouse close to parks, bakeries, and the best stretch of west-end Toronto wandering.",
        "amenities": ["Wifi", "Patio", "Dedicated workspace", "Self check-in", "Washer", "Kitchen"],
        "house_rules": ["No parties", "Quiet hours after 10 PM", "No smoking"],
        "image_theme": "city_townhouse",
    },
    {
        "slug": "ossington-studio-flat",
        "title": "Ossington Studio Flat",
        "city": "Toronto",
        "country": "Canada",
        "neighborhood": "Ossington",
        "host_id": 2,
        "price_per_night": 194,
        "cleaning_fee": 34,
        "service_fee": 24,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "rating": 4.84,
        "review_count": 59,
        "description": "A compact and bright studio near Toronto's restaurant-lined west side with a calm work setup and late-night snack access.",
        "amenities": ["Wifi", "Air conditioning", "Kitchen", "Coffee bar", "Laundry"],
        "house_rules": ["No smoking", "No parties", "Please remove shoes indoors"],
        "image_theme": "city_studio",
    },
    {
        "slug": "roncesvalles-carriage-house",
        "title": "Roncesvalles Carriage House",
        "city": "Toronto",
        "country": "Canada",
        "neighborhood": "Roncesvalles",
        "host_id": 2,
        "price_per_night": 236,
        "cleaning_fee": 40,
        "service_fee": 29,
        "bedrooms": 2,
        "beds": 3,
        "baths": 1.0,
        "max_guests": 4,
        "rating": 4.92,
        "review_count": 68,
        "description": "A tucked-away carriage house near the lake with soft light, leafy streets, and a neighborhood feel that rewards longer walks.",
        "amenities": ["Wifi", "Patio", "Kitchen", "Washer", "Crib", "Self check-in"],
        "house_rules": ["No parties", "No smoking", "Quiet hours after 10 PM"],
        "image_theme": "city_garden",
    },
    {
        "slug": "gastown-brick-loft",
        "title": "Gastown Brick Loft",
        "city": "Vancouver",
        "country": "Canada",
        "neighborhood": "Gastown",
        "host_id": 4,
        "price_per_night": 254,
        "cleaning_fee": 42,
        "service_fee": 31,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "rating": 4.88,
        "review_count": 71,
        "description": "An industrial loft with brick walls, big windows, and easy access to downtown mornings and waterfront evenings.",
        "amenities": ["Wifi", "Dedicated workspace", "Elevator", "Kitchen", "Washer"],
        "house_rules": ["No smoking", "No parties", "Building quiet hours after 10 PM"],
        "image_theme": "city_loft",
    },
    {
        "slug": "mount-pleasant-balcony-suite",
        "title": "Mount Pleasant Balcony Suite",
        "city": "Vancouver",
        "country": "Canada",
        "neighborhood": "Mount Pleasant",
        "host_id": 4,
        "price_per_night": 221,
        "cleaning_fee": 38,
        "service_fee": 28,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "rating": 4.86,
        "review_count": 64,
        "description": "A design-forward suite near breweries, bike routes, and some of the city's best coffee stops.",
        "amenities": ["Wifi", "Balcony", "Kitchen", "Bike storage", "Air conditioning"],
        "house_rules": ["No smoking", "No parties", "Please respect neighbors in common areas"],
        "image_theme": "city_apartment",
    },
    {
        "slug": "north-shore-outlook-cabin",
        "title": "North Shore Outlook Cabin",
        "city": "North Vancouver",
        "country": "Canada",
        "neighborhood": "Lynn Valley",
        "host_id": 4,
        "price_per_night": 279,
        "cleaning_fee": 47,
        "service_fee": 33,
        "bedrooms": 2,
        "beds": 2,
        "baths": 1.5,
        "max_guests": 4,
        "rating": 4.94,
        "review_count": 83,
        "description": "A cedar-lined cabin feel just outside the city, with forested views and quick access to mountain trails.",
        "amenities": ["Wifi", "Mountain views", "Parking", "Kitchen", "Indoor fireplace"],
        "house_rules": ["No parties", "No smoking", "Please lock doors when leaving for hikes"],
        "image_theme": "forest_cabin",
    },
    {
        "slug": "mile-end-atelier-flat",
        "title": "Mile End Atelier Flat",
        "city": "Montreal",
        "country": "Canada",
        "neighborhood": "Mile End",
        "host_id": 3,
        "price_per_night": 186,
        "cleaning_fee": 33,
        "service_fee": 22,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "rating": 4.87,
        "review_count": 61,
        "description": "A bright artist-style apartment near bagels, bookstores, and a steady rhythm of neighborhood cafes.",
        "amenities": ["Wifi", "Kitchen", "Balcony", "Washer", "Dedicated workspace"],
        "house_rules": ["No smoking", "No parties", "Please recycle glass and paper"],
        "image_theme": "city_artful",
    },
    {
        "slug": "old-montreal-stone-suite",
        "title": "Old Montreal Stone Suite",
        "city": "Montreal",
        "country": "Canada",
        "neighborhood": "Old Montreal",
        "host_id": 3,
        "price_per_night": 242,
        "cleaning_fee": 39,
        "service_fee": 28,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "rating": 4.83,
        "review_count": 57,
        "description": "A stone-walled suite close to river walks, galleries, and late dinners in the historic core.",
        "amenities": ["Wifi", "Air conditioning", "Kitchen", "Elevator", "Coffee bar"],
        "house_rules": ["No smoking", "Quiet hours after 10 PM", "No parties"],
        "image_theme": "city_suite",
    },
    {
        "slug": "griffintown-modern-loft",
        "title": "Griffintown Modern Loft",
        "city": "Montreal",
        "country": "Canada",
        "neighborhood": "Griffintown",
        "host_id": 3,
        "price_per_night": 212,
        "cleaning_fee": 35,
        "service_fee": 26,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "rating": 4.81,
        "review_count": 49,
        "description": "A clean-lined loft near the canal with bike paths, gym access, and a polished city base feel.",
        "amenities": ["Wifi", "Gym", "Kitchen", "Air conditioning", "Washer"],
        "house_rules": ["No smoking", "No parties", "Building quiet hours after 10 PM"],
        "image_theme": "city_modern",
    },
    {
        "slug": "west-queen-west-gallery-flat",
        "title": "West Queen West Gallery Flat",
        "city": "Toronto",
        "country": "Canada",
        "neighborhood": "West Queen West",
        "host_id": 2,
        "price_per_night": 228,
        "cleaning_fee": 37,
        "service_fee": 28,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "rating": 4.9,
        "review_count": 73,
        "description": "A gallery-inspired one-bedroom near independent shops, cocktail bars, and easy streetcar routes.",
        "amenities": ["Wifi", "Kitchen", "Dedicated workspace", "Air conditioning", "Washer"],
        "house_rules": ["No smoking", "No parties", "Please respect quiet hours after 10 PM"],
        "image_theme": "city_artful",
    },
    {
        "slug": "queen-west-penthouse-nook",
        "title": "Queen West Penthouse Nook",
        "city": "Toronto",
        "country": "Canada",
        "neighborhood": "Queen West",
        "host_id": 2,
        "price_per_night": 312,
        "cleaning_fee": 52,
        "service_fee": 37,
        "bedrooms": 2,
        "beds": 2,
        "baths": 2.0,
        "max_guests": 4,
        "rating": 4.95,
        "review_count": 88,
        "description": "A top-floor retreat with skyline views, strong natural light, and room to settle into longer city stays.",
        "amenities": ["Wifi", "Balcony", "Dedicated workspace", "Kitchen", "Air conditioning", "Washer"],
        "house_rules": ["No smoking", "No parties", "Quiet hours after 10 PM"],
        "image_theme": "city_penthouse",
    },
    {
        "slug": "tofino-cedar-surf-cabin",
        "title": "Tofino Cedar Surf Cabin",
        "city": "Tofino",
        "country": "Canada",
        "neighborhood": "Chesterman Beach",
        "host_id": 4,
        "price_per_night": 341,
        "cleaning_fee": 58,
        "service_fee": 40,
        "bedrooms": 2,
        "beds": 2,
        "baths": 1.0,
        "max_guests": 4,
        "rating": 4.97,
        "review_count": 105,
        "description": "A cedar hideaway near the beach with surf-rinse practicality, quiet interiors, and a proper storm-watching setup.",
        "amenities": ["Wifi", "Hot tub", "Outdoor shower", "Parking", "Kitchen", "Indoor fireplace"],
        "house_rules": ["No smoking", "No parties", "Please rinse sand before coming inside"],
        "image_theme": "coastal_cabin",
    },
    {
        "slug": "tofino-harbor-house",
        "title": "Tofino Harbor House",
        "city": "Tofino",
        "country": "Canada",
        "neighborhood": "Town Center",
        "host_id": 4,
        "price_per_night": 298,
        "cleaning_fee": 52,
        "service_fee": 35,
        "bedrooms": 2,
        "beds": 2,
        "baths": 1.5,
        "max_guests": 4,
        "rating": 4.89,
        "review_count": 72,
        "description": "A harbor-adjacent stay for easy food runs, slow mornings, and nights that still feel close to the water.",
        "amenities": ["Wifi", "Kitchen", "Parking", "Washer", "Balcony"],
        "house_rules": ["No smoking", "No parties", "Quiet deck use after 10 PM"],
        "image_theme": "coastal_house",
    },
    {
        "slug": "whistler-peak-chalet",
        "title": "Whistler Peak Chalet",
        "city": "Whistler",
        "country": "Canada",
        "neighborhood": "Creekside",
        "host_id": 4,
        "price_per_night": 389,
        "cleaning_fee": 62,
        "service_fee": 45,
        "bedrooms": 3,
        "beds": 4,
        "baths": 2.0,
        "max_guests": 6,
        "rating": 4.96,
        "review_count": 111,
        "description": "A mountain chalet set up for ski weekends, summer trails, and long dinners after a day outside.",
        "amenities": ["Wifi", "Hot tub", "Indoor fireplace", "Parking", "Ski storage", "Kitchen"],
        "house_rules": ["No smoking", "No parties", "Please store outdoor gear in the entry area"],
        "image_theme": "mountain_chalet",
    },
    {
        "slug": "whistler-village-loft",
        "title": "Whistler Village Loft",
        "city": "Whistler",
        "country": "Canada",
        "neighborhood": "Whistler Village",
        "host_id": 4,
        "price_per_night": 324,
        "cleaning_fee": 49,
        "service_fee": 39,
        "bedrooms": 2,
        "beds": 3,
        "baths": 1.5,
        "max_guests": 4,
        "rating": 4.9,
        "review_count": 85,
        "description": "A warm loft close to lifts, coffee stops, and the easy convenience of village weekends without a car.",
        "amenities": ["Wifi", "Kitchen", "Ski storage", "Indoor fireplace", "Washer"],
        "house_rules": ["No smoking", "No parties", "Please keep ski boots in the entry tray"],
        "image_theme": "mountain_loft",
    },
    {
        "slug": "quebec-old-port-flat",
        "title": "Quebec Old Port Flat",
        "city": "Quebec City",
        "country": "Canada",
        "neighborhood": "Old Port",
        "host_id": 3,
        "price_per_night": 214,
        "cleaning_fee": 36,
        "service_fee": 25,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "rating": 4.88,
        "review_count": 66,
        "description": "A stone-and-light apartment for romantic old-city walks, bakeries, and quieter mornings before the crowds.",
        "amenities": ["Wifi", "Kitchen", "Coffee bar", "Air conditioning", "Washer"],
        "house_rules": ["No smoking", "No parties", "Respect building quiet hours after 10 PM"],
        "image_theme": "city_historic",
    },
    {
        "slug": "quebec-hillside-suite",
        "title": "Quebec Hillside Suite",
        "city": "Quebec City",
        "country": "Canada",
        "neighborhood": "Montcalm",
        "host_id": 3,
        "price_per_night": 198,
        "cleaning_fee": 32,
        "service_fee": 22,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "rating": 4.82,
        "review_count": 44,
        "description": "A calm suite above the old city with leafy streets, museum access, and a lighter residential feel.",
        "amenities": ["Wifi", "Dedicated workspace", "Kitchen", "Washer", "Air conditioning"],
        "house_rules": ["No smoking", "No parties", "Please remove shoes indoors"],
        "image_theme": "city_suite",
    },
    {
        "slug": "hudson-valley-orchard-house",
        "title": "Hudson Valley Orchard House",
        "city": "Hudson Valley",
        "country": "United States",
        "neighborhood": "Gardiner",
        "host_id": 3,
        "price_per_night": 356,
        "cleaning_fee": 59,
        "service_fee": 42,
        "bedrooms": 3,
        "beds": 4,
        "baths": 2.0,
        "max_guests": 6,
        "rating": 4.95,
        "review_count": 96,
        "description": "A quiet orchard-side house for firepit evenings, hiking weekends, and long-table meals with friends.",
        "amenities": ["Wifi", "Hot tub", "Fire pit", "Kitchen", "Parking", "Indoor fireplace"],
        "house_rules": ["No smoking", "No parties", "Please close gates after entering the property"],
        "image_theme": "country_house",
    },
    {
        "slug": "catskills-ridge-cabin",
        "title": "Catskills Ridge Cabin",
        "city": "Catskills",
        "country": "United States",
        "neighborhood": "Phoenicia",
        "host_id": 3,
        "price_per_night": 334,
        "cleaning_fee": 54,
        "service_fee": 39,
        "bedrooms": 2,
        "beds": 2,
        "baths": 1.5,
        "max_guests": 4,
        "rating": 4.93,
        "review_count": 87,
        "description": "A dark-wood cabin with ridge views, a deck built for coffee, and enough quiet to feel fully reset.",
        "amenities": ["Wifi", "Mountain views", "Hot tub", "Indoor fireplace", "Kitchen", "Parking"],
        "house_rules": ["No smoking", "No parties", "Please secure outdoor cushions overnight"],
        "image_theme": "forest_cabin",
    },
    {
        "slug": "palm-springs-sun-court",
        "title": "Palm Springs Sun Court",
        "city": "Palm Springs",
        "country": "United States",
        "neighborhood": "Movie Colony",
        "host_id": 3,
        "price_per_night": 344,
        "cleaning_fee": 56,
        "service_fee": 41,
        "bedrooms": 2,
        "beds": 2,
        "baths": 2.0,
        "max_guests": 4,
        "rating": 4.94,
        "review_count": 92,
        "description": "A bright desert home with a pool, citrus courtyard, and the easy glamour Palm Springs does best.",
        "amenities": ["Wifi", "Pool", "Outdoor dining", "Kitchen", "Parking", "Air conditioning"],
        "house_rules": ["No smoking", "No parties", "Outdoor music off after 9 PM"],
        "image_theme": "desert_house",
    },
    {
        "slug": "palm-springs-courtyard-casita",
        "title": "Palm Springs Courtyard Casita",
        "city": "Palm Springs",
        "country": "United States",
        "neighborhood": "Warm Sands",
        "host_id": 3,
        "price_per_night": 267,
        "cleaning_fee": 43,
        "service_fee": 31,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "rating": 4.9,
        "review_count": 74,
        "description": "A smaller desert stay with a private courtyard, soft pink sunsets, and a great base for pool days and dinner out.",
        "amenities": ["Wifi", "Pool", "Patio", "Air conditioning", "Coffee bar"],
        "house_rules": ["No smoking", "No parties", "Please keep gates closed"],
        "image_theme": "desert_casita",
    },
    {
        "slug": "brooklyn-brownstone-floor",
        "title": "Brooklyn Brownstone Floor",
        "city": "New York",
        "country": "United States",
        "neighborhood": "Fort Greene",
        "host_id": 2,
        "price_per_night": 362,
        "cleaning_fee": 58,
        "service_fee": 44,
        "bedrooms": 2,
        "beds": 2,
        "baths": 1.5,
        "max_guests": 4,
        "rating": 4.91,
        "review_count": 90,
        "description": "A full brownstone floor with high ceilings, a leafy street, and quick subway access into the city.",
        "amenities": ["Wifi", "Kitchen", "Dedicated workspace", "Air conditioning", "Washer"],
        "house_rules": ["No smoking", "No parties", "Please be mindful on the stoop late at night"],
        "image_theme": "city_brownstone",
    },
    {
        "slug": "hudson-loft-retreat",
        "title": "Hudson Loft Retreat",
        "city": "Hudson",
        "country": "United States",
        "neighborhood": "Warren Street",
        "host_id": 3,
        "price_per_night": 246,
        "cleaning_fee": 39,
        "service_fee": 28,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "rating": 4.85,
        "review_count": 53,
        "description": "A relaxed loft near antiques, coffee, and train access, perfect for a quick upstate reset without a complicated plan.",
        "amenities": ["Wifi", "Kitchen", "Coffee bar", "Dedicated workspace", "Washer"],
        "house_rules": ["No smoking", "No parties", "Quiet hours after 10 PM"],
        "image_theme": "city_loft",
    },
    {
        "slug": "county-vineyard-cottage",
        "title": "County Vineyard Cottage",
        "city": "Prince Edward County",
        "country": "Canada",
        "neighborhood": "Bloomfield",
        "host_id": 4,
        "price_per_night": 276,
        "cleaning_fee": 48,
        "service_fee": 33,
        "bedrooms": 2,
        "beds": 2,
        "baths": 1.0,
        "max_guests": 4,
        "rating": 4.9,
        "review_count": 69,
        "description": "A vineyard-adjacent cottage with easy county access, a generous deck, and all the ingredients for a slower weekend.",
        "amenities": ["Wifi", "Patio", "BBQ", "Kitchen", "Parking", "Fire pit"],
        "house_rules": ["No smoking", "No parties", "Please keep outdoor noise low after 10 PM"],
        "image_theme": "country_cottage",
    },
    {
        "slug": "county-lakeview-bungalow",
        "title": "County Lakeview Bungalow",
        "city": "Prince Edward County",
        "country": "Canada",
        "neighborhood": "Wellington",
        "host_id": 4,
        "price_per_night": 288,
        "cleaning_fee": 50,
        "service_fee": 34,
        "bedrooms": 2,
        "beds": 3,
        "baths": 1.5,
        "max_guests": 4,
        "rating": 4.88,
        "review_count": 63,
        "description": "A calm bungalow close to water and county drives, with room for a friend weekend and unhurried mornings.",
        "amenities": ["Wifi", "Lake views", "Kitchen", "Parking", "Washer", "Patio"],
        "house_rules": ["No smoking", "No parties", "Please rinse sandy gear before entering"],
        "image_theme": "lake_house",
    },
]


IMAGE_THEMES: dict[str, list[dict[str, str]]] = {
    "city_townhouse": [
        {"url": "https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1400&q=80", "alt_text": "Townhouse living room"},
        {"url": "https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1400&q=80", "alt_text": "Townhouse interior with large windows"},
        {"url": "https://images.unsplash.com/photo-1505693431207-565af06f8d4b?auto=format&fit=crop&w=1400&q=80", "alt_text": "Dining area with warm wood tones"},
    ],
    "city_studio": [
        {"url": "https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?auto=format&fit=crop&w=1400&q=80", "alt_text": "Bright studio apartment"},
        {"url": "https://images.unsplash.com/photo-1464890100898-a385f744067f?auto=format&fit=crop&w=1400&q=80", "alt_text": "Cozy bedroom corner"},
        {"url": "https://images.unsplash.com/photo-1484154218962-a197022b5858?auto=format&fit=crop&w=1400&q=80", "alt_text": "Compact kitchen"},
    ],
    "city_garden": [
        {"url": "https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1400&q=80", "alt_text": "Garden-facing house exterior"},
        {"url": "https://images.unsplash.com/photo-1502005229762-cf1b2da7c5d6?auto=format&fit=crop&w=1400&q=80", "alt_text": "Warm living room with timber details"},
        {"url": "https://images.unsplash.com/photo-1449844908441-8829872d2607?auto=format&fit=crop&w=1400&q=80", "alt_text": "Cozy seating area by the window"},
    ],
    "city_loft": [
        {"url": "https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1400&q=80", "alt_text": "Loft interior with high ceilings"},
        {"url": "https://images.unsplash.com/photo-1484154218962-a197022b5858?auto=format&fit=crop&w=1400&q=80", "alt_text": "Open kitchen in loft space"},
        {"url": "https://images.unsplash.com/photo-1448630360428-65456885c650?auto=format&fit=crop&w=1400&q=80", "alt_text": "Textured loft lounge area"},
    ],
    "city_apartment": [
        {"url": "https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1400&q=80", "alt_text": "Apartment living room"},
        {"url": "https://images.unsplash.com/photo-1464890100898-a385f744067f?auto=format&fit=crop&w=1400&q=80", "alt_text": "Apartment bedroom"},
        {"url": "https://images.unsplash.com/photo-1505693431207-565af06f8d4b?auto=format&fit=crop&w=1400&q=80", "alt_text": "Window-side dining nook"},
    ],
    "forest_cabin": [
        {"url": "https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1400&q=80", "alt_text": "Cabin exterior in the trees"},
        {"url": "https://images.unsplash.com/photo-1502005229762-cf1b2da7c5d6?auto=format&fit=crop&w=1400&q=80", "alt_text": "Cabin living room with wood finishes"},
        {"url": "https://images.unsplash.com/photo-1505692952047-1a78307da8f2?auto=format&fit=crop&w=1400&q=80", "alt_text": "Warm bedroom with forest feel"},
    ],
    "city_artful": [
        {"url": "https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1400&q=80", "alt_text": "Artful apartment interior"},
        {"url": "https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1400&q=80", "alt_text": "Reading corner by the window"},
        {"url": "https://images.unsplash.com/photo-1449844908441-8829872d2607?auto=format&fit=crop&w=1400&q=80", "alt_text": "Warm textured living room"},
    ],
    "city_suite": [
        {"url": "https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?auto=format&fit=crop&w=1400&q=80", "alt_text": "Suite with clean lines"},
        {"url": "https://images.unsplash.com/photo-1484154218962-a197022b5858?auto=format&fit=crop&w=1400&q=80", "alt_text": "Compact kitchen with warm wood"},
        {"url": "https://images.unsplash.com/photo-1464890100898-a385f744067f?auto=format&fit=crop&w=1400&q=80", "alt_text": "Bedroom with soft daylight"},
    ],
    "city_modern": [
        {"url": "https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?auto=format&fit=crop&w=1400&q=80", "alt_text": "Modern loft interior"},
        {"url": "https://images.unsplash.com/photo-1505693431207-565af06f8d4b?auto=format&fit=crop&w=1400&q=80", "alt_text": "Dining area in a modern suite"},
        {"url": "https://images.unsplash.com/photo-1484154218962-a197022b5858?auto=format&fit=crop&w=1400&q=80", "alt_text": "Open-plan kitchen"},
    ],
    "city_penthouse": [
        {"url": "https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1400&q=80", "alt_text": "Penthouse living room"},
        {"url": "https://images.unsplash.com/photo-1505693431207-565af06f8d4b?auto=format&fit=crop&w=1400&q=80", "alt_text": "Dining space with a view"},
        {"url": "https://images.unsplash.com/photo-1464890100898-a385f744067f?auto=format&fit=crop&w=1400&q=80", "alt_text": "Bedroom with city light"},
    ],
    "coastal_cabin": [
        {"url": "https://images.unsplash.com/photo-1505692952047-1a78307da8f2?auto=format&fit=crop&w=1400&q=80", "alt_text": "Cedar cabin by the coast"},
        {"url": "https://images.unsplash.com/photo-1448630360428-65456885c650?auto=format&fit=crop&w=1400&q=80", "alt_text": "Textured coastal interior"},
        {"url": "https://images.unsplash.com/photo-1502005229762-cf1b2da7c5d6?auto=format&fit=crop&w=1400&q=80", "alt_text": "Warm cabin lounge"},
    ],
    "coastal_house": [
        {"url": "https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1400&q=80", "alt_text": "House near the water"},
        {"url": "https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1400&q=80", "alt_text": "Open coastal living room"},
        {"url": "https://images.unsplash.com/photo-1464890100898-a385f744067f?auto=format&fit=crop&w=1400&q=80", "alt_text": "Soft bedroom overlooking the yard"},
    ],
    "mountain_chalet": [
        {"url": "https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1400&q=80", "alt_text": "Mountain chalet exterior"},
        {"url": "https://images.unsplash.com/photo-1502005229762-cf1b2da7c5d6?auto=format&fit=crop&w=1400&q=80", "alt_text": "Chalet living room with beams"},
        {"url": "https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1400&q=80", "alt_text": "Dining area in mountain home"},
    ],
    "mountain_loft": [
        {"url": "https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1400&q=80", "alt_text": "Loft with mountain textures"},
        {"url": "https://images.unsplash.com/photo-1505693431207-565af06f8d4b?auto=format&fit=crop&w=1400&q=80", "alt_text": "Dining nook in loft"},
        {"url": "https://images.unsplash.com/photo-1464890100898-a385f744067f?auto=format&fit=crop&w=1400&q=80", "alt_text": "Bedroom with layered neutrals"},
    ],
    "city_historic": [
        {"url": "https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1400&q=80", "alt_text": "Historic apartment with books and texture"},
        {"url": "https://images.unsplash.com/photo-1505693431207-565af06f8d4b?auto=format&fit=crop&w=1400&q=80", "alt_text": "Dining space in old-city apartment"},
        {"url": "https://images.unsplash.com/photo-1449844908441-8829872d2607?auto=format&fit=crop&w=1400&q=80", "alt_text": "Soft lounge corner"},
    ],
    "country_house": [
        {"url": "https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1400&q=80", "alt_text": "Country house exterior"},
        {"url": "https://images.unsplash.com/photo-1502005229762-cf1b2da7c5d6?auto=format&fit=crop&w=1400&q=80", "alt_text": "Long-table dining room"},
        {"url": "https://images.unsplash.com/photo-1449844908441-8829872d2607?auto=format&fit=crop&w=1400&q=80", "alt_text": "Cozy firelit seating area"},
    ],
    "desert_house": [
        {"url": "https://images.unsplash.com/photo-1505692952047-1a78307da8f2?auto=format&fit=crop&w=1400&q=80", "alt_text": "Desert house exterior"},
        {"url": "https://images.unsplash.com/photo-1448630360428-65456885c650?auto=format&fit=crop&w=1400&q=80", "alt_text": "Minimal desert interior"},
        {"url": "https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1400&q=80", "alt_text": "Bright bedroom with desert palette"},
    ],
    "desert_casita": [
        {"url": "https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?auto=format&fit=crop&w=1400&q=80", "alt_text": "Casita interior"},
        {"url": "https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1400&q=80", "alt_text": "Courtyard-adjacent lounge area"},
        {"url": "https://images.unsplash.com/photo-1464890100898-a385f744067f?auto=format&fit=crop&w=1400&q=80", "alt_text": "Desert bedroom corner"},
    ],
    "city_brownstone": [
        {"url": "https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1400&q=80", "alt_text": "Brownstone living room"},
        {"url": "https://images.unsplash.com/photo-1505693431207-565af06f8d4b?auto=format&fit=crop&w=1400&q=80", "alt_text": "Dining room in brownstone"},
        {"url": "https://images.unsplash.com/photo-1464890100898-a385f744067f?auto=format&fit=crop&w=1400&q=80", "alt_text": "Brownstone bedroom"},
    ],
    "country_cottage": [
        {"url": "https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1400&q=80", "alt_text": "Country cottage exterior"},
        {"url": "https://images.unsplash.com/photo-1502005229762-cf1b2da7c5d6?auto=format&fit=crop&w=1400&q=80", "alt_text": "Warm cottage lounge"},
        {"url": "https://images.unsplash.com/photo-1484154218962-a197022b5858?auto=format&fit=crop&w=1400&q=80", "alt_text": "Cottage kitchen"},
    ],
    "lake_house": [
        {"url": "https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1400&q=80", "alt_text": "Lakeside bungalow"},
        {"url": "https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1400&q=80", "alt_text": "Living room with lake-house feel"},
        {"url": "https://images.unsplash.com/photo-1449844908441-8829872d2607?auto=format&fit=crop&w=1400&q=80", "alt_text": "Cozy sitting room with soft light"},
    ],
}


COVER_IMAGE_POOL: list[dict[str, str]] = [
    {"url": "https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1400&q=80", "alt_text": "Warm living room with layered seating"},
    {"url": "https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1400&q=80", "alt_text": "Sunlit open-plan home"},
    {"url": "https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1400&q=80", "alt_text": "Welcoming home exterior with a private deck"},
    {"url": "https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?auto=format&fit=crop&w=1400&q=80", "alt_text": "Polished apartment interior"},
    {"url": "https://images.unsplash.com/photo-1464890100898-a385f744067f?auto=format&fit=crop&w=1400&q=80", "alt_text": "Bedroom corner with soft daylight"},
    {"url": "https://images.unsplash.com/photo-1484154218962-a197022b5858?auto=format&fit=crop&w=1400&q=80", "alt_text": "Compact kitchen with warm cabinetry"},
    {"url": "https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1400&q=80", "alt_text": "Exterior of a modern getaway home"},
    {"url": "https://images.unsplash.com/photo-1502005229762-cf1b2da7c5d6?auto=format&fit=crop&w=1400&q=80", "alt_text": "Wood-lined lounge with cabin textures"},
    {"url": "https://images.unsplash.com/photo-1449844908441-8829872d2607?auto=format&fit=crop&w=1400&q=80", "alt_text": "Cozy sitting area by a window"},
    {"url": "https://images.unsplash.com/photo-1448630360428-65456885c650?auto=format&fit=crop&w=1400&q=80", "alt_text": "Minimal interior with warm textures"},
    {"url": "https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1400&q=80", "alt_text": "Artful apartment with books and plants"},
    {"url": "https://images.unsplash.com/photo-1505692952047-1a78307da8f2?auto=format&fit=crop&w=1400&q=80", "alt_text": "Retreat-style exterior at golden hour"},
    {"url": "https://images.unsplash.com/photo-1613685303322-269e3144fc64?auto=format&fit=crop&w=1400&q=80", "alt_text": "Kitchen with dark island and bright cabinetry"},
    {"url": "https://images.unsplash.com/photo-1610177534644-34d881503b83?auto=format&fit=crop&w=1400&q=80", "alt_text": "Warm kitchen with layered wood cabinetry"},
    {"url": "https://images.unsplash.com/photo-1620086464194-5127366b51ea?auto=format&fit=crop&w=1400&q=80", "alt_text": "Minimal kitchen with white and oak finishes"},
    {"url": "https://images.unsplash.com/photo-1600493505423-474fea65ad9e?auto=format&fit=crop&w=1400&q=80", "alt_text": "Open dining area beside a modern kitchen"},
    {"url": "https://images.unsplash.com/photo-1556912167-f556f1f39fdf?auto=format&fit=crop&w=1400&q=80", "alt_text": "Kitchen island with stools and natural light"},
    {"url": "https://images.unsplash.com/photo-1652734853828-24f9c9dceb94?auto=format&fit=crop&w=1400&q=80", "alt_text": "Kitchen with bold wall art and clean lines"},
    {"url": "https://images.unsplash.com/photo-1556912172-45b7abe8b7e1?auto=format&fit=crop&w=1400&q=80", "alt_text": "Bright breakfast nook with a simple kitchen table"},
    {"url": "https://images.unsplash.com/photo-1596552183299-000ef779e88d?auto=format&fit=crop&w=1400&q=80", "alt_text": "Compact kitchen corner with built-in storage"},
    {"url": "https://images.unsplash.com/photo-1616046229478-9901c5536a45?auto=format&fit=crop&w=1400&q=80", "alt_text": "Styled living room with plants and a round mirror"},
    {"url": "https://images.unsplash.com/photo-1649083048770-82e8ffd80431?auto=format&fit=crop&w=1400&q=80", "alt_text": "Living room with fireplace and soft neutral seating"},
    {"url": "https://images.unsplash.com/photo-1616047006789-b7af5afb8c20?auto=format&fit=crop&w=1400&q=80", "alt_text": "Bedroom with layered pillows and crisp white bedding"},
    {"url": "https://images.unsplash.com/photo-1615873968403-89e068629265?auto=format&fit=crop&w=1400&q=80", "alt_text": "Dining room with sculptural chairs and warm finishes"},
    {"url": "https://images.unsplash.com/photo-1649083048337-4aeb6dda80bb?auto=format&fit=crop&w=1400&q=80", "alt_text": "Open-concept living room flowing into a bright kitchen"},
    {"url": "https://images.unsplash.com/photo-1616137422495-1e9e46e2aa77?auto=format&fit=crop&w=1400&q=80", "alt_text": "Soft-toned living room with gold accents"},
    {"url": "https://images.unsplash.com/photo-1616594039964-ae9021a400a0?auto=format&fit=crop&w=1400&q=80", "alt_text": "Dining area with upholstered chairs and natural textures"},
    {"url": "https://images.unsplash.com/photo-1649083048597-d7b4f1e8a386?auto=format&fit=crop&w=1400&q=80", "alt_text": "Large kitchen with a long island and bar seating"},
    {"url": "https://images.unsplash.com/photo-1583847268964-b28dc8f51f92?auto=format&fit=crop&w=1400&q=80", "alt_text": "Minimal lounge with a gray sofa and textured rug"},
    {"url": "https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?auto=format&fit=crop&w=1400&q=80", "alt_text": "Round dining table in a softly lit room"},
    {"url": "https://images.unsplash.com/photo-1616137466211-f939a420be84?auto=format&fit=crop&w=1400&q=80", "alt_text": "Sectional sofa in a bright modern family room"},
    {"url": "https://images.unsplash.com/photo-1616593918824-4fef16054381?auto=format&fit=crop&w=1400&q=80", "alt_text": "Reading corner with books and a warm wood table"},
    {"url": "https://images.unsplash.com/photo-1649083048428-3d8ed23a3ce0?auto=format&fit=crop&w=1400&q=80", "alt_text": "Kitchen island framed by tall stools and natural light"},
    {"url": "https://images.unsplash.com/photo-1593696140826-c58b021acf8b?auto=format&fit=crop&w=1400&q=80", "alt_text": "Modern dining room with black and white accents"},
    {"url": "https://images.unsplash.com/photo-1615874694520-474822394e73?auto=format&fit=crop&w=1400&q=80", "alt_text": "Living room anchored by a dark fireplace"},
    {"url": "https://images.unsplash.com/photo-1630699375019-c334927264df?auto=format&fit=crop&w=1400&q=80", "alt_text": "Bright bedroom with a large picture window"},
    {"url": "https://images.unsplash.com/photo-1630699293259-0b6c08606c62?auto=format&fit=crop&w=1400&q=80", "alt_text": "Bedroom with crisp bedding and a quiet palette"},
    {"url": "https://images.unsplash.com/photo-1652882860902-7c6b0f88ef23?auto=format&fit=crop&w=1400&q=80", "alt_text": "Bedroom setup with desk space and clean styling"},
    {"url": "https://images.unsplash.com/photo-1652882860938-f90aa298e644?auto=format&fit=crop&w=1400&q=80", "alt_text": "Bedroom and workspace with simple oak furniture"},
    {"url": "https://images.unsplash.com/photo-1612320583049-eabe3c21bd94?auto=format&fit=crop&w=1400&q=80", "alt_text": "White bed in a calm contemporary room"},
    {"url": "https://images.unsplash.com/photo-1612320582827-a95ab2596dbc?auto=format&fit=crop&w=1400&q=80", "alt_text": "Pillowed bed in a pared-back bedroom"},
    {"url": "https://images.unsplash.com/photo-1649068559107-e5d936141e44?auto=format&fit=crop&w=1400&q=80", "alt_text": "Bedroom beside a tall window with natural light"},
    {"url": "https://images.unsplash.com/photo-1449158743715-0a90ebb6d2d8?auto=format&fit=crop&w=1400&q=80", "alt_text": "Cabin tucked into a green forest clearing"},
    {"url": "https://images.unsplash.com/photo-1570793005386-840846445fed?auto=format&fit=crop&w=1400&q=80", "alt_text": "Wooden cabin surrounded by tall pines"},
    {"url": "https://images.unsplash.com/photo-1542718610-a1d656d1884c?auto=format&fit=crop&w=1400&q=80", "alt_text": "Dark cabin exterior nestled among trees"},
    {"url": "https://images.unsplash.com/photo-1631630259742-c0f0b17c6c10?auto=format&fit=crop&w=1400&q=80", "alt_text": "Cabin interior with a stove and lounge chair"},
    {"url": "https://images.unsplash.com/photo-1587061949409-02df41d5e562?auto=format&fit=crop&w=1400&q=80", "alt_text": "Rustic cabin in a dense evergreen forest"},
    {"url": "https://images.unsplash.com/photo-1510798831971-661eb04b3739?auto=format&fit=crop&w=1400&q=80", "alt_text": "Snowy lakeside cabin glowing at dusk"},
    {"url": "https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=1400&q=80", "alt_text": "Cabin by the water beneath tall pines"},
    {"url": "https://images.unsplash.com/photo-1575403071235-5dcd06cbf169?auto=format&fit=crop&w=1400&q=80", "alt_text": "Wood cabin tucked into a mountain forest"},
    {"url": "https://images.unsplash.com/photo-1697462248369-254119899872?auto=format&fit=crop&w=1400&q=80", "alt_text": "Compact cabin with a yard-side fire pit"},
]


GALLERY_IMAGE_TARGET = 5


REVIEW_SNIPPETS = [
    "Beautifully set up and even better in person.",
    "The neighborhood was easy to settle into and the home felt calm right away.",
    "Great natural light, smooth arrival, and the kind of place we would happily book again.",
    "Thoughtful details throughout and a very comfortable base for a few days away.",
]

TARGET_TOTAL_LISTINGS = 300


THEME_PROFILES: dict[str, dict[str, Any]] = {
    "city_loft": {
        "title_suffix": "Canal Loft",
        "price_delta": 12,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "descriptor": "clean-lined loft",
        "trip_style": "remote work mornings and walkable dinner plans",
        "amenities": ["Wifi", "Dedicated workspace", "Kitchen", "Washer", "Self check-in"],
        "house_rules": ["No smoking", "No parties", "Quiet hours after 10 PM"],
        "image_theme": "city_loft",
    },
    "city_studio": {
        "title_suffix": "Studio Flat",
        "price_delta": -8,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "descriptor": "compact studio",
        "trip_style": "short city breaks with easy transit days",
        "amenities": ["Wifi", "Kitchen", "Air conditioning", "Coffee bar", "Self check-in"],
        "house_rules": ["No smoking", "No parties", "Please remove shoes indoors"],
        "image_theme": "city_studio",
    },
    "city_townhouse": {
        "title_suffix": "Townhouse",
        "price_delta": 28,
        "bedrooms": 2,
        "beds": 2,
        "baths": 1.5,
        "max_guests": 4,
        "descriptor": "multi-level townhouse",
        "trip_style": "friend getaways and long neighborhood walks",
        "amenities": ["Wifi", "Patio", "Kitchen", "Washer", "Dedicated workspace"],
        "house_rules": ["No smoking", "No parties", "Quiet hours after 10 PM"],
        "image_theme": "city_townhouse",
    },
    "city_historic": {
        "title_suffix": "Old Quarter Suite",
        "price_delta": 18,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "descriptor": "stone-and-light suite",
        "trip_style": "museum afternoons and old-street evening strolls",
        "amenities": ["Wifi", "Kitchen", "Air conditioning", "Coffee bar", "Elevator"],
        "house_rules": ["No smoking", "No parties", "Please respect building quiet hours"],
        "image_theme": "city_historic",
    },
    "city_modern": {
        "title_suffix": "Design Apartment",
        "price_delta": 14,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "descriptor": "design-forward apartment",
        "trip_style": "busy weekdays with comfortable evenings in",
        "amenities": ["Wifi", "Kitchen", "Gym", "Air conditioning", "Washer"],
        "house_rules": ["No smoking", "No parties", "Please respect neighbors in common areas"],
        "image_theme": "city_modern",
    },
    "city_penthouse": {
        "title_suffix": "Penthouse Nook",
        "price_delta": 52,
        "bedrooms": 2,
        "beds": 2,
        "baths": 2.0,
        "max_guests": 4,
        "descriptor": "top-floor penthouse",
        "trip_style": "special-occasion trips and skyline evenings",
        "amenities": ["Wifi", "Balcony", "Kitchen", "Air conditioning", "Dedicated workspace", "Washer"],
        "house_rules": ["No smoking", "No parties", "Quiet hours after 10 PM"],
        "image_theme": "city_penthouse",
    },
    "city_apartment": {
        "title_suffix": "Balcony Apartment",
        "price_delta": 6,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "descriptor": "sunny apartment",
        "trip_style": "easy mornings, neighborhood cafes, and evening walks",
        "amenities": ["Wifi", "Balcony", "Kitchen", "Air conditioning", "Washer"],
        "house_rules": ["No smoking", "No parties", "Please keep hallway noise low"],
        "image_theme": "city_apartment",
    },
    "city_artful": {
        "title_suffix": "Atelier Flat",
        "price_delta": 4,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "descriptor": "artful apartment",
        "trip_style": "bookshop mornings and gallery-heavy afternoons",
        "amenities": ["Wifi", "Kitchen", "Dedicated workspace", "Washer", "Balcony"],
        "house_rules": ["No smoking", "No parties", "Please recycle glass and paper"],
        "image_theme": "city_artful",
    },
    "city_suite": {
        "title_suffix": "City Suite",
        "price_delta": 2,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "descriptor": "polished suite",
        "trip_style": "quick work trips with polished hotel-adjacent comfort",
        "amenities": ["Wifi", "Kitchen", "Coffee bar", "Air conditioning", "Elevator"],
        "house_rules": ["No smoking", "No parties", "Building quiet hours after 10 PM"],
        "image_theme": "city_suite",
    },
    "coastal_house": {
        "title_suffix": "Harbor House",
        "price_delta": 34,
        "bedrooms": 2,
        "beds": 2,
        "baths": 1.5,
        "max_guests": 4,
        "descriptor": "coastal house",
        "trip_style": "slow beach mornings and long waterfront evenings",
        "amenities": ["Wifi", "Kitchen", "Parking", "Washer", "Balcony"],
        "house_rules": ["No smoking", "No parties", "Quiet deck use after 10 PM"],
        "image_theme": "coastal_house",
    },
    "coastal_cabin": {
        "title_suffix": "Surf Cabin",
        "price_delta": 30,
        "bedrooms": 2,
        "beds": 2,
        "baths": 1.0,
        "max_guests": 4,
        "descriptor": "cedar-lined cabin",
        "trip_style": "surf days and storm-watching nights",
        "amenities": ["Wifi", "Hot tub", "Outdoor shower", "Kitchen", "Parking", "Indoor fireplace"],
        "house_rules": ["No smoking", "No parties", "Please rinse sand before coming inside"],
        "image_theme": "coastal_cabin",
    },
    "mountain_chalet": {
        "title_suffix": "Peak Chalet",
        "price_delta": 64,
        "bedrooms": 3,
        "beds": 4,
        "baths": 2.0,
        "max_guests": 6,
        "descriptor": "alpine chalet",
        "trip_style": "trail-heavy days and firelit dinners",
        "amenities": ["Wifi", "Hot tub", "Indoor fireplace", "Parking", "Ski storage", "Kitchen"],
        "house_rules": ["No smoking", "No parties", "Please store outdoor gear in the entry area"],
        "image_theme": "mountain_chalet",
    },
    "forest_cabin": {
        "title_suffix": "Ridge Cabin",
        "price_delta": 38,
        "bedrooms": 2,
        "beds": 2,
        "baths": 1.5,
        "max_guests": 4,
        "descriptor": "forest cabin",
        "trip_style": "hiking weekends and low-key reset days",
        "amenities": ["Wifi", "Mountain views", "Parking", "Kitchen", "Indoor fireplace"],
        "house_rules": ["No smoking", "No parties", "Please lock doors when leaving for hikes"],
        "image_theme": "forest_cabin",
    },
    "lake_house": {
        "title_suffix": "Lakeview Bungalow",
        "price_delta": 32,
        "bedrooms": 2,
        "beds": 3,
        "baths": 1.5,
        "max_guests": 4,
        "descriptor": "lake-adjacent bungalow",
        "trip_style": "dockside afternoons and peaceful mornings",
        "amenities": ["Wifi", "Lake views", "Kitchen", "Parking", "Washer", "Patio"],
        "house_rules": ["No smoking", "No parties", "Please rinse sandy gear before entering"],
        "image_theme": "lake_house",
    },
    "country_cottage": {
        "title_suffix": "Vineyard Cottage",
        "price_delta": 24,
        "bedrooms": 2,
        "beds": 2,
        "baths": 1.0,
        "max_guests": 4,
        "descriptor": "country cottage",
        "trip_style": "slow weekends with outdoor meals and local market runs",
        "amenities": ["Wifi", "Patio", "Kitchen", "Parking", "Fire pit", "BBQ"],
        "house_rules": ["No smoking", "No parties", "Please keep outdoor noise low after 10 PM"],
        "image_theme": "country_cottage",
    },
    "desert_casita": {
        "title_suffix": "Courtyard Casita",
        "price_delta": 20,
        "bedrooms": 1,
        "beds": 1,
        "baths": 1.0,
        "max_guests": 2,
        "descriptor": "private casita",
        "trip_style": "sunrise coffee, pool afternoons, and warm evening dinners",
        "amenities": ["Wifi", "Pool", "Patio", "Air conditioning", "Coffee bar"],
        "house_rules": ["No smoking", "No parties", "Please keep gates closed"],
        "image_theme": "desert_casita",
    },
}


MARKET_BLUEPRINTS: list[dict[str, Any]] = [
    {
        "city": "Lisbon",
        "country": "Portugal",
        "host_id": 2,
        "base_price": 225,
        "neighborhoods": ["Alfama", "Principe Real", "Belem"],
        "local_draw": "tram rides, tiled facades, and hilltop viewpoints",
        "bonus_amenity": "Balcony",
        "theme_cycle": ["city_historic", "city_studio", "city_apartment"],
    },
    {
        "city": "Barcelona",
        "country": "Spain",
        "host_id": 2,
        "base_price": 248,
        "neighborhoods": ["Gracia", "El Born", "Poblenou"],
        "local_draw": "late tapas, beach walks, and design-forward side streets",
        "bonus_amenity": "Air conditioning",
        "theme_cycle": ["city_apartment", "city_loft", "city_penthouse"],
    },
    {
        "city": "Mexico City",
        "country": "Mexico",
        "host_id": 3,
        "base_price": 212,
        "neighborhoods": ["Roma Norte", "Condesa", "Coyoacan"],
        "local_draw": "tree-lined avenues, museum afternoons, and excellent late-night food",
        "bonus_amenity": "Patio",
        "theme_cycle": ["city_artful", "city_suite", "city_modern"],
    },
    {
        "city": "Austin",
        "country": "United States",
        "host_id": 3,
        "base_price": 232,
        "neighborhoods": ["South Congress", "East Austin", "Zilker"],
        "local_draw": "live music nights, trail loops, and easy taco runs",
        "bonus_amenity": "Record player",
        "theme_cycle": ["city_modern", "city_townhouse", "lake_house"],
    },
    {
        "city": "Seattle",
        "country": "United States",
        "host_id": 4,
        "base_price": 244,
        "neighborhoods": ["Capitol Hill", "Fremont", "Ballard"],
        "local_draw": "waterfront mornings, coffee roasters, and ferry day trips",
        "bonus_amenity": "Rainfall shower",
        "theme_cycle": ["city_loft", "city_suite", "forest_cabin"],
    },
    {
        "city": "San Diego",
        "country": "United States",
        "host_id": 4,
        "base_price": 238,
        "neighborhoods": ["North Park", "Little Italy", "Ocean Beach"],
        "local_draw": "sunny patios, beach afternoons, and relaxed evening food spots",
        "bonus_amenity": "Outdoor shower",
        "theme_cycle": ["coastal_house", "city_apartment", "coastal_cabin"],
    },
    {
        "city": "Miami",
        "country": "United States",
        "host_id": 3,
        "base_price": 268,
        "neighborhoods": ["Wynwood", "Coconut Grove", "Mid Beach"],
        "local_draw": "art-heavy blocks, palm-lined streets, and warm-water mornings",
        "bonus_amenity": "Pool",
        "theme_cycle": ["city_penthouse", "coastal_house", "city_artful"],
    },
    {
        "city": "New Orleans",
        "country": "United States",
        "host_id": 2,
        "base_price": 234,
        "neighborhoods": ["Marigny", "Bywater", "Warehouse District"],
        "local_draw": "live jazz corners, courtyard cafes, and late-night bites",
        "bonus_amenity": "Courtyard",
        "theme_cycle": ["city_historic", "city_artful", "city_suite"],
    },
    {
        "city": "Denver",
        "country": "United States",
        "host_id": 4,
        "base_price": 229,
        "neighborhoods": ["RiNo", "LoHi", "Baker"],
        "local_draw": "mountain day trips, brewery patios, and bike-friendly streets",
        "bonus_amenity": "Bike storage",
        "theme_cycle": ["city_modern", "mountain_chalet", "city_loft"],
    },
    {
        "city": "Reykjavik",
        "country": "Iceland",
        "host_id": 4,
        "base_price": 282,
        "neighborhoods": ["Midborg", "Vesturbaer", "Laugardalur"],
        "local_draw": "harbor walks, thermal pools, and moody coastal weather",
        "bonus_amenity": "Sauna",
        "theme_cycle": ["city_suite", "coastal_house", "forest_cabin"],
    },
    {
        "city": "Edinburgh",
        "country": "United Kingdom",
        "host_id": 2,
        "base_price": 250,
        "neighborhoods": ["Leith", "Stockbridge", "Old Town"],
        "local_draw": "stone lanes, market mornings, and castle skyline views",
        "bonus_amenity": "Fireplace",
        "theme_cycle": ["city_historic", "city_townhouse", "city_suite"],
    },
    {
        "city": "Dublin",
        "country": "Ireland",
        "host_id": 2,
        "base_price": 244,
        "neighborhoods": ["Portobello", "Ranelagh", "Smithfield"],
        "local_draw": "pub music sessions, canal strolls, and cafe-heavy mornings",
        "bonus_amenity": "Coffee bar",
        "theme_cycle": ["city_apartment", "city_loft", "city_historic"],
    },
    {
        "city": "Copenhagen",
        "country": "Denmark",
        "host_id": 4,
        "base_price": 276,
        "neighborhoods": ["Vesterbro", "Norrebro", "Christianshavn"],
        "local_draw": "bike routes, bakery stops, and waterfront swims",
        "bonus_amenity": "Bike storage",
        "theme_cycle": ["city_modern", "city_apartment", "city_penthouse"],
    },
    {
        "city": "Amsterdam",
        "country": "Netherlands",
        "host_id": 4,
        "base_price": 290,
        "neighborhoods": ["Jordaan", "De Pijp", "Oost"],
        "local_draw": "canal-side wandering, design shops, and easy tram links",
        "bonus_amenity": "Canal views",
        "theme_cycle": ["city_historic", "city_loft", "city_suite"],
    },
    {
        "city": "Berlin",
        "country": "Germany",
        "host_id": 3,
        "base_price": 224,
        "neighborhoods": ["Kreuzberg", "Prenzlauer Berg", "Neukoelln"],
        "local_draw": "late galleries, coffee labs, and huge green parks",
        "bonus_amenity": "Dedicated workspace",
        "theme_cycle": ["city_artful", "city_modern", "city_apartment"],
    },
    {
        "city": "Kyoto",
        "country": "Japan",
        "host_id": 3,
        "base_price": 258,
        "neighborhoods": ["Gion", "Arashiyama", "Shimogyo"],
        "local_draw": "quiet temple paths, river evenings, and neighborhood tea stops",
        "bonus_amenity": "Tea set",
        "theme_cycle": ["city_historic", "city_suite", "forest_cabin"],
    },
    {
        "city": "Seoul",
        "country": "South Korea",
        "host_id": 2,
        "base_price": 238,
        "neighborhoods": ["Hongdae", "Seongsu", "Itaewon"],
        "local_draw": "night markets, design cafes, and quick subway connections",
        "bonus_amenity": "Smart TV",
        "theme_cycle": ["city_studio", "city_modern", "city_penthouse"],
    },
    {
        "city": "Taipei",
        "country": "Taiwan",
        "host_id": 2,
        "base_price": 216,
        "neighborhoods": ["Daan", "Ximending", "Songshan"],
        "local_draw": "night-market snacks, riverside rides, and tea house afternoons",
        "bonus_amenity": "Transit pass",
        "theme_cycle": ["city_studio", "city_apartment", "city_artful"],
    },
    {
        "city": "Melbourne",
        "country": "Australia",
        "host_id": 4,
        "base_price": 236,
        "neighborhoods": ["Fitzroy", "South Yarra", "St Kilda"],
        "local_draw": "laneway coffee, gallery runs, and coastal sunset walks",
        "bonus_amenity": "Patio",
        "theme_cycle": ["city_artful", "city_townhouse", "coastal_house"],
    },
    {
        "city": "Cape Town",
        "country": "South Africa",
        "host_id": 3,
        "base_price": 262,
        "neighborhoods": ["Sea Point", "Woodstock", "Gardens"],
        "local_draw": "mountain lookouts, ocean drives, and neighborhood food halls",
        "bonus_amenity": "Mountain views",
        "theme_cycle": ["coastal_house", "city_penthouse", "country_cottage"],
    },
]


LISTING_VARIANTS: list[dict[str, Any]] = [
    {
        "label": "Pocket",
        "slug_tag": "pocket",
        "theme_shift": 0,
        "price_delta": -22,
        "bedroom_delta": 0,
        "bed_delta": 0,
        "bath_delta": 0.0,
        "guest_delta": 0,
        "experience": "short, polished city breaks that still feel settled",
        "extra_amenity": "Self check-in",
        "extra_rule": "Please keep common spaces tidy",
    },
    {
        "label": "Corner",
        "slug_tag": "corner",
        "theme_shift": 1,
        "price_delta": -6,
        "bedroom_delta": 0,
        "bed_delta": 1,
        "bath_delta": 0.0,
        "guest_delta": 1,
        "experience": "easy long weekends with room to unpack and settle in",
        "extra_amenity": "Smart TV",
        "extra_rule": "No unregistered overnight guests",
    },
    {
        "label": "Terrace",
        "slug_tag": "terrace",
        "theme_shift": 2,
        "price_delta": 14,
        "bedroom_delta": 1,
        "bed_delta": 1,
        "bath_delta": 0.5,
        "guest_delta": 2,
        "experience": "friend trips with shared meals and slower mornings",
        "extra_amenity": "Outdoor dining",
        "extra_rule": "Please keep balcony and terrace noise low after 10 PM",
    },
    {
        "label": "Family",
        "slug_tag": "family",
        "theme_shift": 0,
        "price_delta": 32,
        "bedroom_delta": 1,
        "bed_delta": 2,
        "bath_delta": 0.5,
        "guest_delta": 3,
        "experience": "longer family stays with space to spread out",
        "extra_amenity": "Crib",
        "extra_rule": "Please report any accidental damage promptly",
    },
    {
        "label": "Group",
        "slug_tag": "group",
        "theme_shift": 1,
        "price_delta": 48,
        "bedroom_delta": 2,
        "bed_delta": 3,
        "bath_delta": 1.0,
        "guest_delta": 5,
        "experience": "group getaways with enough room for social evenings",
        "extra_amenity": "Fire pit",
        "extra_rule": "Please keep fire safety tools accessible",
    },
    {
        "label": "Signature",
        "slug_tag": "signature",
        "theme_shift": 2,
        "price_delta": 62,
        "bedroom_delta": 1,
        "bed_delta": 2,
        "bath_delta": 1.0,
        "guest_delta": 4,
        "experience": "special-occasion trips with elevated comfort throughout",
        "extra_amenity": "Concierge recommendations",
        "extra_rule": "Please share expected arrival time 24 hours in advance",
    },
]


def _slugify(value: str) -> str:
    slug = "".join(character.lower() if character.isalnum() else "-" for character in value)
    while "--" in slug:
        slug = slug.replace("--", "-")
    return slug.strip("-")


def _merge_amenities(base: list[str], extras: list[str]) -> list[str]:
    merged: list[str] = []
    for amenity in [*base, *extras]:
        if amenity not in merged:
            merged.append(amenity)
    return merged


def _build_diverse_catalog_specs() -> list[dict[str, Any]]:
    dynamic_specs: list[dict[str, Any]] = []
    used_slugs = {item["slug"] for item in CATALOG_SPECS}

    for market_index, market in enumerate(MARKET_BLUEPRINTS):
        for neighborhood_index, neighborhood in enumerate(market["neighborhoods"]):
            for variant_index, variant in enumerate(LISTING_VARIANTS):
                style_key = market["theme_cycle"][(neighborhood_index + variant["theme_shift"]) % len(market["theme_cycle"])]
                style = THEME_PROFILES[style_key]
                listing_index = (
                    (market_index * len(market["neighborhoods"]) + neighborhood_index) * len(LISTING_VARIANTS)
                    + variant_index
                )
                title = f"{neighborhood} {variant['label']} {style['title_suffix']}"

                slug_base = _slugify(f"{market['city']}-{neighborhood}-{variant['slug_tag']}-{style['title_suffix']}")
                slug = slug_base
                suffix_index = 2
                while slug in used_slugs:
                    slug = f"{slug_base}-{suffix_index}"
                    suffix_index += 1
                used_slugs.add(slug)

                bedrooms = max(1, style["bedrooms"] + variant["bedroom_delta"])
                beds = max(bedrooms, style["beds"] + variant["bed_delta"])
                baths = round(max(1.0, style["baths"] + variant["bath_delta"]), 1)
                max_guests = min(12, max(2, style["max_guests"] + variant["guest_delta"], beds))

                nightly_rate = max(120, market["base_price"] + style["price_delta"] + neighborhood_index * 9 + variant["price_delta"])
                rating = round(min(4.74 + (listing_index % 26) * 0.01, 4.99), 2)

                dynamic_specs.append(
                    {
                        "slug": slug,
                        "title": title,
                        "city": market["city"],
                        "country": market["country"],
                        "neighborhood": neighborhood,
                        "host_id": market["host_id"],
                        "price_per_night": nightly_rate,
                        "cleaning_fee": int(max(30, round(nightly_rate * 0.17))),
                        "service_fee": int(max(20, round(nightly_rate * 0.12))),
                        "bedrooms": bedrooms,
                        "beds": beds,
                        "baths": baths,
                        "max_guests": max_guests,
                        "rating": rating,
                        "review_count": 38 + (listing_index * 11 % 180),
                        "description": (
                            f"A {style['descriptor']} in {neighborhood} with easy access to {market['local_draw']}. "
                            f"Designed for {variant['experience']} while still feeling practical for everyday routines."
                        ),
                        "amenities": _merge_amenities(style["amenities"], [market["bonus_amenity"], variant["extra_amenity"]]),
                        "house_rules": _merge_amenities(style["house_rules"], [variant["extra_rule"]]),
                        "image_theme": style["image_theme"],
                    }
                )

    return dynamic_specs


def _blocked_range(index: int) -> list[dict[str, str]]:
    month = 4 + (index % 4)
    start_day = 4 + (index * 3 % 18)
    end_day = start_day + 2
    return [{"start": f"2026-{month:02d}-{start_day:02d}", "end": f"2026-{month:02d}-{end_day:02d}"}]


def _dedupe_images(images: list[dict[str, str]]) -> list[dict[str, str]]:
    seen_urls: set[str] = set()
    deduped: list[dict[str, str]] = []
    for image in images:
        if image["url"] in seen_urls:
            continue
        seen_urls.add(image["url"])
        deduped.append(image)
    return deduped


def _build_images(theme: str, variant_seed: int = 0) -> list[dict[str, Any]]:
    image_set = IMAGE_THEMES[theme]
    offset = variant_seed % len(image_set)
    rotated_set = image_set[offset:] + image_set[:offset]
    cover_offset = variant_seed % len(COVER_IMAGE_POOL)
    rotated_cover_pool = COVER_IMAGE_POOL[cover_offset:] + COVER_IMAGE_POOL[:cover_offset]
    ordered_images = _dedupe_images(rotated_cover_pool + rotated_set + list(reversed(rotated_set)))
    return [
        {
            "url": image["url"],
            "alt_text": image["alt_text"],
            "display_order": order,
        }
        for order, image in enumerate(ordered_images[:GALLERY_IMAGE_TARGET])
    ]


def _build_review(review_id: int, listing_id: int, user_id: int, rating: float, title: str, snippet: str) -> dict[str, Any]:
    return {
        "id": review_id,
        "listing_id": listing_id,
        "user_id": user_id,
        "rating": rating,
        "comment": f"{snippet} {title} made the trip feel easy.",
        "created_at": f"2026-02-{(review_id % 20) + 1:02d}T1{review_id % 10}:20:00",
    }


def extend_seed_data(seed_data: dict[str, Any]) -> dict[str, Any]:
    starting_listing_count = len(seed_data.get("listings", []))
    if starting_listing_count >= TARGET_TOTAL_LISTINGS:
        return seed_data

    additions_needed = TARGET_TOTAL_LISTINGS - starting_listing_count
    catalog_pool = CATALOG_SPECS + _build_diverse_catalog_specs()
    catalog_specs = catalog_pool[:additions_needed]

    expanded = deepcopy(seed_data)
    next_listing_id = max(item["id"] for item in expanded["listings"]) + 1
    next_review_id = max(item["id"] for item in expanded["reviews"]) + 1
    existing_slugs = {item["slug"] for item in expanded["listings"]}

    for index, spec in enumerate(catalog_specs):
        if spec["slug"] in existing_slugs:
            continue

        existing_slugs.add(spec["slug"])
        listing_id = next_listing_id
        next_listing_id += 1
        listing_payload = {
            "id": listing_id,
            "slug": spec["slug"],
            "host_id": spec["host_id"],
            "title": spec["title"],
            "city": spec["city"],
            "country": spec["country"],
            "neighborhood": spec["neighborhood"],
            "price_per_night": spec["price_per_night"],
            "cleaning_fee": spec["cleaning_fee"],
            "service_fee": spec["service_fee"],
            "bedrooms": spec["bedrooms"],
            "beds": spec["beds"],
            "baths": spec["baths"],
            "max_guests": spec["max_guests"],
            "rating": spec["rating"],
            "review_count": spec["review_count"],
            "description": spec["description"],
            "amenities": spec["amenities"],
            "house_rules": spec["house_rules"],
            "blocked_ranges": _blocked_range(index),
            "images": _build_images(spec["image_theme"], index),
        }
        expanded["listings"].append(listing_payload)

        expanded["reviews"].append(
            _build_review(
                review_id=next_review_id,
                listing_id=listing_id,
                user_id=1 if index % 2 == 0 else 5,
                rating=round(min(spec["rating"], 5.0), 1),
                title=spec["title"],
                snippet=REVIEW_SNIPPETS[index % len(REVIEW_SNIPPETS)],
            )
        )
        next_review_id += 1
        expanded["reviews"].append(
            _build_review(
                review_id=next_review_id,
                listing_id=listing_id,
                user_id=5 if index % 2 == 0 else 1,
                rating=round(min(spec["rating"] - 0.1, 5.0), 1),
                title=spec["title"],
                snippet=REVIEW_SNIPPETS[(index + 1) % len(REVIEW_SNIPPETS)],
            )
        )
        next_review_id += 1

    return expanded