[
  {
    "template_meta": {
      "title": "Advanced Boat Rental (Search & Results)",
      "description": "Implements a professional booking flow. Adds a dedicated search page that leads to a filterable results page, similar to Airbnb or Amazon. This is the recommended setup for multi-day rentals.",
      "recommended": true
    },
    "options": {
      "clisyc_dimension_registry": {
        "dimensions": {
          "clisyc_boat": {
            "enabled": true,
            "primary": true,
            "frontend_visible": true
          }
        },
        "relationships": {},
        "filter_order": [
          "clisyc_boat"
        ]
      },
      "clisyc_custom_dimension_types": {
        "clisyc_boat": {
          "singular": "Boat",
          "plural": "Boats",
          "icon": "dashicons-admin-site-alt3",
          "public": true
        }
      },
      "clisyc_dimension_fields": {
        "boat_length": {
          "label": "Length (ft)",
          "type": "number",
          "filterable": true,
          "icon": "dashicons-editor-expand",
          "comparison_operator": ">=",
          "applies_to": [
            "clisyc_boat"
          ]
        },
        "max_capacity": {
          "label": "Max Capacity",
          "type": "number",
          "filterable": true,
          "icon": "dashicons-groups",
          "comparison_operator": ">=",
          "applies_to": [
            "clisyc_boat"
          ]
        },
        "boat_type": {
          "label": "Boat Type",
          "type": "select",
          "filterable": true,
          "icon": "dashicons-category",
          "options": "Pontoon,Speedboat,Fishing",
          "applies_to": [
            "clisyc_boat"
          ]
        }
      },
      "clisyc_search_results_page_id": "{{page_available-boats}}"
    },
    "pages": [
      {
        "post_name": "boat-search",
        "post_title": "Find a Boat",
        "post_content": "[clisyc_booking_form mode=\"search\"]"
      },
      {
        "post_name": "available-boats",
        "post_title": "Available Boats",
        "post_content": "[clisyc_search_results]"
      }
    ],
    "cpts": {
      "clisyc_boat": [
        {
          "post_name": "pontoon-boat",
          "post_title": "24' Pontoon Boat (12 Person)",
          "post_content": "Perfect for family outings and leisurely cruises. This boat has a minimum 2-night rental period and requires a 1-day buffer for cleaning.",
          "post_meta": {
            "_clisyc_booking_mode": [
              "date_range"
            ],
            "_clisyc_capacity": [
              "1"
            ],
            "_clisyc_min_stay": [
              "2"
            ],
            "_clisyc_max_stay": [
              "14"
            ],
            "_clisyc_buffer_days": [
              "1"
            ],
            "_clisyc_color": [
              "#007cba"
            ],
            "_clisyc_boat_length": [
              "24"
            ],
            "_clisyc_max_capacity": [
              "12"
            ],
            "_clisyc_boat_type": [
              "Pontoon"
            ],
            "_clisyc_schedule": [
              "{\"pattern_enabled\":false,\"pattern_start_date\":\"\",\"pattern_sequence\":\"A\",\"templates\":{\"A\":{\"0\":{\"slots\":[{\"start\":\"00:00\",\"end\":\"23:59\"}]},\"1\":{\"slots\":[{\"start\":\"00:00\",\"end\":\"23:59\"}]},\"2\":{\"slots\":[{\"start\":\"00:00\",\"end\":\"23:59\"}]},\"3\":{\"slots\":[{\"start\":\"00:00\",\"end\":\"23:59\"}]},\"4\":{\"slots\":[{\"start\":\"00:00\",\"end\":\"23:59\"}]},\"5\":{\"slots\":[{\"start\":\"00:00\",\"end\":\"23:59\"}]},\"6\":{\"slots\":[{\"start\":\"00:00\",\"end\":\"23:59\"}]}}}}"
            ]
          }
        },
        {
          "post_name": "speedboat",
          "post_title": "20' Speedboat (6 Person)",
          "post_content": "Ideal for waterskiing and fast-paced fun on the water. This boat requires a minimum 3-night rental.",
          "post_meta": {
            "_clisyc_booking_mode": [
              "date_range"
            ],
            "_clisyc_capacity": [
              "1"
            ],
            "_clisyc_min_stay": [
              "3"
            ],
            "_clisyc_max_stay": [
              "7"
            ],
            "_clisyc_buffer_days": [
              "0"
            ],
            "_clisyc_color": [
              "#e53983"
            ],
            "_clisyc_boat_length": [
              "20"
            ],
            "_clisyc_max_capacity": [
              "6"
            ],
            "_clisyc_boat_type": [
              "Speedboat"
            ],
            "_clisyc_schedule": [
              "{\"pattern_enabled\":false,\"pattern_start_date\":\"\",\"pattern_sequence\":\"A\",\"templates\":{\"A\":{\"0\":{\"slots\":[{\"start\":\"00:00\",\"end\":\"23:59\"}]},\"1\":{\"slots\":[{\"start\":\"00:00\",\"end\":\"23:59\"}]},\"2\":{\"slots\":[{\"start\":\"00:00\",\"end\":\"23:59\"}]},\"3\":{\"slots\":[{\"start\":\"00:00\",\"end\":\"23:59\"}]},\"4\":{\"slots\":[{\"start\":\"00:00\",\"end\":\"23:59\"}]},\"5\":{\"slots\":[{\"start\":\"00:00\",\"end\":\"23:59\"}]},\"6\":{\"slots\":[{\"start\":\"00:00\",\"end\":\"23:59\"}]}}}}"
            ]
          }
        }
      ]
    },
    "relationships": [],
    "output_templates": [
      {
        "post_title": "Booking Confirmation",
        "clisyc_template_json": "{\"sections\":[{\"id\":\"ot_1\",\"type\":\"text\",\"content\":\"Hi {client_first_name}, your appointment has been confirmed!\",\"fields\":[]},{\"id\":\"ot_2\",\"type\":\"text\",\"content\":\"Date: {appointment_date_formatted}\",\"fields\":[]},{\"id\":\"ot_3\",\"type\":\"text\",\"content\":\"Time: {appointment_time}\",\"fields\":[]},{\"id\":\"ot_4\",\"type\":\"text\",\"content\":\"Duration: {appointment_duration} minutes\",\"fields\":[]},{\"id\":\"ot_5\",\"type\":\"text\",\"content\":\"If you need to make changes, please contact us at {site_name}.\",\"fields\":[]}]}",
        "clisyc_triggers": [
          "new_appointment_client",
          "new_appointment_admin"
        ],
        "clisyc_channels": [
          "email"
        ]
      },
      {
        "post_title": "Appointment Reminder",
        "clisyc_template_json": "{\"sections\":[{\"id\":\"ot_1\",\"type\":\"text\",\"content\":\"Hi {client_first_name}, this is a reminder about your upcoming appointment.\",\"fields\":[]},{\"id\":\"ot_2\",\"type\":\"text\",\"content\":\"Date: {appointment_date_formatted}\",\"fields\":[]},{\"id\":\"ot_3\",\"type\":\"text\",\"content\":\"Time: {appointment_time}\",\"fields\":[]},{\"id\":\"ot_4\",\"type\":\"text\",\"content\":\"View details: {appointment_view_link}\",\"fields\":[]},{\"id\":\"ot_5\",\"type\":\"text\",\"content\":\"We look forward to seeing you!\",\"fields\":[]}]}",
        "clisyc_triggers": [
          "appointment_reminder"
        ],
        "clisyc_channels": [
          "email"
        ]
      },
      {
        "post_title": "Cancellation Notice",
        "clisyc_template_json": "{\"sections\":[{\"id\":\"ot_1\",\"type\":\"text\",\"content\":\"Hi {client_first_name}, your appointment on {appointment_date_formatted} at {appointment_time} has been cancelled.\",\"fields\":[]},{\"id\":\"ot_2\",\"type\":\"text\",\"content\":\"If this was a mistake or you would like to reschedule, please visit {site_url} or contact us.\",\"fields\":[]}]}",
        "clisyc_triggers": [
          "appointment_cancelled_admin",
          "appointment_cancelled_by_client"
        ],
        "clisyc_channels": [
          "email"
        ]
      },
      {
        "post_title": "Payment Receipt",
        "clisyc_template_json": "{\"sections\":[{\"id\":\"ot_1\",\"type\":\"text\",\"content\":\"Hi {client_name}, thank you for your payment!\",\"fields\":[]},{\"id\":\"ot_2\",\"type\":\"text\",\"content\":\"Order #: {order_id}\",\"fields\":[]},{\"id\":\"ot_3\",\"type\":\"text\",\"content\":\"Amount: {order_total}\",\"fields\":[]},{\"id\":\"ot_4\",\"type\":\"text\",\"content\":\"Payment method: {order_payment_method_title}\",\"fields\":[]},{\"id\":\"ot_5\",\"type\":\"text\",\"content\":\"Appointment: {appointment_date_formatted} at {appointment_time}\",\"fields\":[]},{\"id\":\"ot_6\",\"type\":\"text\",\"content\":\"Thank you for choosing {site_name}!\",\"fields\":[]}]}",
        "clisyc_triggers": [
          "payment_successful_client"
        ],
        "clisyc_channels": [
          "email"
        ]
      },
      {
        "post_title": "Admin: New Booking Alert",
        "clisyc_template_json": "{\"sections\":[{\"id\":\"ot_1\",\"type\":\"text\",\"content\":\"New booking received from {client_name} ({client_email}).\",\"fields\":[]},{\"id\":\"ot_2\",\"type\":\"text\",\"content\":\"Date: {appointment_date_formatted} at {appointment_time}\",\"fields\":[]},{\"id\":\"ot_3\",\"type\":\"text\",\"content\":\"Duration: {appointment_duration} minutes\",\"fields\":[]},{\"id\":\"ot_4\",\"type\":\"text\",\"content\":\"Notes: {appointment_notes}\",\"fields\":[]},{\"id\":\"ot_5\",\"type\":\"text\",\"content\":\"Edit: {appointment_edit_link_admin}\",\"fields\":[]}]}",
        "clisyc_triggers": [
          "new_appointment_client"
        ],
        "clisyc_channels": [
          "email"
        ]
      }
    ]
  }
]
