-- Script para poblar monumentos adicionales de RD y Puerto Rico (Parte 2)
-- Coordenadas en formato PostgreSQL point: (longitude, latitude)

-- ==========================================
-- REPÚBLICA DOMINICANA - ZONA COLONIAL (Adicionales)
-- ==========================================

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Casa de la Moneda', 'casa-de-la-moneda', 'museum', point(-69.88282, 18.47353), 'DO', 'Calle Las Damas, Zona Colonial, Santo Domingo', false, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Reloj de Sol', 'reloj-de-sol', 'monument', point(-69.88235, 18.47481), 'DO', 'Calle Las Damas, Zona Colonial, Santo Domingo', false, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Casa del Cordón', 'casa-del-cordon', 'monument', point(-69.88312, 18.47594), 'DO', 'Calle Isabel la Católica, Zona Colonial, Santo Domingo', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Casa de Tostado', 'casa-de-tostado', 'museum', point(-69.88264, 18.47167), 'DO', 'Calle Padre Billini, Zona Colonial, Santo Domingo', false, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Iglesia de la Merced', 'iglesia-de-la-merced', 'church', point(-69.88724, 18.47398), 'DO', 'Calle Las Mercedes, Zona Colonial, Santo Domingo', false, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Iglesia de Regina Angelorum', 'iglesia-regina-angelorum', 'church', point(-69.88602, 18.47055), 'DO', 'Calle Padre Billini, Zona Colonial, Santo Domingo', false, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Ruinas del Monasterio de San Francisco', 'ruinas-monasterio-san-francisco', 'ruins', point(-69.88478, 18.47648), 'DO', 'Calle Hostos, Zona Colonial, Santo Domingo', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Casa de las Gárgolas', 'casa-de-las-gargolas', 'monument', point(-69.88272, 18.47504), 'DO', 'Calle Las Damas, Zona Colonial, Santo Domingo', false, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Museo del Ámbar', 'museo-del-ambar', 'museum', point(-69.88651, 18.47402), 'DO', 'Calle Arzobispo Meriño, Zona Colonial, Santo Domingo', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Museo de Larimar', 'museo-de-larimar', 'museum', point(-69.88295, 18.47185), 'DO', 'Calle Isabel la Católica, Zona Colonial, Santo Domingo', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

-- ==========================================
-- SANTO DOMINGO (Fuera de Zona Colonial)
-- ==========================================

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Malecón de Santo Domingo', 'malecon-santo-domingo', 'promenade', point(-69.89381, 18.46351), 'DO', 'Av. George Washington, Santo Domingo', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Plaza de la Cultura', 'plaza-de-la-cultura', 'plaza', point(-69.91102, 18.47141), 'DO', 'Av. Máximo Gómez, Santo Domingo', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Palacio de Bellas Artes', 'palacio-bellas-artes', 'museum', point(-69.90956, 18.46654), 'DO', 'Av. Máximo Gómez, Santo Domingo', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Teatro Nacional Eduardo Brito', 'teatro-nacional', 'theater', point(-69.91008, 18.47172), 'DO', 'Plaza de la Cultura, Santo Domingo', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Centro Olímpico Juan Pablo Duarte', 'centro-olimpico', 'sports', point(-69.91605, 18.48002), 'DO', 'Av. 27 de Febrero, Santo Domingo', false, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

