/* ============================================================
   VTOUR SKIN — vtour-skin.css
   Không động vào tour.js / tour.xml
   ============================================================ */

:root {
    --vt-accent: #f60;
    --vt-bg: rgba(10, 10, 10, 0.3);
    --vt-surface: rgba(20, 20, 20, 0.82);
    --vt-border: rgba(255, 255, 255, 0.10);
    --vt-text: #f0ede8;
    --vt-text-light: #232323;
    --vt-muted: rgba(255, 255, 255, 0.45);
    --vt-radius: 12px;
    --vt-ease: .25s ease;
    --vt-font-heading: "Lexend Deca", sans-serif;
    --vt-font-content: "Inter", sans-serif;
}

/*Button*/
.vt-btn {
    font-family: var(--vt-font-content);
    font-weight: 500;
    backdrop-filter: blur(5px);
    border-radius: 99px;
}

.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 0 0 rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}



.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
}

.glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.8),
            transparent,
            rgba(255, 255, 255, 0.3));
}

.glass.glass-light {
    background: rgba(0, 0, 0, 0.15);
}


/* ── INTRO OVERLAY ───────────────────────────────────────── */
#vt-intro {
    position: fixed;
    inset: 0;
    z-index: 2000;
    backdrop-filter: blur(5px);
    /* background: rgba(6, 6, 6, 0.3); */
    background: #e8e6ed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    animation: vtFadeIn .5s ease;
    transition: opacity .5s ease;
}

#vt-intro.vt-hiding {
    opacity: 0;
    pointer-events: none;
}

.vt-logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--vt-accent);
}

.vt-logo .logo img {
    display: block;
    margin: 0 auto;
}

.vt-logo .vt-title {
    font-size: clamp(36px, 2vw, 78px);
    margin: 20px 0 5px 0;
}

.vt-tagline {
    font-size: 15px;
    color: var(--vt-text-light);
    /* font-weight: 300; */
    margin-top: -16px;
}

/* hướng dẫn sử dụng */
.vt-guide {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.vt-guide-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 80px;
}

.vt-guide-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--vt-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0px 21px rgb(0 0 0 / 10%),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgb(255 254 254),
        inset 0 0 20px 10px rgb(255 255 255);
    /* background: rgba(255, 255, 255, 0.04); */
}

.vt-guide-icon i {
    color: var(--vt-text-light);
}

.vt-guide-label {
    font-size: 11px;
    /* color: var(--vt-text); */
    color: var(--vt-text-light);
    text-align: center;
    line-height: 1.4;
}

/* nút bật tắt âm thanh trong intro */
.vt-sound-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    color: var(--vt-text);
    font-size: 14px;
    cursor: pointer;
    color: var(--vt-text-light);
    backdrop-filter: blur(8px);
    box-shadow: 0 0px 21px rgb(0 0 0 / 10%),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgb(255 254 254),
        inset 0 0 20px 10px rgb(255 255 255);
    transition: border-color var(--vt-ease);
}

.vt-sound-btn:hover {
    border-color: var(--vt-accent);
}

.vt-sound-btn .icon {
    font-size: 18px;
}

/* nút bắt đầu */
.vt-start-btn {
    background: var(--vt-accent);
    color: var(--vt-text);
    border: none;
    border-radius: 40px;
    padding: 13px 46px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: .5px;
    transition: transform var(--vt-ease), box-shadow var(--vt-ease);
}

.vt-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 164, 74, 0.35);
}

/* ── TOPBAR ──────────────────────────────────────────────── */
#vt-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 52px;
    padding: 0 16px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--vt-ease);
}

#vt-topbar.vt-visible {
    opacity: 1;
    pointer-events: all;
}

.vt-scene-info {
    display: flex;
    flex-flow: row;
    gap: 6px;
}

.vt-scene-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--vt-text);
    letter-spacing: .3px;
    padding: 10px 20px;
    border-radius: 99px;
}

.vt-controls {
    display: flex;
    gap: 6px;
}

.vt-controls.vt-show {
    display: flex;
    position: absolute;
    right: 15px;
    top: 60px;
    flex-flow: column;
}

#vt-btn-menu {
    display: none;
}

@media screen and (max-width: 549px) {
    #vt-btn-menu {
        display: flex;
    }

    .vt-controls {
        display: none;
    }
}

