/* ========================================
   KC360 Frontend Styles - FINAL FIX v2.9
   CRITICAL FIXES:
   - Scene hotspot: transparent bg, white border only
   - Bigger scene icon (90px)
   - NO "menjauh" on ANY hotspot click
   - All positioning stable
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.kc360-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    background: #010B13;
    color: #fff;
}

/* ========================================
   Loading Screen dengan Logo Animation
   ======================================== */

#kc360-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #F5F5F5;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#kc360-loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.kc360-loading-logo {
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
}

.kc360-loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(13, 144, 207, 0.3));
}

.kc360-loading-logo.kc360-anim-pulse img {
    animation: kc360-pulse 1.5s ease-in-out infinite;
}

.kc360-loading-logo.kc360-anim-spin img {
    animation: kc360-spin 2s linear infinite;
}

.kc360-loading-logo.kc360-anim-bounce img {
    animation: kc360-bounce 1s ease-in-out infinite;
}

.kc360-loading-logo.kc360-anim-fade img {
    animation: kc360-fade 1.5s ease-in-out infinite;
}

.kc360-loading-logo.kc360-anim-shake img {
    animation: kc360-shake 0.5s ease-in-out infinite;
}

.kc360-loading-logo.kc360-anim-swing img {
    animation: kc360-swing 2s ease-in-out infinite;
    transform-origin: top center;
}

.kc360-loading-logo.kc360-anim-none img {
    animation: none;
}

@keyframes kc360-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes kc360-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes kc360-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes kc360-fade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes kc360-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes kc360-swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.kc360-loading-text {
    font-size: 18px;
    color: #010B13;
    font-weight: 600;
    margin-bottom: 20px;
}

.kc360-loading-bar {
    width: 200px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.kc360-loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #FAB230, #0D90CF);
    width: 0%;
    border-radius: 10px;
    animation: kc360-loadingProgress 2s ease-in-out forwards;
}

@keyframes kc360-loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

#kc360-panorama {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

#kc360-panorama.loaded {
    opacity: 1;
    transform: scale(1);
}

.kc360-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    max-width: 150px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease 1s, transform 0.8s ease 1s;
}

.kc360-logo.show {
    opacity: 1;
    transform: translateY(0);
}

.kc360-logo img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.kc360-controls {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 10px;
    background: rgba(1, 11, 19, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.8s ease 1.5s, transform 0.8s ease 1.5s;
}

.kc360-controls.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.kc360-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* State aktif: Minimap (Scene Navigator sidebar) terbuka → highlight tombol Gallery */
body.kc360-minimap-open #kc360-gallery-toggle {
    background: #FAB230;
    color: #010B13;
}

/* State aktif: Dropup daftar scene (tengah) terbuka → highlight tombol Scene */
#kc360-scenes[aria-expanded="true"] {
    background: #FAB230;
    color: #010B13;
}

.kc360-btn:hover {
    background: #0D90CF;
    transform: scale(1.1);
}

.kc360-btn:active {
    transform: scale(0.95);
}

.kc360-btn.active {
    background: #FAB230;
    color: #010B13;
}

.kc360-btn.kc360-music-playing {
    background: #FAB230;
    animation: kc360-musicPulse 2s ease infinite;
}

@keyframes kc360-musicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(250, 178, 48, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(250, 178, 48, 0); }
}

.kc360-sidebar-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 150;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(1, 11, 19, 0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease 1.5s, transform 0.8s ease 1.5s, background 0.3s ease;
}

.kc360-sidebar-toggle.show {
    opacity: 1;
    transform: translateY(0);
}

.kc360-sidebar-toggle:hover {
    background: #0D90CF;
    transform: translateY(0) scale(1.1);
}

.kc360-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #fff;
    color: #010B13;
    z-index: 200;
    overflow-y: auto;
    box-shadow: -2px 0 20px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
}

.kc360-sidebar.open {
    right: 0;
}

.kc360-sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, #0D90CF, #FAB230);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.kc360-sidebar-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.kc360-sidebar-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kc360-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.kc360-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #F5F5F5;
    position: sticky;
    top: 70px;
    z-index: 9;
}

.kc360-tab {
    padding: 15px 10px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.kc360-tab i {
    font-size: 20px;
}

.kc360-tab:hover {
    background: #e0e0e0;
    color: #010B13;
}

.kc360-tab.active {
    background: #fff;
    color: #0D90CF;
    border-bottom-color: #FAB230;
    font-weight: 600;
}

.kc360-tab-content {
    padding: 20px;
}

.kc360-tab-panel {
    display: none;
}

.kc360-tab-panel.active {
    display: block;
    animation: kc360-fadeIn 0.3s ease;
}

@keyframes kc360-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.kc360-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

.kc360-map-container iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.kc360-address {
    padding: 15px;
    background: #F5F5F5;
    border-radius: 8px;
}

.kc360-address i {
    color: #0D90CF;
    font-size: 20px;
    vertical-align: middle;
    margin-right: 10px;
}

.kc360-address p {
    margin: 10px 0;
    line-height: 1.6;
}

.kc360-btn-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #0D90CF;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.kc360-btn-link:hover {
    background: #FAB230;
}

.kc360-floorplan {
    text-align: center;
}

.kc360-zoomable {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.kc360-zoomable:hover {
    transform: scale(1.02);
}

.kc360-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.kc360-gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid transparent;
}

.kc360-gallery-item:hover {
    transform: scale(1.05);
    border-color: #FAB230;
}

.kc360-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kc360-info-content h3 {
    font-size: 18px;
    margin: 20px 0 10px 0;
    color: #010B13;
}

.kc360-description {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #333;
}

.kc360-contact p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kc360-contact i {
    color: #0D90CF;
    font-size: 18px;
}

.kc360-contact a {
    color: #0D90CF;
    text-decoration: none;
}

.kc360-contact a:hover {
    color: #FAB230;
    text-decoration: underline;
}

