diff --git a/.deploy_last.json b/.deploy_last.json
new file mode 100644
index 0000000..75c0470
--- /dev/null
+++ b/.deploy_last.json
@@ -0,0 +1,328 @@
+{
+ "status": 0,
+ "result": {
+ "checkOnly": false,
+ "completedDate": "2025-09-07T02:50:58.000Z",
+ "createdBy": "005a3000000Uv2T",
+ "createdByName": "Property Master",
+ "createdDate": "2025-09-07T02:50:52.000Z",
+ "details": {
+ "componentSuccesses": [
+ {
+ "changed": false,
+ "componentType": "CustomField",
+ "created": false,
+ "createdDate": "2025-09-07T02:50:56.000Z",
+ "deleted": false,
+ "fileName": "objects/Property_Template__c.object",
+ "fullName": "Property_Template__c.Description__c",
+ "id": "00NFV000001x1kH2AQ",
+ "success": true
+ },
+ {
+ "changed": false,
+ "componentType": "CustomField",
+ "created": false,
+ "createdDate": "2025-09-07T02:50:56.000Z",
+ "deleted": false,
+ "fileName": "objects/Property_Template__c.object",
+ "fullName": "Property_Template__c.Is_Active__c",
+ "id": "00NFV000001x1kI2AQ",
+ "success": true
+ },
+ {
+ "changed": false,
+ "componentType": "CustomField",
+ "created": false,
+ "createdDate": "2025-09-07T02:50:56.000Z",
+ "deleted": false,
+ "fileName": "objects/Property_Template__c.object",
+ "fullName": "Property_Template__c.Preview_Image_URL__c",
+ "id": "00NFV000001x1kJ2AQ",
+ "success": true
+ },
+ {
+ "changed": false,
+ "componentType": "CustomField",
+ "created": false,
+ "createdDate": "2025-09-07T02:50:56.000Z",
+ "deleted": false,
+ "fileName": "objects/Property_Template__c.object",
+ "fullName": "Property_Template__c.Tags__c",
+ "id": "00NFV000001x1kK2AQ",
+ "success": true
+ },
+ {
+ "changed": false,
+ "componentType": "CustomField",
+ "created": false,
+ "createdDate": "2025-09-07T02:50:56.000Z",
+ "deleted": false,
+ "fileName": "objects/Property_Template__c.object",
+ "fullName": "Property_Template__c.Template_Definition__c",
+ "id": "00NFV000001x1kL2AQ",
+ "success": true
+ },
+ {
+ "changed": false,
+ "componentType": "ApexClass",
+ "created": false,
+ "createdDate": "2025-09-07T02:50:57.000Z",
+ "deleted": false,
+ "fileName": "classes/PdfApiController.cls",
+ "fullName": "PdfApiController",
+ "id": "01pFV000001hBIzYAM",
+ "success": true
+ },
+ {
+ "changed": false,
+ "componentType": "ApexClass",
+ "created": false,
+ "createdDate": "2025-09-07T02:50:57.000Z",
+ "deleted": false,
+ "fileName": "classes/PropertyDataController.cls",
+ "fullName": "PropertyDataController",
+ "id": "01pFV000001hATNYA2",
+ "success": true
+ },
+ {
+ "changed": false,
+ "componentType": "ApexClass",
+ "created": false,
+ "createdDate": "2025-09-07T02:50:57.000Z",
+ "deleted": false,
+ "fileName": "classes/PropertyPdfGeneratorController.cls",
+ "fullName": "PropertyPdfGeneratorController",
+ "id": "01pFV000001hDhNYAU",
+ "success": true
+ },
+ {
+ "changed": false,
+ "componentType": "ApexClass",
+ "created": false,
+ "createdDate": "2025-09-07T02:50:57.000Z",
+ "deleted": false,
+ "fileName": "classes/PropertyTemplateController.cls",
+ "fullName": "PropertyTemplateController",
+ "id": "01pFV000001hAA1YAM",
+ "success": true
+ },
+ {
+ "changed": true,
+ "componentType": "LightningComponentBundle",
+ "created": false,
+ "createdDate": "2025-09-07T02:50:58.000Z",
+ "deleted": false,
+ "fileName": "lwc/propertyTemplateSelector",
+ "fullName": "propertyTemplateSelector",
+ "id": "0RbFV0000008L7J0AU",
+ "success": true
+ },
+ {
+ "changed": true,
+ "componentType": "CustomObject",
+ "created": false,
+ "createdDate": "2025-09-07T02:50:58.000Z",
+ "deleted": false,
+ "fileName": "objects/Property_Template__c.object",
+ "fullName": "Property_Template__c",
+ "id": "01IFV000000CbQP2A0",
+ "success": true
+ },
+ {
+ "changed": true,
+ "componentType": "CspTrustedSite",
+ "created": false,
+ "createdDate": "2025-09-07T02:50:58.000Z",
+ "deleted": false,
+ "fileName": "cspTrustedSites/PDF_API_Trusted_Site.cspTrustedSite",
+ "fullName": "PDF_API_Trusted_Site",
+ "id": "08yFV0000000U1JYAU",
+ "success": true
+ },
+ {
+ "changed": true,
+ "componentType": "",
+ "created": false,
+ "createdDate": "2025-09-07T02:50:58.000Z",
+ "deleted": false,
+ "fileName": "package.xml",
+ "fullName": "package.xml",
+ "success": true
+ }
+ ],
+ "runTestResult": {
+ "numFailures": 0,
+ "numTestsRun": 0,
+ "totalTime": 0,
+ "codeCoverage": [],
+ "codeCoverageWarnings": [],
+ "failures": [],
+ "flowCoverage": [],
+ "flowCoverageWarnings": [],
+ "successes": []
+ },
+ "componentFailures": []
+ },
+ "done": true,
+ "id": "0AfFV000003mAxp0AE",
+ "ignoreWarnings": false,
+ "lastModifiedDate": "2025-09-07T02:50:58.000Z",
+ "numberComponentErrors": 0,
+ "numberComponentsDeployed": 12,
+ "numberComponentsTotal": 12,
+ "numberFiles": "24",
+ "numberTestErrors": 0,
+ "numberTestsCompleted": 0,
+ "numberTestsTotal": 0,
+ "rollbackOnError": true,
+ "runTestsEnabled": false,
+ "startDate": "2025-09-07T02:50:53.000Z",
+ "status": "Succeeded",
+ "success": true,
+ "zipSize": 286681,
+ "files": [
+ {
+ "fullName": "PdfApiController",
+ "type": "ApexClass",
+ "state": "Unchanged",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/classes/PdfApiController.cls"
+ },
+ {
+ "fullName": "PdfApiController",
+ "type": "ApexClass",
+ "state": "Unchanged",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/classes/PdfApiController.cls-meta.xml"
+ },
+ {
+ "fullName": "PropertyDataController",
+ "type": "ApexClass",
+ "state": "Unchanged",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/classes/PropertyDataController.cls"
+ },
+ {
+ "fullName": "PropertyDataController",
+ "type": "ApexClass",
+ "state": "Unchanged",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/classes/PropertyDataController.cls-meta.xml"
+ },
+ {
+ "fullName": "PropertyPdfGeneratorController",
+ "type": "ApexClass",
+ "state": "Unchanged",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/classes/PropertyPdfGeneratorController.cls"
+ },
+ {
+ "fullName": "PropertyPdfGeneratorController",
+ "type": "ApexClass",
+ "state": "Unchanged",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/classes/PropertyPdfGeneratorController.cls-meta.xml"
+ },
+ {
+ "fullName": "PropertyTemplateController",
+ "type": "ApexClass",
+ "state": "Unchanged",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/classes/PropertyTemplateController.cls"
+ },
+ {
+ "fullName": "PropertyTemplateController",
+ "type": "ApexClass",
+ "state": "Unchanged",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/classes/PropertyTemplateController.cls-meta.xml"
+ },
+ {
+ "fullName": "PDF_API_Trusted_Site",
+ "type": "CspTrustedSite",
+ "state": "Changed",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/cspTrustedSites/PDF_API_Trusted_Site.cspTrustedSite-meta.xml"
+ },
+ {
+ "fullName": "Property_Template__c.Description__c",
+ "type": "CustomField",
+ "state": "Unchanged",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/objects/Property_Template__c/fields/Description__c.field-meta.xml"
+ },
+ {
+ "fullName": "Property_Template__c.Is_Active__c",
+ "type": "CustomField",
+ "state": "Unchanged",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/objects/Property_Template__c/fields/Is_Active__c.field-meta.xml"
+ },
+ {
+ "fullName": "Property_Template__c.Preview_Image_URL__c",
+ "type": "CustomField",
+ "state": "Unchanged",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/objects/Property_Template__c/fields/Preview_Image_URL__c.field-meta.xml"
+ },
+ {
+ "fullName": "Property_Template__c.Tags__c",
+ "type": "CustomField",
+ "state": "Unchanged",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/objects/Property_Template__c/fields/Tags__c.field-meta.xml"
+ },
+ {
+ "fullName": "Property_Template__c.Template_Definition__c",
+ "type": "CustomField",
+ "state": "Unchanged",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/objects/Property_Template__c/fields/Template_Definition__c.field-meta.xml"
+ },
+ {
+ "fullName": "Property_Template__c",
+ "type": "CustomObject",
+ "state": "Changed",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/objects/Property_Template__c/Property_Template__c.object-meta.xml"
+ },
+ {
+ "fullName": "propertyTemplateSelector",
+ "type": "LightningComponentBundle",
+ "state": "Changed",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/lwc/propertyTemplateSelector/production-config.js"
+ },
+ {
+ "fullName": "propertyTemplateSelector",
+ "type": "LightningComponentBundle",
+ "state": "Changed",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/lwc/propertyTemplateSelector/propertyTemplateSelector.css"
+ },
+ {
+ "fullName": "propertyTemplateSelector",
+ "type": "LightningComponentBundle",
+ "state": "Changed",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/lwc/propertyTemplateSelector/propertyTemplateSelector.css.backup"
+ },
+ {
+ "fullName": "propertyTemplateSelector",
+ "type": "LightningComponentBundle",
+ "state": "Changed",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/lwc/propertyTemplateSelector/propertyTemplateSelector.html"
+ },
+ {
+ "fullName": "propertyTemplateSelector",
+ "type": "LightningComponentBundle",
+ "state": "Changed",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/lwc/propertyTemplateSelector/propertyTemplateSelector.html.backup"
+ },
+ {
+ "fullName": "propertyTemplateSelector",
+ "type": "LightningComponentBundle",
+ "state": "Changed",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/lwc/propertyTemplateSelector/propertyTemplateSelector.js"
+ },
+ {
+ "fullName": "propertyTemplateSelector",
+ "type": "LightningComponentBundle",
+ "state": "Changed",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/lwc/propertyTemplateSelector/propertyTemplateSelector.js-meta.xml"
+ },
+ {
+ "fullName": "propertyTemplateSelector",
+ "type": "LightningComponentBundle",
+ "state": "Changed",
+ "filePath": "/home/ubuntu/salesforce/PDF_Generation_and_Automation/force-app/main/default/lwc/propertyTemplateSelector/propertyTemplateSelector.js.backup"
+ }
+ ],
+ "zipFileCount": 19,
+ "deployUrl": "https://tso3--r1.sandbox.my.salesforce.com/lightning/setup/DeployStatus/page?address=%2Fchangemgmt%2FmonitorDeploymentsDetails.apexp%3FasyncId%3D0AfFV000003mAxp0AE%26retURL%3D%252Fchangemgmt%252FmonitorDeployment.apexp"
+ },
+ "warnings": []
+}
diff --git a/force-app/main/default/classes/PDFGenerationProxy.cls b/force-app/main/default/classes/PDFGenerationProxy.cls
index 4068939..2055cce 100644
--- a/force-app/main/default/classes/PDFGenerationProxy.cls
+++ b/force-app/main/default/classes/PDFGenerationProxy.cls
@@ -8,9 +8,6 @@ public with sharing class PDFGenerationProxy {
throw new AuraHandledException('HTML content cannot be empty. Please provide valid HTML content.');
}
- System.debug('=== PDF GENERATION DEBUG ===');
- System.debug('HTML Content Length: ' + htmlContent.length());
- System.debug('Page Size: ' + pageSize);
// Call the Node.js API with return_download_link: true
Http http = new Http();
@@ -22,24 +19,43 @@ public with sharing class PDFGenerationProxy {
request.setHeader('Content-Type', 'application/json');
request.setTimeout(120000); // 2 minutes timeout
+ // Ensure relative resource URLs resolve to Salesforce domain by injecting
+ String modifiedHtml = htmlContent;
+ String baseUrl = null;
+ try {
+ baseUrl = URL.getOrgDomainUrl().toExternalForm();
+ if (modifiedHtml != null && !modifiedHtml.toLowerCase().contains('');
+ if (headIdx >= 0) {
+ Integer insertPos = headIdx + 6; // after
+ modifiedHtml = modifiedHtml.substring(0, insertPos) + '' + modifiedHtml.substring(insertPos);
+ } else {
+ // Prepend base if no head tag found
+ modifiedHtml = '' + modifiedHtml;
+ }
+ }
+ } catch (Exception e) {
+ // best-effort only
+ }
+
// Prepare the request body
Map requestBody = new Map();
- requestBody.put('input', htmlContent);
+ requestBody.put('input', modifiedHtml);
requestBody.put('return_download_link', true);
- if (String.isNotBlank(pageSize)) {
- requestBody.put('page_size', pageSize);
- }
+ // Use 'format' for the Node API, keep page_size for backward-compat
+ String formatVal = String.isNotBlank(pageSize) ? pageSize : 'A4';
+ requestBody.put('format', formatVal);
+ requestBody.put('page_size', formatVal);
+
String jsonBody = JSON.serialize(requestBody);
request.setBody(jsonBody);
- System.debug('Request body: ' + jsonBody);
// Make the HTTP call
HttpResponse response = http.send(request);
- System.debug('Response status: ' + response.getStatusCode());
- System.debug('Response body: ' + response.getBody());
if (response.getStatusCode() == 200) {
// Parse the response
@@ -63,8 +79,6 @@ public with sharing class PDFGenerationProxy {
}
} catch (Exception e) {
- System.debug('Exception in generatePDFFromHTML: ' + e.getMessage());
- System.debug('Exception stack trace: ' + e.getStackTraceString());
Map errorResult = new Map();
errorResult.put('success', false);
@@ -84,9 +98,6 @@ public with sharing class PDFGenerationProxy {
throw new AuraHandledException('HTML content cannot be empty. Please provide valid HTML content.');
}
- System.debug('=== COMPRESSED PDF GENERATION DEBUG ===');
- System.debug('HTML Content Length: ' + htmlContent.length());
- System.debug('Page Size: ' + pageSize);
// Call the Node.js API with return_download_link: true
Http http = new Http();
@@ -109,13 +120,10 @@ public with sharing class PDFGenerationProxy {
String jsonBody = JSON.serialize(requestBody);
request.setBody(jsonBody);
- System.debug('Request body: ' + jsonBody);
// Make the HTTP call
HttpResponse response = http.send(request);
- System.debug('Response status: ' + response.getStatusCode());
- System.debug('Response body: ' + response.getBody());
if (response.getStatusCode() == 200) {
// Parse the response
@@ -142,8 +150,6 @@ public with sharing class PDFGenerationProxy {
}
} catch (Exception e) {
- System.debug('Exception in generateCompressedPDF: ' + e.getMessage());
- System.debug('Exception stack trace: ' + e.getStackTraceString());
Map errorResult = new Map();
errorResult.put('success', false);
diff --git a/force-app/main/default/lwc/developmentPage/developmentPage.css b/force-app/main/default/lwc/developmentPage/developmentPage.css
new file mode 100644
index 0000000..5074011
--- /dev/null
+++ b/force-app/main/default/lwc/developmentPage/developmentPage.css
@@ -0,0 +1,234 @@
+.development-page {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100vw;
+ height: 100vh;
+ background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
+ z-index: 9999;
+ overflow-y: auto;
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+ color: #ffffff;
+}
+
+.dev-header {
+ background: rgba(0, 0, 0, 0.8);
+ padding: 20px;
+ text-align: center;
+ border-bottom: 2px solid #ff6b6b;
+ position: sticky;
+ top: 0;
+ z-index: 10000;
+}
+
+.dev-header h1 {
+ margin: 0;
+ font-size: 2.5rem;
+ color: #ff6b6b;
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
+}
+
+.dev-warning {
+ margin: 10px 0;
+ font-size: 1.2rem;
+ color: #ffd93d;
+ font-weight: bold;
+ text-transform: uppercase;
+ letter-spacing: 2px;
+}
+
+.dev-instruction {
+ margin: 10px 0;
+ font-size: 1rem;
+ color: #74b9ff;
+ font-weight: 600;
+ text-transform: uppercase;
+ letter-spacing: 1px;
+}
+
+.close-dev-btn {
+ position: absolute;
+ top: 20px;
+ right: 20px;
+ background: #ff4757;
+ color: white;
+ border: none;
+ border-radius: 50%;
+ width: 40px;
+ height: 40px;
+ font-size: 1.5rem;
+ cursor: pointer;
+ transition: all 0.3s ease;
+}
+
+.close-dev-btn:hover {
+ background: #ff3742;
+ transform: scale(1.1);
+}
+
+.dev-content {
+ padding: 30px;
+ max-width: 1200px;
+ margin: 0 auto;
+}
+
+.dev-section {
+ background: rgba(255, 255, 255, 0.1);
+ border-radius: 15px;
+ padding: 25px;
+ margin-bottom: 25px;
+ border: 1px solid rgba(255, 255, 255, 0.2);
+ backdrop-filter: blur(10px);
+}
+
+.dev-section h2 {
+ margin: 0 0 20px 0;
+ color: #74b9ff;
+ font-size: 1.8rem;
+ border-bottom: 2px solid #74b9ff;
+ padding-bottom: 10px;
+}
+
+.dev-tools {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
+ gap: 15px;
+}
+
+.dev-btn {
+ background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
+ color: white;
+ border: none;
+ border-radius: 8px;
+ padding: 15px 20px;
+ font-size: 1rem;
+ font-weight: 600;
+ cursor: pointer;
+ transition: all 0.3s ease;
+ text-transform: uppercase;
+ letter-spacing: 1px;
+}
+
+.dev-btn:hover {
+ transform: translateY(-2px);
+ box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
+}
+
+.dev-btn.primary {
+ background: linear-gradient(45deg, #00b894 0%, #00a085 100%);
+}
+
+.dev-btn.primary:hover {
+ box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
+}
+
+.dev-btn.secondary {
+ background: linear-gradient(45deg, #6c5ce7 0%, #a29bfe 100%);
+}
+
+.dev-btn.secondary:hover {
+ box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
+}
+
+.dev-btn.warning {
+ background: linear-gradient(45deg, #e17055 0%, #d63031 100%);
+}
+
+.dev-btn.warning:hover {
+ box-shadow: 0 5px 15px rgba(225, 112, 85, 0.4);
+}
+
+.status-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 15px;
+}
+
+.status-item {
+ background: rgba(255, 255, 255, 0.05);
+ border-radius: 8px;
+ padding: 15px;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-left: 4px solid #74b9ff;
+}
+
+.status-label {
+ font-weight: 600;
+ color: #ddd;
+}
+
+.status-value {
+ font-weight: bold;
+ padding: 5px 10px;
+ border-radius: 20px;
+ font-size: 0.9rem;
+}
+
+.status-value.success {
+ background: rgba(0, 184, 148, 0.2);
+ color: #00b894;
+ border: 1px solid #00b894;
+}
+
+.debug-info {
+ background: rgba(0, 0, 0, 0.3);
+ border-radius: 8px;
+ padding: 20px;
+ font-family: 'Courier New', monospace;
+}
+
+.debug-info p {
+ margin: 8px 0;
+ color: #ddd;
+}
+
+.debug-info strong {
+ color: #74b9ff;
+}
+
+.quick-actions {
+ display: flex;
+ gap: 15px;
+ flex-wrap: wrap;
+}
+
+/* Responsive design */
+@media (max-width: 768px) {
+ .dev-content {
+ padding: 15px;
+ }
+
+ .dev-header h1 {
+ font-size: 2rem;
+ }
+
+ .dev-tools {
+ grid-template-columns: 1fr;
+ }
+
+ .quick-actions {
+ flex-direction: column;
+ }
+
+ .status-grid {
+ grid-template-columns: 1fr;
+ }
+}
+
+/* Animation for page entrance */
+@keyframes slideInFromTop {
+ from {
+ transform: translateY(-100%);
+ opacity: 0;
+ }
+ to {
+ transform: translateY(0);
+ opacity: 1;
+ }
+}
+
+.development-page {
+ animation: slideInFromTop 0.5s ease-out;
+}
diff --git a/force-app/main/default/lwc/developmentPage/developmentPage.html b/force-app/main/default/lwc/developmentPage/developmentPage.html
new file mode 100644
index 0000000..a036442
--- /dev/null
+++ b/force-app/main/default/lwc/developmentPage/developmentPage.html
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
π System Status
+
+
+ LWC Status:
+ β
Active
+
+
+ PDF Service:
+ β
Connected
+
+
+ Templates:
+ β
Loaded
+
+
+ Property Data:
+ β
Available
+
+
+
+
+
+
π Debug Information
+
+
Current Step: {currentStep}
+
Selected Template: {selectedTemplateId}
+
Selected Property: {selectedPropertyId}
+
Page Size: {selectedPageSize}
+
Timestamp: {currentTimestamp}
+
+
+
+
+
βοΈ Quick Actions
+
+
+
+
+
+
+
+
+
diff --git a/force-app/main/default/lwc/developmentPage/developmentPage.js b/force-app/main/default/lwc/developmentPage/developmentPage.js
new file mode 100644
index 0000000..c6f12d1
--- /dev/null
+++ b/force-app/main/default/lwc/developmentPage/developmentPage.js
@@ -0,0 +1,162 @@
+import { LightningElement, track } from 'lwc';
+
+export default class DevelopmentPage extends LightningElement {
+ @track showDevPage = true;
+ @track currentStep = 1;
+ @track selectedTemplateId = '';
+ @track selectedPropertyId = '';
+ @track selectedPageSize = 'A4';
+ @track currentTimestamp = '';
+ @track debugMode = false;
+
+ // V-key click counter
+ vKeyCount = 0;
+ vKeyTimeout = null;
+
+ connectedCallback() {
+ this.updateTimestamp();
+ this.addKeyListener();
+ }
+
+ disconnectedCallback() {
+ this.removeKeyListener();
+ if (this.vKeyTimeout) {
+ clearTimeout(this.vKeyTimeout);
+ }
+ }
+
+ addKeyListener() {
+ document.addEventListener('keydown', this.handleKeyPress.bind(this));
+ }
+
+ removeKeyListener() {
+ document.removeEventListener('keydown', this.handleKeyPress.bind(this));
+ }
+
+ handleKeyPress(event) {
+ // Only listen for 'V' key (case insensitive)
+ if (event.key.toLowerCase() === 'v') {
+ this.vKeyCount++;
+
+ // Clear any existing timeout
+ if (this.vKeyTimeout) {
+ clearTimeout(this.vKeyTimeout);
+ }
+
+ // Reset counter after 3 seconds of inactivity
+ this.vKeyTimeout = setTimeout(() => {
+ this.vKeyCount = 0;
+ }, 3000);
+
+ // Hide dev page after 4 V key presses
+ if (this.vKeyCount >= 4) {
+ this.showDevPage = false;
+ this.vKeyCount = 0; // Reset counter
+ }
+ }
+ }
+
+ closeDevPage() {
+ this.showDevPage = false;
+ this.vKeyCount = 0;
+ if (this.vKeyTimeout) {
+ clearTimeout(this.vKeyTimeout);
+ }
+ }
+
+ updateTimestamp() {
+ this.currentTimestamp = new Date().toLocaleString();
+ }
+
+ // Development actions
+ clearAllData() {
+ if (confirm('Are you sure you want to clear all data? This action cannot be undone.')) {
+ // Clear all component data
+ this.currentStep = 1;
+ this.selectedTemplateId = '';
+ this.selectedPropertyId = '';
+ this.selectedPageSize = 'A4';
+ this.updateTimestamp();
+
+ // Dispatch event to parent component
+ this.dispatchEvent(new CustomEvent('cleardata'));
+ }
+ }
+
+ resetTemplates() {
+ if (confirm('Reset all templates to default state?')) {
+ // Dispatch event to parent component
+ this.dispatchEvent(new CustomEvent('resettemplates'));
+ }
+ }
+
+ exportDebugInfo() {
+ const debugData = {
+ timestamp: this.currentTimestamp,
+ currentStep: this.currentStep,
+ selectedTemplateId: this.selectedTemplateId,
+ selectedPropertyId: this.selectedPropertyId,
+ selectedPageSize: this.selectedPageSize,
+ userAgent: navigator.userAgent,
+ url: window.location.href
+ };
+
+ const blob = new Blob([JSON.stringify(debugData, null, 2)], { type: 'application/json' });
+ const url = URL.createObjectURL(blob);
+ const a = document.createElement('a');
+ a.href = url;
+ a.download = `debug-info-${Date.now()}.json`;
+ document.body.appendChild(a);
+ a.click();
+ document.body.removeChild(a);
+ URL.revokeObjectURL(url);
+
+ }
+
+ testPdfGeneration() {
+ // Dispatch event to parent component
+ this.dispatchEvent(new CustomEvent('testpdf'));
+ }
+
+ forceReload() {
+ if (confirm('Force reload the entire application?')) {
+ window.location.reload();
+ }
+ }
+
+ toggleDebugMode() {
+ this.debugMode = !this.debugMode;
+ // Dispatch event to parent component
+ this.dispatchEvent(new CustomEvent('toggledebug', {
+ detail: { debugMode: this.debugMode }
+ }));
+ }
+
+ clearCache() {
+ if (confirm('Clear browser cache and localStorage?')) {
+ // Clear localStorage
+ localStorage.clear();
+ sessionStorage.clear();
+
+ // Clear any cached data
+ if ('caches' in window) {
+ caches.keys().then(names => {
+ names.forEach(name => {
+ caches.delete(name);
+ });
+ });
+ }
+
+ alert('Cache cleared successfully!');
+ }
+ }
+
+ // Method to update data from parent component
+ updateData(data) {
+ if (data.currentStep !== undefined) this.currentStep = data.currentStep;
+ if (data.selectedTemplateId !== undefined) this.selectedTemplateId = data.selectedTemplateId;
+ if (data.selectedPropertyId !== undefined) this.selectedPropertyId = data.selectedPropertyId;
+ if (data.selectedPageSize !== undefined) this.selectedPageSize = data.selectedPageSize;
+ this.updateTimestamp();
+ }
+}
diff --git a/force-app/main/default/lwc/developmentPage/developmentPage.js-meta.xml b/force-app/main/default/lwc/developmentPage/developmentPage.js-meta.xml
new file mode 100644
index 0000000..05279af
--- /dev/null
+++ b/force-app/main/default/lwc/developmentPage/developmentPage.js-meta.xml
@@ -0,0 +1,10 @@
+
+
+ 58.0
+ false
+
+ lightning__AppPage
+ lightning__RecordPage
+ lightning__HomePage
+
+
diff --git a/force-app/main/default/lwc/propertyTemplateSelector/professional-editor.css b/force-app/main/default/lwc/propertyTemplateSelector/professional-editor.css
new file mode 100644
index 0000000..c3ac645
--- /dev/null
+++ b/force-app/main/default/lwc/propertyTemplateSelector/professional-editor.css
@@ -0,0 +1,560 @@
+/* Professional Editor Styles */
+.professional-editor-container {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+ background: #ffffff;
+ border-radius: 12px;
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
+ overflow: hidden;
+}
+
+/* Editor Header */
+.editor-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 16px 24px;
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ color: white;
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1);
+}
+
+.editor-title {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+}
+
+.editor-title h3 {
+ margin: 0;
+ font-size: 1.25rem;
+ font-weight: 600;
+}
+
+.editor-actions {
+ display: flex;
+ gap: 12px;
+}
+
+.header-btn {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ padding: 8px 16px;
+ background: rgba(255, 255, 255, 0.2);
+ border: 1px solid rgba(255, 255, 255, 0.3);
+ border-radius: 6px;
+ color: white;
+ font-size: 0.875rem;
+ font-weight: 500;
+ cursor: pointer;
+ transition: all 0.2s ease;
+}
+
+.header-btn:hover {
+ background: rgba(255, 255, 255, 0.3);
+ transform: translateY(-1px);
+}
+
+.header-btn.save {
+ background: rgba(46, 204, 113, 0.8);
+ border-color: rgba(46, 204, 113, 0.9);
+}
+
+.header-btn.save:hover {
+ background: rgba(46, 204, 113, 1);
+}
+
+/* Editor Layout */
+.editor-layout {
+ display: flex;
+ flex: 1;
+ min-height: 0;
+}
+
+/* Professional Sidebar */
+.editor-sidebar {
+ width: 320px;
+ background: #f8f9fa;
+ border-right: 1px solid #e9ecef;
+ display: flex;
+ flex-direction: column;
+ transition: width 0.3s ease;
+}
+
+.editor-sidebar.collapsed {
+ width: 60px;
+}
+
+.sidebar-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 16px 20px;
+ background: #ffffff;
+ border-bottom: 1px solid #e9ecef;
+}
+
+.sidebar-header h4 {
+ margin: 0;
+ font-size: 1rem;
+ font-weight: 600;
+ color: #495057;
+}
+
+.sidebar-toggle {
+ background: none;
+ border: none;
+ color: #6c757d;
+ cursor: pointer;
+ padding: 4px;
+ border-radius: 4px;
+ transition: all 0.2s ease;
+}
+
+.sidebar-toggle:hover {
+ background: #e9ecef;
+ color: #495057;
+}
+
+.sidebar-content {
+ flex: 1;
+ overflow-y: auto;
+ padding: 16px;
+}
+
+/* Tool Sections */
+.tool-section {
+ margin-bottom: 24px;
+ background: #ffffff;
+ border-radius: 8px;
+ border: 1px solid #e9ecef;
+ overflow: hidden;
+}
+
+.section-header {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ padding: 12px 16px;
+ background: #f8f9fa;
+ border-bottom: 1px solid #e9ecef;
+ font-size: 0.875rem;
+ font-weight: 600;
+ color: #495057;
+}
+
+.tool-grid {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 8px;
+ padding: 16px;
+}
+
+.tool-btn {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 6px;
+ padding: 12px 8px;
+ background: #ffffff;
+ border: 1px solid #e9ecef;
+ border-radius: 6px;
+ color: #495057;
+ font-size: 0.75rem;
+ font-weight: 500;
+ cursor: pointer;
+ transition: all 0.2s ease;
+ text-align: center;
+}
+
+.tool-btn:hover {
+ background: #f8f9fa;
+ border-color: #667eea;
+ color: #667eea;
+ transform: translateY(-1px);
+}
+
+.tool-btn.primary {
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ color: white;
+ border-color: #667eea;
+}
+
+.tool-btn.primary:hover {
+ background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
+ transform: translateY(-2px);
+ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
+}
+
+.tool-btn.secondary {
+ background: #f8f9fa;
+ border-color: #dee2e6;
+}
+
+.tool-btn.secondary:hover {
+ background: #e9ecef;
+ border-color: #adb5bd;
+}
+
+/* Formatting Controls */
+.formatting-controls {
+ padding: 16px;
+ border-bottom: 1px solid #e9ecef;
+}
+
+.control-group {
+ margin-bottom: 12px;
+}
+
+.control-group:last-child {
+ margin-bottom: 0;
+}
+
+.control-group label {
+ display: block;
+ margin-bottom: 4px;
+ font-size: 0.75rem;
+ font-weight: 600;
+ color: #6c757d;
+ text-transform: uppercase;
+ letter-spacing: 0.5px;
+}
+
+.control-select {
+ width: 100%;
+ padding: 8px 12px;
+ border: 1px solid #e9ecef;
+ border-radius: 4px;
+ background: #ffffff;
+ font-size: 0.875rem;
+ color: #495057;
+ transition: border-color 0.2s ease;
+}
+
+.control-select:focus {
+ outline: none;
+ border-color: #667eea;
+ box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
+}
+
+/* Style Buttons */
+.style-buttons {
+ display: flex;
+ gap: 8px;
+ padding: 16px;
+ justify-content: center;
+}
+
+.style-btn {
+ width: 36px;
+ height: 36px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: #ffffff;
+ border: 1px solid #e9ecef;
+ border-radius: 6px;
+ color: #495057;
+ font-size: 0.875rem;
+ font-weight: 600;
+ cursor: pointer;
+ transition: all 0.2s ease;
+}
+
+.style-btn:hover {
+ background: #f8f9fa;
+ border-color: #667eea;
+ color: #667eea;
+ transform: translateY(-1px);
+}
+
+.style-btn.active {
+ background: #667eea;
+ border-color: #667eea;
+ color: white;
+}
+
+.highlight-icon {
+ background: #ffd93d;
+ color: #333;
+ padding: 2px 4px;
+ border-radius: 2px;
+ font-weight: bold;
+}
+
+/* Alignment & List Buttons */
+.alignment-buttons, .list-buttons {
+ display: flex;
+ gap: 8px;
+ padding: 16px;
+ justify-content: center;
+}
+
+.align-btn, .list-btn {
+ width: 36px;
+ height: 36px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: #ffffff;
+ border: 1px solid #e9ecef;
+ border-radius: 6px;
+ color: #495057;
+ cursor: pointer;
+ transition: all 0.2s ease;
+}
+
+.align-btn:hover, .list-btn:hover {
+ background: #f8f9fa;
+ border-color: #667eea;
+ color: #667eea;
+ transform: translateY(-1px);
+}
+
+/* Media Buttons */
+.media-buttons {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ padding: 16px;
+}
+
+.media-btn {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ padding: 12px 16px;
+ background: #ffffff;
+ border: 1px solid #e9ecef;
+ border-radius: 6px;
+ color: #495057;
+ font-size: 0.875rem;
+ font-weight: 500;
+ cursor: pointer;
+ transition: all 0.2s ease;
+}
+
+.media-btn:hover {
+ background: #f8f9fa;
+ border-color: #667eea;
+ color: #667eea;
+ transform: translateY(-1px);
+}
+
+/* Action Buttons */
+.action-buttons {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ padding: 16px;
+}
+
+.action-btn {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ padding: 12px 16px;
+ background: #ffffff;
+ border: 1px solid #e9ecef;
+ border-radius: 6px;
+ color: #495057;
+ font-size: 0.875rem;
+ font-weight: 500;
+ cursor: pointer;
+ transition: all 0.2s ease;
+}
+
+.action-btn:hover {
+ background: #f8f9fa;
+ border-color: #667eea;
+ color: #667eea;
+ transform: translateY(-1px);
+}
+
+.action-btn.undo {
+ border-color: #ffc107;
+ color: #856404;
+}
+
+.action-btn.undo:hover {
+ background: #fff3cd;
+ border-color: #ffb300;
+}
+
+.action-btn.redo {
+ border-color: #17a2b8;
+ color: #0c5460;
+}
+
+.action-btn.redo:hover {
+ background: #d1ecf1;
+ border-color: #138496;
+}
+
+.action-btn.save {
+ background: #28a745;
+ border-color: #28a745;
+ color: white;
+}
+
+.action-btn.save:hover {
+ background: #218838;
+ border-color: #1e7e34;
+}
+
+.action-btn.reset {
+ border-color: #dc3545;
+ color: #721c24;
+}
+
+.action-btn.reset:hover {
+ background: #f8d7da;
+ border-color: #c82333;
+}
+
+/* Professional Viewport */
+.editor-viewport {
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ background: #f8f9fa;
+}
+
+.viewport-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 12px 20px;
+ background: #ffffff;
+ border-bottom: 1px solid #e9ecef;
+}
+
+.viewport-controls {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+}
+
+.viewport-btn {
+ width: 32px;
+ height: 32px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: #ffffff;
+ border: 1px solid #e9ecef;
+ border-radius: 4px;
+ color: #495057;
+ cursor: pointer;
+ transition: all 0.2s ease;
+}
+
+.viewport-btn:hover {
+ background: #f8f9fa;
+ border-color: #667eea;
+ color: #667eea;
+}
+
+.zoom-level {
+ font-size: 0.875rem;
+ font-weight: 500;
+ color: #495057;
+ min-width: 40px;
+ text-align: center;
+}
+
+.viewport-info {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+}
+
+.page-size {
+ padding: 4px 8px;
+ background: #e9ecef;
+ border-radius: 4px;
+ font-size: 0.75rem;
+ font-weight: 600;
+ color: #495057;
+}
+
+.viewport-content {
+ flex: 1;
+ padding: 20px;
+ overflow: auto;
+ display: flex;
+ justify-content: center;
+ align-items: flex-start;
+}
+
+.editor-canvas {
+ background: #ffffff;
+ border-radius: 8px;
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
+ overflow: hidden;
+ min-width: 800px;
+ max-width: 100%;
+}
+
+.enhanced-editor-content {
+ min-height: 600px;
+ padding: 40px;
+ outline: none;
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+ line-height: 1.6;
+ color: #333;
+}
+
+.enhanced-editor-content:focus {
+ box-shadow: inset 0 0 0 2px #667eea;
+}
+
+/* Responsive Design */
+@media (max-width: 1200px) {
+ .editor-sidebar {
+ width: 280px;
+ }
+
+ .tool-grid {
+ grid-template-columns: 1fr;
+ }
+}
+
+@media (max-width: 768px) {
+ .editor-layout {
+ flex-direction: column;
+ }
+
+ .editor-sidebar {
+ width: 100%;
+ height: auto;
+ max-height: 300px;
+ }
+
+ .editor-canvas {
+ min-width: 100%;
+ }
+
+ .enhanced-editor-content {
+ padding: 20px;
+ min-height: 400px;
+ }
+}
+
+/* Animation for smooth transitions */
+.tool-section {
+ animation: slideInUp 0.3s ease-out;
+}
+
+@keyframes slideInUp {
+ from {
+ opacity: 0;
+ transform: translateY(20px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
diff --git a/force-app/main/default/lwc/propertyTemplateSelector/professional-editor.html b/force-app/main/default/lwc/propertyTemplateSelector/professional-editor.html
new file mode 100644
index 0000000..c6aa5de
--- /dev/null
+++ b/force-app/main/default/lwc/propertyTemplateSelector/professional-editor.html
@@ -0,0 +1,231 @@
+
+
diff --git a/force-app/main/default/lwc/propertyTemplateSelector/propertyTemplateSelector.css b/force-app/main/default/lwc/propertyTemplateSelector/propertyTemplateSelector.css
index 6871a42..f664bf3 100644
--- a/force-app/main/default/lwc/propertyTemplateSelector/propertyTemplateSelector.css
+++ b/force-app/main/default/lwc/propertyTemplateSelector/propertyTemplateSelector.css
@@ -1,3 +1,226 @@
+/* Enhanced Editor Styles */
+.enhanced-editor-content {
+ position: relative;
+ min-height: 400px;
+ padding: 20px;
+ border: 1px solid #e0e0e0;
+ border-radius: 8px;
+ background: white;
+ outline: none;
+ overflow: auto;
+}
+
+.enhanced-editor-content:focus {
+ border-color: #007bff;
+ box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
+}
+
+/* Enhanced List Styles */
+.enhanced-editor-content ul,
+.enhanced-editor-content ol {
+ margin: 10px 0;
+ padding-left: 20px;
+ list-style-position: outside;
+}
+
+.enhanced-editor-content li {
+ margin-bottom: 5px;
+ line-height: 1.6;
+ display: list-item;
+}
+
+.enhanced-editor-content ul {
+ list-style-type: disc;
+}
+
+.enhanced-editor-content ul li {
+ list-style-type: disc;
+}
+
+.enhanced-editor-content ol {
+ list-style-type: decimal;
+}
+
+.enhanced-editor-content ol li {
+ list-style-type: decimal;
+}
+
+/* Ensure list items are properly displayed */
+.enhanced-editor-content ul li::marker,
+.enhanced-editor-content ol li::marker {
+ color: #333;
+ font-weight: normal;
+}
+
+/* Enhanced Image Styles */
+.enhanced-editor-content img {
+ max-width: 100%;
+ height: auto;
+ border-radius: 4px;
+ transition: all 0.2s ease;
+}
+
+.enhanced-editor-content img:hover {
+ box-shadow: 0 4px 8px rgba(0,0,0,0.1);
+}
+
+/* Enhanced Resize Handle Styles */
+.resize-handle {
+ position: absolute;
+ width: 16px;
+ height: 16px;
+ background: #007bff;
+ border: 3px solid white;
+ border-radius: 50%;
+ cursor: pointer;
+ z-index: 1002;
+ box-shadow: 0 3px 6px rgba(0,0,0,0.3);
+ transition: all 0.2s ease;
+}
+
+.resize-handle:hover {
+ background: #0056b3;
+ transform: scale(1.2);
+ box-shadow: 0 4px 8px rgba(0,0,0,0.4);
+}
+
+/* Specific handle positions */
+.resize-handle.resize-nw {
+ top: -8px;
+ left: -8px;
+ cursor: nw-resize;
+}
+
+.resize-handle.resize-ne {
+ top: -8px;
+ right: -8px;
+ cursor: ne-resize;
+}
+
+.resize-handle.resize-sw {
+ bottom: -8px;
+ left: -8px;
+ cursor: sw-resize;
+}
+
+.resize-handle.resize-se {
+ bottom: -8px;
+ right: -8px;
+ cursor: se-resize;
+}
+
+/* Delete Button Styles */
+.delete-image-btn {
+ position: absolute;
+ top: -8px;
+ right: -8px;
+ width: 20px;
+ height: 20px;
+ background: #dc3545;
+ color: white;
+ border: 2px solid white;
+ border-radius: 50%;
+ cursor: pointer;
+ z-index: 1002;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 14px;
+ font-weight: bold;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.2);
+ transition: all 0.2s ease;
+}
+
+.delete-image-btn:hover {
+ background: #c82333;
+ transform: scale(1.1);
+}
+
+/* Text Close Button Styles */
+.text-close-btn {
+ position: absolute;
+ top: -8px;
+ right: -8px;
+ width: 20px;
+ height: 20px;
+ background: #dc3545;
+ color: white;
+ border: 2px solid white;
+ border-radius: 50%;
+ cursor: pointer;
+ z-index: 1002;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 14px;
+ font-weight: bold;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.2);
+ transition: all 0.2s ease;
+ opacity: 0;
+}
+
+.text-close-btn:hover {
+ background: #c82333;
+ transform: scale(1.1);
+}
+
+/* Floating Image Toolbar */
+.floating-image-toolbar {
+ position: absolute;
+ top: -45px;
+ left: 50%;
+ transform: translateX(-50%);
+ background: white;
+ border: 1px solid #e0e0e0;
+ border-radius: 8px;
+ padding: 8px;
+ box-shadow: 0 4px 12px rgba(0,0,0,0.15);
+ z-index: 1003;
+ display: flex;
+ gap: 8px;
+ align-items: center;
+}
+
+.floating-image-toolbar button {
+ width: 32px;
+ height: 32px;
+ border: none;
+ background: #f8f9fa;
+ border-radius: 6px;
+ cursor: pointer;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 14px;
+ transition: all 0.2s ease;
+}
+
+.floating-image-toolbar button:hover {
+ background: #e9ecef;
+ transform: scale(1.1);
+}
+
+/* Draggable Table Container Styles */
+.draggable-table-container .resize-handle.resize-nw { top: -4px; left: -4px; cursor: nw-resize; }
+.draggable-table-container .resize-handle.resize-ne { top: -4px; right: -4px; cursor: ne-resize; }
+.draggable-table-container .resize-handle.resize-sw { bottom: -4px; left: -4px; cursor: sw-resize; }
+.draggable-table-container .resize-handle.resize-se { bottom: -4px; right: -4px; cursor: se-resize; }
+/* Draggable table container (mirrors images) */
+.draggable-table-container { position: absolute; cursor: move; user-select: none; z-index: 1000; border: 2px dashed #667eea; border-radius: 8px; background: #ffffff; }
+.draggable-table-container .resize-handle { opacity: 1; }
+.asgar1-preview .cover-hero { position: relative; height: 180px; overflow: hidden; border-radius: 10px; margin: 12px; background: #222; background-size: cover; background-position: center; }
+.asgar1-preview .cover-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.35)); }
+.preview-page { width: 210mm; min-height: 297mm; margin: 0 auto 12px; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.06); border: 1px solid #eee; overflow: hidden; }
+.page-size-a4 { width: 210mm; min-height: 297mm; }
+.page-size-a3 { width: 297mm; min-height: 420mm; }
+.enhanced-editor-content[data-page-size="A4"] .preview-page { width: 210mm; min-height: 297mm; }
+.enhanced-editor-content[data-page-size="A3"] .preview-page { width: 297mm; min-height: 420mm; }
+.preview-page + .preview-page { page-break-before: always; }
+
+/* Modern Home card elegance tweaks */
+.modern-home-preview .hero-details { backdrop-filter: saturate(120%) blur(2px); background: rgba(0,0,0,0.25); padding: 10px 12px; border-radius: 8px; display: inline-block; }
+.modern-home-preview .stats .stat-item { background: rgba(255,255,255,0.18); padding: 4px 8px; border-radius: 6px; }
+.modern-home-preview .agent-footer { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 8px; }
.property-brochure-generator {
/* International Standard Font Stack - 2024 Best Practices */
font-family: 'Inter Variable', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
@@ -5,8 +228,8 @@
min-height: 100vh;
padding: 0;
margin: 0;
- max-width: 95%;
- margin: 0 auto;
+ width: 100%;
+ max-width: 100%;
/* Industry Standard Base Font Size - 16px (1rem) */
font-size: 1rem;
/* Optimal Line Height for Readability (WCAG AA) */
@@ -260,12 +483,25 @@ late particularay
/* Step Content */
.step-content {
display: none;
- max-width: 1400px;
- margin: 0 auto 0 auto;
+ width: 100%;
+ max-width: 100%;
+ margin: 0;
padding: 0 3rem 2rem 3rem;
background: transparent;
}
+/* Step Inner Container */
+.step-inner-container {
+ background: #ffffff;
+ border-radius: 12px;
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
+ padding: 2rem;
+ margin: 1rem 0;
+ max-width: 90%;
+ margin-left: auto;
+ margin-right: auto;
+}
+
.step-content.active {
display: block;
animation: fadeInUp 0.5s ease;
@@ -389,17 +625,9 @@ late particularay
}
/* Masonry Zigzag Effect - Alternating Heights */
-.template-card:nth-child(odd) {
- transform: translateY(10px);
-}
-
-.template-card:nth-child(even) {
- transform: translateY(-5px);
-}
-
-.template-card:hover {
- transform: translateY(-8px) !important;
-}
+.template-card:nth-child(odd) { transform: none; }
+.template-card:nth-child(even) { transform: none; }
+.template-card:hover { transform: none !important; }
/* Enhanced Template Content Styles */
.template-content {
@@ -497,8 +725,8 @@ late particularay
}
.cta-btn {
- background: #007bff;
- color: white;
+ background: #ffffff;
+ color: #000000;
border: none;
padding: 12px 24px;
border-radius: 6px;
@@ -513,8 +741,8 @@ late particularay
}
.cta-btn {
- background: #007bff;
- color: white;
+ background: #ffffff;
+ color: #000000;
border: none;
padding: 15px 35px;
border-radius: 25px;
@@ -798,7 +1026,6 @@ late particularay
height: 100%;
background: linear-gradient(180deg, rgba(18, 18, 18, 0.8) 0%, rgba(18, 18, 18, 0.3) 100%);
}
-
.asgar1-preview .cover-header {
position: relative;
padding: 30px;
@@ -1594,7 +1821,6 @@ late particularay
color: #ffffff; /* All text should be white as shown in image */
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
-
.preview-luxury-title {
font-size: 18px;
font-weight: 600;
@@ -2390,7 +2616,6 @@ late particularay
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
border-radius: 20px 20px 0 0;
}
-
.image-replacement-header h3 {
margin: 0;
font-size: 1.25rem;
@@ -2547,6 +2772,13 @@ late particularay
background: #f0f4ff;
}
+.upload-dropzone.drag-over {
+ border-color: #10b981; /* Green for drag over */
+ background: #ecfdf5;
+ border-style: solid;
+ transform: scale(1.02);
+}
+
.upload-icon {
font-size: 3rem;
margin-bottom: 1rem;
@@ -3174,7 +3406,6 @@ late particularay
letter-spacing: 0.01em;
line-height: 1.4;
}
-
.property-field .value {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #2c3e50;
@@ -3186,7 +3417,6 @@ late particularay
letter-spacing: 0.01em;
line-height: 1.5;
}
-
/* Property Description Special Styling */
.property-description {
display: flex;
@@ -3244,6 +3474,36 @@ late particularay
line-height: 1.6;
}
+/* Offering Type Display */
+.offering-type-display {
+ margin: 1.5rem 0;
+ text-align: center;
+}
+
+.offering-type-badge {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.75rem;
+ padding: 1rem 2rem;
+ background: #007bff;
+ color: white;
+ border-radius: 25px;
+ font-weight: 600;
+ box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
+}
+
+.offering-type-label {
+ font-size: 0.9rem;
+ opacity: 0.9;
+}
+
+.offering-type-value {
+ font-size: 1.1rem;
+ font-weight: 700;
+ text-transform: uppercase;
+ letter-spacing: 0.5px;
+}
+
/* Category Navigation for Step 2 - Industry Standard Design */
.category-navigation-step2 {
display: flex;
@@ -3394,7 +3654,7 @@ late particularay
object-fit: cover;
margin-bottom: 1.5rem;
position: relative;
- box-shadow:
+ box-shadow:
0 25px 50px -12px rgba(0, 0, 0, 0.25),
0 10px 20px -8px rgba(0, 0, 0, 0.1);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
@@ -3843,6 +4103,235 @@ late particularay
margin-top: 20px;
}
+/* Step 3 viewport toolbar and canvas */
+.viewport-toolbar { display:flex; justify-content:space-between; align-items:center; padding:8px 12px; background:#fff; border:1px solid #e5e5e5; border-radius:8px; }
+.zoom-controls { display:flex; gap:8px; align-items:center; }
+.viewport-btn { padding:6px 10px; border:1px solid #e5e5e5; background:#fff; border-radius:6px; cursor:pointer; transition: all 0.2s ease; }
+.viewport-btn:hover { background:#f8f9fa; border-color:#007bff; }
+.zoom-level { min-width:48px; text-align:center; font-weight:500; }
+.page-size-display { color:#666; font-size:12px; }
+.pdf-viewport {
+ position:relative;
+ flex:1;
+ width: 100%;
+ height: calc(100vh - 120px); /* Increased height to match toolbar */
+ overflow-y: auto; /* Only vertical scroll */
+ overflow-x: hidden; /* Remove horizontal scroll */
+ display: flex; /* Use flexbox for reliable centering */
+ justify-content: center; /* Center horizontally */
+ align-items: flex-start; /* Align to top */
+ padding: 20px;
+ background:#f5f5f7;
+ border:1px solid #e5e5e5;
+ border-radius:8px;
+}
+.pdf-canvas {
+ transform-origin: center top; /* Center the zoom origin for better centering */
+ margin: 0; /* Remove margin since flexbox handles centering */
+ box-shadow: 0 8px 24px rgba(0,0,0,0.08);
+ background:transparent;
+ border: none;
+ position: relative;
+ width: 100%;
+ max-width: 100%; /* Ensure it fits within viewport */
+ box-sizing: border-box;
+ display: block; /* Block display for proper sizing */
+}
+.pdf-canvas[data-page-size="A4"] { max-width: 794px; /* A4 width in pixels */ }
+.pdf-canvas[data-page-size="A3"] { max-width: 1123px; /* A3 width in pixels */ }
+.pdf-canvas .enhanced-editor-content {
+ width:100%;
+ min-height: inherit;
+ margin:0;
+ padding:24px;
+ box-sizing:border-box;
+ position: relative;
+}
+
+/* Custom scrollbar styling for better UX */
+.pdf-viewport::-webkit-scrollbar {
+ width: 8px;
+ height: 8px;
+}
+.pdf-viewport::-webkit-scrollbar-track {
+ background: #f1f1f1;
+ border-radius: 4px;
+}
+.pdf-viewport::-webkit-scrollbar-thumb {
+ background: #c1c1c1;
+ border-radius: 4px;
+}
+.pdf-viewport::-webkit-scrollbar-thumb:hover {
+ background: #a8a8a8;
+}
+
+/* PDF Page Break Styles for Viewport - Separate Pages Like PDF */
+.pdf-canvas .preview-page {
+ width: 100%;
+ background: white;
+ border: 1px solid #ddd;
+ margin: 0 auto 30px auto; /* Center each page with spacing */
+ box-shadow: 0 4px 12px rgba(0,0,0,0.15);
+ position: relative;
+ page-break-after: always;
+ display: block;
+ text-align: left; /* Reset text alignment for page content */
+}
+
+.pdf-canvas .preview-page[data-page-size="A4"] {
+ width: 210mm;
+ min-height: 297mm;
+ max-width: 794px;
+}
+
+.pdf-canvas .preview-page[data-page-size="A3"] {
+ width: 297mm;
+ min-height: 420mm;
+ max-width: 1123px;
+}
+
+.pdf-canvas .preview-page:last-child {
+ margin-bottom: 0;
+ page-break-after: avoid;
+}
+
+/* Page break indicators */
+.pdf-canvas .preview-page::after {
+ content: "Page " attr(data-page-number);
+ position: absolute;
+ bottom: -25px;
+ left: 50%;
+ transform: translateX(-50%);
+ font-size: 12px;
+ color: #666;
+ background: #f8f9fa;
+ padding: 4px 12px;
+ border-radius: 6px;
+ border: 1px solid #dee2e6;
+ font-weight: 500;
+}
+
+.pdf-canvas .preview-page:last-child::after {
+ display: none;
+}
+
+/* Page content styling - Match PDF output exactly */
+.pdf-canvas .preview-page .enhanced-editor-content {
+ width: 100%;
+ height: 100%;
+ margin: 0;
+ padding: 0; /* Full width - no margins */
+ box-sizing: border-box;
+ background: white;
+ font-size: 12px;
+ line-height: 1.3;
+ color: #000;
+}
+
+/* Optimize content flow to match PDF */
+.pdf-canvas .preview-page .enhanced-editor-content h1,
+.pdf-canvas .preview-page .enhanced-editor-content h2,
+.pdf-canvas .preview-page .enhanced-editor-content h3,
+.pdf-canvas .preview-page .enhanced-editor-content h4,
+.pdf-canvas .preview-page .enhanced-editor-content h5,
+.pdf-canvas .preview-page .enhanced-editor-content h6 {
+ margin: 0 0 8px 0;
+ padding: 0;
+ font-weight: bold;
+}
+
+.pdf-canvas .preview-page .enhanced-editor-content p {
+ margin: 0 0 6px 0;
+ padding: 0;
+}
+
+.pdf-canvas .preview-page .enhanced-editor-content img {
+ max-width: 100%;
+ height: auto;
+ display: block;
+ margin: 0 0 6px 0;
+ padding: 0;
+}
+
+.pdf-canvas .preview-page .enhanced-editor-content table {
+ border-collapse: collapse;
+ border-spacing: 0;
+ width: 100%;
+ margin: 0 0 8px 0;
+ padding: 0;
+}
+
+.pdf-canvas .preview-page .enhanced-editor-content td,
+.pdf-canvas .preview-page .enhanced-editor-content th {
+ margin: 0;
+ padding: 3px;
+ border: none;
+ vertical-align: top;
+}
+
+/* Gallery optimization - Match PDF exactly */
+.pdf-canvas .preview-page .enhanced-editor-content .gallery-grid,
+.pdf-canvas .preview-page .enhanced-editor-content .image-gallery {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+ margin: 0 0 8px 0;
+ width: 100%;
+}
+
+.pdf-canvas .preview-page .enhanced-editor-content .gallery-grid > div,
+.pdf-canvas .preview-page .enhanced-editor-content .gallery-grid > img,
+.pdf-canvas .preview-page .enhanced-editor-content .image-gallery > div,
+.pdf-canvas .preview-page .enhanced-editor-content .image-gallery > img {
+ flex: 1 1 calc(50% - 3px);
+ max-width: calc(50% - 3px);
+ margin: 0;
+ padding: 0;
+}
+
+.pdf-canvas .preview-page .enhanced-editor-content .gallery-grid img,
+.pdf-canvas .preview-page .enhanced-editor-content .image-gallery img {
+ width: 100%;
+ height: auto;
+ object-fit: cover;
+ display: block;
+}
+
+/* Property details optimization */
+.pdf-canvas .preview-page .enhanced-editor-content .property-details,
+.pdf-canvas .preview-page .enhanced-editor-content .property-info {
+ margin: 0 0 8px 0;
+ padding: 0;
+}
+
+/* Gallery optimization for main editor content - Prevent breaking */
+.enhanced-editor-content .gallery-grid,
+.enhanced-editor-content .image-gallery {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+ margin: 0 0 8px 0;
+ width: 100%;
+}
+
+.enhanced-editor-content .gallery-grid > div,
+.enhanced-editor-content .gallery-grid > img,
+.enhanced-editor-content .image-gallery > div,
+.enhanced-editor-content .image-gallery > img {
+ flex: 1 1 calc(50% - 3px);
+ max-width: calc(50% - 3px);
+ margin: 0;
+ padding: 0;
+}
+
+.enhanced-editor-content .gallery-grid img,
+.enhanced-editor-content .image-gallery img {
+ width: 100%;
+ height: auto;
+ object-fit: cover;
+ display: block;
+}
+
/* Left Toolbar - Original Layout */
.editor-toolbar.left {
width: 300px;
@@ -3973,13 +4462,11 @@ late particularay
grid-template-columns: repeat(3, 1fr);
gap: 4px;
}
-
.text-alignment-section .toolbar-button {
justify-content: center;
text-align: center;
min-height: 40px;
}
-
/* Right Editor Area */
.editor-right {
flex: 1;
@@ -4768,7 +5255,6 @@ late particularay
min-height: 400px;
overflow: visible;
}
-
.page-content[contenteditable="true"] {
outline: none;
cursor: text;
@@ -4781,7 +5267,6 @@ late particularay
border: 2px solid #6f42c1;
border-radius: 6px;
}
-
/* Page Navigation */
.page-navigation {
display: none;
@@ -5566,7 +6051,6 @@ late particularay
border-radius: 15px;
display: inline-block;
}
-
/* Responsive design for smaller screens */
@media (max-width: 768px) {
.export-pdf-section {
@@ -6051,7 +6535,7 @@ late particularay
padding: 10px 20px;
box-sizing: border-box;
margin-bottom: 0;
- max-height: calc(100vh - 180px);
+ max-height: calc(100vh - 120px);
background: transparent;
}
@@ -6070,11 +6554,12 @@ late particularay
border: 1px solid #dee2e6;
border-radius: 12px;
padding: 15px;
- height: calc(100vh - 120px);
- max-height: calc(100vh - 120px);
+ height: calc(100vh - 200px); /* Decreased height for better scrolling */
+ max-height: calc(100vh - 200px);
overflow-y: auto;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
- position: relative;
+ position: sticky;
+ top: 20px; /* Stop when touches header area */
z-index: 10;
}
@@ -6341,7 +6826,10 @@ late particularay
justify-content: flex-start;
}
-
+/* Z-Index controls */
+.zindex-controls { display: flex; flex-direction: column; gap: 6px; }
+.zindex-controls .zindex-input { width: 100%; padding: 6px; border: 1px solid #ddd; border-radius: 4px; }
+.zindex-controls .zindex-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
/* Property Insert Section */
.property-insert-section {
@@ -6352,7 +6840,6 @@ late particularay
border: 1px solid #e9ecef;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
-
.property-insert-title {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 1rem;
@@ -6366,7 +6853,6 @@ late particularay
background-clip: text;
letter-spacing: 0.02em;
}
-
.property-insert-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
@@ -6536,15 +7022,15 @@ late particularay
background: transparent !important;
border: 1px solid #dee2e6;
border-radius: 12px;
- height: calc(85vh - 120px);
- max-height: calc(85vh - 120px);
+ height: auto;
+ max-height: none;
padding: 15px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', Roboto, 'Helvetica Neue', Arial, sans-serif;
font-size: 14px;
line-height: 1.6;
color: #333;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
- overflow-y: auto;
+ overflow-y: visible;
position: relative;
z-index: 10;
scroll-behavior: smooth;
@@ -6552,26 +7038,52 @@ late particularay
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
+ white-space: pre-wrap;
}
+/* Normalize block elements inside editor for better auto-format */
+.enhanced-editor-content p { margin: 0 0 8px 0; white-space: normal; }
+.enhanced-editor-content ul, .enhanced-editor-content ol { margin: 0 0 8px 24px; padding-left: 18px; }
+.enhanced-editor-content li { margin: 4px 0; }
+.enhanced-editor-content div { display: block; }
+
+/* Prevent list items from breaking across pages in PDF */
+.enhanced-editor-content ul, .enhanced-editor-content ol { break-inside: avoid; page-break-inside: avoid; }
+.enhanced-editor-content li { break-inside: avoid; page-break-inside: avoid; }
+
.enhanced-editor-content:focus {
outline: none;
}
/* Image Click Detection Enhancements */
.enhanced-editor-content img {
- cursor: pointer;
- transition: all 0.3s ease;
+ cursor: grab;
position: relative;
+ user-select: none;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
}
.enhanced-editor-content img:hover {
opacity: 0.9;
- transform: scale(1.02);
box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
border-radius: 4px;
}
+.enhanced-editor-content img:active {
+ cursor: grabbing;
+ opacity: 0.8;
+}
+
+/* Smooth dragging styles */
+.enhanced-editor-content img.dragging {
+ transition: none !important;
+ z-index: 1000;
+ opacity: 0.8;
+ cursor: grabbing;
+}
+
/* Enhanced hover effects for draggable image containers */
.enhanced-editor-content .draggable-element:has(img):hover {
outline: 2px dashed #4f46e5;
@@ -7151,7 +7663,6 @@ late particularay
grid-template-columns: repeat(3, 1fr);
}
}
-
/* Export PDF Button - Positioned at Template Header with Animation */
.export-pdf-section {
position: absolute;
@@ -7160,7 +7671,6 @@ late particularay
z-index: 1000;
animation: pulse-grow 2s ease-in-out infinite;
}
-
.export-pdf-btn {
background: #007bff; /* Blue theme */
color: white;
@@ -7520,6 +8030,118 @@ button, .btn, .toolbar-button, .export-pdf-btn {
margin-bottom: 0.3rem !important;
}
+
+/* Step Progress Stepper */
+.step-stepper-container {
+ padding: 1rem 0;
+ margin: 1.5rem 0 0.5rem;
+}
+
+.step-stepper {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ max-width: 300px;
+ margin: 1.25rem auto 0; /* add space from top, not container */
+}
+
+.step-item {
+ display: flex;
+ align-items: center;
+ cursor: pointer;
+ transition: all 0.3s ease;
+}
+
+.step-item:hover .step-circle {
+ transform: scale(1.1);
+}
+
+.step-circle {
+ width: 30px;
+ height: 30px;
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ transition: all 0.3s ease;
+ border: 2px solid #d1d5db;
+ background: #f9fafb;
+ color: #6b7280;
+ font-weight: 600;
+ font-size: 0.9rem;
+}
+
+.step-circle.active,
+.step-circle.active-circle,
+.step-circle.step-nav-item.active {
+ background: #1e88e5 !important;
+ border-color: #1e88e5 !important;
+ color: #ffffff !important;
+}
+
+.step-circle.active .step-number,
+.step-circle.active-circle .step-number,
+.step-circle.step-nav-item.active .step-number {
+ color: #ffffff !important;
+}
+
+/* Ensure the header stepper wins over any generic .step-nav-item styles */
+.step-stepper .step-circle.step-nav-item.active,
+.step-stepper .step-circle.active-circle,
+.step-stepper .step-circle.active {
+ background: #1e88e5 !important;
+ border-color: #1e88e5 !important;
+ color: #ffffff !important;
+}
+
+.step-stepper .step-circle.step-nav-item.active .step-number,
+.step-stepper .step-circle.active-circle .step-number {
+ color: #ffffff !important;
+}
+
+.step-number {
+ font-size: 0.8rem;
+ font-weight: 700;
+}
+
+.step-connector {
+ height: 2px;
+ background: #d1d5db;
+ width: 40px;
+ margin: 0 10px;
+}
+
+/* Responsive stepper */
+@media (max-width: 768px) {
+ .step-stepper-container {
+ padding: 1rem;
+ margin: 0.5rem 0;
+ }
+
+ .step-stepper {
+ flex-direction: column;
+ gap: 1rem;
+ }
+
+ .step-connector {
+ width: 2px;
+ height: 30px;
+ margin: 0.5rem 0;
+ top: 0;
+ }
+
+ .step-label {
+ font-size: 0.8rem;
+ }
+
+ .step-circle {
+ width: 40px;
+ height: 40px;
+ font-size: 1rem;
+ }
+}
+
+
/* Draggable image container styles */
.draggable-image-container {
position: absolute;
@@ -7535,6 +8157,7 @@ button, .btn, .toolbar-button, .export-pdf-btn {
transition: all 0.2s ease;
transform: translate3d(0, 0, 0);
}
+.draggable-image-container img { display: block; }
.draggable-image-container:hover {
border-color: #764ba2;
@@ -7543,6 +8166,11 @@ button, .btn, .toolbar-button, .export-pdf-btn {
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}
+/* Minimal frame variant to avoid visual/positional shifts when wrapping existing images */
+.draggable-image-container.no-frame { border: none; background: transparent; padding: 0; box-shadow: none; }
+.draggable-image-container.no-frame:hover { border: none; background: transparent; box-shadow: none; transform: none; }
+.draggable-image-container.no-frame.dragging { border: none; background: transparent; box-shadow: none; transform: none; }
+
.draggable-image-container.dragging {
border-color: #764ba2;
background: rgba(102, 126, 234, 0.2);
@@ -7836,7 +8464,6 @@ button, .btn, .toolbar-button, .export-pdf-btn {
box-shadow: 0 6px 20px rgba(102,126,234,0.15);
padding: 30px 25px;
}
-
.sample-preview {
display: flex;
flex-direction: column;
@@ -8635,7 +9262,6 @@ button, .btn, .toolbar-button, .export-pdf-btn {
margin-bottom: 5px;
opacity: 0.9;
}
-
.preview-luxury-subtitle {
font-size: 12px;
opacity: 0.8;
@@ -9114,10 +9740,9 @@ img[draggable="true"] {
}
/* Bullet and numbering styles */
-ul, ol {
- list-style-type: none;
- padding-left: 0;
-}
+/* Allow bullets and numbers by default inside content */
+.enhanced-editor-content ul { list-style-type: disc; padding-left: 22px; }
+.enhanced-editor-content ol { list-style-type: decimal; padding-left: 22px; }
ul li, ol li {
margin-left: 20px;
@@ -9423,7 +10048,6 @@ ol li:before {
background: #dc2626;
transform: scale(1.1);
}
-
/* Enhanced Draggable Table Styles */
.draggable-table-container {
position: absolute;
@@ -9438,7 +10062,6 @@ ol li:before {
border-radius: 8px;
overflow: hidden;
}
-
.draggable-table-container.selected {
border-color: #C0A062; /* Gold accent theme */
box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
@@ -9821,3 +10444,1335 @@ ol li:before {
max-width: 250px;
}
}
+
+/* Grand Oak Villa Grid Preview Styles */
+.grand-oak-preview {
+ height: 200%; /* Double height */
+ display: flex;
+ flex-direction: column;
+}
+
+.preview-container {
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+}
+
+.preview-cover {
+ flex: 1;
+ position: relative;
+ border-radius: 8px;
+ overflow: hidden;
+ min-height: 400px; /* Double height */
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+}
+
+.preview-overlay {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
+}
+
+.preview-header {
+ position: relative;
+ padding: 16px;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ z-index: 2;
+}
+
+.preview-logo {
+ font-family: 'Playfair Display', serif;
+ font-size: 1rem;
+ font-weight: 700;
+ letter-spacing: 1px;
+ border: 2px solid #C0A062;
+ padding: 6px 12px;
+ color: white;
+ border-radius: 4px;
+ background-color: rgba(0, 0, 0, 0.3);
+}
+
+.preview-status {
+ background-color: #C0A062;
+ color: #000000;
+ padding: 6px 12px;
+ font-weight: 700;
+ font-size: 0.8rem;
+ text-transform: uppercase;
+ border-radius: 4px;
+ letter-spacing: 1px;
+}
+
+.preview-content {
+ position: relative;
+ padding: 16px;
+ z-index: 2;
+ flex-grow: 1;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+}
+
+.preview-title {
+ font-family: 'Playfair Display', serif;
+ font-size: 1.8rem;
+ font-weight: 700;
+ line-height: 1.1;
+ margin: 0 0 8px 0;
+ color: #C0A062; /* Golden color for title */
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
+}
+
+.preview-address {
+ font-size: 0.9rem;
+ font-weight: 500;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ color: white;
+ margin: 0;
+}
+
+.preview-address i {
+ color: #C0A062;
+ font-size: 0.8rem;
+}
+
+.preview-footer {
+ position: relative;
+ background-color: rgba(0, 0, 0, 0.9);
+ padding: 12px 16px;
+ z-index: 2;
+}
+
+.preview-features {
+ display: flex;
+ justify-content: space-between;
+ gap: 12px;
+}
+
+.preview-feature {
+ font-size: 0.8rem;
+ color: white;
+ font-weight: 600;
+ text-align: center;
+ flex: 1;
+ background-color: rgba(192, 160, 98, 0.1);
+ padding: 6px 8px;
+ border-radius: 4px;
+ border: 1px solid rgba(192, 160, 98, 0.3);
+}
+
+.preview-content-page {
+ flex: 1;
+ background-color: #000000;
+ border-radius: 8px;
+ padding: 16px;
+ display: flex;
+ flex-direction: column;
+ min-height: 200px; /* Increased height for double content */
+ border: 2px solid #C0A062;
+}
+
+.preview-content-header {
+ margin-bottom: 12px;
+}
+
+.preview-page-title {
+ font-family: 'Playfair Display', serif;
+ font-size: 1.2rem;
+ color: white;
+ margin: 0;
+ font-weight: 600;
+}
+
+.preview-content-body {
+ flex-grow: 1;
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+}
+
+.preview-section {
+ flex: 1;
+}
+
+.preview-section-title {
+ font-size: 0.8rem;
+ color: #C0A062;
+ margin: 0 0 6px 0;
+ font-weight: 700;
+ text-transform: uppercase;
+ letter-spacing: 1px;
+}
+
+.preview-text {
+ font-size: 0.75rem;
+ line-height: 1.5;
+ color: white;
+ margin: 0;
+ display: -webkit-box;
+ -webkit-line-clamp: 3;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+}
+
+.preview-amenities {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+}
+
+.preview-amenity {
+ font-size: 0.7rem;
+ color: white;
+ background-color: rgba(192, 160, 98, 0.2);
+ padding: 4px 8px;
+ border-radius: 4px;
+ border: 1px solid #C0A062;
+ font-weight: 500;
+}
+
+/* Responsive adjustments for grid preview */
+@media (max-width: 768px) {
+ .preview-title {
+ font-size: 1.5rem;
+ }
+
+ .preview-features {
+ flex-direction: column;
+ gap: 6px;
+ }
+
+ .preview-feature {
+ font-size: 0.75rem;
+ }
+
+ .preview-content-page {
+ min-height: 120px;
+ }
+}
+
+/* Serenity House Grid Preview Styles */
+.serenity-preview {
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+}
+
+.serenity-preview-container {
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+}
+
+.serenity-preview-cover {
+ flex: 1;
+ position: relative;
+ border-radius: 8px;
+ overflow: hidden;
+ min-height: 300px;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+}
+
+.serenity-preview-overlay {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
+}
+
+.serenity-preview-header {
+ position: relative;
+ padding: 16px;
+ z-index: 2;
+}
+
+.serenity-preview-collection {
+ font-size: 0.8rem;
+ color: #888888;
+ font-weight: 500;
+ text-transform: uppercase;
+ letter-spacing: 1px;
+}
+
+.serenity-preview-content {
+ position: relative;
+ padding: 16px;
+ z-index: 2;
+ flex-grow: 1;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+}
+
+.serenity-preview-title {
+ font-family: 'Playfair Display', serif;
+ font-size: 1.8rem;
+ font-weight: 700;
+ line-height: 1.1;
+ margin: 0 0 8px 0;
+ color: #2c3e50;
+}
+
+.serenity-preview-address {
+ font-size: 0.9rem;
+ color: #7f8c8d;
+ margin: 0 0 4px 0;
+}
+
+.serenity-preview-ref {
+ font-size: 0.8rem;
+ color: #95a5a6;
+ margin: 0;
+}
+
+.serenity-preview-footer {
+ position: relative;
+ background-color: rgba(255, 255, 255, 0.95);
+ padding: 12px 16px;
+ z-index: 2;
+}
+
+.serenity-preview-area {
+ font-size: 0.8rem;
+ color: #2c3e50;
+ font-weight: 600;
+ margin-bottom: 4px;
+}
+
+.serenity-preview-desc {
+ font-size: 0.75rem;
+ color: #7f8c8d;
+ margin-bottom: 4px;
+}
+
+.serenity-preview-price {
+ font-size: 0.8rem;
+ color: #2c3e50;
+ font-weight: 700;
+}
+
+.serenity-preview-content-page {
+ flex: 1;
+ background-color: #ffffff;
+ border-radius: 8px;
+ padding: 16px;
+ display: flex;
+ flex-direction: column;
+ min-height: 150px;
+ border: 1px solid #e0e0e0;
+}
+
+.serenity-preview-content-header {
+ margin-bottom: 12px;
+}
+
+.serenity-preview-page-number {
+ font-size: 0.7rem;
+ color: #95a5a6;
+ font-weight: 500;
+}
+
+.serenity-preview-page-title {
+ font-family: 'Playfair Display', serif;
+ font-size: 1.2rem;
+ color: #2c3e50;
+ margin: 4px 0;
+ font-weight: 600;
+}
+
+.serenity-preview-page-subtitle {
+ font-size: 0.8rem;
+ color: #7f8c8d;
+ margin: 0;
+ line-height: 1.4;
+}
+
+.serenity-preview-content-body {
+ flex-grow: 1;
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+}
+
+.serenity-preview-section {
+ flex: 1;
+}
+
+.serenity-preview-text {
+ font-size: 0.75rem;
+ line-height: 1.5;
+ color: #2c3e50;
+ margin: 0 0 8px 0;
+}
+
+.serenity-preview-quote {
+ font-size: 0.75rem;
+ line-height: 1.4;
+ color: #7f8c8d;
+ font-style: italic;
+ margin: 0;
+}
+
+.serenity-preview-image {
+ width: 100%;
+ height: 60px;
+ border-radius: 4px;
+ background-size: cover;
+ background-position: center;
+}
+
+/* Vertice Grid Preview Styles */
+.vertice-preview {
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+}
+
+.vertice-preview-container {
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+}
+
+.vertice-preview-cover {
+ flex: 1;
+ position: relative;
+ border-radius: 8px;
+ overflow: hidden;
+ min-height: 300px;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+}
+
+.vertice-preview-overlay {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
+}
+
+.vertice-preview-content {
+ position: relative;
+ padding: 16px;
+ z-index: 2;
+ flex-grow: 1;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+}
+
+.vertice-preview-subtitle {
+ font-size: 0.8rem;
+ color: rgba(255, 255, 255, 0.8);
+ font-weight: 500;
+ text-transform: uppercase;
+ letter-spacing: 1px;
+ margin-bottom: 8px;
+}
+
+.vertice-preview-title {
+ font-family: 'Playfair Display', serif;
+ font-size: 1.8rem;
+ font-weight: 700;
+ line-height: 1.1;
+ margin: 0 0 8px 0;
+ color: white;
+}
+
+.vertice-preview-address {
+ font-size: 0.9rem;
+ color: rgba(255, 255, 255, 0.9);
+ margin: 0;
+}
+
+.vertice-preview-footer {
+ position: relative;
+ background-color: rgba(0, 0, 0, 0.3);
+ padding: 12px 16px;
+ z-index: 2;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.vertice-preview-price {
+ font-size: 0.8rem;
+ color: white;
+ font-weight: 600;
+}
+
+.vertice-preview-ref {
+ font-size: 0.7rem;
+ color: rgba(255, 255, 255, 0.8);
+}
+
+.vertice-preview-content-page {
+ flex: 1;
+ background-color: #f8f9fa;
+ border-radius: 8px;
+ padding: 16px;
+ display: flex;
+ flex-direction: column;
+ min-height: 150px;
+ border: 1px solid #e9ecef;
+}
+
+.vertice-preview-content-header {
+ margin-bottom: 12px;
+}
+
+.vertice-preview-page-title {
+ font-family: 'Playfair Display', serif;
+ font-size: 1.2rem;
+ color: #FFFFFF;
+ margin: 0 0 4px 0;
+ font-weight: 600;
+}
+
+.vertice-preview-page-title span {
+ color: #667eea;
+}
+
+.vertice-preview-page-subtitle {
+ font-size: 0.8rem;
+ color: #FFFFFF;
+ margin: 0;
+ line-height: 1.4;
+}
+
+.vertice-preview-content-body {
+ flex-grow: 1;
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+}
+
+.vertice-preview-section {
+ flex: 1;
+}
+
+.vertice-preview-section-title {
+ font-size: 0.8rem;
+ color: #FFFFFF;
+ margin: 0 0 6px 0;
+ font-weight: 600;
+}
+
+.vertice-preview-text {
+ font-size: 0.75rem;
+ line-height: 1.5;
+ color: #FFFFFF;
+ margin: 0;
+}
+
+.vertice-preview-footer-bar {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-top: auto;
+ padding-top: 8px;
+ border-top: 1px solid #e9ecef;
+}
+
+.vertice-preview-property-name {
+ font-size: 0.7rem;
+ color: #667eea;
+ font-weight: 600;
+}
+
+.vertice-preview-gallery {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 6px;
+ margin-bottom: 12px;
+}
+
+.vertice-preview-gallery-item {
+ background-color: #e9ecef;
+ padding: 8px;
+ border-radius: 4px;
+ text-align: center;
+}
+
+.vertice-preview-gallery-item span {
+ font-size: 0.7rem;
+ color: #FFFFFF;
+ font-weight: 500;
+}
+
+/* Enhanced Grid Template Styles */
+.preview-gallery-grid {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: 8px;
+ margin-top: 10px;
+}
+
+.preview-gallery-item {
+ height: 60px;
+ border-radius: 4px;
+ background-size: cover;
+ background-position: center;
+ border: 1px solid #ddd;
+}
+
+.preview-amenities {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin-top: 10px;
+}
+
+.preview-amenity-item {
+ background: #f8f9fa;
+ padding: 4px 8px;
+ border-radius: 12px;
+ font-size: 11px;
+ color: #495057;
+ border: 1px solid #e9ecef;
+}
+
+/* Serenity Preview Gallery Grid */
+.serenity-preview-gallery-grid {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: 8px;
+ margin-top: 10px;
+}
+
+.serenity-preview-gallery-item {
+ height: 60px;
+ border-radius: 4px;
+ background-size: cover;
+ background-position: center;
+ border: 1px solid #ddd;
+}
+
+/* Enhanced Vertice Preview Gallery */
+.vertice-preview-gallery {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ grid-template-rows: repeat(3, 1fr);
+ gap: 8px;
+ margin-top: 10px;
+ height: 120px;
+}
+
+.vertice-preview-gallery-item {
+ border-radius: 4px;
+ background-size: cover;
+ background-position: center;
+ border: 1px solid #ddd;
+ position: relative;
+ display: flex;
+ align-items: flex-end;
+ padding: 8px;
+}
+
+.vertice-preview-gallery-item span {
+ background: rgba(0, 0, 0, 0.7);
+ color: white;
+ padding: 2px 6px;
+ border-radius: 3px;
+ font-size: 10px;
+ font-weight: 600;
+}
+
+.vertice-preview-gallery-item:first-child {
+ grid-column: 1 / -1;
+ grid-row: 1 / 2;
+}
+
+.vertice-preview-amenities {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin-top: 10px;
+}
+
+.vertice-preview-amenity-item {
+ background: #f8f9fa;
+ padding: 4px 8px;
+ border-radius: 12px;
+ font-size: 11px;
+ color: #FFFFFF;
+ border: 1px solid #e9ecef;
+}
+
+/* Grand Oak Villa Preview Styles - Exact from preview-grand-oak.html */
+.grand-oak-preview .brochure-page {
+ width: 100%;
+ height: auto;
+ min-height: 200px;
+ background-color: #FFFFFF;
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+ margin-bottom: 8px;
+}
+
+.grand-oak-preview .cover-page {
+ position: relative;
+ background-image: url('https://images.unsplash.com/photo-1580587771525-78b9dba3b914?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=1200');
+ background-size: cover;
+ background-position: center;
+ color: #FFFFFF;
+ justify-content: space-between;
+ flex: 1;
+ min-height: 120px;
+}
+
+.grand-oak-preview .cover-overlay {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ background: linear-gradient(180deg, rgba(18, 18, 18, 0.8) 0%, rgba(18, 18, 18, 0.3) 100%);
+}
+
+.grand-oak-preview .cover-header {
+ position: relative;
+ padding: 15px;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.grand-oak-preview .logo {
+ font-family: 'Playfair Display', serif;
+ font-size: 0.8rem;
+ font-weight: 700;
+ letter-spacing: 1px;
+ border: 2px solid #FFFFFF;
+ padding: 4px 8px;
+}
+
+.grand-oak-preview .property-status {
+ background-color: #C0A062;
+ color: #121212;
+ padding: 4px 8px;
+ font-weight: 600;
+ font-size: 0.6rem;
+ text-transform: uppercase;
+}
+
+.grand-oak-preview .cover-content {
+ position: relative;
+ padding: 15px;
+ max-width: 70%;
+}
+
+.grand-oak-preview .cover-title {
+ font-family: 'Playfair Display', serif;
+ font-size: 1.5rem;
+ font-weight: 700;
+ line-height: 1.1;
+ margin: 0 0 5px 0;
+ color: #FFFFFF;
+}
+
+.grand-oak-preview .cover-address {
+ font-size: 0.7rem;
+ font-weight: 400;
+ display: flex;
+ align-items: center;
+ gap: 4px;
+ color: #FFFFFF;
+}
+
+.grand-oak-preview .cover-address i {
+ color: #C0A062;
+}
+
+.grand-oak-preview .cover-footer {
+ position: relative;
+ background-color: rgba(18, 18, 18, 0.9);
+ padding: 10px 15px;
+ display: grid;
+ grid-template-columns: repeat(4, 1fr);
+ gap: 8px;
+ text-align: center;
+}
+
+.grand-oak-preview .feature-item {
+ border-right: 1px solid #2a2a2a;
+}
+
+.grand-oak-preview .feature-item:last-child {
+ border-right: none;
+}
+
+.grand-oak-preview .feature-item .value {
+ font-size: 0.8rem;
+ font-weight: 600;
+ color: #FFFFFF;
+ margin-bottom: 2px;
+}
+
+.grand-oak-preview .feature-item .label {
+ font-size: 0.5rem;
+ color: #888888;
+ text-transform: uppercase;
+ letter-spacing: 0.5px;
+}
+
+.grand-oak-preview .content-body {
+ background-color: #121212;
+ color: #D1D1D1;
+ flex-grow: 1;
+ padding: 15px;
+ display: flex;
+ flex-direction: column;
+}
+
+.grand-oak-preview .page-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: baseline;
+ padding-bottom: 8px;
+ margin-bottom: 10px;
+ border-bottom: 1px solid #2a2a2a;
+}
+
+.grand-oak-preview .page-header .title {
+ font-family: 'Playfair Display', serif;
+ font-size: 1rem;
+ color: #FFFFFF;
+}
+
+.grand-oak-preview .page-header .title span {
+ color: #C0A062;
+}
+
+.grand-oak-preview .page-header .property-name {
+ font-size: 0.6rem;
+ font-weight: 600;
+ color: #888888;
+}
+
+.grand-oak-preview .section-title {
+ font-weight: 600;
+ font-size: 0.7rem;
+ color: #FFFFFF;
+ margin: 0 0 8px 0;
+ text-transform: uppercase;
+ letter-spacing: 1px;
+ position: relative;
+ padding-bottom: 4px;
+}
+
+.grand-oak-preview .section-title::after {
+ content: '';
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ width: 20px;
+ height: 2px;
+ background-color: #C0A062;
+}
+
+.grand-oak-preview .main-content {
+ flex-grow: 1;
+}
+
+.grand-oak-preview .page-footer {
+ background-color: #0A0A0A;
+ padding: 8px 15px;
+ font-size: 0.6rem;
+ color: #888888;
+ border-top: 1px solid #2a2a2a;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.grand-oak-preview .page-footer strong {
+ color: #C0A062;
+ font-weight: 600;
+}
+
+.grand-oak-preview .details-grid {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+}
+
+.grand-oak-preview .description p {
+ font-size: 0.6rem;
+ line-height: 1.4;
+ margin: 0 0 8px 0;
+ color: #D1D1D1;
+}
+
+.grand-oak-preview .specs-and-amenities {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: 15px;
+}
+
+.grand-oak-preview .spec-list .item {
+ display: flex;
+ justify-content: space-between;
+ font-size: 0.6rem;
+ padding: 4px 0;
+ border-bottom: 1px solid #2a2a2a;
+}
+
+.grand-oak-preview .spec-list .item:first-child {
+ padding-top: 0;
+}
+
+.grand-oak-preview .spec-list .item .key {
+ font-weight: 600;
+ color: #888888;
+}
+
+.grand-oak-preview .spec-list .item .value {
+ font-weight: 400;
+ color: #FFFFFF;
+}
+
+.grand-oak-preview .amenities-list {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+ columns: 1;
+ gap: 4px;
+}
+
+.grand-oak-preview .amenities-list li {
+ font-size: 0.6rem;
+ margin-bottom: 4px;
+ display: flex;
+ align-items: center;
+}
+
+.grand-oak-preview .amenities-list i {
+ color: #C0A062;
+ margin-right: 4px;
+ font-size: 0.6rem;
+}
+
+/* Override any blue colors in Grand Oak Villa preview */
+.grand-oak-preview * {
+ color: #FFFFFF !important;
+}
+
+.grand-oak-preview .cover-title,
+.grand-oak-preview .cover-address,
+.grand-oak-preview .feature-item .value,
+.grand-oak-preview .feature-item .label,
+.grand-oak-preview .page-header .title,
+.grand-oak-preview .page-header .property-name,
+.grand-oak-preview .section-title,
+.grand-oak-preview .description p,
+.grand-oak-preview .spec-list .item .key,
+.grand-oak-preview .spec-list .item .value,
+.grand-oak-preview .amenities-list li,
+.grand-oak-preview .page-footer {
+ color: #FFFFFF !important;
+}
+
+.grand-oak-preview .page-header .title span,
+.grand-oak-preview .cover-address i,
+.grand-oak-preview .amenities-list i,
+.grand-oak-preview .page-footer strong {
+ color: #C0A062 !important;
+}
+
+/* Serenity House Preview Styles - Exact from preview-serenity-house.html */
+.serenity-preview .brochure-page {
+ width: 100%;
+ height: auto;
+ min-height: 200px;
+ background-color: #FFFFFF;
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+ margin-bottom: 8px;
+ position: relative;
+}
+
+.serenity-preview .p1-container {
+ display: flex;
+ height: 100%;
+}
+
+.serenity-preview .p1-image-side {
+ flex: 1.2;
+ background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=1200');
+ background-size: cover;
+ background-position: center;
+}
+
+.serenity-preview .p1-content-side {
+ flex: 1;
+ padding: 25px 20px;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+}
+
+.serenity-preview .p1-header .collection {
+ font-size: 0.4rem;
+ letter-spacing: 1px;
+ color: #777777;
+ text-transform: uppercase;
+}
+
+.serenity-preview .p1-main-title {
+ font-family: 'Cormorant Garamond', serif;
+ font-size: 1.8rem;
+ font-weight: 600;
+ line-height: 1.1;
+ color: #333333;
+ margin: 8px 0;
+}
+
+.serenity-preview .p1-address {
+ font-size: 0.5rem;
+ color: #777777;
+ border-left: 2px solid #D4C7B8;
+ padding-left: 8px;
+}
+
+.serenity-preview .p1-ref-id {
+ font-size: 0.4rem;
+ color: #777777;
+ margin-top: 5px;
+ padding-left: 10px;
+}
+
+.serenity-preview .p1-footer {
+ font-size: 0.4rem;
+ color: #777777;
+}
+
+.serenity-preview .p1-footer strong {
+ color: #333333;
+}
+
+.serenity-preview .p1-footer .area {
+ font-size: 0.5rem;
+ color: #333333;
+ font-weight: 700;
+ margin-bottom: 4px;
+}
+
+.serenity-preview .page-layout {
+ padding: 25px;
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+ box-sizing: border-box;
+}
+
+.serenity-preview .page-number {
+ position: absolute;
+ top: 25px; right: 25px;
+ font-family: 'Cormorant Garamond', serif;
+ font-size: 0.5rem;
+ color: #777777;
+}
+
+.serenity-preview .page-title-main {
+ font-family: 'Cormorant Garamond', serif;
+ font-size: 1.3rem;
+ font-weight: 600;
+ color: #333333;
+ margin: 0 0 5px 0;
+ line-height: 1;
+}
+
+.serenity-preview .page-title-sub {
+ font-size: 0.5rem;
+ color: #777777;
+ margin-bottom: 15px;
+}
+
+.serenity-preview .p2-grid {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 20px;
+ flex-grow: 1;
+}
+
+.serenity-preview .p2-image {
+ background-image: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=800');
+ background-size: cover;
+ background-position: center;
+}
+
+.serenity-preview .p2-text p {
+ font-size: 0.5rem;
+ line-height: 1.4;
+ color: #777777;
+}
+
+.serenity-preview .p2-text p:first-of-type::first-letter {
+ font-family: 'Cormorant Garamond', serif;
+ font-size: 1.5rem;
+ float: left;
+ line-height: 1;
+ margin-right: 5px;
+ color: #D4C7B8;
+}
+
+.serenity-preview .pull-quote {
+ border-left: 2px solid #D4C7B8;
+ padding-left: 10px;
+ margin: 10px 0;
+ font-family: 'Cormorant Garamond', serif;
+ font-size: 0.6rem;
+ font-style: italic;
+ color: #333333;
+}
+
+.serenity-preview .contact-info {
+ margin-top: 15px;
+ padding: 12px;
+ background-color: #F5F5F5;
+ border-radius: 4px;
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ grid-template-rows: auto auto;
+ gap: 4px 8px;
+ font-family: 'Lato', sans-serif;
+}
+
+.serenity-preview .contact-name {
+ font-weight: 700;
+ color: #1e3a8a;
+ font-size: 0.5rem;
+ grid-column: 1;
+ grid-row: 1;
+}
+
+.serenity-preview .contact-phone {
+ font-weight: 600;
+ color: #1e3a8a;
+ font-size: 0.5rem;
+ grid-column: 2;
+ grid-row: 1;
+ text-align: right;
+}
+
+.serenity-preview .contact-title {
+ font-weight: 400;
+ color: #1e3a8a;
+ font-size: 0.4rem;
+ grid-column: 1;
+ grid-row: 2;
+}
+
+.serenity-preview .contact-email {
+ font-weight: 400;
+ color: #1e3a8a;
+ font-size: 0.4rem;
+ grid-column: 2;
+ grid-row: 2;
+ text-align: right;
+ background-color: #dbeafe;
+ padding: 2px 4px;
+ border-radius: 2px;
+}
+
+/* Vertice Preview Styles - Exact from preview-vertice.html */
+.vertice-preview .brochure-page {
+ width: 100%;
+ height: auto;
+ min-height: 200px;
+ background-color: #FFFFFF;
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+ margin-bottom: 8px;
+ position: relative;
+}
+
+.vertice-preview .cover-page {
+ background-image: url('https://plus.unsplash.com/premium_photo-1677474827617-6a7269f97574?q=80&w=687&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
+ background-size: cover;
+ background-position: center;
+ color: #FFFFFF;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ position: relative;
+ flex: 1;
+}
+
+.vertice-preview .cover-overlay {
+ position: absolute; top: 0; left: 0; width: 100%; height: 100%;
+ background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
+}
+
+.vertice-preview .cover-content {
+ position: relative; z-index: 2; padding: 20px;
+}
+
+.vertice-preview .cover-content .subtitle {
+ font-size: 0.5rem;
+ font-weight: 500;
+ letter-spacing: 2px;
+ text-transform: uppercase;
+ color: rgba(255, 255, 255, 0.8);
+}
+
+.vertice-preview .cover-content .main-title {
+ font-size: 2rem;
+ font-weight: 800;
+ line-height: 1.1;
+ margin: 4px 0 8px 0;
+ text-shadow: 0 2px 5px rgba(0,0,0,0.3);
+}
+
+.vertice-preview .cover-content .address {
+ font-size: 0.5rem;
+ font-weight: 400;
+ border-top: 1px solid #0A6847;
+ display: inline-block;
+ padding-top: 8px;
+}
+
+.vertice-preview .cover-footer {
+ position: absolute;
+ bottom: 15px;
+ left: 15px; right: 15px;
+ z-index: 2;
+ display: flex;
+ justify-content: space-between;
+ font-size: 0.4rem;
+ font-weight: 500;
+}
+
+.vertice-preview .page-container {
+ padding: 25px;
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ box-sizing: border-box;
+}
+
+.vertice-preview .page-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: baseline;
+ border-bottom: 1px solid #DDDDDD;
+ margin-bottom: 8px;
+}
+
+.vertice-preview .page-title {
+ font-size: 1rem;
+ font-weight: 800;
+ color: #FFFFFF;
+}
+
+.vertice-preview .page-title span {
+ color: #0A6847;
+}
+
+.vertice-preview .page-subtitle {
+ font-size: 0.5rem;
+ font-weight: 500;
+ color: #FFFFFF;
+}
+
+.vertice-preview .page-footer-bar {
+ margin-top: auto;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding-top: 8px;
+ border-top: 1px solid #DDDDDD;
+ font-size: 0.4rem;
+ font-weight: 500;
+ color: #FFFFFF;
+}
+
+.vertice-preview .page-footer-bar .property-name {
+ color: #FFFFFF;
+}
+
+.vertice-preview .vision-grid {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 20px;
+ flex-grow: 1;
+ margin-bottom: 8px;
+}
+
+.vertice-preview .vision-image {
+ background-image: url('https://images.unsplash.com/photo-1626704359446-0de90350b4e7?q=80&w=736&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
+ background-size: cover;
+ background-position: center;
+}
+
+.vertice-preview .vision-text h3 {
+ font-size: 0.8rem;
+ font-weight: 700;
+ color: #FFFFFF;
+ margin-bottom: 8px;
+}
+
+.vertice-preview .vision-text p {
+ font-size: 0.5rem;
+ line-height: 1.4;
+ color: #FFFFFF;
+ margin-bottom: 8px;
+}
+
+.vertice-preview .gallery-grid {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ grid-template-rows: 75px 75px 75px;
+ gap: 8px;
+ flex-grow: 1;
+ padding-top: 3px;
+}
+
+.vertice-preview .gallery-item {
+ background-size: cover;
+ background-position: center;
+ position: relative;
+ display: flex;
+ align-items: flex-end;
+ color: #FFFFFF;
+ padding: 6px;
+}
+
+.vertice-preview .gallery-item::after {
+ content: ''; position: absolute; top:0; left: 0; width: 100%; height: 100%;
+ background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
+}
+
+.vertice-preview .gallery-item span { font-weight: 600; z-index: 2; font-size: 0.4rem; }
+.vertice-preview .g-item-1 { grid-column: 1 / 3; grid-row: 1 / 2; background-image: url('https://images.unsplash.com/photo-1616046229478-9901c5536a45?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=800'); }
+.vertice-preview .g-item-2 { grid-column: 3 / 4; grid-row: 1 / 3; background-image: url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=800'); }
+.vertice-preview .g-item-3 { grid-column: 1 / 2; grid-row: 2 / 4; background-image: url('https://images.unsplash.com/photo-1600121848594-d8644e57abab?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=800'); }
+.vertice-preview .g-item-4 { grid-column: 2 / 3; grid-row: 2 / 3; background-image: url('https://images.unsplash.com/photo-1595526114035-0d45ed16433d?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=800'); }
+.vertice-preview .g-item-5 { grid-column: 2 / 4; grid-row: 3 / 4; background-image: url('https://images.unsplash.com/photo-1512918728675-ed5a71a580a9?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=800'); }
\ No newline at end of file
diff --git a/force-app/main/default/lwc/propertyTemplateSelector/propertyTemplateSelector.html b/force-app/main/default/lwc/propertyTemplateSelector/propertyTemplateSelector.html
index b5ca48b..940f7ee 100644
--- a/force-app/main/default/lwc/propertyTemplateSelector/propertyTemplateSelector.html
+++ b/force-app/main/default/lwc/propertyTemplateSelector/propertyTemplateSelector.html
@@ -1,6 +1,14 @@
+
+
+
+
+
-
-
-
+
+
+
@@ -46,7 +75,7 @@
Design every element from scratch. Perfect for unique branding, creative layouts, and
personalized property showcases with your own design vision.
-
+
@@ -64,12 +93,12 @@
onclick={handleTemplateSelect}>
-
+
Modern Villa
123 Luxury Lane, Prestige City, PC 45678
-
$2,500,000
+
AED 2,500,000
4 Beds
3 Baths
@@ -102,7 +131,7 @@