/* Poppins is bundled with the plugin and enqueued as its own stylesheet
   (thingsatweb-poppins-font) - no @import, no external font request. */

/* ==================== FULL-WIDTH WRAPPER ==================== */

/* Full-bleed positioning. The extra `html body` specificity matters: block
   themes (e.g. Twenty Twenty-Five) print this stylesheet BEFORE their layout
   CSS, which sets `margin-left/right: auto !important` on every content
   block. With equal specificity that later theme rule would win and leave
   the tour starting at the page centre (left: 50%) with its right half cut
   off. Kept separate from `height` below so the mobile 70vh rule and the
   shortcode's height="" attribute still apply. */
html body .thingsatweb-virtual-tour-container {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.thingsatweb-virtual-tour-container {
    box-sizing: border-box;
    height: 80vh;
    background: #000;
    overflow: hidden;
    padding: 0 !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* The 100vw full-bleed trick above measures the viewport including
   its scrollbar, which can leave a few px of horizontal overflow on
   the page (a bottom/side scrollbar). Clip it at the html/body level
   only while a tour is on the page. */
html:has(.thingsatweb-virtual-tour-container),
body:has(.thingsatweb-virtual-tour-container) {
    overflow-x: hidden;
}

.thingsatweb-virtual-tour-container * {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

.pnlm-about-msg,
.pnlm-logo {
    display: none !important;
}

/* ==================== CONTAINER ==================== */

#pannellum-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Covers #pannellum-container until Pannellum fires its 'load' event (or the
   JS timeout fallback), so the first paint - including any WebGL failure
   message the library draws into the container - never flashes half-ready. */
.thingsatweb-pannellum-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.thingsatweb-pannellum-loader.hidden {
    opacity: 0;
}

.thingsatweb-loader-dots {
    display: flex;
    gap: 8px;
}

.thingsatweb-loader-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.35;
    animation: thingsatweb-loader-bounce 1.1s infinite ease-in-out both;
}

.thingsatweb-loader-dots span:nth-child(1) { animation-delay: -0.24s; }
.thingsatweb-loader-dots span:nth-child(2) { animation-delay: -0.12s; }
.thingsatweb-loader-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes thingsatweb-loader-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.35; }
    40% { transform: scale(1); opacity: 1; }
}

.pnlm-about-msg,
.pnlm-logo,
.pnlm-load-box {
    display: none !important;
}

.pnlm-container,
.pnlm-render-container {
    width: 100% !important;
    height: 100% !important;
}

.pnlm-grab {
    cursor: grab !important;
}

.pnlm-grabbing {
    cursor: grabbing !important;
}

.pnlm-zoom-controls,
.pnlm-fullscreen-toggle-button {
    display: none !important;
}

/* ==================== GLOBAL FONT FAMILY ==================== */
.thingsatweb-virtual-tour-container,
.thingsatweb-virtual-tour-container * {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
}

/* ==================== TOP LEFT: MENU ==================== */
.thingsatweb-menu-wrapper {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 100;
}

.thingsatweb-menu-btn {
    background: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 19px;
    font-weight: 600;
    color: #333436;
    transition: all 0.3s ease;
    font-family: 'Figtree', sans-serif;
}

.thingsatweb-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.thingsatweb-menu-btn img {
    width: 18px;
    height: 18px;
}

.thingsatweb-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
}

.thingsatweb-menu-panel.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.thingsatweb-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #e8e8e8;
}

.thingsatweb-menu-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    font-weight: 700;
    color: #333436;
    font-family: 'Figtree', sans-serif;
}

.thingsatweb-menu-title img {
    width: 18px;
    height: 18px;
}

.thingsatweb-menu-close {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.thingsatweb-menu-close:hover {
    background: #f0f0f0;
}

.thingsatweb-menu-close img {
    width: 16px;
    height: 16px;
}

.thingsatweb-menu-items {
    padding: 6px;
}

.thingsatweb-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 19px;
    color: #333436;
    transition: background 0.2s;
    font-family: 'Figtree', sans-serif;
}

.thingsatweb-menu-item:hover {
    background: #f0f4ff;
}

.thingsatweb-menu-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.thingsatweb-menu-item.disabled:hover {
    background: transparent;
}

.thingsatweb-menu-item img {
    width: 18px;
    height: 18px;
}