.kc360-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(1, 11, 19, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.kc360-lightbox.active {
    display: flex;
    animation: kc360-fadeIn 0.3s ease;
}

.kc360-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.kc360-lightbox-close,
.kc360-lightbox-prev,
.kc360-lightbox-next {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kc360-lightbox-close:hover,
.kc360-lightbox-prev:hover,
.kc360-lightbox-next:hover {
    background: #FAB230;
    transform: scale(1.1);
}

.kc360-lightbox-close {
    top: 20px;
    right: 20px;
}

.kc360-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.kc360-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.kc360-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    background: rgba(1, 11, 19, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: kc360-slideUp 0.3s ease;
}

@keyframes kc360-slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.kc360-notification p {
    margin: 0;
    color: #fff;
    font-size: 15px;
}

.kc360-btn-primary,
.kc360-btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.kc360-btn-primary {
    background: #FAB230;
    color: #010B13;
}

.kc360-btn-primary:hover {
    background: #0D90CF;
    color: #fff;
    transform: scale(1.05);
}

.kc360-btn-secondary {
    background: #666;
    color: #fff;
}

.kc360-btn-secondary:hover {
    background: #010B13;
    transform: scale(1.05);
}

.kc360-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    font-size: 13px;
    color: #fff;
    background: rgba(1, 11, 19, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.8s ease 2s;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.kc360-footer.show {
    opacity: 1;
}

.kc360-footer a {
    color: #FAB230;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.kc360-footer a:hover {
    color: #0D90CF;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .kc360-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .kc360-sidebar.open {
        right: 0;
    }
    
    .kc360-controls {
        bottom: 80px;
        padding: 10px;
        gap: 8px;
    }
    
    .kc360-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .kc360-logo {
        max-width: 120px;
        top: 15px;
        left: 15px;
    }
    
    .kc360-tab {
        padding: 12px 8px;
        font-size: 11px;
    }
    
    .kc360-tab i {
        font-size: 18px;
    }
    
    .kc360-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
/* Notification dengan Grid Layout - Buttons sejajar */
.kc360-notification {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px 10px;
    padding: 18px 20px;
    width: calc(100vw - 40px);
    max-width: 380px;
}

.kc360-notification p {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
}

.kc360-btn-primary {
    grid-column: 1;
    grid-row: 2;
    padding: 12px 15px;
    font-size: 14px;
}

.kc360-btn-secondary {
    grid-column: 2;
    grid-row: 2;
    padding: 12px 15px;
    font-size: 14px;
}
    
    .kc360-footer {
        font-size: 10px;
        bottom: 80px;
    }
/* FIXED: Footer di bawah */
    .kc360-footer {
        font-size: 10px;
        bottom: 10px;  /* Changed from 80px */
        padding: 8px 16px;
        line-height: 1.4;
        max-width: calc(100vw - 40px);
    }
    
    /* MOBILE HOTSPOT SIZES - Slightly larger for touch */
    .custom-hotspot.scene-hotspot {
        width: 55px;
        height: 55px;
        border-width: 4px;
    }
    
    .custom-hotspot.info-hotspot {
        width: 40px;
        height: 40px;
    }
    
    .custom-hotspot.info-hotspot::before {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .kc360-controls {
        gap: 5px;
        padding: 8px;
        bottom: 70px;
    }
    
    .kc360-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .kc360-footer {
        font-size: 8px;
        bottom: 8px;
        padding: 6px 8px;
    }
    
    .kc360-tab span {
        display: none;
    }
    
    .kc360-lightbox-prev,
    .kc360-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .kc360-notification {
        width: calc(100vw - 30px);
        max-width: 340px;
        padding: 15px;
        gap: 10px 8px;
        bottom: 20px;
    }

    .kc360-notification p {
        font-size: 13px;
    }

    .kc360-btn-primary,
    .kc360-btn-secondary {
        padding: 10px 12px;
        font-size: 13px;
    }
}

.pnlm-container.pnlm-vr-mode {
    cursor: default;
}

.pnlm-container {
    background: #010B13 !important;
}

.pnlm-ui .pnlm-controls {
    display: none !important;
}

.hidden {
    display: none !important;
}

.fade-out {
    animation: kc360-fadeOut 0.3s ease forwards;
}

@keyframes kc360-fadeOut {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

.kc360-info-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(1, 11, 19, 0.95);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kc360-info-popup.active {
    display: flex;
    opacity: 1;
}

.kc360-info-popup-content {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: kc360-popupSlideUp 0.3s ease;
}

@keyframes kc360-popupSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kc360-info-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kc360-info-popup-close:hover {
    background: #FAB230;
    color: #fff;
    transform: rotate(90deg);
}

.kc360-info-popup-content h3 {
    margin: 0 0 15px 0;
    color: #010B13;
    font-size: 24px;
}

.kc360-info-popup-content p {
    margin: 0;
    color: #333;
    line-height: 1.8;
    font-size: 15px;
}

.kc360-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(1, 11, 19, 0.95);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kc360-video-modal.active {
    display: flex;
    opacity: 1;
}

.kc360-video-modal-content {
    width: 90%;
    max-width: 1200px;
    position: relative;
}

.kc360-video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kc360-video-modal-close:hover {
    background: #FAB230;
    transform: rotate(90deg);
}

.kc360-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.kc360-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.kc360-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.kc360-video-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid transparent;
}

.kc360-video-item:hover {
    transform: scale(1.05);
    border-color: #FAB230;
}

.kc360-video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kc360-video-item i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #fff;
    opacity: 0.8;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: all 0.2s ease;
}

.kc360-video-item:hover i {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

/* ========================================
   Icon Picker Styling
   ======================================== */

.kc360-icon-picker {
    margin: 8px 0;
    padding: 8px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.kc360-icon-picker label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kc360-icon-type {
    font-size: 12px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.kc360-icon-options {
    margin-top: 8px;
}

.kc360-icon-preset,
.kc360-icon-custom {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kc360-icon-preset-select {
    font-size: 12px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.kc360-icon-preview {
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.kc360-icon-preview:empty {
    background: #f5f5f5;
}

.kc360-icon-upload-btn {
    font-size: 11px !important;
    padding: 6px 12px !important;
    height: auto !important;
}

.kc360-icon-upload-btn:hover {
    background: #0D90CF;
    color: #fff;
    border-color: #0D90CF;
}

/* ========================================
   FINAL HOTSPOT FIX v2.9 - NO MENJAUH!
   ======================================== */

/* Base hotspot - LET PANNELLUM POSITION, THEN LOCK */
.custom-hotspot,
.pnlm-hotspot.custom-hotspot,
.pnlm-hotspot-base.custom-hotspot {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    position: absolute !important;
    z-index: 1000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    /* CRITICAL: Allow Pannellum's transform for positioning */
    /* DO NOT set transform here - Pannellum needs it for coordinates */
    /* We'll lock it after initial positioning via JS */
    transition: opacity 0.2s ease !important;
    will-change: auto !important;
}

/* Info Hotspot - Blue with white border */
.custom-hotspot.info-hotspot,
.pnlm-hotspot.custom-hotspot.info-hotspot {
    width: 35px !important;
    height: 35px !important;
    background: rgba(13, 144, 207, 0.95) !important;
    border: 4px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(13, 144, 207, 0.7) !important;
    animation: kc360-infoPulse 2s ease-in-out infinite !important;
}

.custom-hotspot.info-hotspot::before {
    width: 32px !important;
    height: 32px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    display: block !important;
    position: relative !important;
}

/* CRITICAL: NO transform CHANGES on hover or active for info */
.custom-hotspot.info-hotspot:hover,
.custom-hotspot.info-hotspot:active,
.custom-hotspot.info-hotspot:focus {
    opacity: 1 !important;
    /* Keep existing transform (set by Pannellum for positioning) */
    /* DO NOT add new transform properties */
}

.custom-hotspot.info-hotspot:active {
    opacity: 0.9 !important;
    /* Keep position stable */
}

@keyframes kc360-infoPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(13, 144, 207, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(13, 144, 207, 0);
    }
}

/* Scene Hotspot - SIMPLE VISIBLE RING with pulse animation */
.custom-hotspot.scene-hotspot,
.pnlm-hotspot.custom-hotspot.scene-hotspot {
    width: 50px !important;
    height: 50px !important;
    background: transparent !important;
    border: 5px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 50% !important;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 40px rgba(255, 255, 255, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
    animation: kc360-scenePulse 2s ease-in-out infinite !important;
}

/* NO ::before pseudo-element - keep it simple! */
.custom-hotspot.scene-hotspot::before,
.custom-hotspot.scene-hotspot::after {
    display: none !important;
    content: none !important;
}

/* CRITICAL: NO transform CHANGES on hover or active for scene */
.custom-hotspot.scene-hotspot:hover,
.custom-hotspot.scene-hotspot:active,
.custom-hotspot.scene-hotspot:focus {
    opacity: 1 !important;
    border-color: rgba(250, 178, 48, 0.95) !important;  /* Gold on hover */
    box-shadow: 
        0 0 30px rgba(250, 178, 48, 0.8),
        0 0 50px rgba(250, 178, 48, 0.5),
        inset 0 0 20px rgba(250, 178, 48, 0.2) !important;
    /* Keep existing transform (set by Pannellum for positioning) */
    /* DO NOT add new transform properties */
}

.custom-hotspot.scene-hotspot:active {
    opacity: 0.9 !important;
    /* Keep position stable */
}

/* Pulse animation for ring - NO transform to preserve positioning! */
@keyframes kc360-scenePulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 255, 255, 0.6),
            0 0 40px rgba(255, 255, 255, 0.4),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.95);
        opacity: 0.95;
    }
    50% {
        box-shadow: 
            0 0 30px rgba(250, 178, 48, 0.9),   /* Gold glow at peak */
            0 0 60px rgba(250, 178, 48, 0.6),
            0 0 80px rgba(250, 178, 48, 0.3),
            inset 0 0 30px rgba(250, 178, 48, 0.2);
        border-color: rgba(250, 178, 48, 1);  /* Gold border at peak */
        opacity: 1;
    }
}

/* Hotspot Tooltip */
.hotspot-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(1, 11, 19, 0.95);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1001;
}

.custom-hotspot:hover .hotspot-tooltip {
    opacity: 1;
}

/* CRITICAL: Lock hotspot transforms - prevent ANY changes after initial positioning */
.custom-hotspot,
.custom-hotspot:hover,
.custom-hotspot:active,
.custom-hotspot:focus,
.custom-hotspot.clicked {
    /* Transition only opacity and border - NEVER transform */
    transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease !important;
}

/* Only allow transform on child elements (like icons), not the hotspot container */
.custom-hotspot::before,
.custom-hotspot::after {
    /* Icons can transform */
    transition: transform 0.3s ease, opacity 0.2s ease !important;
}

/* FORCE OVERRIDE Pannellum defaults */
.pnlm-hotspot .pnlm-tooltip {
    display: none !important;
}

/* Hidden state for hotspots - Override ALL visibility */
.custom-hotspot.kc360-hidden,
.pnlm-hotspot.kc360-hidden {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-hotspot.info-hotspot {
        width: 35px !important;
        height: 35px !important;
    }
    
    .custom-hotspot.scene-hotspot {
        width: 55px !important;
        height: 55px !important;
    }
    
    .custom-hotspot.info-hotspot::before {
        width: 25px !important;
        height: 25px !important;
    }
    
    .custom-hotspot.scene-hotspot::before {
        width: 38px !important;
        height: 38px !important;
    }
}

@media (max-width: 480px) {
    .custom-hotspot.info-hotspot {
        width: 25px !important;
        height: 25px !important;
    }
    
    .custom-hotspot.scene-hotspot {
        width: 40px !important;
        height: 40px !important;
    }
    
    .custom-hotspot.info-hotspot::before {
        width: 18px !important;
        height: 18px !important;
    }
    
    .custom-hotspot.scene-hotspot::before {
        width: 40px !important;
        height: 40px !important;
    }
}
/* ============================================================
   FIXED SCENE HOTSPOT - WHITE RING & WIDE GLOW (SAFE POSITION)
   Ganti kode mulai baris ~1056 sampai sebelum /* Hotspot Tooltip */
/*   ============================================================ */

/* 1. CONTAINER UTAMA (JANGKAR)
   Hanya sebagai titik koordinat. TIDAK BOLEH ada animasi transform di sini.
*/
.custom-hotspot.scene-hotspot,
.pnlm-hotspot.custom-hotspot.scene-hotspot {
    width: 50px !important;
    height: 50px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    
    /* PENTING: Agar efek glow yang melebar bisa terlihat keluar kotak */
    overflow: visible !important; 
    
    animation: none !important;
    transform-style: flat !important;
    opacity: 1 !important;
    /* Display: flex digunakan untuk centering jika ada icon di tengah */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 2. AKTIFKAN KEMBALI PSEUDO-ELEMENTS */
.custom-hotspot.scene-hotspot::before,
.custom-hotspot.scene-hotspot::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    border-radius: 50% !important;
    pointer-events: none !important; /* Agar klik tembus ke parent */
}

/* 3. LAYER 1: CINCIN PUTIH (BORDER) - Ditetapkan ukurannya ke 100% dari parent */
.custom-hotspot.scene-hotspot::before {
    z-index: 2;
    /* Dibuat ukurannya sama persis dengan parent */
    top: 0; left: 0; right: 0; bottom: 0; 
    
    border: 4px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 0 5px rgba(0,0,0,0.3) !important;
    box-sizing: border-box !important;
    background: transparent !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* 4. LAYER 2: ANIMASI PULSE (GLOW) - Dibuat sedikit lebih besar dari parent */
.custom-hotspot.scene-hotspot::after {
    z-index: 1;
    /* Dibuat 10px lebih besar dari parent agar selalu di luar border */
    top: -5px; left: -5px; right: -5px; bottom: -5px; 
    
    /* Glow Putih Transparan */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%) !important;
    
    animation: kc360-wide-pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1) !important;
    transform: scale(1);
}

/* 5. EFEK HOVER - BERPENDAR LEBAR & JELAS */
.custom-hotspot.scene-hotspot:hover::before {
    border-color: #FAB230 !important;
    background: rgba(250, 178, 48, 0.1) !important;
    transform: scale(1.1); 
    box-shadow: 0 0 20px rgba(250, 178, 48, 0.8), inset 0 0 10px rgba(250, 178, 48, 0.5) !important;
}

.custom-hotspot.scene-hotspot:hover::after {
    animation: none !important;
    /* Melebar drastis (1.8x lipat) */
    transform: scale(1.8) !important; 
    opacity: 1 !important;
    /* Glow Gold yang lembut tapi luas */
    background: radial-gradient(circle, rgba(250, 178, 48, 0.4) 0%, rgba(250, 178, 48, 0) 70%) !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* 6. KEYFRAMES ANIMASI PULSE */
@keyframes kc360-wide-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Tablet / Mobile Besar (768px ke bawah) */
@media (max-width: 768px) {
    .custom-hotspot.scene-hotspot,
    .pnlm-hotspot.custom-hotspot.scene-hotspot {
        width: 55px !important;
        height: 55px !important;
    }
    
    .custom-hotspot.scene-hotspot span.icon {
        width: 25px; /* Disesuaikan dengan ukuran 55px */
        height: 25px;
    }
    
    .custom-hotspot.scene-hotspot::after {
        top: -5px !important; 
        left: -5px !important; 
        right: -5px !important; 
        bottom: -5px !important; 
    }
}

/* ============================================================
   RESPONSIVE (Perbaikan untuk 480px)
   ============================================================ */

@media (max-width: 480px) {
    /* Ukuran utama hotspot di Mobile (diambil dari kode lama kamu) */
    .custom-hotspot.scene-hotspot,
    .pnlm-hotspot.custom-hotspot.scene-hotspot {
        width: 40px !important; 
        height: 40px !important;
    }
    
    /* Icon Tengah (agar tidak terlalu besar/kecil di mobile) */
    .custom-hotspot.scene-hotspot span.icon {
        width: 38px; /* Dikecilkan dari 22px desktop */
        height: 38px;
    }
    
    /* Sesuaikan ukuran ::before (Ring Border) agar sesuai 40px */
    .custom-hotspot.scene-hotspot::before {
        border-width: 3px !important; /* Border dibuat lebih tipis */
    }
    
    /* Sesuaikan ukuran ::after (Glow) agar tetap luas dan tidak terpotong */
    .custom-hotspot.scene-hotspot::after {
        /* Sekarang glow 8px lebih besar (top: -4px, left: -4px) dari 40px */
        top: -4px !important; 
        left: -4px !important; 
        right: -4px !important; 
        bottom: -4px !important; 
    }
    
    .custom-hotspot.scene-hotspot::before {
        box-shadow: 0 0 25px rgba(0,0,0,0.3) !important;
    }
    
    /* Sesuaikan hover glow agar tetap luas */
    .custom-hotspot.scene-hotspot:hover::after {
        transform: scale(2.0) !important; /* Bikin lebih lebar lagi di mobile */
    }
}

/* ========================================
   SCENE HOTSPOT WITH ICON - v2.3 Icon Picker
   TAMBAHKAN DI AKHIR FILE (setelah semua kode scene-hotspot yang ada)
   ======================================== */

/* Scene Hotspot DENGAN Icon (Preset atau Custom)
   Background jadi putih, icon visible di tengah
*/
.custom-hotspot.scene-hotspot.has-preset-icon,
.custom-hotspot.scene-hotspot.has-custom-icon {
    background: rgba(255, 255, 255, 0.95) !important;
    /* Override transparent background */
}

/* Icon Content - Preset (Bootstrap Icons) */
.custom-hotspot.scene-hotspot.has-preset-icon i {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    z-index: 10;
    position: relative;
}

/* Icon Content - Custom Upload (Image) */
.custom-hotspot.scene-hotspot.has-custom-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    z-index: 10;
    position: relative;
    font-weight: 700;
}

/* SVG inline icon */
.kc360-hs-icon .kc360-hs-svg{
  width: 22px;
  height: 22px;
  display: block;
}

/* Kalau SVG stroke-based */
.kc360-hs-icon .kc360-hs-svg *{
  vector-effect: non-scaling-stroke;
}

/* Pulse Animation untuk Hotspot dengan Icon
   Border & glow jadi gold/orange
*/
.custom-hotspot.scene-hotspot.has-preset-icon::before,
.custom-hotspot.scene-hotspot.has-custom-icon::before {
    border-color: rgba(250, 178, 48, 0.9) !important;
}

.custom-hotspot.scene-hotspot.has-preset-icon::after,
.custom-hotspot.scene-hotspot.has-custom-icon::after {
    background: radial-gradient(circle, rgba(250, 178, 48, 0.5) 0%, rgba(250, 178, 48, 0) 70%) !important;
}

/* Hover effect untuk hotspot dengan icon */
.custom-hotspot.scene-hotspot.has-preset-icon:hover::before,
.custom-hotspot.scene-hotspot.has-custom-icon:hover::before {
    border-color: #FAB230 !important;
    background: rgba(250, 178, 48, 0.2) !important;
}

.custom-hotspot.scene-hotspot.has-preset-icon:hover::after,
.custom-hotspot.scene-hotspot.has-custom-icon:hover::after {
    background: radial-gradient(circle, rgba(250, 178, 48, 0.6) 0%, rgba(250, 178, 48, 0) 70%) !important;
}

/* ========================================
   RESPONSIVE - Icon Hotspot di Mobile
   ======================================== */

@media (max-width: 768px) {
    .custom-hotspot.scene-hotspot.has-preset-icon i {
        font-size: 22px;
    }
    
    .custom-hotspot.scene-hotspot.has-custom-icon img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .custom-hotspot.scene-hotspot.has-preset-icon i {
        font-size: 20px;
    }
    
    .custom-hotspot.scene-hotspot.has-custom-icon img {
        width: 26px;
        height: 26px;
    }
}

/* ============================================================
   KC360 Scene Navigator - CSS FIX v2.15
   FIXES:
   - Image loading placeholder
   - Better performance on mobile
   - Reduced animations for low-end devices
   - Fixed visibility issues
   ============================================================ */

/* ========================================
   SCENE NAVIGATOR/MINIMAP - FIXED
   ======================================== */

.kc360-minimap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 150;
    background: rgba(1, 11, 19, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-width: 400px;
    width: calc(100vw - 40px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* GPU acceleration */
    will-change: transform, opacity;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.kc360-minimap.show {
    opacity: 1;
    transform: translateY(0);
}

.kc360-minimap.collapsed .kc360-minimap-content {
    max-height: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
}

.kc360-minimap.collapsed .kc360-minimap-toggle i {
    transform: rotate(-180deg);
}

.kc360-minimap-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.kc360-minimap-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kc360-minimap-title i {
    font-size: 18px;
    color: #FAB230;
}

.kc360-minimap-toggle {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.kc360-minimap-toggle:hover {
    background: #FAB230;
    transform: scale(1.1);
}

.kc360-minimap-toggle i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.kc360-minimap-content {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    transition: max-height 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
    -webkit-overflow-scrolling: touch;
}

.kc360-minimap-content::-webkit-scrollbar {
    width: 6px;
}

.kc360-minimap-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.kc360-minimap-content::-webkit-scrollbar-thumb {
    background: rgba(250, 178, 48, 0.5);
    border-radius: 3px;
}

.kc360-minimap-content::-webkit-scrollbar-thumb:hover {
    background: #FAB230;
}

.kc360-minimap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    /* Layout containment for performance */
    contain: layout style;
}

.kc360-minimap-scene {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    /* GPU acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
}

/* Gradient overlay on hover */
.kc360-minimap-scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(1, 11, 19, 0.8) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.kc360-minimap-scene:hover::before {
    opacity: 1;
}

/* Image styling - FIXED for visibility */
.kc360-minimap-scene img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    /* Fallback background color */
    background-color: #222;
    /* Better image rendering */
    image-rendering: -webkit-optimize-contrast;
}

.kc360-minimap-scene:hover img {
    transform: scale(1.05);
}

/* Scene name label */
.kc360-minimap-scene-name {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    pointer-events: none;
    /* Truncate long names */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kc360-minimap-scene:hover .kc360-minimap-scene-name {
    opacity: 1;
    transform: translateY(0);
}

/* Active Scene */
.kc360-minimap-scene.active {
    border-color: #FAB230;
    box-shadow: 0 0 0 3px rgba(250, 178, 48, 0.3);
    transform: scale(1.02);
}

.kc360-minimap-scene.active .kc360-minimap-scene-name {
    opacity: 1;
    transform: translateY(0);
    color: #FAB230;
}

/* Visited Scene Badge */
.kc360-minimap-scene.visited::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background: rgba(13, 144, 207, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ========================================
   AUTO HIDE UI (DESKTOP & MOBILE)
   ======================================== */
body.kc360-ui-idle .kc360-controls,
body.kc360-ui-idle .kc360-footer,
body.kc360-ui-idle .kc360-minimap {
    opacity: 0;
    pointer-events: none;
}

/* Tapi kalau Scene Navigator sedang dibuka, jangan disembunyikan */
body.kc360-ui-idle.kc360-minimap-open .kc360-minimap {
    opacity: 1;
    pointer-events: auto;
}

/* ========================================
   MOBILE OPTIMIZATIONS - CLEAN UI
   ======================================== */
@media (max-width: 768px) {

    /* Footer lebih tipis & satu baris */
    .kc360-footer {
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
        padding: 6px 14px;
        font-size: 11px;
        border-radius: 999px;
        max-width: calc(100vw - 40px);
        text-align: center;
    }

    .kc360-footer br {
        display: none; /* jadi satu baris */
    }

    /* Control bar sedikit naik dan lebih rapat */
    .kc360-controls {
        bottom: 70px;
        padding: 8px 10px;
        gap: 6px;
    }

    .kc360-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    /* Base minimap di mobile */
    .kc360-minimap {
        z-index: 95 !important;
    }

    /* COLLAPSED: jadi ikon bulat kecil di kanan atas (dekat menu) */
    .kc360-minimap.collapsed {
        top: 82px;
        right: 14px;
        left: auto;
        bottom: auto !important;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 999px;
        background: rgba(1, 11, 19, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .kc360-minimap.collapsed .kc360-minimap-header {
        padding: 0;
        justify-content: center;
    }

    .kc360-minimap.collapsed .kc360-minimap-title i {
        margin-right: 0;
        font-size: 20px;
    }

    .kc360-minimap.collapsed .kc360-minimap-title span {
        display: none; /* hide text "Scene Navigator" di mobile */
    }

    .kc360-minimap.collapsed .kc360-minimap-toggle {
        display: none; /* seluruh bulatan jadi tombol, chevron tidak perlu */
    }

    .kc360-minimap.collapsed .kc360-minimap-content {
        max-height: 0;
        padding: 0;
        opacity: 0;
        overflow: hidden;
    }

    /* OPEN: Scene Navigator jadi drawer dari bawah */
    body.kc360-minimap-open .kc360-minimap {
        top: auto;
        right: 10px;
        left: 10px;
        bottom: 20px !important;
        width: auto;
        max-width: calc(100vw - 20px);
        border-radius: 18px;
        padding: 10px 12px;
        background: rgba(1, 11, 19, 0.98);
    }

    body.kc360-minimap-open .kc360-minimap-header {
        padding-bottom: 8px;
    }

    body.kc360-minimap-open .kc360-minimap-title span {
        display: inline;
    }

    body.kc360-minimap-open .kc360-minimap-toggle {
        display: inline-flex;
    }

    body.kc360-minimap-open .kc360-minimap-content {
        max-height: 55vh;
        padding: 8px 0 0;
        opacity: 1;
    }

    /* Saat Scene Navigator dibuka: sembunyikan controls & footer */
    body.kc360-minimap-open .kc360-controls,
    body.kc360-minimap-open .kc360-footer {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 480px) {
    .kc360-minimap {
        bottom: 170px !important;
        right: 5px;
        left: 5px;
        max-width: calc(100vw - 10px);
    }
    
    .kc360-minimap-header {
        padding: 12px 15px;
    }
    
    .kc360-minimap-title {
        font-size: 13px;
    }
    
    .kc360-minimap-content {
        max-height: 160px;
        padding: 10px;
    }
    
    .kc360-minimap-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 6px;
    }
    
    .kc360-minimap-scene-name {
        font-size: 8px;
    }
    
    .kc360-minimap-scene.visited::after {
        width: 14px;
        height: 14px;
        font-size: 8px;
    }
}

/* ========================================
   LOW PERFORMANCE MODE
   ======================================== */

/* For low-end devices (set via JS) */
body.low-performance .kc360-minimap {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.low-performance .kc360-minimap-scene {
    transition: none !important;
}

body.low-performance .kc360-minimap-scene::before {
    display: none;
}

body.low-performance .kc360-minimap-scene img {
    transition: none !important;
}

body.low-performance .kc360-minimap-scene:hover img {
    transform: none !important;
}

/* ========================================
   LANDSCAPE ORIENTATION
   ======================================== */

@media (max-width: 768px) and (orientation: landscape) {
    .kc360-minimap {
        bottom: 80px !important;
        max-height: 50vh;
        right: 10px;
        left: auto;
        width: 280px;
    }
    
    .kc360-minimap-content {
        max-height: 35vh;
    }
}

/* ========================================
   SAFE AREA (iPhone X+)
   ======================================== */

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 768px) {
        .kc360-minimap {
            bottom: calc(160px + env(safe-area-inset-bottom)) !important;
        }
    }
    
    @media (max-width: 480px) {
        .kc360-minimap {
            bottom: calc(170px + env(safe-area-inset-bottom)) !important;
        }
    }
}

/* ========================================
   LOADING PLACEHOLDER FOR IMAGES
   ======================================== */

/* Placeholder while image loads */
.kc360-minimap-scene img[src^="data:image/svg"] {
    background: linear-gradient(135deg, #333 0%, #444 50%, #333 100%);
    background-size: 200% 200%;
    animation: minimap-placeholder-shimmer 1.5s ease-in-out infinite;
}

@keyframes minimap-placeholder-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Disable shimmer on low-performance */
body.low-performance .kc360-minimap-scene img[src^="data:image/svg"] {
    animation: none;
    background: #333;
}

/* ========================================
   MOBILE OPTIMIZED CLASS
   ======================================== */

.kc360-minimap.mobile-optimized {
    /* Additional mobile-specific optimizations */
}

.kc360-minimap.mobile-optimized .kc360-minimap-scene::before {
    opacity: 1;
}

.kc360-minimap.mobile-optimized .kc360-minimap-scene-name {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   DEBUG: Visual Verification (Remove in production)
   ======================================== */
/*
.kc360-minimap {
    outline: 2px solid red !important;
}

.kc360-controls {
    outline: 2px solid blue !important;
}

.kc360-footer {
    outline: 2px solid green !important;
}
*/


/* ========================================
   #2: SCENE TRANSITIONS
   ======================================== */

#kc360-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(1, 11, 19, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    will-change: opacity;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

#kc360-transition-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.25s ease;
}


.kc360-transition-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #FAB230;
    border-radius: 50%;
    animation: kc360-spin 1s linear infinite;
}

@keyframes kc360-spin {
    to { transform: rotate(360deg); }
}

.kc360-transition-text {
    margin-top: 20px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    opacity: 0.8;
}

/* Blur effect on panorama during transition */
#kc360-panorama.transitioning {
    filter: blur(10px);
    transition: filter 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .kc360-transition-spinner { animation: none; }
    #kc360-panorama.transitioning { filter: none; }
}

/* ========================================
   #3: FIRST VISIT TUTORIAL
   ======================================== */

#kc360-tutorial {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(1, 11, 19, 0.98);
    backdrop-filter: blur(20px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#kc360-tutorial.active {
    display: flex;
    opacity: 1;
}

.kc360-tutorial-content {
    background: linear-gradient(135deg, rgba(13, 144, 207, 0.1), rgba(250, 178, 48, 0.1));
    border: 2px solid rgba(250, 178, 48, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: kc360-tutorialSlideUp 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes kc360-tutorialSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kc360-tutorial-header {
    text-align: center;
    margin-bottom: 30px;
}

.kc360-tutorial-logo {
    font-size: 48px;
    margin-bottom: 15px;
}

.kc360-tutorial-header h2 {
    font-size: 28px;
    color: #FAB230;
    margin: 0 0 10px 0;
}

.kc360-tutorial-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.kc360-tutorial-steps {
    margin: 30px 0;
}

.kc360-tutorial-step {
    display: none;
    animation: kc360-fadeSlide 0.4s ease;
}

.kc360-tutorial-step.active {
    display: block;
}

@keyframes kc360-fadeSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.kc360-tutorial-step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(250, 178, 48, 0.2);
    border: 3px solid #FAB230;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.kc360-tutorial-step h3 {
    text-align: center;
    color: #fff;
    font-size: 22px;
    margin: 0 0 15px 0;
}

.kc360-tutorial-step p {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 15px;
}

.kc360-tutorial-step ul {
    margin: 15px 0;
    padding-left: 0;
    list-style: none;
}

.kc360-tutorial-step li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.kc360-tutorial-step li::before {
    content: '✓';
    width: 20px;
    height: 20px;
    background: rgba(13, 144, 207, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #0D90CF;
    flex-shrink: 0;
}

.kc360-tutorial-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.kc360-tutorial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.kc360-tutorial-dot.active {
    background: #FAB230;
    width: 30px;
    border-radius: 5px;
}

.kc360-tutorial-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.kc360-tutorial-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.kc360-tutorial-btn-skip {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.kc360-tutorial-btn-skip:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.kc360-tutorial-btn-next {
    background: linear-gradient(135deg, #FAB230, #0D90CF);
    color: #fff;
    box-shadow: 0 4px 15px rgba(250, 178, 48, 0.4);
}

.kc360-tutorial-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 178, 48, 0.6);
}

.kc360-tutorial-btn-next:active {
    transform: translateY(0);
}

/* Mobile Tutorial */
@media (max-width: 768px) {
    .kc360-tutorial-content {
        padding: 30px 25px;
    }
    
    .kc360-tutorial-header h2 {
        font-size: 24px;
    }
    
    .kc360-tutorial-step-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .kc360-tutorial-step h3 {
        font-size: 18px;
    }
    
    .kc360-tutorial-step p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .kc360-tutorial-content {
        padding: 25px 20px;
    }
    
    .kc360-tutorial-buttons {
        flex-direction: column;
    }
    
    .kc360-tutorial-btn {
        width: 100%;
    }
}

/* ========================================
   ANIMATIONS & UTILITIES
   ======================================== */

/* Fade animations for smooth transitions */
@keyframes kc360-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes kc360-fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Ensure tutorial appears above everything */
#kc360-tutorial {
    z-index: 10001 !important;
}

/* Prevent scrolling when tutorial is active */
body.tutorial-active {
    overflow: hidden;
}

/* Language Toggle Buttons */
.kc360-tutorial-language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.kc360-lang-btn {
    padding: 8px 16px;
    border: 2px solid rgba(250, 178, 48, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.kc360-lang-btn:hover {
    background: rgba(250, 178, 48, 0.1);
    border-color: rgba(250, 178, 48, 0.6);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.kc360-lang-btn.active {
    background: linear-gradient(135deg, #FAB230, #0D90CF);
    border-color: #FAB230;
    color: #fff;
    box-shadow: 0 4px 12px rgba(250, 178, 48, 0.4);
}

.kc360-lang-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(250, 178, 48, 0.6);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .kc360-tutorial-language-toggle {
        top: 15px;
        right: 15px;
        gap: 6px;
    }
    
    .kc360-lang-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .kc360-tutorial-language-toggle {
        position: static;
        justify-content: center;
        margin-top: 15px;
    }
    
    .kc360-lang-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Animation for language switch */
.kc360-tutorial-step {
    animation: kc360-fadeSlide 0.4s ease;
}

@keyframes kc360-fadeSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Ensure header has space for language buttons */
.kc360-tutorial-header {
    position: relative;
    padding-right: 140px; /* Space for language buttons */
}

@media (max-width: 480px) {
    .kc360-tutorial-header {
        padding-right: 20px; /* Reset on mobile */
    }
}

/* Social Media Links */
.kc360-social-media {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.kc360-social-media h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #010B13;
}

.kc360-social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.kc360-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
}

.kc360-social-link i {
    font-size: 18px;
    width: 18px;
    text-align: center;
}

/* Brand Colors */
.kc360-social-link.instagram {
    color: #E4405F;
    border-color: #E4405F;
    background: rgba(228, 64, 95, 0.1);
}

.kc360-social-link.instagram:hover {
    background: #E4405F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.3);
}

.kc360-social-link.facebook {
    color: #1877F2;
    border-color: #1877F2;
    background: rgba(24, 119, 242, 0.1);
}

.kc360-social-link.facebook:hover {
    background: #1877F2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.kc360-social-link.tiktok {
    color: #000000;
    border-color: #000000;
    background: rgba(0, 0, 0, 0.1);
}

.kc360-social-link.tiktok:hover {
    background: #000000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.kc360-social-link.youtube {
    color: #FF0000;
    border-color: #FF0000;
    background: rgba(255, 0, 0, 0.1);
}

.kc360-social-link.youtube:hover {
    background: #FF0000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .kc360-social-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .kc360-social-link {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .kc360-social-link i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .kc360-social-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    
    .kc360-social-link {
        justify-content: center;
    }
    
    .kc360-social-link span {
        display: none;
    }
    
    .kc360-social-link i {
        font-size: 20px;
    }
}

/* Override: matikan auto-hide untuk UI */
body.kc360-ui-idle .kc360-controls,
body.kc360-ui-idle .kc360-footer,
body.kc360-ui-idle .kc360-minimap {
    opacity: 1;
    pointer-events: auto;
}

/* Toggle kecil di bawah untuk sembunyikan / tampilkan UI */
.kc360-ui-toggle {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 160;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(1, 11, 19, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    transition: background 0.2s ease, transform 0.2s ease;
}

.kc360-ui-toggle:hover {
    background: #0D90CF;
    transform: translateX(-50%) translateY(-2px);
}

/* Saat UI disembunyikan */
body.kc360-ui-hidden .kc360-controls,
body.kc360-ui-hidden .kc360-footer,
body.kc360-ui-hidden .kc360-minimap {
    opacity: 0;
    pointer-events: none;
}

/* Toggle tetap terlihat, ikon mengarah ke atas */
body.kc360-ui-hidden #kc360-ui-toggle i {
    transform: rotate(180deg);
}

/* Mobile – naik sedikit supaya tidak menabrak safe area */
@media (max-width: 768px) {
    .kc360-ui-toggle {
        bottom: 14px;
        width: 34px;
        height: 34px;
    }
}

/* Hard hide label text ketika minimap collapsed (semua viewport) */
.kc360-minimap.collapsed .kc360-minimap-label {
    display: none;
}

/* Pastikan ikon tetap kelihatan dan pas */
.kc360-minimap.collapsed .kc360-minimap-title {
    font-size: 0;          /* buang lebar teks ghost */
}

.kc360-minimap.collapsed .kc360-minimap-title i {
    font-size: 20px;       
    text-align: center;
}


.kc360-minimap.collapsed {
        display: none !important;
    }

#kc360-vr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}
#kc360-vr-overlay.kc360-vr-show { display: flex; }

.kc360-vr-modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 20px 18px 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
    position: relative;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.kc360-vr-close {
    position: absolute;
    right: 14px;
    top: 10px;
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.kc360-vr-modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.kc360-vr-cardboard-icon {
    width: 40px;
    height: 26px;
    border-radius: 6px;
    background: #f97316;
    position: relative;
}
.kc360-vr-eyes::before,
.kc360-vr-eyes::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #fff;
    transform: translateY(-50%);
}
.kc360-vr-eyes::before { left: 9px; }
.kc360-vr-eyes::after  { right: 9px; }

.kc360-vr-title { font-weight: 600; font-size: 18px; color: #111827; }

.kc360-vr-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 6px;
}
.kc360-vr-text-en {
    font-size: 12px;
    color: #6b7280;
}

.kc360-vr-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 10px;
}

.kc360-vr-separator {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

.kc360-vr-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}
.kc360-vr-btn-primary {
    background: #0284c7;
    color: #fff;
}
.kc360-vr-btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.kc360-vr-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}
.kc360-vr-footer input {
    width: 14px;
    height: 14px;
}

/* ========================================
   VR Immersive Mode (Gyro + Clean UI)
   ======================================== */

.kc360-body.kc360-vr-active {
    background: #000;
    overscroll-behavior: contain;
}

/* Sembunyikan semua UI saat VR aktif */
.kc360-vr-active .kc360-logo,
.kc360-vr-active .kc360-controls,
.kc360-vr-active #kc360-ui-toggle,
.kc360-vr-active #kc360-sidebar-toggle,
.kc360-vr-active #kc360-sidebar,
.kc360-vr-active .kc360-minimap,
.kc360-vr-active .kc360-footer,
.kc360-vr-active .kc360-scene-navigator-wrapper,
.kc360-vr-active .kc360-scene-navigator,
.kc360-vr-active .kc360-scene-badge {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
}

/* Pastikan panorama full screen bersih di atas background hitam */
.kc360-vr-active #kc360-panorama {
    background: #000;
    transform: none;
}

/* Garis pemisah sederhana di tengah (portrait) ala dua layar */
@media (orientation: portrait) {
    .kc360-vr-active #kc360-panorama {
        position: fixed;
        inset: 0;
    }

    .kc360-vr-active #kc360-panorama::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 2px;
        background: rgba(255, 255, 255, 0.4);
        pointer-events: none;
        z-index: 5;
    }
}

/* Opsional: kalau mau sedikit black-bar atas bawah */
.kc360-vr-active #kc360-panorama::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    box-shadow:
        0 32px 0 0 #000,
        0 -32px 0 0 #000;
    pointer-events: none;
    z-index: 4;
}

/* Tombol keluar dari mode VR */
#kc360-vr-exit {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: none;
    color: #f9fafb;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

#kc360-vr-exit span {
    font-size: 20px;
    line-height: 1;
}

/* Hanya tampil saat VR aktif */
.kc360-vr-active #kc360-vr-exit.kc360-vr-exit-visible {
    display: flex;
}

/* ========================================
   UI TOGGLE (Show / Hide Controls + Footer + Minimap)
   ======================================== */

.kc360-ui-toggle {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    z-index: 96;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(3, 10, 18, 0.9);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.kc360-ui-toggle i {
    font-size: 16px;
    line-height: 1;
}

/* default: panah ke bawah yang kelihatan */
.kc360-ui-toggle .kc360-ui-toggle-up {
    display: none;
}

/* saat UI disembunyikan, ganti ikon jadi panah ke atas */
body.kc360-ui-hidden .kc360-ui-toggle .kc360-ui-toggle-down {
    display: none;
}
body.kc360-ui-hidden .kc360-ui-toggle .kc360-ui-toggle-up {
    display: inline-block;
}

/* Efek sembunyikan UI: controls + footer + minimap geser turun */
body.kc360-ui-hidden .kc360-controls,
body.kc360-ui-hidden .kc360-footer,
body.kc360-ui-hidden .kc360-minimap {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

/* Sedikit adaptasi untuk mobile biar tidak nabrak safe area */
@media (max-width: 768px) {
    .kc360-ui-toggle {
        bottom: calc(4px + env(safe-area-inset-bottom, 0px));
        padding: 4px 12px;
        font-size: 11px;
    }
}

/* =========================================
   3D-Vista style bottom compact controls
   ========================================= */

.kc360-controls {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    min-width: 480px;           /* ⬅️ lebih lebar */
    max-width: 640px;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.7));
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    z-index: 40;
}

.kc360-controls-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.kc360-controls-section-left,
.kc360-controls-section-right {
    flex: 0 0 auto;
}

.kc360-controls-section-center {
    flex: 1 1 auto;
    min-width: 220px;
}

/* Variasi button */
.kc360-btn-ghost {
    background: transparent;
    box-shadow: none;
    border-radius: 999px;
}

.kc360-btn-ghost i {
    font-size: 1.3rem;
}

.kc360-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-inline: 14px;
    border-radius: 999px;
    font-size: 1.1rem;
    white-space: nowrap;
}

.kc360-btn-pill .kc360-scenes-label {
    opacity: 0.75;
}

/* Panel tools (muncul setelah gear diklik) */
.kc360-tools-panel {
    position: fixed;
    width: min(520px, calc(100vw - 24px));
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%) translateY(8px);
    padding: 12px 16px 10px;
    background: rgba(15, 23, 42, 0.94);
    border-radius: 22px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.45);
    display: none; /* ⬅️ default: benar-benar tersembunyi */
    grid-template-columns: repeat(6, minmax(0, 46px));
    gap: 10px 14px;
    align-items: center;
    justify-items: center;
    z-index: 45;
}

