/* Vista Loyola Booking - Sticky Footer Styles */

/* Base styles - hidden by default */
.vlb-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px;
    max-height: 230px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: none; /* Initially hidden for all devices */
}

/* Show sticky footer when visible class is added */
.vlb-sticky-footer.vlb-visible {
    display: block;
    transform: translateY(0);
}

/* Content container */
.vlb-sticky-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Allow wrapping on very small screens */
    min-height: 50px; /* Ensure minimum height */
}

/* Image container */
.vlb-sticky-footer-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.vlb-sticky-footer-image img {
    width: 200px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
}

/* Button container */
.vlb-sticky-footer-button {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0; /* Allow shrinking below content size */
    overflow: hidden; /* Prevent overflow */
}

/* Button styles */
.vlb-sticky-footer-btn {
    background: #9B1200;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    max-width: 250px; /* Prevent button from getting too wide */
    max-height: 200px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Show ellipsis for long text */
}

.vlb-sticky-footer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: inherit;
}

.vlb-sticky-footer-btn:active {
    transform: translateY(0);
}

/* Animation classes */
.vlb-sticky-footer.vlb-animate {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
}

.vlb-sticky-footer.vlb-animate.vlb-visible {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive design - Only show on mobile and tablet */
@media (max-width: 1024px) {
    .vlb-sticky-footer {
        display: none; /* Will be shown via JavaScript when conditions are met */
    }
    
    /* Ensure visible class overrides display none */
    .vlb-sticky-footer.vlb-visible {
        display: block !important;
    }
}

/* Tablet styles */
@media (max-width: 768px) {
    .vlb-sticky-footer {
        padding: 12px 15px;
    }
    
    .vlb-sticky-footer-content {
        gap: 12px;
    }
    
    .vlb-sticky-footer-btn {
        padding: 10px 20px;
        font-size: 15px;
        min-width: 100px;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .vlb-sticky-footer {
        padding: 10px 12px;
    }
    
    .vlb-sticky-footer-content {
        gap: 10px;
    }
    
    .vlb-sticky-footer-btn {
        padding: 8px 16px;
        font-size: 14px;
        min-width: 90px;
        max-width: calc(100vw - 240px); /* Account for 200px image + padding */
        border-radius: 20px;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .vlb-sticky-footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .vlb-sticky-footer-button {
        justify-content: center;
        width: 100%;
    }
    
    .vlb-sticky-footer-btn {
        width: 100%;
        max-width: calc(100vw - 40px); /* Account for padding */
        min-width: 100px;
        font-size: 13px;
        padding: 10px 16px;
    }
}

/* Hide on desktop by default */
@media (min-width: 1025px) {
    .vlb-sticky-footer {
        display: none !important;
    }
    
    /* Even on desktop, if visible class is added, show it (for testing) */
    .vlb-sticky-footer.vlb-visible {
        display: block !important;
    }
}

/* Accessibility */
.vlb-sticky-footer-btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .vlb-sticky-footer {
        transition: none;
    }
    
    .vlb-sticky-footer-btn {
        transition: none;
    }
    
    .vlb-sticky-footer-btn:hover {
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .vlb-sticky-footer {
        background: #1a1a1a;
        border-top-color: #333;
        color: #ffffff;
    }
    
    .vlb-sticky-footer-btn {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .vlb-sticky-footer-btn:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
} 