/* ====================================================================
   BOOKING CONFIRMATION POPUP - iOS Style with Blur Effect
   ==================================================================== */

.booking-popup {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: top 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.booking-popup.show {
    top: 20px;
}

.booking-popup.hide {
    top: -120px;
}

/* Dark mode support */
body.dark-mode .booking-popup {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Popup Content */
.booking-popup-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.booking-popup-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    animation: popup-bounce 0.6s ease;
}

@keyframes popup-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.booking-popup-text {
    flex: 1;
}

.booking-popup-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin: 0 0 4px 0;
}

body.dark-mode .booking-popup-title {
    color: #f1f5f9;
}

.booking-popup-message {
    font-size: 14px;
    color: var(--text-secondary, #64748b);
    margin: 0;
}

body.dark-mode .booking-popup-message {
    color: #cbd5e1;
}

.booking-popup-number {
    font-weight: 700;
    color: #10b981;
    font-family: 'Courier New', monospace;
    font-size: 15px;
}

.booking-popup-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--text-secondary, #64748b);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
    border-radius: 4px;
}

.booking-popup-close:hover {
    color: var(--text-primary, #1e293b);
    background: rgba(0, 0, 0, 0.05);
}

body.dark-mode .booking-popup-close {
    color: #94a3b8;
}

body.dark-mode .booking-popup-close:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .booking-popup {
        width: calc(100% - 32px);
        max-width: none;
        padding: 16px 20px;
    }

    .booking-popup.show {
        top: 16px;
    }

    .booking-popup-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .booking-popup-title {
        font-size: 14px;
    }

    .booking-popup-message {
        font-size: 13px;
    }

    .booking-popup-number {
        font-size: 14px;
    }
}

/* Animation for auto-dismiss */
.booking-popup.dismissing {
    animation: popup-dismiss 0.4s ease forwards;
}

@keyframes popup-dismiss {
    0% {
        opacity: 1;
        top: 20px;
    }

    100% {
        opacity: 0;
        top: -120px;
    }
}

@media (max-width: 768px) {
    @keyframes popup-dismiss {
        0% {
            opacity: 1;
            top: 16px;
        }

        100% {
            opacity: 0;
            top: -120px;
        }
    }
}