.kc360-tools-panel.open {
    display: grid; /* ⬅️ baru muncul kalau class .open ada */
}

.kc360-tools-panel .kc360-btn {
    background: transparent;
    box-shadow: none;
    width: 46px;
    height: 46px;
    border-radius: 999px;
}

.kc360-tools-panel .kc360-btn i {
    font-size: 1.25rem;
}

/* Brand kecil di dalam panel tools */
.kc360-tools-brand {
    grid-column: 1 / -1;
    margin-top: 4px;
    font-size: 10px; /* ⬅️ diperkecil */
    color: rgba(148, 163, 184, 0.9);
    text-align: center;
}

.kc360-tools-brand{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kc360-tools-brand a {
    color: #fbbf24;
    text-decoration: none;
}
/* Gallery toggle */
.kc360-gallery-toggle i {
    font-size: 1.25rem;
}

.kc360-tools-panel .kc360-btn{
  padding: 0;
  line-height: 1;
  aspect-ratio: 1 / 1;
}

/* Mobile: background bar transparan, icon lebih ringan */
@media (max-width: 768px) {
    /* Bottom bar full width, transparan */
    .kc360-controls {
        left: 50%;
        transform: translateX(-50%);
        bottom: 18px;
        width: calc(100% - 24px);
        min-width: 0;
        max-width: none;
        padding: 8px 10px;
        background: transparent; /* ⬅️ sesuai permintaan: transparan */
        box-shadow: none;
    }

    .kc360-controls-section-center {
        min-width: 0;
    }

    .kc360-btn-pill {
        padding-inline: 10px;
        font-size: 12px;
    }

    /* Panel tools full width */
    .kc360-tools-panel {
        left: 50%;
        bottom: 80px;
        width: calc(100% - 24px);
        max-width: none;
        transform: translateX(-50%);
        border-radius: 20px;
        background: rgba(15, 23, 42, 0.96);
        grid-template-columns: repeat(5, minmax(0, 48px));
        gap: 10px 12px;
    }

    .kc360-tools-panel .kc360-btn {
        width: 48px;
        height: 48px;
    }

    .kc360-tools-brand {
        font-size: 10px;
    }
}

.kc360-info-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.kc360-info-footer p {
    margin: 4px 0;
}

/* ================================
   Overlay text list "Daftar Scene"
   ================================ */

.kc360-scene-list-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 60;
}

