Download preparation/generated_catalog.py from WebArena-Pro/travelmap-data: direct link, hf CLI and curl.
- Browser
- Download file 66.3 kB
-
https://huggingface.co/datasets/WebArena-Pro/travelmap-data/resolve/main/preparation/generated_catalog.py
- Command line
-
hf download hf://datasets/WebArena-Pro/travelmap-data/preparation/generated_catalog.py
-
curl -L -o generated_catalog.py https://huggingface.co/datasets/WebArena-Pro/travelmap-data/resolve/main/preparation/generated_catalog.py
66.3 kB
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
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,