/*
*Theme Name:     CozyStay Child Theme
*Theme URI: 	 https://cozystay.loftocean.com/
*Description:    CozyStay child theme for user customization
*Author:         Loft.Ocean
*Author URI:     http://www.loftocean.com
*License: 		 GNU General Public License v2 or later
*License URI: 	 http://www.gnu.org/licenses/gpl-2.0.html
*Tags: 			 full-width-template, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, rtl-language-support, sticky-post, threaded-comments, translation-ready
*Template:       cozystay
*Text Domain: 	 cozystay-child
*Version:        1.0
*/

 /** Add your styles below **/

/* Fix for Elementor parallax backgrounds below 1025px viewport */
@media screen and (max-width: 1024px) {
    /* Ensure the section has relative positioning */
    .elementor-section[data-cs-background-image] {
        position: relative !important;
    }
    
    /* Style the parallax container for Elementor sections */
    .elementor-section[data-cs-background-image] > .parallax-img-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 0;
        pointer-events: none;
    }
    
    /* Style the parallax image */
    .elementor-section[data-cs-background-image] > .parallax-img-container img {
        width: 100%;
        position: relative;
        display: block;
    }
    
    /* Ensure proper z-index stacking */
    .elementor-section[data-cs-background-image] > .elementor-background-overlay {
        z-index: 1;
    }
    
    .elementor-section[data-cs-background-image] > .elementor-container {
        position: relative;
        z-index: 2;
    }
    
    /* Fix for regular page title backgrounds */
    .page-title-section .page-title-bg,
    .page-title-section .page-title-default-background-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .page-title-section .page-title-bg[data-loftocean-image] {
        filter: none !important;
    }
    
    /* Check if booking widget is hidden by Elementor responsive settings */
    .elementor-hidden-tablet,
    .elementor-hidden-mobile {
        /* Temporarily make visible to check if this is the issue */
        /* display: block !important; */
        /* visibility: visible !important; */
        /* opacity: 1 !important; */
    }
}