.kc360-scene-list-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.kc360-scene-list-panel {
    width: min(440px, 100% - 32px);
    max-height: 70vh;
    background: rgba(15, 23, 42, 1);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.kc360-scene-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
    background: linear-gradient(to right, #0f172a, #020617);
}

.kc360-scene-list-header button {
    background: transparent;
    border: none;
    color: #e5e7eb;
    cursor: pointer;
}

.kc360-scene-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    overflow-y: auto;
}

.kc360-scene-list li {
    padding: 8px 18px;
    font-size: 14px;
    color: #e5e7eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kc360-scene-list li + li {
    border-top: 1px solid rgba(30, 64, 175, 0.28);
}

.kc360-scene-list li:hover {
    background: rgba(30, 64, 175, 0.35);
}

.kc360-scene-list li.kc360-scene-active {
    background: rgba(30, 64, 175, 0.55);
    font-weight: 600;
}

.kc360-scene-list li span.kc360-scene-index {
    opacity: 0.6;
    font-size: 12px;
    margin-right: 6px;
}

@media (max-width: 768px) {
    .kc360-scene-list-panel {
        width: calc(100% - 16px);
        max-height: 80vh;
        border-radius: 18px;
    }

    .kc360-scene-list li {
        padding: 10px 18px;
        font-size: 13px;
    }
}

