/* HOME-POPUP — Showroom Demo (độc lập, không phụ thuộc TRAVEL/NEWS UC) */
#olaDemoHomePopup.ola-demo-popup-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

#olaDemoHomePopup.ola-demo-popup-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#olaDemoHomePopup.ola-demo-popup-overlay.ola-demo-popup-dismissed {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

#olaDemoHomePopup .ola-demo-popup-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 450px;
    width: min(92vw, 560px);
    max-height: min(calc(100vh - 32px), 640px);
    max-height: min(calc(100dvh - 32px), 640px);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

#olaDemoHomePopup.ola-demo-popup-overlay.show .ola-demo-popup-content {
    transform: scale(1);
}

#olaDemoHomePopup .ola-demo-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    transition: background 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

#olaDemoHomePopup .ola-demo-popup-close:hover {
    background: #dc2626;
    transform: scale(1.08);
}

#olaDemoHomePopup .ola-demo-popup-body {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #fff;
}

#olaDemoHomePopup .ola-demo-popup-body img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

#olaDemoHomePopup .ola-demo-popup-body--video {
    background: #000;
    line-height: 0;
    flex-shrink: 0;
    overflow: hidden;
}

#olaDemoHomePopup .ola-demo-popup-video {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

#olaDemoHomePopup .ola-demo-popup-video iframe,
#olaDemoHomePopup .ola-demo-popup-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
}

#olaDemoHomePopup .ola-demo-popup-footer {
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
}

#olaDemoHomePopup .ola-demo-popup-footer input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

#olaDemoHomePopup .ola-demo-popup-footer label {
    cursor: pointer;
    user-select: none;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    #olaDemoHomePopup .ola-demo-popup-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    #olaDemoHomePopup .ola-demo-popup-content {
        width: min(94vw, 560px);
    }
}

@media (prefers-reduced-motion: reduce) {
    #olaDemoHomePopup.ola-demo-popup-overlay,
    #olaDemoHomePopup .ola-demo-popup-content {
        transition: none;
    }
}
