/* VTP Viewer Styles - Professional 360 Tour */

/* Container */
.vtp-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.vtp-panorama {
    width: 100%;
    height: 100%;
}

.vtp-error {
    padding: 40px;
    text-align: center;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    font-weight: 500;
}

/* ============================================
   Scene Navigation Thumbnails
   ============================================ */
/* ============================================
   Scene Navigation Thumbnails
   ============================================ */
.vtp-scene-nav-wrapper {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.vtp-scene-nav {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom center;
}

/* Minimized State */
.vtp-scene-nav-wrapper.minimized {
    transform: translateX(-50%) translateY(calc(100% - 40px));
    /* Keep button visible at bottom */
}

/* Actually, let's keep button in place and hide nav */
.vtp-scene-nav-wrapper.minimized .vtp-scene-nav {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    position: absolute;
    /* Take out of flow so button doesn't float weirdly? No, flex column handles it. */
    bottom: -100px;
    /* Force it away */
}

/* Toggle Button */
/* Toggle Button */
.vtp-nav-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 6px;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 0;
}

.vtp-nav-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    border-color: #fff;
}

.vtp-scene-nav-wrapper.minimized .vtp-nav-toggle {
    transform: rotate(180deg);
    margin-bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

.vtp-nav-toggle-icon,
.vtp-nav-toggle svg {
    display: block;
}

.vtp-scene-thumb {
    width: 90px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.vtp-scene-thumb:hover {
    transform: scale(1.08) translateY(-4px);
}

.vtp-scene-thumb img {
    width: 90px;
    height: 55px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.vtp-scene-thumb:hover img,
.vtp-scene-thumb.active img {
    border-color: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.vtp-scene-thumb span {
    display: block;
    font-size: 11px;
    color: #fff;
    margin-top: 6px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.8;
}

.vtp-scene-thumb:hover span,
.vtp-scene-thumb.active span {
    opacity: 1;
}

/* ============================================
   Pannellum Controls Override
   ============================================ */
.pnlm-container {
    border-radius: 12px;
}

/* Hide debug and unwanted elements */
.pnlm-hot-spot-debug-indicator,
.pnlm-orientation-button {
    display: none !important;
}

/* Control Buttons Container */
.pnlm-controls-container {
    position: absolute !important;
    top: auto !important;
    bottom: 100px !important;
    left: 15px !important;
    right: auto !important;
    display: block !important;
    z-index: 50 !important;
    width: 48px !important;
}

.pnlm-controls {
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    padding: 6px !important;
    display: block !important;
    width: 48px !important;
}

.pnlm-zoom-controls {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 4px 0 !important;
    width: 36px !important;
    height: auto !important;
    position: relative !important;
}

/* All Control Buttons Base */
.pnlm-zoom-in,
.pnlm-zoom-out,
.pnlm-fullscreen-toggle-button-inactive,
.pnlm-fullscreen-toggle-button-active {
    position: static !important;
    display: block !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    background-color: transparent !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 20px 20px !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    float: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

.pnlm-fullscreen-toggle-button-inactive,
.pnlm-fullscreen-toggle-button-active {
    margin-bottom: 0 !important;
}

/* Zoom In Button */
.pnlm-zoom-in {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E") !important;
}

/* Zoom Out Button */
.pnlm-zoom-out {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E") !important;
}

/* Fullscreen Button */
.pnlm-fullscreen-toggle-button-inactive,
.pnlm-fullscreen-toggle-button-active {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 00-2 2v3m18 0V5a2 2 0 00-2-2h-3m0 18h3a2 2 0 002-2v-3M3 16v3a2 2 0 002 2h3'/%3E%3C/svg%3E") !important;
}

.pnlm-fullscreen-toggle-button-active {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14h3a2 2 0 012 2v3m12-5h-3a2 2 0 01-2-2V9m0-5v3a2 2 0 01-2 2H4m16 10v-3a2 2 0 00-2-2h-3'/%3E%3C/svg%3E") !important;
}

/* Hover States */
.pnlm-zoom-in:hover,
.pnlm-zoom-out:hover,
.pnlm-fullscreen-toggle-button-inactive:hover,
.pnlm-fullscreen-toggle-button-active:hover {
    background-color: #6366f1 !important;
    border-radius: 8px !important;
}

.pnlm-zoom-in:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E") !important;
}

.pnlm-zoom-out:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E") !important;
}

.pnlm-fullscreen-toggle-button-inactive:hover,
.pnlm-fullscreen-toggle-button-active:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 00-2 2v3m18 0V5a2 2 0 00-2-2h-3m0 18h3a2 2 0 002-2v-3M3 16v3a2 2 0 002 2h3'/%3E%3C/svg%3E") !important;
}

/* ============================================
   HOTSPOTS - Main Styling
   ============================================ */
.pnlm-hotspot-base {
    width: auto !important;
    height: auto !important;
}

/* Info Hotspot - Purple/Indigo */
/* Info Hotspot - Black/White Minimalist */
.pnlm-hotspot.pnlm-info,
.pnlm-hotspot-base.pnlm-info {
    width: 32px !important;
    height: 32px !important;
    background: #000 !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pnlm-hotspot.pnlm-info::before,
.pnlm-hotspot-base.pnlm-info::before {
    content: 'i' !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: serif !important;
    position: static !important;
    transform: rotate(var(--vtp-rotation, 0deg)) !important;
    line-height: 1 !important;
}

/* Scene/Navigation Hotspot - White/Black Arrow */
.pnlm-hotspot.pnlm-scene,
.pnlm-hotspot-base.pnlm-scene {
    width: 40px !important;
    height: 40px !important;
    background: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pnlm-hotspot.pnlm-scene::before,
.pnlm-hotspot-base.pnlm-scene::before {
    content: '⬆' !important;
    color: #000 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    position: static !important;
    transform: rotate(var(--vtp-rotation, 0deg)) !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

.pnlm-hotspot.pnlm-info:hover,
.pnlm-hotspot.pnlm-scene:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
    border-color: #fff !important;
}

/* ============================================
   Custom Icon Styles (overrides)
   ============================================ */

/* Reset for custom image icon - Use higher specificity */
.pnlm-hotspot.vtp-icon-custom {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: transform 0.2s ease !important;
    width: 42px !important;
    /* Ensure size */
    height: 42px !important;
}

.pnlm-hotspot.vtp-icon-custom:hover {
    transform: scale(1.1);
    box-shadow: none !important;
}

/* Hide default content */
.pnlm-hotspot.vtp-icon-custom::before,
.pnlm-hotspot.vtp-icon-custom::after {
    content: none !important;
    display: none !important;
}

/* Reset for Predefined Icons (ensure no double icons) */
.pnlm-hotspot[class*="vtp-icon-"]::before {
    /* This targets the default 'i' or arrow from pannellum */
    content: '' !important;
    display: none !important;
}

/* Now re-define our icons using generic class selector for shared styles */
.pnlm-hotspot[class*="vtp-icon-arrow"],
.pnlm-hotspot[class*="vtp-icon-plus"],
.pnlm-hotspot[class*="vtp-icon-eye"],
.pnlm-hotspot[class*="vtp-icon-star"],
.pnlm-hotspot[class*="vtp-icon-pin"],
.pnlm-hotspot[class*="vtp-icon-cart"],
.pnlm-hotspot[class*="vtp-icon-video"],
.pnlm-hotspot[class*="vtp-icon-camera"],
.pnlm-hotspot[class*="vtp-icon-gallery"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border: 2px solid #333 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    padding: 0 !important;
}

/* Define content for each icon - FORCE RESET POSITIONING */
.pnlm-hotspot[class*="vtp-icon-"]::before {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: rotate(var(--vtp-rotation, 0deg)) !important;
    margin: 0 !important;
}

/* Tooltip Positioning Fix */
.pnlm-hotspot[class*="vtp-icon-"] .pnlm-tooltip {
    position: absolute !important;
    bottom: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-10px) !important;
}

.pnlm-hotspot.vtp-icon-arrow::before {
    content: '➡️' !important;
    display: block !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.pnlm-hotspot.vtp-icon-plus::before {
    content: '➕' !important;
    display: block !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

.pnlm-hotspot.vtp-icon-eye::before {
    content: '👁️' !important;
    display: block !important;
    font-size: 18px !important;
    line-height: 1 !important;
    margin-top: 2px !important;
}

.pnlm-hotspot.vtp-icon-star::before {
    content: '⭐' !important;
    display: block !important;
    font-size: 16px !important;
    line-height: 1 !important;
    margin-top: 2px !important;
}

.pnlm-hotspot.vtp-icon-pin::before {
    content: '📍' !important;
    display: block !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.pnlm-hotspot.vtp-icon-cart::before {
    content: '🛒' !important;
    display: block !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.pnlm-hotspot.vtp-icon-video::before {
    content: '▶️' !important;
    display: block !important;
    font-size: 18px !important;
    line-height: 1 !important;
    margin-left: 2px !important;
}

.pnlm-hotspot.vtp-icon-camera::before {
    content: '📷' !important;
    display: block !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.pnlm-hotspot.vtp-icon-gallery::before {
    content: '🖼️' !important;
    display: block !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

/* Scene Portal Style - Container Fix (Anchor Point) */
.pnlm-hotspot.vtp-icon-scene_portal {
    width: 60px !important;
    height: 60px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    cursor: pointer !important;
}

/* Inner Circle - Scaling Fix (Separate from Anchor) */
.vtp-portal-circle {
    width: 100%;
    height: 100%;
    border: 3px solid #fff !important;
    border-radius: 50% !important;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    background-color: #333 !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    pointer-events: none;
}

.pnlm-hotspot.vtp-icon-scene_portal:hover .vtp-portal-circle {
    transform: scale(1.15) !important;
}

.pnlm-hotspot.vtp-icon-scene_portal::before {
    display: none !important;
}

/* Portal Tooltip - Hidden State */
.pnlm-hotspot.vtp-icon-scene_portal .pnlm-tooltip.vtp-portal-tooltip {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    bottom: 55px !important;
    padding: 0 !important;
    width: 320px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease !important;
}

/* Force hide preview images for portals */
.pnlm-hotspot.vtp-icon-scene_portal .pnlm-tooltip.vtp-portal-tooltip img {
    display: none !important;
}

/* Portal Tooltip - Hover State */
.pnlm-hotspot.vtp-icon-scene_portal:hover .pnlm-tooltip.vtp-portal-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
}

.vtp-portal-tooltip::after {
    display: none !important;
    /* Clean layout without arrow */
}

.vtp-portal-goto {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    margin-bottom: -1px !important;
    display: block !important;
}

.vtp-portal-name {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
    white-space: nowrap;
    display: block !important;
}


/* Specialized WooCommerce hotspot when no custom icon is set */
.pnlm-hotspot.pnlm-info.vtp-product-hotspot {
    background: #fff !important;
    border: 2px solid #6366f1 !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease !important;
}

.pnlm-hotspot.pnlm-info.vtp-product-hotspot:hover {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5) !important;
    background: #f8fafc !important;
}

.pnlm-hotspot.pnlm-info.vtp-product-hotspot::before {
    content: '🛒' !important;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
    font-size: 16px !important;
    position: static !important;
    display: block !important;
    line-height: 1 !important;
}







/* ============================================
   Tooltip Styling
   ============================================ */
.pnlm-tooltip {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    max-width: 250px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    color: #fff !important;

    /* Postioning Fixes */
    position: absolute !important;
    width: max-content !important;
    max-width: 250px !important;
    top: auto !important;
    bottom: 35px !important;
    /* Grow upwards */
    left: 50% !important;
    transform: translateX(-50%) !important;
    pointer-events: none !important;
    white-space: normal !important;
    /* Allow wrapping */
    z-index: 1000 !important;
    /* Higher Z */
    line-height: 1.4 !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s ease, visibility 0.15s ease !important;
    text-align: center !important;
}

/* Show tooltip on hover */
.pnlm-hotspot:hover .pnlm-tooltip {
    visibility: visible;
    opacity: 1;
}

.pnlm-tooltip span {
    border: none !important;
    color: #fff !important;
}

/* Tooltip Arrow */
.pnlm-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent !important;
    border-right: 6px solid transparent !important;
    border-top: 6px solid rgba(15, 23, 42, 0.95) !important;
    border-bottom: none !important;
}

.pnlm-tooltip.vtp-product-tooltip::after {
    border-top-color: rgba(255, 255, 255, 0.98) !important;
}

/* ============================================
   WooCommerce Product Tooltip
   ============================================ */
.pnlm-tooltip.vtp-product-tooltip {
    width: 240px !important;
    max-width: 240px !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    pointer-events: auto !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    color: #1e293b !important;
}

.vtp-product-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #f1f5f9;
}

.vtp-product-info {
    padding: 16px;
}

.vtp-product-title {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.vtp-product-price {
    font-weight: 600;
    font-size: 16px;
    color: #6366f1;
    /* Professional Indigo */
    margin-bottom: 16px;
    display: block;
}

.vtp-product-actions {
    display: flex;
    gap: 10px;
}

.vtp-product-btn {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #64748b !important;
}

.vtp-product-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569 !important;
    transform: translateY(-1px);
}

.vtp-product-btn.buy {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.vtp-product-btn.buy:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

/* Mobile Responsiveness for Tooltips */
@media screen and (max-width: 768px) {
    .pnlm-tooltip.vtp-product-tooltip {
        width: 200px !important;
        max-width: 200px !important;
        border-radius: 10px !important;
    }

    .vtp-product-img {
        height: 90px !important;
    }

    .vtp-product-info {
        padding: 12px !important;
    }

    .vtp-product-title {
        font-size: 14px !important;
    }

    .vtp-product-price {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }

    .vtp-product-btn {
        padding: 8px 0 !important;
        font-size: 11px !important;
    }
}

/* ============================================
   Compass
   ============================================ */
.pnlm-compass {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 50% !important;
    border: 2px solid #e5e7eb !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    overflow: visible !important;
}

/* North needle (red) */
.pnlm-compass::before {
    content: '' !important;
    position: absolute !important;
    top: 5px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 7px solid transparent !important;
    border-right: 7px solid transparent !important;
    border-bottom: 16px solid #ef4444 !important;
    z-index: 2 !important;
}

/* South needle (gray) */
.pnlm-compass::after {
    content: '' !important;
    position: absolute !important;
    bottom: 5px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 7px solid transparent !important;
    border-right: 7px solid transparent !important;
    border-top: 16px solid #94a3b8 !important;
    z-index: 2 !important;
}

/* ============================================
   Loading Screen
   ============================================ */
.pnlm-load-box {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    border-radius: 16px !important;
    padding: 30px 40px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.pnlm-lbar {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    height: 8px !important;
    overflow: hidden;
}

.pnlm-lbar-fill {
    background: linear-gradient(90deg, #6366f1, #8b5cf6) !important;
    border-radius: 6px !important;
    height: 100% !important;
}

.pnlm-lmsg {
    color: #fff !important;
    font-weight: 500 !important;
    margin-bottom: 12px !important;
}

/* ============================================
   Title Box
   ============================================ */
.pnlm-title-box {
    position: absolute !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px);
    padding: 10px 24px !important;
    border-radius: 24px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ============================================
   Fullscreen Adjustments
   ============================================ */
.pnlm-container:-webkit-full-screen .vtp-scene-nav-wrapper,
.pnlm-container:-moz-full-screen .vtp-scene-nav-wrapper,
.pnlm-container:fullscreen .vtp-scene-nav-wrapper {
    bottom: 40px;
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 768px) {
    .vtp-scene-nav-wrapper {
        bottom: 15px;
    }

    .vtp-scene-nav {
        padding: 10px 12px;
        gap: 8px;
    }

    .vtp-scene-thumb {
        width: 70px;
    }

    .vtp-scene-thumb img {
        width: 70px;
        height: 45px;
    }

    .vtp-scene-thumb span {
        font-size: 10px;
    }

    .pnlm-hotspot.pnlm-info {
        width: 30px !important;
        height: 30px !important;
    }

    .pnlm-hotspot.pnlm-scene {
        width: 36px !important;
        height: 36px !important;
    }
}

/* ============================================
   Video Hotspot
   ============================================ */
.pnlm-hotspot.vtp-hotspot-video {
    width: 44px !important;
    height: 44px !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: 3px solid #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5), 0 0 40px rgba(239, 68, 68, 0.3) !important;
    animation: vtp-hotspot-pulse-red 2s ease-in-out infinite !important;
    cursor: pointer !important;
    position: relative !important;
}

.pnlm-hotspot.vtp-hotspot-video::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 12px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 2px;
}

@keyframes vtp-hotspot-pulse-red {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5), 0 0 40px rgba(239, 68, 68, 0.3);
    }

    50% {
        box-shadow: 0 4px 30px rgba(239, 68, 68, 0.8), 0 0 60px rgba(239, 68, 68, 0.5);
    }
}

/* ============================================
   Video Modal
   ============================================ */
.vtp-video-modal {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2147483647 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vtp-video-modal.active {
    display: flex;
}

.vtp-video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.vtp-video-container iframe {
    width: 100%;
    height: 100%;
}

.vtp-video-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50%;
    color: #fff !important;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2147483647 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.vtp-video-close:hover {
    background: rgba(239, 68, 68, 0.8) !important;
    transform: scale(1.1);
}

/* ============================================
   Audio Toggle
   ============================================ */
.vtp-audio-toggle {
    position: absolute;
    bottom: 20px;
    right: 75px;
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
    box-sizing: border-box;
}

.vtp-audio-toggle:hover {
    background: #6366f1;
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.vtp-audio-icon {
    font-size: 18px;
    transition: all 0.2s;
}

.vtp-audio-toggle:hover {
    background: #6366f1;
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.vtp-audio-icon {
    font-size: 18px;
    transition: all 0.2s;
}

.vtp-audio-toggle:hover .vtp-audio-icon {
    filter: brightness(10);
}

/* ============================================
   Floor Plan Map (Overlay Mode)
   ============================================ */
.vtp-map-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.vtp-map-toggle:hover {
    background: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.vtp-map-modal {
    position: absolute;
    bottom: 80px;
    /* Above toggle */
    right: 20px;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    z-index: 2147483647 !important;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Pass clicks through */
}

.vtp-map-modal.active {
    display: block;
    opacity: 1;
}

.vtp-map-content {
    background: rgba(15, 23, 42, 0.9);
    padding: 6px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
    max-width: 300px;
    max-height: 50vh;
    width: auto;
    height: auto;
    pointer-events: auto;
    /* Enable interaction */
    display: block;
    backdrop-filter: blur(8px);
}

.vtp-map-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.vtp-map-close:hover {
    background: #ef4444;
    transform: rotate(90deg);
}

.vtp-map-container {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: none;
    border: none;
}

.vtp-map-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-width: 100%;
    max-height: none;
}

.vtp-map-pin {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background 0.2s;
    z-index: 10;
}

.vtp-map-pin:hover {
    transform: translate(-50%, -50%) scale(1.3);
    z-index: 30;
}

.vtp-map-pin.active {
    background: #6366f1;
    z-index: 20;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
    width: 16px;
    height: 16px;
}

/* Radar Cone */
.vtp-radar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 45px;
    background: linear-gradient(to top, rgba(99, 102, 241, 0.5), transparent);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    transform-origin: bottom center;
    pointer-events: none;
    z-index: 5;
    /* Rotation handled by JS */
}

/* ============================================
   Share UI
   ============================================ */
.vtp-share-toggle {
    position: absolute;
    bottom: 20px;
    right: 130px;
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.vtp-share-toggle:hover {
    background: #6366f1;
    transform: scale(1.1);
}

/* Standardize all toggle button icons */
.vtp-map-toggle svg,
.vtp-audio-toggle svg,
.vtp-share-toggle svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.vtp-share-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vtp-share-modal.active {
    display: block;
    opacity: 1;
}

.vtp-share-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: 320px;
    max-width: 90vw;
    color: #fff;
    position: relative;
    text-align: left;
}

.vtp-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.vtp-share-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.vtp-share-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 24px;
    padding: 0;
    line-height: 1;
}

.vtp-share-close:hover {
    color: #fff;
}

.vtp-input-group {
    margin-bottom: 16px;
}

.vtp-input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vtp-copy-row {
    display: flex;
    gap: 8px;
}

.vtp-copy-row input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
    font-family: monospace;
}

.vtp-copy-row input:focus {
    border-color: #6366f1;
}

.vtp-copy-row button {
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.vtp-copy-row button:hover {
    background: #4f46e5;
}

/* Explicit Fullscreen Visibility Fix */
:-webkit-full-screen .vtp-scene-nav-wrapper,
:-webkit-full-screen .vtp-map-toggle,
:-webkit-full-screen .vtp-map-modal,
:-webkit-full-screen .vtp-audio-toggle,
:-webkit-full-screen .vtp-share-toggle,
:-webkit-full-screen .vtp-share-modal,
:-webkit-full-screen .vtp-video-modal,
:-webkit-full-screen .vtp-gallery-modal {
    z-index: 2147483647 !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
}

:-moz-full-screen .vtp-video-modal,
:-moz-full-screen .vtp-gallery-modal,
:-moz-full-screen .vtp-scene-details,
:-moz-full-screen .vtp-discover-panel {
    z-index: 2147483647 !important;
    position: absolute !important;
    visibility: visible !important;
    opacity: 1 !important;
}

:-webkit-full-screen .vtp-video-modal,
:-webkit-full-screen .vtp-gallery-modal,
:-webkit-full-screen .vtp-scene-details,
:-webkit-full-screen .vtp-discover-panel {
    z-index: 2147483647 !important;
    position: absolute !important;
    visibility: visible !important;
    opacity: 1 !important;
}

:fullscreen .vtp-scene-nav-wrapper,
:fullscreen .vtp-map-toggle,
:fullscreen .vtp-map-modal,
:fullscreen .vtp-audio-toggle,
:fullscreen .vtp-share-toggle,
:fullscreen .vtp-share-modal,
:fullscreen .vtp-video-modal,
:fullscreen .vtp-gallery-modal,
:fullscreen .vtp-scene-details,
:fullscreen .vtp-discover-panel {
    z-index: 2147483647 !important;
    position: absolute !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure Toggle stays bottom-right in fixed mode */
:fullscreen .vtp-map-toggle {
    bottom: 20px !important;
    right: 20px !important;
}

:fullscreen .vtp-audio-toggle {
    bottom: 20px !important;
    right: 80px !important;
}

:fullscreen .vtp-share-toggle {
    bottom: 20px !important;
    right: 140px !important;
}

:fullscreen .vtp-map-modal {
    bottom: 80px !important;
    right: 20px !important;
}

:fullscreen .vtp-share-modal,
:fullscreen .vtp-video-modal,
:fullscreen .vtp-gallery-modal {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    position: fixed !important;
    z-index: 2147483647 !important;
}

:fullscreen .vtp-scene-nav-wrapper {
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* ============================================
   Mobile Responsive Styles
   ============================================ */
@media screen and (max-width: 768px) {

    /* Action Buttons - Unified Bottom Bar */
    .vtp-map-toggle,
    .vtp-audio-toggle,
    .vtp-share-toggle {
        position: absolute !important;
        bottom: 15px !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        background: rgba(15, 23, 42, 0.85) !important;
        backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #fff !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    }

    /* Position buttons in a row - right side */
    .vtp-map-toggle {
        right: 15px !important;
    }

    .vtp-audio-toggle {
        right: 65px !important;
    }

    .vtp-share-toggle {
        right: 115px !important;
    }

    /* Map Modal - Full width on mobile */
    .vtp-map-modal {
        bottom: 70px !important;
        right: 10px !important;
        left: auto !important;
    }

    .vtp-map-content {
        max-width: 200px !important;
        min-width: 150px !important;
        padding: 5px !important;
    }

    .vtp-map-pin {
        width: 10px !important;
        height: 10px !important;
    }

    .vtp-map-pin.active {
        width: 12px !important;
        height: 12px !important;
    }

    .vtp-radar {
        width: 40px !important;
        height: 30px !important;
    }

    /* Scene Navigation - Compact */
    .vtp-scene-nav-wrapper {
        bottom: 70px !important;
        max-width: 95vw !important;
    }

    .vtp-scene-nav {
        padding: 8px 10px !important;
        gap: 8px !important;
        overflow-x: auto !important;
        max-width: 90vw !important;
    }

    .vtp-scene-thumb {
        width: 60px !important;
        flex-shrink: 0 !important;
    }

    .vtp-scene-thumb img {
        width: 60px !important;
        height: 40px !important;
        border-radius: 6px !important;
        border-width: 2px !important;
    }

    .vtp-scene-thumb span {
        font-size: 9px !important;
        margin-top: 4px !important;
    }

    .vtp-nav-toggle {
        width: 20px !important;
        height: 20px !important;
        margin-bottom: 4px !important;
    }

    /* Pannellum Controls - Compact */
    .pnlm-controls-container {
        bottom: 140px !important;
        left: 10px !important;
        width: 36px !important;
    }

    .pnlm-controls {
        width: 36px !important;
        padding: 4px !important;
        border-radius: 8px !important;
    }

    .pnlm-zoom-controls {
        width: 28px !important;
    }

    .pnlm-zoom-in,
    .pnlm-zoom-out {
        width: 28px !important;
        height: 28px !important;
        font-size: 16px !important;
    }

    .pnlm-fullscreen-toggle-button {
        width: 28px !important;
        height: 28px !important;
    }

    /* Share Modal - Centered, smaller */
    .vtp-share-modal {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        right: auto !important;
        bottom: auto !important;
    }

    .vtp-share-content {
        width: 280px !important;
        max-width: 90vw !important;
        padding: 16px !important;
    }

    .vtp-share-header h3 {
        font-size: 16px !important;
    }

    .vtp-input-group label {
        font-size: 10px !important;
    }

    .vtp-copy-row input {
        font-size: 11px !important;
        padding: 6px 8px !important;
    }

    .vtp-copy-row button {
        font-size: 11px !important;
        padding: 0 10px !important;
    }

    /* Compass - Smaller */
    .pnlm-compass {
        width: 40px !important;
        height: 40px !important;
        top: 10px !important;
        right: 10px !important;
    }
}

/* Extra Small Devices */
@media screen and (max-width: 480px) {

    .vtp-map-toggle,
    .vtp-audio-toggle,
    .vtp-share-toggle,
    .vtp-settings-toggle,
    .vtp-action-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .vtp-map-toggle,
    .vtp-audio-toggle,
    .vtp-share-toggle {
        bottom: 12px !important;
    }

    .vtp-map-toggle {
        right: 12px !important;
    }

    .vtp-audio-toggle {
        right: 56px !important;
    }

    .vtp-share-toggle {
        right: 100px !important;
    }

    .vtp-settings-toggle {
        bottom: 58px !important;
        right: 12px !important;
    }

    .vtp-tour-actions {
        bottom: 104px !important;
        right: 12px !important;
        gap: 10px !important;
        width: 36px !important;
        align-items: center;
    }

    .vtp-action-btn svg,
    .vtp-settings-toggle svg,
    .vtp-map-toggle svg,
    .vtp-audio-toggle svg,
    .vtp-share-toggle svg {
        width: 16px !important;
        height: 16px !important;
    }

    .vtp-scene-nav-wrapper {
        bottom: 60px !important;
    }

    .vtp-scene-thumb {
        width: 50px !important;
    }

    .vtp-scene-thumb img {
        width: 50px !important;
        height: 32px !important;
    }

    .vtp-scene-thumb span {
        font-size: 8px !important;
    }

    .pnlm-controls-container {
        bottom: 120px !important;
    }

    .vtp-map-content {
        max-width: 160px !important;
        min-width: 120px !important;
    }
}

/* ============================================
   GYROSCOPE BUTTON VISIBILITY CONTROL
   ============================================ */
/* Hide gyroscope button on mobile when disabled */
.vtp-hide-gyro-btn .pnlm-orientation-button,
.vtp-hide-gyro-btn .pnlm-gyroscope-button {
    display: none !important;
}

/* ============================================
   HOTSPOT ANIMATION STYLES
   Using pseudo-elements to avoid position shifts
   ============================================ */

/* Base setup for all hotspot animations */
/* Base setup for all hotspot animations - Preserving absolute positioning */
.vtp-hotspot-anim-pulse .pnlm-hotspot,
.vtp-hotspot-anim-glow .pnlm-hotspot,
.vtp-hotspot-anim-ripple .pnlm-hotspot,
.vtp-hotspot-anim-float .pnlm-hotspot,
.vtp-hotspot-anim-heartbeat .pnlm-hotspot,
.vtp-hotspot-anim-radar .pnlm-hotspot,
.vtp-hotspot-anim-shake .pnlm-hotspot,
.vtp-hotspot-anim-grow .pnlm-hotspot,
.vtp-hotspot-anim-bounce .pnlm-hotspot {
    /* Must stay absolute for Pannellum positioning */
    transform-origin: center center;
}

/* ============================================
   Gallery Modal
   ============================================ */
.vtp-gallery-modal {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2147483647 !important;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.vtp-gallery-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vtp-gallery-main-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.vtp-gallery-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.2s;
}

.vtp-gallery-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.vtp-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.vtp-gallery-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.vtp-gallery-prev {
    left: -60px;
}

.vtp-gallery-next {
    right: -60px;
}

.vtp-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 5px;
}

.vtp-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.vtp-gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.vtp-gallery-thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: 0.2s;
    flex-shrink: 0;
}

.vtp-gallery-thumb.active,
.vtp-gallery-thumb:hover {
    opacity: 1;
    border-color: #6366f1;
}

/* Gallery Icon */


@media (max-width: 768px) {
    .vtp-gallery-prev {
        left: 10px;
        top: auto;
        bottom: -50px;
    }

    .vtp-gallery-next {
        right: 10px;
        top: auto;
        bottom: -50px;
    }

    .vtp-gallery-thumbs {
        display: none;
    }

    /* Hide thumbs on mobile if space is tight */
}

/* ============================================
   PULSE ANIMATION - Using box-shadow only
   ============================================ */
.vtp-hotspot-anim-pulse .pnlm-hotspot {
    animation: vtp-pulse-shadow 2s ease-in-out infinite;
}

@keyframes vtp-pulse-shadow {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
            0 0 0 0 rgba(99, 102, 241, 0.5);
    }

    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
            0 0 0 12px rgba(99, 102, 241, 0);
    }
}

/* Scene hotspots get white pulse */
.vtp-hotspot-anim-pulse .pnlm-hotspot.pnlm-scene {
    animation: vtp-pulse-shadow-white 2s ease-in-out infinite;
}

@keyframes vtp-pulse-shadow-white {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
            0 0 0 0 rgba(255, 255, 255, 0.6);
    }

    50% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
            0 0 0 12px rgba(255, 255, 255, 0);
    }
}

/* Grow Animation - Only on Hover */
.vtp-hotspot-anim-grow .pnlm-hotspot {
    animation: none;
    transition: scale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.vtp-hotspot-anim-grow .pnlm-hotspot:hover {
    scale: 1.3;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
}

/* Bounce Animation - Using margin to avoid transform conflict */
.vtp-hotspot-anim-bounce .pnlm-hotspot {
    animation: vtp-hotspot-bounce 1.5s ease-in-out infinite;
}

@keyframes vtp-hotspot-bounce {

    0%,
    100% {
        margin-top: 0;
    }

    30% {
        margin-top: -8px;
    }

    60% {
        margin-top: -4px;
    }
}

/* ============================================
   GLOW ANIMATION - Pulsing glow effect
   ============================================ */
.vtp-hotspot-anim-glow .pnlm-hotspot {
    animation: vtp-glow 2s ease-in-out infinite;
}

@keyframes vtp-glow {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
            0 0 10px 2px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
            0 0 25px 8px rgba(99, 102, 241, 0.6);
    }
}

.vtp-hotspot-anim-glow .pnlm-hotspot.pnlm-scene {
    animation: vtp-glow-white 2s ease-in-out infinite;
}

@keyframes vtp-glow-white {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
            0 0 10px 2px rgba(255, 255, 255, 0.4);
    }

    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
            0 0 25px 8px rgba(255, 255, 255, 0.7);
    }
}