.kc360-scenes-toggle,
.kc360-scenes-toggle:focus,
.kc360-scenes-toggle:hover {
    color: #e5e7eb;              /* teks terang */
    background: rgba(15, 23, 42, 0.9);
}

.kc360-scenes-toggle .kc360-scenes-label {
    opacity: 0.8;
}

.kc360-scenes-toggle:hover .kc360-scenes-label,
.kc360-scenes-toggle:hover #kc360-scenes-current {
    opacity: 1;
}

:root{
  --kc-accent: #0D90CF;
  --kc-accent-2:#FAB230;
  --kc-bg: rgba(1,11,19,.94);
}

/* 1) Matikan footer tengah (kita pindah ke sidebar) */
.kc360-footer{ display:none !important; }

/* 2) Perbaiki lapisan/z-index supaya UI tidak tumpuk */
.kc360-controls{ z-index: 100 !important; }
.kc360-minimap{ z-index: 95 !important; }
#kc360-tools-panel{ z-index: 96 !important; }
.kc360-logo{ z-index: 97 !important; }

/* 3) State tombol: hover/active kontras di background gelap */
.kc360-btn{
  background: rgba(255,255,255,.07);
  color:#fff;
  border: 1px solid rgba(255,255,255,.08);
  transition: all .2s ease;
}
.kc360-btn:hover{
  background: rgba(255,255,255,.16);
  transform: translateY(-1px);
}
.kc360-btn.active,
.kc360-btn:active{
  background: var(--kc-accent) !important;
  color:#fff !important;
  border-color: rgba(13,144,207,.35) !important;
  box-shadow: 0 0 0 2px rgba(13,144,207,.25);
}