-- ==========================================
-- RD - NORTE (Puerto Plata)
-- ==========================================

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('27 Charcos de Damajagua', '27-charcos-damajagua', 'natural', point(-70.82471, 19.72885), 'DO', 'Imbert, Puerto Plata', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Ocean World Adventure Park', 'ocean-world', 'attraction', point(-70.73155, 19.83152), 'DO', 'Cofresí, Puerto Plata', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Playa Dorada', 'playa-dorada', 'beach', point(-70.64402, 19.76801), 'DO', 'Puerto Plata', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

-- ==========================================
-- RD - ESTE (Punta Cana, Hato Mayor)
-- ==========================================

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Cueva Fun Fun', 'cueva-fun-fun', 'natural', point(-69.44405, 19.04802), 'DO', 'Hato Mayor', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Hoyo Azul', 'hoyo-azul', 'natural', point(-68.45502, 18.44855), 'DO', 'Scape Park, Cap Cana, Punta Cana', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Indigenous Eyes Ecological Park', 'indigenous-eyes', 'natural', point(-68.37504, 18.51301), 'DO', 'Puntacana Resort & Club', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Playa Bávaro', 'playa-bavaro', 'beach', point(-68.41805, 18.68002), 'DO', 'Bávaro, Punta Cana', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Parque Nacional Los Haitises', 'parque-los-haitises', 'natural', point(-69.51672, 19.06671), 'DO', 'Sabana de la Mar, Hato Mayor', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

-- ==========================================
-- RD - SUROESTE (Barahona, Pedernales)
-- ==========================================

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Lago Enriquillo', 'lago-enriquillo', 'natural', point(-71.65002, 18.48405), 'DO', 'Independencia / Bahoruco', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Isla Cabritos', 'isla-cabritos', 'natural', point(-71.68504, 18.48802), 'DO', 'Lago Enriquillo', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Bahía de las Águilas', 'bahia-de-las-aguilas', 'beach', point(-71.64205, 17.86402), 'DO', 'Parque Nacional Jaragua, Pedernales', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Parque Nacional Jaragua', 'parque-jaragua', 'natural', point(-71.50004, 17.85002), 'DO', 'Oviedo, Pedernales', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

-- ==========================================
-- RD - MONTAÑAS (Constanza, Jarabacoa)
-- ==========================================

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Aguas Blancas', 'aguas-blancas', 'natural', point(-70.67505, 18.85002), 'DO', 'Constanza, La Vega', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Piedra Letrada', 'piedra-letrada', 'natural', point(-70.76204, 18.78852), 'DO', 'Constanza, La Vega', false, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

-- ==========================================
-- PUERTO RICO - SAN JUAN (Adicionales)
-- ==========================================

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Museo de Arte de Puerto Rico', 'museo-arte-puerto-rico', 'museum', point(-66.06652, 18.44825), 'PR', 'Av. De Diego 299, Santurce, San Juan', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Fuerte San Juan de la Cruz (El Cañuelo)', 'fuerte-el-canuelo', 'fortress', point(-66.13601, 18.47352), 'PR', 'Isla de Cabras, Toa Baja', false, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Plaza de la Rogativa', 'plaza-de-la-rogativa', 'plaza', point(-66.11972, 18.46685), 'PR', 'Caleta de las Monjas, Viejo San Juan', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Fuente Raíces', 'fuente-raices', 'monument', point(-66.11865, 18.46382), 'PR', 'Paseo de la Princesa, Viejo San Juan', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

-- ==========================================
-- PUERTO RICO - COSTA NORTE
-- ==========================================

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Observatorio de Arecibo', 'observatorio-arecibo', 'museum', point(-66.75282, 18.34421), 'PR', 'Carretera 625, Arecibo', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Playa Crash Boat', 'playa-crash-boat', 'beach', point(-67.16301, 18.45802), 'PR', 'Aguadilla', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Parque de las Cavernas del Río Camuy', 'cavernas-rio-camuy', 'natural', point(-66.82405, 18.34702), 'PR', 'Carretera 129, Camuy', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

-- ==========================================
-- PUERTO RICO - COSTA SUR
-- ==========================================

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Porta Coeli', 'porta-coeli', 'church', point(-67.04021, 18.08182), 'PR', 'San Germán', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('La Parguera', 'la-parguera', 'natural', point(-67.04505, 17.97202), 'PR', 'Lajas', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Bosque Seco de Guánica', 'bosque-seco-guanica', 'natural', point(-66.86554, 17.97152), 'PR', 'Guánica', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

-- ==========================================
-- PUERTO RICO - CENTRO / MONTAÑAS
-- ==========================================

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Toro Verde Adventure Park', 'toro-verde', 'attraction', point(-66.39101, 18.25202), 'PR', 'Orocovis', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Hacienda Buena Vista', 'hacienda-buena-vista', 'museum', point(-66.65481, 18.08442), 'PR', 'Ponce', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Bosque Estatal de Toro Negro', 'bosque-toro-negro', 'natural', point(-66.58784, 18.17252), 'PR', 'Jayuya/Ciales', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

-- ==========================================
-- PUERTO RICO - ISLAS
-- ==========================================

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Faro de Culebrita', 'faro-culebrita', 'monument', point(-65.23004, 18.31502), 'PR', 'Isla Culebrita, Culebra', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

INSERT INTO tourism.places_of_interest (name, slug, category, coordinates, country, address, featured, active, created_at, updated_at)
VALUES ('Sun Bay Beach', 'sun-bay-beach', 'beach', point(-65.46205, 18.10002), 'PR', 'Vieques', true, true, NOW(), NOW())
ON CONFLICT (slug) DO UPDATE SET name = EXCLUDED.name, coordinates = EXCLUDED.coordinates, address = EXCLUDED.address, updated_at = NOW();

-- Mostrar resultado
SELECT 'Parte 2 completada!' as status, COUNT(*) as total_places FROM tourism.places_of_interest WHERE active = true;
SELECT country, COUNT(*) as cantidad FROM tourism.places_of_interest WHERE active = true GROUP BY country ORDER BY country;