.vt-ctrl {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--vt-text);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--vt-ease), border-color var(--vt-ease);
}

.vt-ctrl:hover {
    background: rgba(232, 164, 74, 0.18);
    border-color: var(--vt-accent);
}

.vt-ctrl.vt-active {
    border-color: var(--vt-accent);
    color: var(--vt-accent);
}

/* ── SCENE STRIP (bottom thumbnails) ────────────────────── */
#vt-strip {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 8px 14px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.70) 0%, transparent 100%);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--vt-ease);
}

#vt-strip.vt-visible {
    opacity: 1;
    pointer-events: all;
}

#vt-strip::-webkit-scrollbar {
    display: none;
}

.vt-thumb {
    flex: 0 0 auto;
    width: 78px;
    height: 52px;
    border-radius: 7px;
    overflow: hidden;
    cursor: pointer;
    background: #222;
    position: relative;
    transition: border-color var(--vt-ease), transform var(--vt-ease);
}

.vt-thumb:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.35);
}

.vt-thumb.vt-active {
    border-color: var(--vt-accent);
}

.vt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vt-thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.55);
    font-size: 9px;
    color: #fff;
    padding: 2px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── AUDIO INDICATOR ─────────────────────────────────────── */
#vt-audio-ind {
    position: fixed;
    bottom: 72px;
    right: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--vt-surface);
    border: 1px solid var(--vt-border);
    border-radius: 40px;
    padding: 5px 13px;
    font-size: 11px;
    color: var(--vt-muted);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s;
}

#vt-audio-ind.vt-visible {
    opacity: 1;
}

.vt-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.vt-bar {
    width: 3px;
    border-radius: 2px;
    background: var(--vt-accent);
    animation: vtBarPulse 1s ease-in-out infinite;
}

.vt-bar:nth-child(2) {
    animation-delay: .18s;
}

.vt-bar:nth-child(3) {
    animation-delay: .36s;
}

.vt-bars.vt-paused .vt-bar {
    animation-play-state: paused;
    height: 3px !important;
}

@keyframes vtBarPulse {

    0%,
    100% {
        height: 3px
    }

    50% {
        height: 12px
    }
}

/* ── INFO POPUP ──────────────────────────────────────────── */
#vt-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

#vt-backdrop.vt-open {
    opacity: 1;
    pointer-events: all;
}

#vt-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1600;
    transform: translate(-50%, -50%) scale(.92);
    width: calc(100% - 30px);
    max-width: 1170px;
    border-radius: var(--vt-radius);
    overflow: hidden;
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;

}

#vt-popup.vt-open {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.vt-popup-img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    display: none;
}

.vt-popup-img.vt-has-img {
    display: block;
}

.vt-popup-body {
    padding: 18px 22px 22px;
    overflow: auto;
    max-height: 50vh;
}

.vt-popup-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--vt-text);
    margin-bottom: 9px;
}

.vt-popup-desc {
    font-size: 13px;
    line-height: 1.65;
    color: var(--vt-text);
}

.vt-popup-desc * {
    font-size: 13px;
    line-height: 1.65;
    color: var(--vt-text);
}

.vt-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--vt-border);
    color: var(--vt-text);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--vt-ease);
}

.vt-popup-close:hover {
    /* background: rgba(232, 164, 74, 0.18); */
    border-color: var(--vt-accent);
}

/* ── HOTSPOT OVERRIDES (nếu dùng style hotspot của krpano) ─ */
/* krpano render hotspot qua plugin hoặc CSS layer –
   bạn có thể target class krpano inject vào DOM ở đây */
.hs-animate {
    animation: continuousFlip 4s linear infinite;
}

/* ── MISC ────────────────────────────────────────────────── */
@keyframes vtFadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* @keyframes continuousFlip {
    0% {
        transform: scale(0.8, 0.8);
    }

    50% {
        transform: scale(-0.8, 0.8);
    }

    100% {
        transform: scale(0.8, 0.8);
    }
} */

@media (max-width: 520px) {
    .vt-guide {
        gap: 16px;
    }

    .vt-guide-item {
        width: 64px;
    }

    .vt-guide-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .vt-logo {
        font-size: 22px;
    }
}