﻿/* ============================================================
   Virtual Tour Video Popup
   ============================================================ */

/* Dark overlay that covers the whole screen */
.vt-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 12, 26, 0.88);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

    /* Open state (toggled by JavaScript) */
    .vt-modal.open {
        opacity: 1;
        visibility: visible;
    }

/* The video container – keeps a 16:9 aspect ratio */
.vt-dialog {
    position: relative;
    width: min(1000px, 100%);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}

/* Slide‑in animation when opened */
.vt-modal.open .vt-dialog {
    transform: none;
}

/* The iframe (and its wrapper) fills the dialog completely */
.vt-stage,
.vt-stage iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Close button (top‑right corner) */
.vt-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

    /* Hover effect – uses the accent colour #ffc107; change if needed */
    .vt-close:hover {
        background: #ffc107;
        color: #111;
        transform: rotate(90deg);
    }

/* Prevents the page behind the popup from scrolling */
body.vt-open {
    overflow: hidden;
}

/* Small screens: reduce padding and round the corners a bit less */
@media (max-width: 640px) {
    .vt-modal {
        padding: 12px;
    }

    .vt-dialog {
        border-radius: 10px;
    }
}
