.mc-booking-engine-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
}

.mc-booking-engine-overlay.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.mc-booking-engine-modal {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    max-height: none;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.mc-booking-engine-overlay.active .mc-booking-engine-modal {
    transform: scale(1);
}

.mc-booking-engine-close {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.mc-booking-engine-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.mc-booking-engine-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

.mc-booking-engine-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    font-weight: 500;
}

/* Responsive adjustments for tablets */
@media (max-width: 1024px) {
    .mc-booking-engine-overlay {
        padding: 15px;
    }
    
    .mc-booking-engine-modal {
        border-radius: 12px;
    }
    
    .mc-booking-engine-iframe {
        border-radius: 12px;
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .mc-booking-engine-overlay {
        padding: 10px;
    }
    
    .mc-booking-engine-modal {
        border-radius: 12px;
    }
    
    .mc-booking-engine-iframe {
        border-radius: 12px;
    }
    
    .mc-booking-engine-close {
        /* top: 15px; */
        /* right: 15px; */
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .mc-booking-engine-overlay {
        padding: 8px;
    }
    
    .mc-booking-engine-modal {
        border-radius: 8px;
    }
    
    .mc-booking-engine-iframe {
        border-radius: 8px;
    }
    
    .mc-booking-engine-close {
        /* top: 12px; */
        /* right: 12px; */
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Button styling */
.mc-booking-engine-button {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
    position: relative;
    overflow: hidden;
}

.mc-booking-engine-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.mc-booking-engine-button:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

.mc-booking-engine-button:hover::before {
    left: 100%;
}

.mc-booking-engine-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

/* Animations */
@keyframes mcFadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(4px);
    }
}

@keyframes mcScaleIn {
    from { 
        transform: scale(0.9);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

.mc-booking-engine-overlay.animate-in {
    animation: mcFadeIn 0.3s ease-out;
}

.mc-booking-engine-overlay.animate-in .mc-booking-engine-modal {
    animation: mcScaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Smooth scrollbar for WebKit */
.mc-booking-engine-iframe::-webkit-scrollbar {
    width: 8px;
}

.mc-booking-engine-iframe::-webkit-scrollbar-track {
    background: transparent;
}

.mc-booking-engine-iframe::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.mc-booking-engine-iframe::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}