/* 4) Panel tools yang muncul saat gear diklik */
#kc360-tools-panel{
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  background:rgba(36, 36, 37, 0.44);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 10px 14px;
  display: none;
  gap: 10px;
  align-items: center;
}
#kc360-tools-panel.open{ display: flex; }

/* 5) Scene Overlay di tengah (grid thumbnail) */
.kc360-scene-overlay{
  position: fixed; inset:0; display:none;
  background: rgba(1,11,19,.85);
  z-index: 9990;
}
.kc360-scene-overlay.active{ display:block; }
.kc360-scene-overlay-inner{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:min(1100px,92vw); max-height:80vh; overflow:auto;
  background:#0b1720; border:1px solid rgba(255,255,255,.08);
  border-radius:18px; padding:16px;
}
.kc360-scene-header{
  display:flex; justify-content:space-between; align-items:center;
  padding: 6px 6px 12px 6px; color:#fff;
}
.kc360-scene-close{
  width:36px; height:36px; border-radius:8px; border:none;
  background: rgba(255,255,255,.08); color:#fff; cursor:pointer;
}
.kc360-scene-grid{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:12px;
}
.kc360-scene-card{
  display:flex; flex-direction:column; gap:8px; text-align:left;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px; padding:8px; cursor:pointer;
}
.kc360-scene-card img{ width:100%; height:110px; object-fit:cover; border-radius:8px; }
.kc360-scene-card:hover{ background: rgba(255,255,255,.14); }
.kc360-scene-card-title{ color:#fff; font-weight:600; font-size:14px; }

/* 6) Copyright kecil di sidebar */
.kc360-copyright-side{
  margin-top:14px; padding-top:10px; border-top:1px solid #eee;
  color:#738697; font-size:18px;
}

/* 7) Saat overlay terbuka, nonaktifkan scroll halaman */
body.kc360-overlay-open{ overflow:hidden; }

.kc360-controls-section-center{
  position: relative;
}

.kc360-scene-menu{
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 60;
}

.kc360-scene-menu.open{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.kc360-scene-menu-inner{
  width: min(420px, calc(100vw - 24px));
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.75);
  padding: 10px;
}

.kc360-scene-menu-list{
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 45vh;
  overflow: auto;
}

.kc360-scene-menu-item{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.kc360-scene-menu-item:hover{
  background: rgba(251, 191, 36, 0.12);
}

.kc360-scene-active .kc360-scene-menu-item{
  background: rgba(251, 191, 36, 0.18);
}

.kc360-scene-index{
  width: 26px;
  flex: 0 0 26px;
  text-align: right;
  font-size: 11px;
  opacity: .65;
}

.kc360-scene-name{
  font-size: 13px;
  line-height: 1.2;
}

/* Batasi lebar tools panel */
#kc360-tools-panel{
  width: auto;              /* jangan dipaksa full */
  max-width: 520px;         /* desktop */
  padding: 10px 12px;
}

/* Mobile: lebih kecil */
@media (max-width: 768px){
  #kc360-tools-panel{
    max-width: calc(100vw - 32px);
    padding: 8px 10px;
  }
}

