=== SimpliPlot Interactive Mapper ===
Contributors: sapthesh
Tags: real estate, plot mapper, interactive map, master plan, svg polygons
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.3.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Draw interactive polygons over master plan images. Includes custom statuses, plot sizes, prices, CSV export, and lead capture modals.

== Description ==

**SimpliPlot Interactive Mapper** is designed specifically for real estate developers, infrastructure companies, and property managers. It allows you to upload a blueprint or master plan image and draw interactive, clickable polygons over available or sold plots directly from the WordPress dashboard.

### Key Features
* **Interactive SVG Mapping:** Draw custom polygons directly over your master plan images using an intuitive point-and-click interface.
* **Custom Dynamic Statuses:** Create your own statuses (Available, Sold, Reserved, Phase 1, etc.) and assign custom brand colors to them via the Settings page.
* **Rich Plot Data:** Add Custom Names (e.g., "Lot 42"), Sizes (e.g., "1200 SqFt"), and Prices to each plot.
* **Lead Capture Modals:** Integrate directly with Contact Form 7 or WPForms. Clicking an available plot opens a popup form dynamically populated with the plot's name.
* **Live Summary Dashboards:** Instantly display color-coded progress bars showing total, available, and sold counts.
* **Frontend Filtering:** Users can toggle between "Show All", "Available", and other custom statuses seamlessly.
* **CSV Export:** Download a spreadsheet of all your mapped plots, statuses, and pricing data with one click.

== Installation ==

1. Upload the `simpliplot-interactive-mapper` folder to the `/wp-content/plugins/` directory, or upload the `.zip` file via the WordPress Plugins menu.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to the new **SimpliPlot** menu in your WordPress dashboard.
4. Go to **SimpliPlot > Settings** to define your custom statuses and brand colors.
5. Go to **SimpliPlot > Add New** to upload your first master plan and start drawing!

== Usage & Shortcodes ==

### 1. Displaying a Single Map
To display an interactive map on any page or post, use the following shortcode:
`[simpliplot_mapper id="POST_ID"]`
*Replace **POST_ID** with the ID of your Master Plan.*

**Optional Attributes:**
* `contact_url="/contact-us/"` : Redirects users to a specific page when a plot is clicked, appending the plot ID to the URL (if you aren't using the popup modal).
* `plot="lot-42"` : Automatically highlights a specific plot when the page loads.

### 2. Live Summary Dashboard
To display a live count of your plots (Total, Available, Sold, etc.):
`[simpliplot_summary id="POST_ID"]`

== Frequently Asked Questions ==

= How do I set up the Lead Capture Modal? =
1. Go to your Master Plan editor in the WP Dashboard.
2. Find the "Inquiry Form Shortcode (Popup Modal)" field.
3. Paste your form shortcode (e.g., `[contact-form-7 id="123"]`).
4. Now, when a buyer clicks an available plot on the frontend, the form will open in a popup modal.

= Can I change the Green and Red colors? =
Yes! Navigate to **SimpliPlot > Settings**. You can define as many custom statuses as you want using the format `slug | Label | #HexColor`. 

== Screenshots ==

1. **Admin Interface:** Upload a blueprint, define custom names, and draw polygons with precision.
2. **Manage Plots:** Change plot statuses, delete plots, and export CSV data from the dashboard.
3. **Frontend Map:** Beautiful interactive SVGs with hover tooltips displaying Price, Size, and Status.
4. **Summary Dashboard:** Live widgets tracking your project's sales progress.

== Changelog ==

= 1.3.6 =
* Refactored dynamic CSS injection to use wp_add_inline_style instead of echoing directly to wp_head.
* Added late escaping (esc_attr) to all dynamic CSS variables to fully resolve PHPCS security flags.
* Removed invalid Plugin URI header parameter causing 404.
* Corrected Contributors list formatting to match WordPress.org user strictly.

= 1.3.2 =
* Rebranded to SimpliPlot Interactive Mapper to resolve directory name conflict.
* Resolved Plugin Check Escaping and Sanitize warnings.
* Added missing nonces to settings pages.
* Updated standard Plugin Header metadata.

= 1.3.0 =
* Added Lead Capture Modal integration for WPForms and CF7.
* Added `[simpliplot_summary]` shortcode for live project data dashboards.

= 1.2.0 =
* Added Custom Dynamic Statuses via Settings page.

= 1.1.8 =
* Added Plot Size and Price data fields, and CSV Export functionality.