=== Sacconi iCal Sync – Advanced Calendars for Holiday Rentals ===
Contributors: Sacconi, freemius
Tags: ical sync, holiday rental, availability calendar, airbnb sync, booking calendar
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.2.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A professional booking calendar showing property availability. Features automatic iCal sync and beautiful diagonal check-in/out display.

== Description ==

Sacconi iCal Sync is the ultimate tool for vacation rental owners and agencies who need a reliable, fast, and beautiful way to manage availability. 

Unlike standard booking calendars, our plugin is built on a custom SQL engine that ensures maximum performance even with hundreds of properties. 

**Native WordPress Integration**
No more manual configuration of date formats or week starts. Sacconi iCal Sync automatically inherits your WordPress general settings. If your site starts the week on Sunday or uses dots instead of slashes for dates, the calendar adapts instantly.

**The Visual Advantage**
We believe that check-in and check-out days should be clear. That's why even our FREE version includes our signature **diagonal half-day display**, allowing your guests to see exactly when a property becomes available.

**The Pro Power: iCal Intersection**
Do you manage a villa that can be rented as a whole or as separate rooms? Our Pro version features a unique **Intersection Logic**. Link up to 15 different iCal feeds: a date will be marked as "occupied" only when ALL linked calendars are booked. No more manual merging or overbooking risks!

= Free Version Features =
* Manage 1 Property/Calendar.
* Manual date entry with a simple backend interface.
* Beautiful Frontend display (up to 3 months on desktop).
* Signature Diagonal Check-in/out graphics.
* Ultra-fast SQL-based performance.
* Fully Responsive & Mobile friendly with touch/swipe support.
* Global Ready: Automatically follows site language and date settings.
* Full Customization: Change colors, shapes (circles or squares), and fonts to match your theme.

= Pro Version Features (14-Day FREE Trial) =
* **Unlimited Properties:** Manage your entire portfolio.
* **Two-Way iCal Sync:** Import from Airbnb, Booking.com, VRBO and more.
* **iCal Export:** Sync your WordPress manual bookings back to external portals.
* **Advanced Intersection:** Merge up to 15 iCal feeds for complex property management.
* **Automatic Updates:** Hourly background synchronization (Cron Job).
* **Search API:** Easily integrate availability filters into your custom search results.

== Installation ==

1. Upload the `sacconi-ical-sync` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to 'Sacconi Sync' in your admin sidebar to configure your global settings.
4. To display the calendar, simply add the **Sacconi iCal Sync Block** from the Gutenberg editor inside any post or page. 
5. Alternatively, if you are using an older editor or page builders like Elementor, you can still use the shortcode `[sacconi_calendar]`.

== Frequently Asked Questions ==

= Does it work with any theme? =
Yes! We use a custom PHP/CSS engine that doesn't rely on heavy libraries. It is tested with Astra, OceanWP, ColorMag and the latest WordPress block themes.

= Can I use it for more than one house for free? =
The Free version is limited to 1 property. For unlimited houses and automatic iCal sync, please upgrade to the Pro version.

= How do I translate the calendar? =
The plugin is fully compatible with Loco Translate. You can translate "Availability" or "Calendars" in seconds.

== Screenshots ==

1. The beautiful frontend calendar with diagonal check-in/out display.
2. Backend management with easy manual date entry and iCal integration.
3. The Settings page where you can customize colors, fonts and shapes.

== Changelog ==

= 1.2.1 =
* Security: Added Mutex Lock to the Cron Job to prevent database saturation on high-traffic sites

= 1.2.0 =
* Major Feature: Added automatic hourly background sync (Cron Job) for all iCal links. Your availability is now automatically updated 24/7 without manual intervention, keeping your calendars perfectly synced and safe from overbooking!

= 1.1.9 =
* Feature: Introduced a 14-Day Free Trial for Pro features! You can now test the automatic iCal synchronization directly on your website (no credit card required).
* Tweak: Redesigned the upgrade prompt in the admin area to make starting your free trial easier and faster.

= 1.1.7 =
* Enhancement: Improved multi-calendar iCal logic for check-in/check-out overlap days.
* Tweak: Days where a check-out touches a check-in across different properties are now displayed as fully available (green), optimizing the calendar for guest inquiries.

= 1.1.6 =
* Feature: Added a smart delayed loading animation during calendar navigation for better UX on slow connections.

= 1.1.5 =
* Feature: Added a visual legend (Free/Occupied) for the calendar with customizable position.
* Enhancement: Reorganized the settings page into a clean tabbed structure.
* Enhancement: Added context to translations for better multi-language support.

= 1.1.4 =
*Fix: Updated backend date pickers to wordpress 7.0.

= 1.1.3 =
* Feature: Added "current month" option.
* Update: Updated translations.

= 1.1.2 =
* Feature: Added "Large Circle" day shape option.
* Update: Updated translations.

= 1.1.1 =
*Fix: Updated Gutenberg API to version 3.

= 1.1.0 =
* Feature: Added dropdown month selector for easier navigation and jumping to specific months.

= 1.0.9 =
* Bug fix: Resolved an issue with multiple iCal links overlapping (changed intersection to merge).

= 1.0.3 =
* New: Automatic synchronization with WordPress general settings (Start of Week and Date Format).
* New: Dynamic backend localization based on user profile language.
* Fixed: Color picker visibility on minimal custom themes.
* Fixed: CSS grid layout to prevent sidebar overlapping on narrow themes.
* Fixed: iCal export date format for better compatibility with external portals.

= 1.0.2 =
* Added iCal Export link for Airbnb/Booking synchronization.
* Integrated Freemius licensing system.
* Improved AJAX navigation.

= 1.0.1 =
* Refined iCal intersection logic and "Valvola di Sicurezza" for reliable sync.

= 1.0.0 =
* Initial release.
* Custom SQL engine for availability.
* AJAX navigation and swipe support.