/* === Mobile: brand jangan kepotong, turun ke baris bawah === */
#kc360-tools-panel { min-width: 0; }

#kc360-tools-panel .kc360-tools-brand{
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 480px){
  #kc360-tools-panel.open{
    flex-wrap: wrap;
    row-gap: 8px;
    justify-content: center;
  }

  /* brand jadi 1 baris sendiri (tidak menambah lebar panel) */
  #kc360-tools-panel .kc360-tools-brand{
    flex: 0 0 100%;
    order: 99;
    text-align: center;
    font-size: 11px;
    opacity: .85;
    margin-top: 2px;
  }
}

@media (max-width: 550px) {
    .kc360-copyright-side{
       font-size:16px; 
    }

}

/* ============================================================
   KC360 Mobile UI Tuning (<=480px)
   Fokus: Tutorial pertama + tombol/controls biar nyaman di layar kecil
   ============================================================ */

@media (max-width: 480px) {
    /* Tutorial overlay padding biar nggak mepet layar */
    #kc360-tutorial {
        padding: 16px;
        box-sizing: border-box;
    }

    /* Kartu tutorial: full width, tinggi aman, bisa scroll */
    .kc360-tutorial-content {
        width: 100%;
        max-width: 420px;
        max-height: calc(100vh - 32px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px 16px;
        border-radius: 18px;
    }

    .kc360-tutorial-logo {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .kc360-tutorial-header h2 {
        font-size: 20px;
        line-height: 1.2;
        margin: 0 0 6px 0;
    }

    .kc360-tutorial-header p {
        font-size: 13px;
        line-height: 1.45;
        margin: 0;
    }

    .kc360-tutorial-steps {
        margin: 18px 0;
    }

    .kc360-tutorial-step-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
        margin: 0 auto 12px;
        border-width: 2px;
    }

    .kc360-tutorial-step h3 {
        font-size: 16px;
        line-height: 1.25;
        margin: 0 0 8px 0;
    }

    .kc360-tutorial-step p {
        font-size: 13px;
        line-height: 1.5;
        margin: 0 0 10px 0;
    }

    .kc360-tutorial-step ul {
        margin: 10px 0 0;
    }

    .kc360-tutorial-step li {
        font-size: 13px;
        line-height: 1.4;
        gap: 8px;
        padding: 6px 0;
    }

    .kc360-tutorial-step li::before {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .kc360-tutorial-progress {
        gap: 6px;
        margin: 14px 0 12px;
    }

    .kc360-tutorial-dot {
        width: 7px;
        height: 7px;
    }

    /* Tombol tutorial: 44px+ (standar tap target) */
    .kc360-tutorial-buttons {
        gap: 10px;
        flex-wrap: wrap;
    }

    .kc360-tutorial-btn {
        flex: 1 1 calc(50% - 10px);
        min-height: 44px;
        padding: 12px 12px;
        font-size: 13px;
        border-radius: 14px;
    }

    /* Toggle bahasa tetap rapi */
    .kc360-tutorial-language-toggle {
        gap: 8px;
    }

    .kc360-lang-btn {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 12px;
    }

    /* Controls bar: lebih ringkas */
    .kc360-controls {
        bottom: 86px;
        padding: 10px;
        gap: 8px;
        border-radius: 999px;
    }

    .kc360-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .kc360-sidebar-toggle {
        top: 14px;
        right: 14px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

/* Safe-area support (iPhone X+) untuk controls bar */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 480px) {
        .kc360-controls {
            bottom: calc(86px + env(safe-area-inset-bottom));
        }
    }
}

/* =========================
   Premium Sidebar Tabs UX
   ========================= */

/* 1) Kalau cuma 1 tab: sembunyikan bar tabs */
.kc360-sidebar--single .kc360-tabs {
  display: none !important;
}

/* 2) Bikin tabs berasa segmented control */
.kc360-tabs {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  z-index: 5;
}

.kc360-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.75);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  user-select: none;
}

.kc360-tab:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(0,0,0,.18);
}

.kc360-tab:focus-visible {
  outline: 2px solid rgba(17,141,201,.35); /* atau pakai var brand kalau ada */
  outline-offset: 2px;
}

/* Active state lebih tegas */
.kc360-tab.active {
  background: #fff;
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

/* 3) Panel spacing lebih lega + enak dibaca */
.kc360-tab-content {
  padding: 12px;
}

.kc360-tab-panel {
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  padding: 12px;
}

/* 4) Kalau single tab: panel dibuat lebih “hero” */
.kc360-sidebar--single .kc360-tab-content {
  padding: 12px;
}

.kc360-sidebar--single .kc360-tab-panel {
  padding: 14px;
}

/* 5) Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .kc360-tab {
    transition: none;
  }
  .kc360-tab:hover {
    transform: none;
  }
}
.kc360-tab.active{
  position: relative;
}
.kc360-tab.active::after{
  content:"";
  position:absolute;
  left:14px; right:14px;
  bottom:-11px;
  height:3px;
  border-radius:999px;
  background: rgba(17,141,201,.6);
}
.kc360-empty{
  margin:0;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(0,0,0,.04);
  border: 1px dashed rgba(0,0,0,.12);
}
@media (min-width: 992px){
  .kc360-sidebar--single ~ #kc360-sidebar-toggle,
  #kc360-sidebar-toggle.kc360-sidebar-toggle--subtle{
    opacity: .55;
    transform: translateY(0);
  }
  #kc360-sidebar-toggle.kc360-sidebar-toggle--subtle:hover{
    opacity: 1;
  }
}
@media (min-width: 992px) {
  .kc360-tab{ background: transparent !important; border-color: transparent !important; }
  .kc360-tab:hover{ background: transparent !important; }
  .kc360-tab.active{ font-weight: 700; }
}
@media (min-width: 992px){
  .kc360-tab i{ font-size: 18px; }
  .kc360-tab span{ font-size: 14px; }
}
.kc360-tabs{ justify-content: flex-start; }

/* ============================================================
   KC360 Hotspot UI v3 (Panoraven-like, WCAG-aware)
   - Tooltip inline (no modal) for info points
   - Desktop: hover preview, click can pin
   - Mobile: tap toggle (info), tap open (scene)
   - Auto theme: data-kc360-hs-theme="dark"|"light"
   ============================================================ */

:root{
  --kc360-hs-size-scene: 44px;
  --kc360-hs-size-info: 40px;
  --kc360-hs-bg: rgba(8, 12, 18, .60);
  --kc360-hs-ring: rgba(255,255,255,.18);
  --kc360-hs-icon: #ffffff;
  --kc360-hs-shadow: 0 10px 26px rgba(0,0,0,.40);
  --kc360-hs-accent: #FAB230;

  --kc360-tip-bg: rgba(8, 12, 18, .88);
  --kc360-tip-fg: #ffffff;
  --kc360-tip-border: rgba(255,255,255,.14);
}

/* Bright scenes -> dark bubble (white icon) */
:root[data-kc360-hs-theme="dark"]{
  --kc360-hs-bg: rgba(8, 12, 18, .62);
  --kc360-hs-ring: rgba(255,255,255,.18);
  --kc360-hs-icon: #ffffff;
  --kc360-tip-bg: rgba(8, 12, 18, .90);
  --kc360-tip-fg: #ffffff;
  --kc360-tip-border: rgba(255,255,255,.14);
}

/* Dark scenes -> light bubble (dark icon) */
:root[data-kc360-hs-theme="light"]{
  --kc360-hs-bg: rgba(255,255,255,.22);
  --kc360-hs-ring: rgba(255,255,255,.35);
  --kc360-hs-icon: rgba(8, 12, 18, .92);
  --kc360-tip-bg: rgba(255,255,255,.92);
  --kc360-tip-fg: rgba(8, 12, 18, .92);
  --kc360-tip-border: rgba(0,0,0,.10);
}

/* Base hotspot (do NOT set transform here) */
.custom-hotspot{
  position: relative;
  border-radius: 999px !important;
  overflow: visible !important;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* Unified look for both hotspot types (override old ring-only styles) */
.custom-hotspot.scene-hotspot,
.pnlm-hotspot.custom-hotspot.scene-hotspot,
.custom-hotspot.info-hotspot,
.pnlm-hotspot.custom-hotspot.info-hotspot{
  background: var(--kc360-hs-bg) !important;
  border: 1px solid var(--kc360-hs-ring) !important;
  box-shadow: var(--kc360-hs-shadow) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.custom-hotspot.scene-hotspot{ width: var(--kc360-hs-size-scene) !important; height: var(--kc360-hs-size-scene) !important; }
.custom-hotspot.info-hotspot{ width: var(--kc360-hs-size-info) !important; height: var(--kc360-hs-size-info) !important; }

/* Icon */
.kc360-hs-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--kc360-hs-icon);
  width: 100%;
  height: 100%;
}
.kc360-hs-icon i{
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.40));
}

