Experience Pacifico Living before it's even built.
Use our real-time configurator powered by Unreal Engine 5 to
customize finishes, lighting, and furnishings of your future apartment. Leave your details, we'll get back to you soon. Fill out the form to receive more information about Pacifico LivingModern Utopia
Your Future,
Designed by You.
(function() {
'use strict';
console.log('???? PLModal Router loaded');
// Store original PLModal if it exists
var originalPLModal = window.PLModal;
// Create unified PLModal API
window.PLModal = {
open: function() {
var width = window.innerWidth;
console.log('???? PLModal.open() called | Screen width:', width + 'px');
if (width <= 768) {
// MOBILE: Use PLContactBtn
console.log('???? Routing to mobile modal (PLContactBtn)');
if (window.PLContactBtn && typeof window.PLContactBtn.open === 'function') {
window.PLContactBtn.open();
} else {
console.error('❌ PLContactBtn not found! Make sure divi-contact-button-trigger.html is loaded.');
}
} else {
// DESKTOP: Use original PLModal or wait for it
console.log('????️ Routing to desktop modal (PLModal v2.1)');
if (originalPLModal && typeof originalPLModal.open === 'function') {
originalPLModal.open();
} else {
// PLModal v2.1 not loaded yet, try again in 100ms
console.log('⏳ Waiting for desktop PLModal to load...');
setTimeout(function() {
if (window.PLModalOriginal && typeof window.PLModalOriginal.open === 'function') {
window.PLModalOriginal.open();
} else {
console.error('❌ Desktop PLModal not found! Make sure form-2026-v2.1-ita.html is loaded.');
}
}, 100);
}
}
},
close: function() {
var width = window.innerWidth;
console.log('???? PLModal.close() called | Screen width:', width + 'px');
if (width <= 768) {
if (window.PLContactBtn && typeof window.PLContactBtn.close === 'function') {
window.PLContactBtn.close();
}
} else {
if (originalPLModal && typeof originalPLModal.close === 'function') {
originalPLModal.close();
} else if (window.PLModalOriginal && typeof window.PLModalOriginal.close === 'function') {
window.PLModalOriginal.close();
}
}
}
};
// Store reference for desktop modal to use
window.PLModalRouter = window.PLModal;
console.log('✅ PLModal Router ready - onclick="PLModal.open()" will now work on both desktop and mobile');
})();Thank You!
We will be in touch soon!Contact Us
CONTACT US
Experience Pacifico Living before it's even built.
Use our real-time configurator powered by Unreal Engine 5 to
customize finishes, lighting, and furnishings of your future apartment. Modern Utopia
Your Future,
Designed by You.