/**
 * Sticky Booking Button Styles
 */

.fixed-booking-cta {
    position: fixed;
    bottom: 15px;
    right: calc(50% - 135px);
    z-index: 99999;
    margin: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #3d444c;
    transform: translateY(170%);
    will-change: transform;
}

.show-booking-cta .fixed-booking-cta {
    transform: translateY(0);
}

.book-button {
    position: relative;
    padding-inline: 1.5rem;
    padding-block: 0.5rem;
    white-space: nowrap;
    color: white;
    border-radius: 1.5rem;
    border: 2px solid var(--primary-800, #2f7b7f);
    background: var(--primary-700, #45abaf);
    text-align: start;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 800;
    column-gap: 0.5rem;
    touch-action: manipulation;
    pointer-events: auto;
    z-index: 9;
    transform: translateZ(0);
    user-select: none;
    cursor: pointer;
    width: 240px;
}

.book-button * {
    pointer-events: none;
}

.book-button .button-text {
    padding-block-start: 2px;
    display: flex;
    align-items: flex-start;
        flex: 0 0 60%;
        font-size: 1.3rem;
}



.book-button:hover {
    scale: 1.06;
    box-shadow: 0 4px 16px rgba(69, 171, 175, 0.4);
}

.calendar-icon {
    --icon-size: 60px;
    position: relative;

    width: var(--icon-size);
    margin: 0;
    flex: 0 0 40%;
    transform: translate(0, -24px);


    .calendar-top {
        position: relative;
        z-index: 1;
         width: var(--icon-size);
    }
    .calendar-icon-inner {
        position: absolute;
        left: 0;
        right: 0;
        top: -1.25rem;
            width: var(--icon-size);
    }

        .calendar-icon-day {
            background-color: #fff;
            aspect-ratio: 1.5;
            border-bottom: 1px solid #666;
            border-bottom-left-radius: 9px;
            border-bottom-right-radius: 9px;
            display: grid;
            text-align: center;
            align-items: center;
            justify-content: center;
            position: relative;
            margin: auto;
            opacity: 0.9;
          
            overflow: visible;
    
            span {
                display: none;
                font-size: 1.15rem;
                line-height: 1;
                font-weight: 800;
                position: absolute;
                background-color: #fff;
                border-bottom-left-radius: 9px;
                border-bottom-right-radius: 9px;
                line-height: 1.7;
                font-weight: 900;
                color: #333;
                transform: translateY(20px);
                color: #2b2b2b;
                inset: 0;
                backface-visibility: hidden;
                transform-style: preserve-3d;
            }
    
            .active {
                display: block;
            }
        }
        }





.calendar-icon-day span.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3D Flip animation */
@keyframes flipDay {
    0% {
        transform: rotateX(0deg) scale(1);
        opacity: 1;
        filter: brightness(1);
    }
    25% {
        transform: rotateX(-45deg) scale(0.95);
        opacity: 0.8;
        filter: brightness(0.9);
    }
    50% {
        transform: rotateX(-90deg) scale(0.9);
        opacity: 0;
        filter: brightness(0.7);
    }
    51% {
        transform: rotateX(90deg) scale(0.9);
        opacity: 0;
        filter: brightness(0.7);
    }
    75% {
        transform: rotateX(45deg) scale(0.95);
        opacity: 0.8;
        filter: brightness(0.9);
    }
    100% {
        transform: rotateX(0deg) scale(1);
        opacity: 1;
        filter: brightness(1);
    }
}

.calendar-icon-day.flipping span.active {
    animation: flipDay 0.15s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-origin: center center;
}

/* Responsive */
@media (max-width: 768px) {
    .fixed-booking-cta {
        right: 50%;
        transform: translateX(50%) translateY(170%);
    }

    .show-booking-cta .fixed-booking-cta {
        transform: translateX(50%) translateY(0);
    }


}