/* ============================================
   RIPPLE ANIMATION - Expanding ring effect
   ============================================ */
.vtp-hotspot-anim-ripple .pnlm-hotspot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.8);
    transform: translate(-50%, -50%) scale(1);
    animation: vtp-ripple 2s ease-out infinite;
    pointer-events: none;
}

@keyframes vtp-ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.vtp-hotspot-anim-ripple .pnlm-hotspot.pnlm-scene::after {
    border-color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   FLOAT ANIMATION - Gentle up/down with shadow
   Using margin to avoid transform conflicts
   ============================================ */
.vtp-hotspot-anim-float .pnlm-hotspot {
    animation: vtp-float 3s ease-in-out infinite;
}

@keyframes vtp-float {

    0%,
    100% {
        margin-top: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    50% {
        margin-top: -6px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }
}

/* ============================================
   HEARTBEAT ANIMATION - Quick double pulse
   ============================================ */
.vtp-hotspot-anim-heartbeat .pnlm-hotspot {
    animation: vtp-heartbeat 1.5s ease-in-out infinite;
}

@keyframes vtp-heartbeat {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    14% {
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.6),
            0 0 0 4px rgba(239, 68, 68, 0.3);
    }

    28% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    42% {
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.7),
            0 0 0 8px rgba(239, 68, 68, 0.2);
    }

    56% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
}

