/* ============================================
   RV360 Premium Hotspot System v2.0
   Unified glassmorphism design with SVG chevrons
   ============================================ */

/* --- KEYFRAMES --- */
@keyframes rv360-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* --- RESET: All RV360 hotspot bases --- */
.pnlm-hotspot-base.icon-suelo,
.pnlm-hotspot-base.icon-vertical,
.pnlm-hotspot-base.icon-arrow-up,
.pnlm-hotspot-base.icon-arrow-down,
.pnlm-hotspot-base.icon-arrow-left,
.pnlm-hotspot-base.icon-arrow-right,
.pnlm-hotspot-base.icon-arrow-up-left,
.pnlm-hotspot-base.icon-arrow-up-right,
.pnlm-hotspot-base.icon-arrow-down-left,
.pnlm-hotspot-base.icon-arrow-down-right,
.pnlm-hotspot-base.custom-hotspot,
.pnlm-hotspot-base.hotspot-default,
.pnlm-hotspot-base.hotspot-door,
.pnlm-hotspot-base.hotspot-arrow,
.pnlm-hotspot-base.icon-info {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    filter: none;
    opacity: 1 !important;
    cursor: pointer;
}

/* =============================================
   UNIFIED NAVIGATION HOTSPOT (All directions)
   Glassmorphism circle + SVG chevron inside
   ============================================= */

/* Size: Navigation circles */
.pnlm-hotspot-base.icon-suelo,
.pnlm-hotspot-base.icon-vertical,
.pnlm-hotspot-base.icon-arrow-up,
.pnlm-hotspot-base.icon-arrow-down,
.pnlm-hotspot-base.icon-arrow-left,
.pnlm-hotspot-base.icon-arrow-right,
.pnlm-hotspot-base.icon-arrow-up-left,
.pnlm-hotspot-base.icon-arrow-up-right,
.pnlm-hotspot-base.icon-arrow-down-left,
.pnlm-hotspot-base.icon-arrow-down-right,
.pnlm-hotspot-base.custom-hotspot,
.pnlm-hotspot-base.hotspot-default,
.pnlm-hotspot-base.hotspot-door,
.pnlm-hotspot-base.hotspot-arrow {
    width: 48px !important;
    height: 48px !important;
    margin-left: -24px !important;
    margin-top: -24px !important;
}

/* Glassmorphism circle (::before) */
.pnlm-hotspot-base.icon-suelo::before,
.pnlm-hotspot-base.icon-vertical::before,
.pnlm-hotspot-base.icon-arrow-up::before,
.pnlm-hotspot-base.icon-arrow-down::before,
.pnlm-hotspot-base.icon-arrow-left::before,
.pnlm-hotspot-base.icon-arrow-right::before,
.pnlm-hotspot-base.icon-arrow-up-left::before,
.pnlm-hotspot-base.icon-arrow-up-right::before,
.pnlm-hotspot-base.icon-arrow-down-left::before,
.pnlm-hotspot-base.icon-arrow-down-right::before,
.pnlm-hotspot-base.custom-hotspot::before,
.pnlm-hotspot-base.hotspot-default::before,
.pnlm-hotspot-base.hotspot-door::before,
.pnlm-hotspot-base.hotspot-arrow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pulse ring (::after) */
.pnlm-hotspot-base.icon-suelo::after,
.pnlm-hotspot-base.icon-vertical::after,
.pnlm-hotspot-base.icon-arrow-up::after,
.pnlm-hotspot-base.icon-arrow-down::after,
.pnlm-hotspot-base.icon-arrow-left::after,
.pnlm-hotspot-base.icon-arrow-right::after,
.pnlm-hotspot-base.icon-arrow-up-left::after,
.pnlm-hotspot-base.icon-arrow-up-right::after,
.pnlm-hotspot-base.icon-arrow-down-left::after,
.pnlm-hotspot-base.icon-arrow-down-right::after,
.pnlm-hotspot-base.custom-hotspot::after,
.pnlm-hotspot-base.hotspot-default::after,
.pnlm-hotspot-base.hotspot-door::after,
.pnlm-hotspot-base.hotspot-arrow::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    animation: rv360-pulse 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    pointer-events: none;
}

/* SVG chevron icon (injected via JS) */
.rv360-chevron {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}
.rv360-chevron svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: white;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

/* --- HOVER EFFECT (unified for all) --- */
.pnlm-hotspot-base.icon-suelo:hover::before,
.pnlm-hotspot-base.icon-vertical:hover::before,
.pnlm-hotspot-base.icon-arrow-up:hover::before,
.pnlm-hotspot-base.icon-arrow-down:hover::before,
.pnlm-hotspot-base.icon-arrow-left:hover::before,
.pnlm-hotspot-base.icon-arrow-right:hover::before,
.pnlm-hotspot-base.icon-arrow-up-left:hover::before,
.pnlm-hotspot-base.icon-arrow-up-right:hover::before,
.pnlm-hotspot-base.icon-arrow-down-left:hover::before,
.pnlm-hotspot-base.icon-arrow-down-right:hover::before,
.pnlm-hotspot-base.custom-hotspot:hover::before,
.pnlm-hotspot-base.hotspot-default:hover::before,
.pnlm-hotspot-base.hotspot-door:hover::before,
.pnlm-hotspot-base.hotspot-arrow:hover::before {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.95);
    transform: scale(1.12);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.15);
}

