/* ============================================
   VISITE VIRTUELLE 360° - STYLES
   ============================================ */

/* === OVERLAY PLEIN ÉCRAN === */
.vt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: none;
    cursor: grab;
    overflow: hidden;
    font-family: 'Lato', sans-serif;
}

.vt-overlay.active {
    display: block;
    animation: vtFadeIn 0.4s ease;
}

@keyframes vtFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.vt-overlay.grabbing {
    cursor: grabbing;
}

/* === VIEWPORT PANORAMIQUE === */
.vt-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.vt-panorama {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    transition: transform 0.08s ease-out;
    will-change: transform;
}

.vt-panorama.smooth {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.vt-panorama img {
    height: 100%;
    width: auto;
    min-width: 100vw;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
    flex-shrink: 0;
}

/* === HEADER BAR === */
.vt-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.vt-header>* {
    pointer-events: all;
}

.vt-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vt-title h2 {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.vt-badge-360 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.vt-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.vt-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.vt-close svg {
    width: 20px;
    height: 20px;
}

/* === DRAG INSTRUCTION === */
.vt-instruction {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 5;
    pointer-events: none;
    animation: vtPulse 2s ease-in-out infinite;
    transition: opacity 0.5s ease;
}

.vt-instruction.hidden {
    opacity: 0;
    pointer-events: none;
}

.vt-instruction-icon {
    width: 40px;
    height: 40px;
    animation: vtDrag 1.5s ease-in-out infinite;
}

@keyframes vtDrag {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(15px);
    }
}

@keyframes vtPulse {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.6;
    }
}

.vt-instruction span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* === HOTSPOTS === */
.vt-hotspot {
    position: absolute;
    z-index: 4;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.vt-hotspot-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.25);
    border: 2px solid rgba(255, 215, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: vtHotspotPulse 2s ease-in-out infinite;
    position: relative;
}

.vt-hotspot-dot::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #FFD700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

@keyframes vtHotspotPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(255, 215, 0, 0);
    }
}

.vt-hotspot:hover .vt-hotspot-dot {
    background: rgba(255, 215, 0, 0.4);
    transform: scale(1.15);
}

.vt-hotspot-label {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vt-hotspot-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.vt-hotspot:hover .vt-hotspot-label {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* === MINIMAP === */
.vt-minimap {
    position: absolute;
    bottom: 100px;
    left: 24px;
    width: 180px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem;
    z-index: 8;
}

.vt-minimap-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.vt-minimap-rooms {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vt-minimap-room {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
    font-weight: 500;
    text-align: left;
    width: 100%;
}

.vt-minimap-room:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.vt-minimap-room.active {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
}

.vt-minimap-room-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.vt-minimap-room.active .vt-minimap-room-dot {
    background: #FFD700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* === BOTTOM BAR - CONTRÔLES === */
.vt-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 8;
    pointer-events: none;
}

.vt-controls>* {
    pointer-events: all;
}

/* Navigation thumbnails */
.vt-thumbnails {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.vt-thumb {
    width: 72px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    opacity: 0.6;
    position: relative;
}

.vt-thumb:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.vt-thumb.active {
    border-color: #FFD700;
    opacity: 1;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.vt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vt-thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 0.5rem;
    padding: 2px 4px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Zoom controls */
.vt-zoom-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    right: 24px;
    bottom: 100px;
    z-index: 8;
}

.vt-zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    font-weight: 300;
}

.vt-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* === COMPASS === */
.vt-compass {
    position: absolute;
    top: 90px;
    right: 24px;
    width: 52px;
    height: 52px;
    z-index: 8;
}

.vt-compass-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vt-compass-needle {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, #FF4444 50%, white 50%);
    border-radius: 1px;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.vt-compass-label {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    color: #FF4444;
    font-weight: 800;
}

/* === IMAGE INFO OVERLAY === */
.vt-info-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    z-index: 20;
    color: white;
    text-align: center;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.vt-info-popup.visible {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.vt-info-popup h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.vt-info-popup p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.vt-info-popup-close {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.vt-info-popup-close:hover {
    transform: scale(1.05);
}

/* === BOUTON VISITE VIRTUELLE (pages chambres) === */
.btn-virtual-tour {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #6B5344, #8B7355);
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-virtual-tour::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-virtual-tour:hover::before {
    left: 100%;
}

.btn-virtual-tour:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.3);
}

.btn-virtual-tour .vt-btn-icon {
    font-size: 1.1rem;
}

.btn-virtual-tour .vt-btn-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-left: 0.25rem;
}

/* === LOADING SCREEN === */
.vt-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 25;
    transition: opacity 0.5s ease;
}

.vt-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.vt-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: vtSpin 0.8s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes vtSpin {
    to {
        transform: rotate(360deg);
    }
}

.vt-loading-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .vt-header {
        padding: 1rem;
    }

    .vt-title h2 {
        font-size: 1rem;
    }

    .vt-minimap {
        display: none;
    }

    .vt-compass {
        display: none;
    }

    .vt-zoom-controls {
        right: 12px;
        bottom: 90px;
    }

    .vt-thumb {
        width: 52px;
        height: 36px;
    }

    .vt-controls {
        padding: 1rem;
        gap: 1rem;
    }

    .vt-hotspot-dot {
        width: 36px;
        height: 36px;
    }

    .vt-instruction {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }
}