
/* Desktop visibility */
#property-content-section-schedule-a-tour {
    display: block;
    position: static;
}

/* Button styles */
#open-cool {
    display: none;
}

#close-schedule-form{
    display: none;
}

/* Show the overlay when the popup is active */
#popup-overlay.active {
    display: block;
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
    #property-content-section-schedule-a-tour {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        transition: right 0.3s ease-in-out;
        overflow-y: auto; /* Enable vertical scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        padding: 20px; /* Add padding for mobile */
        box-shadow: none; /* Default state */
    }

    #property-content-section-schedule-a-tour.slide-in {
        z-index: 20000;
        display: block;
        right: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Shadow when visible */
    }

    #open-cool {
        display: block;
        position: static;
        background: transparent;
        color: var(--rh-global-color-primary);
        border: 2px solid var(--rh-global-color-primary);
        width: 100%;
        margin-top: 10px;
        transition: background 0.3s ease, color 0.3s ease;
    }

    #open-cool:hover {
        background: var(--rh-global-color-primary);
        color: #fff;
        border: none;
    }

    /* Close button styling */
    #close-schedule-form {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        background: transparent;
        border: none;
        font-size: 2rem;
        color: #333;
        cursor: pointer;
        z-index: 10000;
    }

    #close-schedule-form:hover {
        color: var(--rh-global-color-primary);
    }
    
        #popup-overlay {
        display: none;
        
    }

    #popup-overlay.active {
        display: block;
    }
    #ui-datepicker-div{
        top: 526px;
    }
}