/* ============================================
   RADAR ANIMATION - Scanning ring effect
   ============================================ */
.vtp-hotspot-anim-radar .pnlm-hotspot::before,
.vtp-hotspot-anim-radar .pnlm-hotspot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.6);
    transform: translate(-50%, -50%) scale(1);
    animation: vtp-radar 2.5s ease-out infinite;
    pointer-events: none;
}

.vtp-hotspot-anim-radar .pnlm-hotspot::after {
    animation-delay: 1.25s;
}

@keyframes vtp-radar {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        border-width: 3px;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
        border-width: 1px;
    }
}

/* Override for hotspots that already have content in ::before */
.vtp-hotspot-anim-radar .pnlm-hotspot.pnlm-info::before,
.vtp-hotspot-anim-radar .pnlm-hotspot.pnlm-scene::before {
    animation: none;
    border: none;
    transform: none;
    top: auto;
    left: auto;
}

/* ============================================
   SHAKE ANIMATION - Shake on hover
   ============================================ */
.vtp-hotspot-anim-shake .pnlm-hotspot {
    transition: all 0.3s ease;
}

.vtp-hotspot-anim-shake .pnlm-hotspot:hover {
    animation: vtp-shake 0.5s ease-in-out;
}

@keyframes vtp-shake {

    0%,
    100% {
        margin-left: 0;
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        margin-left: -3px;
    }

    20%,
    40%,
    60%,
    80% {
        margin-left: 3px;
    }
}

