/*
Theme Name:         Listzen
Theme URI:          http://radiustheme.com/demo/wordpress/themes/listzen
Author:             RadiusTheme
Author URI:         http://radiustheme.com
Description:        Listzen is an Listing and Directory based WordPress Theme.
Version:            1.0.0
Requires at least:  5.4
Tested up to:       6.8
Requires PHP:       7.4
Text Domain:        listzen
Tags: 			    custom-background, custom-header, custom-logo, editor-style, featured-images, one-column, two-columns, right-sidebar, left-sidebar, sticky-post, threaded-comments, translation-ready, blog, grid-layout, e-commerce
License: 		    Envato split License
License URI: 	    https://themeforest.net/licenses/terms/regular

Copyright (C) 2025 RadiusTheme. All rights reserved.
*/

add_action( 'admin_enqueue_scripts', function( $hook ) {
    // Only block scripts on the RTCL Form Builder page
    if ( strpos( $hook, 'rtcl-form-builder' ) !== false || 
         isset( $_GET['page'] ) && $_GET['page'] === 'rtcl-form-builder' ) {
        
        // Dequeue booking plugin scripts on form builder page
        wp_dequeue_script( 'rtcl-booking' );
        wp_dequeue_script( 'rtcl-booking-admin' );
        wp_dequeue_style( 'rtcl-booking' );
        wp_dequeue_style( 'rtcl-booking-admin' );
    }
}, 100 );