/* Subtle pulse without transform (safe for pannellum positioning) */
.custom-hotspot::after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:inherit;
  pointer-events:none;
  box-shadow: 0 0 0 0 rgba(250,178,48,.0);
  opacity: .0;
  animation: kc360HotspotPulse 2.4s ease-out infinite;
}
@keyframes kc360HotspotPulse{
  0%{ box-shadow: 0 0 0 0 rgba(250,178,48,.0); opacity: .0; }
  35%{ box-shadow: 0 0 0 6px rgba(250,178,48,.18); opacity: .7; }
  100%{ box-shadow: 0 0 0 14px rgba(250,178,48,.0); opacity: .0; }
}
@media (prefers-reduced-motion: reduce){
  .custom-hotspot::after{ animation:none; }
}

/* Hover / focus polish */
@media (hover:hover) and (pointer:fine){
  .custom-hotspot:hover{
    border-color: rgba(250,178,48,.55) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.45) !important;
  }
}
.custom-hotspot:focus-visible{
  box-shadow: 0 0 0 3px rgba(250,178,48,.35), var(--kc360-hs-shadow) !important;
  border-color: rgba(250,178,48,.55) !important;
}

/* Tooltip base (high contrast -> meets WCAG 4.5:1 in both themes) */
.hotspot-tooltip{
  position:absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  background: var(--kc360-tip-bg);
  color: var(--kc360-tip-fg);
  border: 1px solid var(--kc360-tip-border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  z-index: 1001;
  max-width: min(320px, 74vw);
}
.hotspot-tooltip--label{ white-space: nowrap; }
.hotspot-tooltip--info{ white-space: normal; }

.hotspot-tooltip::before{
  content:"";
  position:absolute;
  left:-6px;
  top:50%;
  width:10px;
  height:10px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--kc360-tip-bg);
  border-left: 1px solid var(--kc360-tip-border);
  border-bottom: 1px solid var(--kc360-tip-border);
}

.hotspot-tooltip__title{ font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.hotspot-tooltip__desc{ font-size: 13px; line-height: 1.35; opacity: .95; }

/* Show rules: desktop hover/focus + pinned state */
.custom-hotspot.is-open .hotspot-tooltip{
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (hover:hover) and (pointer:fine){
  .custom-hotspot:hover .hotspot-tooltip,
  .custom-hotspot:focus-within .hotspot-tooltip{
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* Flip left if needed */
.custom-hotspot.tip-left .hotspot-tooltip{
  left: auto;
  right: calc(100% + 12px);
  transform: translateY(-50%) translateX(6px);
}
.custom-hotspot.tip-left .hotspot-tooltip::before{
  left:auto;
  right:-6px;
  transform: translateY(-50%) rotate(45deg);
  border-left: none;
  border-bottom: none;
  border-right: 1px solid var(--kc360-tip-border);
  border-top: 1px solid var(--kc360-tip-border);
}

/* Vertical fallback: show above/below if needed */
.custom-hotspot.tip-up .hotspot-tooltip{
  left: 50%;
  right: auto;
  top: auto;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
}
.custom-hotspot.tip-up .hotspot-tooltip::before{
  left: 50%;
  right: auto;
  top: auto;
  bottom: -6px;
  transform: translateX(-50%) rotate(45deg);
  border-left: none;
  border-bottom: none;
  border-right: 1px solid var(--kc360-tip-border);
  border-top: 1px solid var(--kc360-tip-border);
}

.custom-hotspot.tip-down .hotspot-tooltip{
  left: 50%;
  right: auto;
  top: calc(100% + 12px);
  transform: translateX(-50%) translateY(-6px);
}
.custom-hotspot.tip-down .hotspot-tooltip::before{
  left: 50%;
  top: -6px;
  transform: translateX(-50%) rotate(45deg);
}

/* Mobile sizing */
@media (max-width: 768px){
  :root{ --kc360-hs-size-scene: 48px; --kc360-hs-size-info: 40px; }
  .kc360-hs-icon i{ font-size: 18px; }
}
@media (max-width: 480px){
  :root{ --kc360-hs-size-scene: 42px; --kc360-hs-size-info: 34px; }
  .kc360-hs-icon i{ font-size: 17px; }
}

/* Desc: jangan punya margin bawaan */
.hotspot-tooltip__desc{
  margin: 0 !important;
}/* === KC360 Tooltip hard-fix positioning + centering === */
.custom-hotspot .hotspot-tooltip{
  position:absolute !important;
  top:50% !important;
  left:calc(100% + 12px) !important;
  right:auto !important;
  bottom:auto !important;

  transform: translateY(-50%) !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  width:max-content !important;
  max-width:min(360px, calc(100vw - 32px)) !important;

  padding:10px 12px !important;
  box-sizing:border-box !important;

  z-index:1005 !important;
}

/* Desc = center */
.custom-hotspot .hotspot-tooltip__desc{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1.2 !important;
  transform:none !important;
}

/* Label one-line center */
.custom-hotspot .hotspot-tooltip--label .hotspot-tooltip__desc{
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

/* Desc: jangan punya margin bawaan */
.hotspot-tooltip__desc{
  margin: 0 !important;
}
/* ===== Premium tooltip motion ===== */
.hotspot-tooltip{
  /* base hidden */
  opacity: 0;
  transform: translateY(-50%) translateX(-10px) scale(.98);
  filter: blur(1px);
  pointer-events: none;

  /* smoother easing */
  transition:
    opacity 180ms cubic-bezier(.2,.8,.2,1),
    transform 220ms cubic-bezier(.2,.8,.2,1),
    filter 220ms cubic-bezier(.2,.8,.2,1);
  
  /* anti “kedip” saat hover cepat */
  transition-delay: 40ms;
  will-change: opacity, transform, filter;
}

/* show state */
.custom-hotspot.is-open .hotspot-tooltip{
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
  filter: blur(0);
  transition-delay: 0ms;
}

/* hover/focus show (desktop) */
@media (hover:hover) and (pointer:fine){
  .custom-hotspot:hover .hotspot-tooltip,
  .custom-hotspot:focus-within .hotspot-tooltip{
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
    filter: blur(0);
    transition-delay: 0ms;
  }
}

/* label tooltip: sedikit lebih “snappy” */
.hotspot-tooltip--label{
  transition-duration: 160ms, 200ms, 200ms;
}

/* when flipped left: keep same feel */
.custom-hotspot.tip-left .hotspot-tooltip{
  transform: translateY(-50%) translateX(10px) scale(.98);
}
.custom-hotspot.tip-left.is-open .hotspot-tooltip,
@media (hover:hover) and (pointer:fine){
  .custom-hotspot.tip-left:hover .hotspot-tooltip,
  .custom-hotspot.tip-left:focus-within .hotspot-tooltip{
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

/* vertical up/down: animate from slightly closer */
.custom-hotspot.tip-up .hotspot-tooltip{
  transform: translateX(-50%) translateY(10px) scale(.98);
}
.custom-hotspot.tip-down .hotspot-tooltip{
  transform: translateX(-50%) translateY(-10px) scale(.98);
}
.custom-hotspot.tip-up.is-open .hotspot-tooltip,
.custom-hotspot.tip-down.is-open .hotspot-tooltip{
  transform: translateX(-50%) translateY(0) scale(1);
}
@media (hover:hover) and (pointer:fine){
  .custom-hotspot.tip-up:hover .hotspot-tooltip,
  .custom-hotspot.tip-up:focus-within .hotspot-tooltip,
  .custom-hotspot.tip-down:hover .hotspot-tooltip,
  .custom-hotspot.tip-down:focus-within .hotspot-tooltip{
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .hotspot-tooltip{
    transition: opacity 120ms linear !important;
    transform: translateY(-50%) translateX(0) !important;
    filter: none !important;
  }
}