/* ==================== TOP RIGHT: FULLSCREEN ==================== */
.thingsatweb-fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.thingsatweb-fullscreen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.thingsatweb-fullscreen-btn img {
    width: 22px;
    height: 22px;
    display: block;
}

/* ==================== BOTTOM LEFT: SCENE TITLE ==================== */
.thingsatweb-title-card {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 100;
    max-width: 280px;
    height: 48px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.thingsatweb-title-text {
    font-size: 19px;
    font-weight: 700;
    color: #333436;
    line-height: 23px;
    display: block;
    font-family: 'Figtree', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== BOTTOM CENTER: NAVIGATION ==================== */
.thingsatweb-nav-center {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 10px;
    padding: 0 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
    height: 48px;
    box-sizing: border-box;
}

.thingsatweb-nav-prev,
.thingsatweb-nav-next {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.thingsatweb-nav-prev.disabled,
.thingsatweb-nav-next.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.thingsatweb-nav-prev img,
.thingsatweb-nav-next img {
    width: 36px;
    height: 28px;
    display: block;
}

/* ==================== FORCE REMOVE THEME PINK HOVER ==================== */

/* Override Hello / Elementor button hover */
.thingsatweb-virtual-tour-container button:hover,
.thingsatweb-virtual-tour-container button:focus,
.thingsatweb-virtual-tour-container button:active {
    background-color: #ffffff !important;
    color: inherit !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Specifically NAV buttons */
.thingsatweb-nav-prev:hover,
.thingsatweb-nav-next:hover,
.thingsatweb-fullscreen-btn:hover,
.thingsatweb-menu-btn:hover,
.thingsatweb-scenes-btn:hover {
    background-color: #ffffff !important;
}

/* Kill Elementor theme accent */
.thingsatweb-virtual-tour-container button {
    --e-global-color-primary: transparent !important;
    --e-global-color-accent: transparent !important;
}

/* Prevent SVG / IMG tinting */
.thingsatweb-virtual-tour-container button img {
    filter: none !important;
}

/* Mobile tap highlight */
.thingsatweb-virtual-tour-container * {
    -webkit-tap-highlight-color: transparent !important;
}

.thingsatweb-nav-counter {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    background: #4888E8;
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 50px;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-family: 'Figtree', sans-serif;
}

.thingsatweb-nav-counter .separator {
    color: #ffffff;
}

/* ==================== BOTTOM RIGHT: SCENES ==================== */
.thingsatweb-scenes-wrapper {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 100;
}

.thingsatweb-scenes-btn {
    background: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 19px;
    font-weight: 600;
    color: #333436;
    transition: all 0.3s ease;
    font-family: 'Figtree', sans-serif;
    height: 48px;
    box-sizing: border-box;
}

.thingsatweb-scenes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.thingsatweb-scenes-btn img {
    width: 18px;
    height: 18px;
}

/* Hide scenes button when panel is open */
.thingsatweb-scenes-panel.open ~ .thingsatweb-scenes-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.thingsatweb-scenes-panel {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    min-width: 260px;
    max-width: 320px;
    max-height: 400px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.thingsatweb-scenes-panel.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.thingsatweb-scenes-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.thingsatweb-scenes-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    font-weight: 700;
    color: #333436;
    font-family: 'Figtree', sans-serif;
}

.thingsatweb-scenes-title img {
    width: 18px;
    height: 18px;
}

.thingsatweb-scenes-close {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.thingsatweb-scenes-close:hover {
    background: #f0f0f0;
}

.thingsatweb-scenes-close img {
    width: 16px;
    height: 16px;
}

.thingsatweb-scenes-list {
    padding: 8px;
    overflow-y: auto;
    flex: 1;
}

.thingsatweb-scene-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 19px;
    color: #333436;
    transition: background 0.2s;
    font-family: 'Figtree', sans-serif;
    line-height: 23px;
}

.thingsatweb-scene-item:hover {
    background: #f0f4ff;
}

.thingsatweb-scene-item.active {
    background: #e6ecff;
    color: #4888e8;
    font-weight: 600;
}

.thingsatweb-scene-item .scene-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: #f0f4ff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #4888e8;
    flex-shrink: 0;
    font-family: 'Figtree', sans-serif;
    margin-left:-5px;
}

.thingsatweb-scene-item.active .scene-number {
    background: #4888e8;
    color: #fff;
}

.thingsatweb-scene-item .scene-name {
    flex: 1;
    line-height: 23px;
    font-size: 19px;
    font-weight: 700;
    color: #333436;
    text-transform: capitalize;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
}

.thingsatweb-scene-item.active .scene-name {
    color: #4888e8;
}

/* Scrollbar */
.thingsatweb-scenes-list::-webkit-scrollbar {
    width: 5px;
}

.thingsatweb-scenes-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.thingsatweb-scenes-list::-webkit-scrollbar-thumb {
    background: #4888e8;
    border-radius: 10px;
}

/* ==================== HOTSPOTS ==================== */
.custom-hotspot {
    width: 50px;
    height: 50px;
    border: none;
    background-color: transparent !important;
    box-shadow: none;
    transition: transform 0.1s ease, filter 0.3s ease, opacity 0.3s ease;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 15px;
}

.scene-hotspot {
    background-image: url('../img/hotspot-arrow-up.png');
}

.scene-hotspot.up {
    background-image: url('../img/hotspot-arrow-up.png');
}

.scene-hotspot.right {
    background-image: url('../img/hotspot-arrow-right.png');
}

.scene-hotspot.left {
    background-image: url('../img/hotspot-arrow-left.png');
}

.info-hotspot {
    background-image: url('../img/hotspot-info.png');
}

.custom-hotspot:hover {
    transform: scale(1.2);
}

.hotspot-tooltip {
    position: absolute;
    background: transparent;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0,0,0,.8);
    z-index: 100;
    margin-bottom: 10px;
    font-family: 'Figtree', sans-serif;
}

.info-hotspot-card {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    min-width: 200px;
    max-width: 280px;
    z-index: 10000;
    font-family: 'Figtree', sans-serif;
}

.info-hotspot-card::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

.hotspot-card-image {
    width: 100%;
    height: 120px;
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.hotspot-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotspot-card-title {
    font-weight: 700;
    color: #333436;
    font-size: 19px;
    margin-bottom: 8px;
    line-height: 23px;
    font-family: 'Figtree', sans-serif;
}

.hotspot-card-info {
    color: #666;
    font-size: 16px;
    line-height: 1.4;
    max-height: 100px;
    overflow-y: auto;
    font-family: 'Figtree', sans-serif;
}

/* Hide Pannellum compass control */
.pnlm-compass {
    display: none !important;
}

/* ==================== RESPONSIVE - 768px ==================== */
@media (max-width: 768px) {
    .thingsatweb-virtual-tour-container {
        height: 70vh;
    }
    
    .thingsatweb-menu-wrapper {
        top: 8px;
        left: 8px;
    }
    
    .thingsatweb-fullscreen-btn {
        padding: 8px;
    }
    
    .thingsatweb-fullscreen-btn img {
        width: 18px;
        height: 18px;
    }
    
    .thingsatweb-menu-btn,
    .thingsatweb-scenes-btn {
        padding: 8px 12px;
        font-size: 16px;
    }
    
    .thingsatweb-menu-btn img,
    .thingsatweb-scenes-btn img {
        width: 16px;
        height: 16px;
    }
    
    .thingsatweb-menu-panel {
        min-width: 180px;
    }
    
    .thingsatweb-menu-header {
        padding: 10px 12px;
    }
    
    .thingsatweb-menu-title {
        font-size: 16px;
    }
    
    .thingsatweb-menu-title img {
        width: 16px;
        height: 16px;
    }
    
    .thingsatweb-menu-close img {
        width: 14px;
        height: 14px;
    }
    
    .thingsatweb-menu-items {
        padding: 4px;
    }
    
    .thingsatweb-menu-item {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .thingsatweb-menu-item img {
        width: 16px;
        height: 16px;
    }
    
    /* ===== FOOTER ALIGNMENT FIX FOR 768px ===== */
    .thingsatweb-title-card {
        max-width: 130px;
        padding: 10px 14px;
        bottom: 8px;
        left: 8px;
        height: 44px;
    }
    
    .thingsatweb-title-text {
        font-size: 14px;
        line-height: 20px;
    }
    
    .thingsatweb-nav-center {
        padding: 0 12px;
        gap: 10px;
        height: 44px;
        bottom: 8px;
    }
    
    .thingsatweb-nav-prev img,
    .thingsatweb-nav-next img {
        width: 30px;
        height: 24px;
    }
    
    .thingsatweb-nav-counter {
        font-size: 14px;
        min-width: 45px;
        padding: 5px 12px;
    }
    
    .thingsatweb-scenes-wrapper {
        right: 8px;
        bottom: 8px;
    }
    
    .thingsatweb-scenes-btn {
        height: 44px;
    }
    
    .thingsatweb-scenes-panel {
        min-width: 220px;
        max-height: 320px;
    }
    
    .thingsatweb-scenes-header-bar {
        padding: 10px 12px;
    }
    
    .thingsatweb-scenes-title {
        font-size: 16px;
    }
    
    .thingsatweb-scenes-title img {
        width: 16px;
        height: 16px;
    }
    
    .thingsatweb-scenes-close img {
        width: 14px;
        height: 14px;
    }
    
    .thingsatweb-scenes-list {
        padding: 6px;
    }
    
    .thingsatweb-scene-item {
        padding: 10px 12px;
        font-size: 16px;
        gap: 8px;
    }
    
    .thingsatweb-scene-item .scene-number {
        width: 22px;
        height: 22px;
        min-width: 22px;
        font-size: 13px;
    }
    
    .thingsatweb-scene-item .scene-name {
        font-size: 16px;
        line-height: 20px;
    }
    
    .info-hotspot-card {
        min-width: 180px;
        max-width: 220px;
        padding: 12px;
    }
    
    .hotspot-tooltip {
        font-size: 16px;
    }
    
    .hotspot-card-title {
        font-size: 16px;
        line-height: 20px;
    }
}

/* ==================== RESPONSIVE - 600px ==================== */
@media (max-width: 600px) {
    /* ===== FOOTER ALIGNMENT FIX FOR 600px ===== */
    .thingsatweb-title-card {
        max-width: 110px;
        padding: 8px 12px;
        bottom: 8px;
        left: 8px;
        height: 42px;
    }
    
    .thingsatweb-title-text {
        font-size: 13px;
        line-height: 18px;
    }
    
    .thingsatweb-nav-center {
        padding: 0 10px;
        gap: 8px;
        height: 42px;
        bottom: 8px;
    }
    
    .thingsatweb-nav-prev img,
    .thingsatweb-nav-next img {
        width: 26px;
        height: 20px;
    }
    
    .thingsatweb-nav-counter {
        font-size: 13px;
        min-width: 42px;
        padding: 4px 10px;
    }
    
    .thingsatweb-scenes-wrapper {
        right: 8px;
        bottom: 8px;
    }
    
    .thingsatweb-scenes-btn {
        height: 42px;
        padding: 0 10px;
        font-size: 14px;
    }
}

/* ==================== RESPONSIVE - 480px ==================== */
@media (max-width: 480px) {
    .thingsatweb-menu-wrapper {
        top: 6px;
        left: 6px;
    }
    
    .thingsatweb-menu-btn {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    /* ===== FOOTER ALIGNMENT FIX FOR 480px ===== */
    .thingsatweb-title-card {
        max-width: 90px;
        min-width: 70px;
        padding: 6px 10px;
        bottom: 6px;
        left: 6px;
        height: 40px;
        border-radius: 8px;
    }
    
    .thingsatweb-title-text {
        font-size: 12px;
        line-height: 16px;
    }
    
    .thingsatweb-nav-center {
        padding: 0 8px;
        gap: 6px;
        height: 40px;
        bottom: 6px;
        border-radius: 8px;
    }
    
    .thingsatweb-nav-prev img,
    .thingsatweb-nav-next img {
        width: 24px;
        height: 18px;
    }
    
    .thingsatweb-nav-counter {
        font-size: 12px;
        min-width: 40px;
        padding: 4px 8px;
        border-radius: 6px;
    }
    
    .thingsatweb-scenes-wrapper {
        right: 6px;
        bottom: 6px;
    }
    
    .thingsatweb-scenes-btn {
        height: 40px;
        padding: 0 10px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    .thingsatweb-scenes-panel {
        min-width: 200px;
    }
    
    .thingsatweb-scene-item {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    .thingsatweb-scene-item .scene-number {
        width: 20px;
        height: 20px;
        min-width: 20px;
        font-size: 12px;
    }
    
    .thingsatweb-scene-item .scene-name {
        font-size: 14px;
        line-height: 18px;
    }
}

/* ==================== RESPONSIVE - 400px ==================== */
@media (max-width: 400px) {
    /* ===== FOOTER ALIGNMENT FIX FOR 400px ===== */
    .thingsatweb-title-card {
        max-width: 75px;
        min-width: 60px;
        padding: 5px 8px;
        bottom: 6px;
        left: 6px;
        height: 38px;
    }
    
    .thingsatweb-title-text {
        font-size: 11px;
        line-height: 14px;
    }
    
    .thingsatweb-nav-center {
        padding: 0 6px;
        gap: 4px;
        height: 38px;
        bottom: 6px;
    }
    
    .thingsatweb-nav-prev img,
    .thingsatweb-nav-next img {
        width: 22px;
        height: 16px;
    }
    
    .thingsatweb-nav-counter {
        font-size: 11px;
        min-width: 36px;
        padding: 3px 6px;
    }
    
    .thingsatweb-scenes-wrapper {
        right: 6px;
        bottom: 6px;
    }
    
    .thingsatweb-scenes-btn {
        height: 38px;
        padding: 0 8px;
        font-size: 12px;
    }
    
    .thingsatweb-scenes-btn img {
        width: 14px;
        height: 14px;
    }
}

/* ==================== RESPONSIVE - 360px ==================== */
@media (max-width: 360px) {
    /* ===== FOOTER ALIGNMENT FIX FOR 360px ===== */
    .thingsatweb-title-card {
        max-width: 65px;
        min-width: 50px;
        padding: 4px 6px;
        height: 36px;
    }
    
    .thingsatweb-title-text {
        font-size: 10px;
        line-height: 12px;
    }
    
    .thingsatweb-nav-center {
        padding: 0 5px;
        gap: 3px;
        height: 36px;
    }
    
    .thingsatweb-nav-prev img,
    .thingsatweb-nav-next img {
        width: 20px;
        height: 14px;
    }
    
    .thingsatweb-nav-counter {
        font-size: 10px;
        min-width: 32px;
        padding: 3px 5px;
    }
    
    .thingsatweb-scenes-btn {
        height: 36px;
        padding: 0 6px;
        font-size: 11px;
    }
    
    .thingsatweb-scenes-btn span {
        display: none;
    }
    
    .thingsatweb-scenes-btn img {
        width: 14px;
        height: 14px;
    }
}
/* ==================== Mobile hotspot tip ====================
   Brief "Tap the pins to explore" hint, general-settings.php's
   "mobile_hotspot_tip" toggle, shown by viewer.js. */
.thingsatweb-mobile-hotspot-tip {
    position: absolute;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%) translateY(8px);
    z-index: 40;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    padding: 10px 18px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.thingsatweb-mobile-hotspot-tip.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.thingsatweb-mobile-hotspot-tip.is-hidden {
    opacity: 0;
}

/* ==================== Landscape rotate notice ====================
   general-settings.php's "mobile_landscape_notice" toggle, shown by
   viewer.js while a phone visitor is in portrait orientation. */
.thingsatweb-landscape-notice {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.82);
    text-align: center;
}

.thingsatweb-landscape-notice.is-visible {
    display: flex;
}

.thingsatweb-landscape-notice__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: #fff;
    padding: 0 32px;
}

.thingsatweb-landscape-notice__inner::before {
    content: '';
    width: 46px;
    height: 46px;
    border: 3px solid #fff;
    border-radius: 6px;
    animation: thingsatweb-landscape-rotate 1.6s ease-in-out infinite;
}

@keyframes thingsatweb-landscape-rotate {
    0%, 15% { transform: rotate(0deg); }
    50%, 65% { transform: rotate(90deg); }
    100% { transform: rotate(90deg); }
}

.thingsatweb-landscape-notice__inner span {
    font-size: 15px;
    line-height: 1.5;
    max-width: 240px;
}

.thingsatweb-landscape-notice__dismiss {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

@media (min-width: 769px) {
    .thingsatweb-mobile-hotspot-tip,
    .thingsatweb-landscape-notice {
        display: none !important;
    }
}

/* Elementor widget in "contained" mode: keep the tour inside its column
   instead of the shortcode's full-bleed breakout. */
html body .thingsatweb-elementor-contained .thingsatweb-virtual-tour-container {
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