/* ============================================
   NO ANIMATION
   ============================================ */
.vtp-hotspot-anim-none .pnlm-hotspot {
    animation: none !important;
    transition: box-shadow 0.2s ease;
}

.vtp-hotspot-anim-none .pnlm-hotspot:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
}

/* ============================================
   HOVER ENHANCEMENT FOR ALL ANIMATIONS
   ============================================ */
.vtp-hotspot-anim-pulse .pnlm-hotspot:hover,
.vtp-hotspot-anim-glow .pnlm-hotspot:hover,
.vtp-hotspot-anim-ripple .pnlm-hotspot:hover,
.vtp-hotspot-anim-float .pnlm-hotspot:hover,
.vtp-hotspot-anim-heartbeat .pnlm-hotspot:hover,
.vtp-hotspot-anim-radar .pnlm-hotspot:hover,
.vtp-hotspot-anim-shake .pnlm-hotspot:hover,
.vtp-hotspot-anim-bounce .pnlm-hotspot:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5),
        0 0 15px 5px rgba(99, 102, 241, 0.4) !important;
    z-index: 1000 !important;
}

/* ============================================
   TOOLTIP STYLE VARIATIONS
   ============================================ */

/* Base styles for Rich Text Tooltips */
.pnlm-tooltip {
    white-space: normal !important;
    max-width: 280px !important;
    width: max-content !important;
    min-width: min-content !important;
    height: auto !important;
    line-height: 1.5 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Mobile fix for width */
@media (max-width: 480px) {
    .pnlm-tooltip {
        max-width: 200px !important;
    }
}

.pnlm-tooltip p {
    margin: 0 !important;
}

.pnlm-tooltip span {
    display: inline-block;
}

.pnlm-tooltip img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 4px auto;
}