/* Stop pulse on hover (cleaner feel) */
.pnlm-hotspot-base.icon-suelo:hover::after,
.pnlm-hotspot-base.icon-vertical:hover::after,
.pnlm-hotspot-base.icon-arrow-up:hover::after,
.pnlm-hotspot-base.icon-arrow-down:hover::after,
.pnlm-hotspot-base.icon-arrow-left:hover::after,
.pnlm-hotspot-base.icon-arrow-right:hover::after,
.pnlm-hotspot-base.icon-arrow-up-left:hover::after,
.pnlm-hotspot-base.icon-arrow-up-right:hover::after,
.pnlm-hotspot-base.icon-arrow-down-left:hover::after,
.pnlm-hotspot-base.icon-arrow-down-right:hover::after,
.pnlm-hotspot-base.custom-hotspot:hover::after,
.pnlm-hotspot-base.hotspot-default:hover::after,
.pnlm-hotspot-base.hotspot-door:hover::after,
.pnlm-hotspot-base.hotspot-arrow:hover::after {
    animation: none;
    opacity: 0;
}


/* --- INFO HOTSPOTS: Glassmorphism blue circle with "i" --- */
.pnlm-hotspot-base.icon-info {
    width: 50px !important;
    height: 50px !important;
    margin-left: -25px !important;
    margin-top: -25px !important;
    visibility: visible !important;
    background: rgba(59, 130, 246, 0.35) !important;
    border: 3px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(59, 130, 246, 0.4) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Tooltip: hidden by default, visible on hover */
.pnlm-hotspot-base.icon-info > span {
    visibility: hidden;
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    white-space: normal;
    max-width: 280px;
    min-width: 120px;
    line-height: 1.4;
    text-align: left;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.2s, visibility 0.2s;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.pnlm-hotspot-base.icon-info:hover > span {
    visibility: visible !important;
    opacity: 1;
    display: block !important;
}
.pnlm-hotspot-base.icon-info .rv360-chevron {
    display: none !important;
}

/* Disable pseudo-elements (glassmorphism is on the element itself) */
.pnlm-hotspot-base.icon-info::before {
    content: none !important;
    display: none !important;
}
.pnlm-hotspot-base.icon-info::after {
    content: none !important;
    display: none !important;
}

/* Hover: brighter */
.pnlm-hotspot-base.icon-info:hover {
    background: rgba(59, 130, 246, 0.5) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), 0 6px 30px rgba(59, 130, 246, 0.6) !important;
}




/* =============================================
   MOBILE RESPONSIVE (< 768px)
   30% smaller, subtler pulse
   ============================================= */
@media (max-width: 768px) {
    .pnlm-hotspot-base.icon-suelo,
    .pnlm-hotspot-base.icon-vertical,
    .pnlm-hotspot-base.icon-arrow-up,
    .pnlm-hotspot-base.icon-arrow-down,
    .pnlm-hotspot-base.icon-arrow-left,
    .pnlm-hotspot-base.icon-arrow-right,
    .pnlm-hotspot-base.icon-arrow-up-left,
    .pnlm-hotspot-base.icon-arrow-up-right,
    .pnlm-hotspot-base.icon-arrow-down-left,
    .pnlm-hotspot-base.icon-arrow-down-right,
    .pnlm-hotspot-base.custom-hotspot,
    .pnlm-hotspot-base.hotspot-default,
    .pnlm-hotspot-base.hotspot-door,
    .pnlm-hotspot-base.hotspot-arrow,
    .pnlm-hotspot-base.icon-info {
        width: 36px !important;
        height: 36px !important;
        margin-left: -18px !important;
        margin-top: -18px !important;
    }
    .rv360-chevron {
        width: 15px;
        height: 15px;
    }
    .rv360-chevron svg {
        stroke-width: 3;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .pnlm-hotspot-base.icon-suelo,
    .pnlm-hotspot-base.icon-vertical,
    .pnlm-hotspot-base.icon-arrow-up,
    .pnlm-hotspot-base.icon-arrow-down,
    .pnlm-hotspot-base.icon-arrow-left,
    .pnlm-hotspot-base.icon-arrow-right,
    .pnlm-hotspot-base.icon-arrow-up-left,
    .pnlm-hotspot-base.icon-arrow-up-right,
    .pnlm-hotspot-base.icon-arrow-down-left,
    .pnlm-hotspot-base.icon-arrow-down-right,
    .pnlm-hotspot-base.custom-hotspot,
    .pnlm-hotspot-base.hotspot-default,
    .pnlm-hotspot-base.hotspot-door,
    .pnlm-hotspot-base.hotspot-arrow,
    .pnlm-hotspot-base.icon-info {
        width: 32px !important;
        height: 32px !important;
        margin-left: -16px !important;
        margin-top: -16px !important;
    }
    .rv360-chevron {
        width: 13px;
        height: 13px;
    }
}



/* Pannellum tooltip customization */
.pnlm-tooltip span {
    background: rgba(15, 23, 42, 0.92) !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(8px) !important;
    letter-spacing: 0.2px !important;
}
.pnlm-tooltip span:after {
    border-top-color: rgba(15, 23, 42, 0.92) !important;
}

/* Compact loading box */
.pnlm-load-box {
    width: 80px !important;
    height: 40px !important;
    margin: -20px 0 0 -40px !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    border-radius: 8px !important;
}

.pnlm-lbar {
    width: 60px !important;
    height: 6px !important;
    margin: 17px auto !important;
    border-radius: 3px !important;
}

.pnlm-lbar-fill {
    height: 6px !important;
    border-radius: 3px !important;
}

.pnlm-lmsg {
    font-size: 10px !important;
    display: none !important;
}
