{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "bookiflex/search-form",
  "version": "1.0.0",
  "title": "Booking Search Form",
  "category": "bookiflex",
  "description": "Let visitors search availability by dates and guests from any page — ideal for building a call-to-action section. Matching results open right in the booking widget.",
  "keywords": ["bookiflex", "booking", "search", "hotel", "reservation"],
  "supports": {
    "html": false,
    "align": ["wide", "full"]
  },
  "textdomain": "bookiflex",
  "attributes": {
    "layout": {
      "type": "string",
      "default": "bar",
      "enum": ["bar", "hero", "sidebar"]
    },
    "locale": {
      "type": "string",
      "default": ""
    },
    "buttonText": {
      "type": "string",
      "default": ""
    },
    "hideGuests": {
      "type": "boolean",
      "default": false
    },
    "hidePromo": {
      "type": "boolean",
      "default": false
    },
    "hideChildren": {
      "type": "boolean",
      "default": false
    },
    "maxAdults": {
      "type": "number"
    },
    "maxChildren": {
      "type": "number"
    },
    "maxChildAge": {
      "type": "number"
    },
    "accommodationTypes": {
      "type": "string",
      "default": ""
    },
    "ratePlans": {
      "type": "string",
      "default": ""
    },
    "submitMode": {
      "type": "string",
      "default": "event",
      "enum": ["redirect", "event"]
    },
    "actionUrl": {
      "type": "string",
      "default": ""
    },
    "colorPrimary": {
      "type": "string",
      "default": ""
    },
    "colorPrimaryHover": {
      "type": "string",
      "default": ""
    },
    "colorOnPrimary": {
      "type": "string",
      "default": ""
    },
    "colorSurface": {
      "type": "string",
      "default": ""
    },
    "colorOnSurface": {
      "type": "string",
      "default": ""
    },
    "colorBorder": {
      "type": "string",
      "default": ""
    },
    "colorMuted": {
      "type": "string",
      "default": ""
    },
    "radius": {
      "type": "string",
      "default": ""
    },
    "radiusTl": { "type": "number" },
    "radiusTr": { "type": "number" },
    "radiusBr": { "type": "number" },
    "radiusBl": { "type": "number" },
    "borderWidth": {
      "type": "string",
      "default": ""
    },
    "gap": {
      "type": "string",
      "default": ""
    },
    "fieldPadding": {
      "type": "string",
      "default": ""
    },
    "fontFamily": {
      "type": "string",
      "default": ""
    },
    "fontSize": {
      "type": "string",
      "default": ""
    },
    "buttonTextTransform": {
      "type": "string",
      "default": ""
    },
    "shadow": {
      "type": "string",
      "default": ""
    }
  },
  "editorScript": "file:./index.js"
}