/* Dark Tooltip (Default - defined base styles already) */
.vtp-tooltip-dark .pnlm-tooltip {
    background: rgba(15, 23, 42, 0.95) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.vtp-tooltip-dark .pnlm-tooltip::after {
    border-top-color: rgba(15, 23, 42, 0.95) !important;
}

/* Light Tooltip */
.vtp-tooltip-light .pnlm-tooltip {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #1e293b !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.vtp-tooltip-light .pnlm-tooltip span {
    color: #1e293b !important;
}

.vtp-tooltip-light .pnlm-tooltip::after {
    border-top-color: rgba(255, 255, 255, 0.98) !important;
}

/* Colored Tooltip (Indigo) */
.vtp-tooltip-colored .pnlm-tooltip {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4) !important;
}

.vtp-tooltip-colored .pnlm-tooltip span {
    color: #fff !important;
}

.vtp-tooltip-colored .pnlm-tooltip::after {
    border-top-color: #8b5cf6 !important;
}

/* Glassmorphism Tooltip */
.vtp-tooltip-glass .pnlm-tooltip {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.vtp-tooltip-glass .pnlm-tooltip span {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.vtp-tooltip-glass .pnlm-tooltip::after {
    border-top-color: rgba(255, 255, 255, 0.2) !important;
}

/* ============================================
   SCENE TRANSITION EFFECTS
   ============================================ */

/* Transition overlay for custom effects */
.vtp-transition-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Fade transition (default - handled by Pannellum sceneFadeDuration) */
.vtp-transition-fade .pnlm-render-container {
    transition: opacity 0.5s ease;
}

/* Slide transition styles */
.vtp-transition-slide.vtp-transitioning .pnlm-render-container {
    animation: vtp-slide-transition 0.5s ease-out;
}

@keyframes vtp-slide-transition {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Zoom transition styles */
.vtp-transition-zoom.vtp-transitioning .pnlm-render-container {
    animation: vtp-zoom-transition 0.5s ease-out;
}

@keyframes vtp-zoom-transition {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* No transition / Instant */
.vtp-transition-none .pnlm-render-container {
    transition: none !important;
}

/* ============================================
   MOBILE RESPONSIVE FOR NEW FEATURES
   ============================================ */
@media (max-width: 768px) {

    /* Reduce animation intensity on mobile for performance */
    .vtp-hotspot-anim-pulse .pnlm-hotspot,
    .vtp-hotspot-anim-glow .pnlm-hotspot,
    .vtp-hotspot-anim-ripple .pnlm-hotspot,
    .vtp-hotspot-anim-heartbeat .pnlm-hotspot,
    .vtp-hotspot-anim-radar .pnlm-hotspot {
        animation-duration: 2.5s;
    }

    .vtp-hotspot-anim-float .pnlm-hotspot {
        animation-duration: 3.5s;
    }

    /* Smaller ripple/radar rings on mobile */
    .vtp-hotspot-anim-ripple .pnlm-hotspot::after,
    .vtp-hotspot-anim-radar .pnlm-hotspot::before,
    .vtp-hotspot-anim-radar .pnlm-hotspot::after {
        border-width: 1px;
    }

    @keyframes vtp-ripple {
        0% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }

        100% {
            transform: translate(-50%, -50%) scale(2);
            opacity: 0;
        }
    }

    @keyframes vtp-radar {
        0% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }

        100% {
            transform: translate(-50%, -50%) scale(2.5);
            opacity: 0;
        }
    }

    /* Smaller tooltips on mobile */
    .pnlm-tooltip {
        max-width: 180px !important;
        font-size: 12px !important;
        padding: 6px 10px !important;
    }

    /* Compact UI for Mobile */
    .vtp-scene-details {
        top: 10px !important;
        left: 10px !important;
        max-width: 160px !important;
        padding: 8px 10px !important;
        border-left-width: 3px !important;
        background: rgba(255, 255, 255, 0.8) !important;
    }

    .vtp-scene-detail-name {
        font-size: 13px !important;
        margin-bottom: 4px !important;
        letter-spacing: 0.5px !important;
        line-height: 1.2 !important;
    }

    .vtp-scene-detail-divider {
        width: 30px !important;
        margin-bottom: 6px !important;
        height: 1px !important;
    }

    .vtp-scene-detail-desc {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    .vtp-discover-panel {
        bottom: 15px !important;
        left: 15px !important;
    }

    .vtp-discover-title {
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }

    .vtp-discover-divider {
        width: 80px !important;
        margin-bottom: 10px !important;
    }

    .vtp-discover-list {
        gap: 8px !important;
    }

    .vtp-discover-item {
        width: 38px !important;
        height: 38px !important;
        border-width: 1.5px !important;
    }

    .vtp-discover-item-icon {
        font-size: 16px !important;
    }

    /* Adjust Pannellum controls to not overlap Discovery panel */
    .pnlm-zoom-controls {
        left: 10px !important;
        bottom: 150px !important;
        /* Move zoom up on mobile */
        top: auto !important;
    }

    .pnlm-fullscreen-toggle-button,
    .pnlm-orientation-button {
        width: 36px !important;
        height: 36px !important;
    }

    /* Smaller portal tooltips on mobile */
    .vtp-portal-tooltip {
        width: 140px !important;
        bottom: 50px !important;
    }

    .vtp-portal-name {
        font-size: 12px !important;
    }

    .vtp-portal-goto {
        font-size: 9px !important;
    }
}

/* ============================================
   SCENE DETAILS & DISCOVERY PANELS
   ============================================ */

.vtp-scene-details {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-width: 320px;
    border-left: 4px solid #6366f1;
    pointer-events: none;
    transition: all 0.4s ease;
}

.vtp-scene-detail-name {
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #6366f1 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
}

.vtp-scene-detail-divider {
    height: 1.5px;
    background: #6366f1;
    width: 60px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.vtp-scene-detail-desc {
    margin: 0 !important;
    font-size: 14px !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
}

.vtp-discover-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    pointer-events: none;
}

.vtp-discover-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.vtp-discover-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    width: 150px;
    margin-bottom: 15px;
}

.vtp-discover-list {
    display: flex;
    gap: 12px;
    pointer-events: auto;
}

.vtp-discover-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.vtp-discover-item:hover {
    transform: scale(1.15) translateY(-5px);
    background: #fff;
    border-color: #6366f1;
}

.vtp-discover-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vtp-discover-item-icon {
    font-size: 20px;
}

.vtp-discover-item:hover .vtp-discover-item-icon {
    transform: scale(1.1);
}

/* ============================================
   TOUR ACTIONS (CENTER RIGHT)
   ============================================ */
.vtp-tour-actions {
    position: absolute;
    right: 20px;
    bottom: 129px;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    z-index: 100;
    width: 44px;
    align-items: center;
}

.vtp-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 0;
    box-sizing: border-box;
}

.vtp-action-btn:hover {
    background: #6366f1;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    border-color: #818cf8;
}

.vtp-action-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.vtp-action-btn:hover svg {
    transform: rotate(5deg);
}

/* Tour Info Modal */
.vtp-tour-info-modal {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2147483647 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vtp-tour-info-modal.active {
    display: flex;
    opacity: 1;
}

.vtp-tour-info-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.vtp-tour-info-modal.active .vtp-tour-info-content {
    transform: translateY(0);
}

.vtp-info-header {
    background: #f8fafc;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.vtp-info-header h3 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    font-family: 'Outfit', sans-serif;
}

.vtp-info-close {
    background: none;
    border: none;
    font-size: 30px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.vtp-info-close:hover {
    color: #ef4444;
}

.vtp-info-body {
    padding: 30px 25px;
    max-height: 60vh;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

.vtp-info-body p:first-child {
    margin-top: 0;
}

.vtp-info-body p:last-child {
    margin-bottom: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {

    .vtp-map-toggle,
    .vtp-audio-toggle,
    .vtp-share-toggle,
    .vtp-settings-toggle,
    .vtp-action-btn {
        width: 38px;
        height: 38px;
    }

    .vtp-map-toggle,
    .vtp-audio-toggle,
    .vtp-share-toggle {
        bottom: 15px;
    }

    .vtp-map-toggle {
        right: 15px;
    }

    .vtp-audio-toggle {
        right: 65px;
    }

    .vtp-share-toggle {
        right: 115px;
    }

    .vtp-settings-toggle {
        bottom: 65px;
        right: 15px;
    }

    .vtp-tour-actions {
        bottom: 113px;
        right: 15px;
        gap: 10px;
        width: 38px;
        align-items: center;
    }

    .vtp-action-btn svg,
    .vtp-settings-toggle svg,
    .vtp-map-toggle svg,
    .vtp-audio-toggle svg,
    .vtp-share-toggle svg {
        width: 18px;
        height: 18px;
    }
}

.vtp-hidden {
    display: none !important;
}

/* Settings Toggle */
.vtp-settings-toggle {
    position: absolute;
    bottom: 73px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 0;
    box-sizing: border-box;
}

.vtp-settings-toggle svg {
    width: 18px;
    height: 18px;
}

.vtp-settings-toggle:hover {
    background: #6366f1;
    transform: rotate(30deg) scale(1.08);
}

/* Settings Panel */
.vtp-settings-panel {
    position: absolute;
    bottom: 73px;
    right: 75px;
    width: 250px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 200;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.vtp-settings-panel.active {
    display: flex;
}

.vtp-settings-header {
    background: #f8fafc;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.vtp-settings-header h3 {
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vtp-settings-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
}

.vtp-settings-list {
    padding: 10px;
}

.vtp-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.vtp-setting-item:hover {
    background: #f1f5f9;
}

.vtp-setting-item span {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

/* Switch styling */
.vtp-setting-item input[type="checkbox"] {
    appearance: none;
    width: 34px;
    height: 18px;
    background: #cbd5e1;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0;
}

.vtp-setting-item input[type="checkbox"]:checked {
    background: #6366f1;
}

.vtp-setting-item input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}

.vtp-setting-item input[type="checkbox"]:checked::before {
    transform: translateX(16px);
}

/* Global Button Sizing & Alignment Fix */
.vtp-map-toggle,
.vtp-audio-toggle,
.vtp-share-toggle,
.vtp-settings-toggle,
.vtp-action-btn {
    box-sizing: border-box !important;
    width: 44px;
    height: 44px;
}

@media (max-width: 768px) {

    .vtp-map-toggle,
    .vtp-audio-toggle,
    .vtp-share-toggle,
    .vtp-settings-toggle,
    .vtp-action-btn {
        width: 38px !important;
        height: 38px !important;
    }
}

@media (max-width: 480px) {

    .vtp-map-toggle,
    .vtp-audio-toggle,
    .vtp-share-toggle,
    .vtp-settings-toggle,
    .vtp-action-btn {
        width: 36px !important;
        height: 36px !important;
    }
}

/* ============================================
   Free Version Watermark
   ============================================ */
.vtp-watermark {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 50;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vtp-watermark:hover {
    background: rgba(99, 102, 241, 0.9);
    color: #fff;
    transform: translateY(-2px);
}

.vtp-watermark-icon {
    font-size: 14px;
}

@media (max-width: 480px) {
    .vtp-watermark {
        font-size: 10px;
        padding: 4px 8px;
        bottom: 8px;
        left: 8px;
    }

    .vtp-watermark-icon {
        display: none;
    }
}

/* Fix for Info Icon Visibility */
/* Fix for Hotspot Icon Styles & Global Defaults */
.pnlm-hotspot[class*="vtp-icon-"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: var(--vtp-hs-bg, #fff) !important;
    border: 2px solid var(--vtp-hs-border, #333) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: var(--vtp-hs-radius, 50%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    padding: 0 !important;
}

.pnlm-hotspot[class*="vtp-icon-"]::before {
    position: static !important;
    transform: rotate(var(--vtp-rotation, 0deg)) !important;
    margin: 0 !important;
    display: block !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.pnlm-hotspot.vtp-icon-info::before {
    content: 'ℹ️' !important;
}

.pnlm-hotspot.vtp-icon-arrow::before {
    content: '➡️' !important;
}

.pnlm-hotspot.vtp-icon-plus::before {
    content: '➕' !important;
    font-size: 16px !important;
}

.pnlm-hotspot.vtp-icon-eye::before {
    content: '👁️' !important;
}

.pnlm-hotspot.vtp-icon-star::before {
    content: '⭐' !important;
    font-size: 16px !important;
}

.pnlm-hotspot.vtp-icon-pin::before {
    content: '📍' !important;
}

.pnlm-hotspot.vtp-icon-cart::before {
    content: '🛒' !important;
}

.pnlm-hotspot.vtp-icon-video::before {
    content: '▶️' !important;
    margin-left: 2px !important;
}

.pnlm-hotspot.vtp-icon-camera::before {
    content: '📷' !important;
}

.pnlm-hotspot.vtp-icon-gallery::before {
    content: '🖼️' !important;
}

/* Scene Portal Specific Styles */
.pnlm-hotspot.vtp-icon-scene_portal {
    width: 60px !important;
    height: 60px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.pnlm-hotspot.vtp-icon-scene_portal::before {
    display: none !important;
}

.vtp-portal-circle {
    width: 100%;
    height: 100%;
    border: 3px solid #fff !important;
    border-radius: 50% !important;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    background-color: #333 !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    pointer-events: none;
}

.pnlm-hotspot.vtp-icon-scene_portal:hover .vtp-portal-circle {
    transform: scale(1.15) !important;
}