/* =============================================================
   Greenwoods Dental – 360° Tour Viewer
   Shared stylesheet for all locations.
   Edit here; all shortcodes pick up changes automatically. 
   ============================================================= */

/* ── Wrapper ─────────────────────────────────────────────── */
.tour-wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Panorama viewport ───────────────────────────────────── */
.tour360-panorama {
    position: relative;
    width: 100%;
    height: 64vh;
    min-height: 440px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

@media (max-width: 760px) {
    .tour360-panorama {
        height: 50vh;
    }
}

/* ── Minimap host ────────────────────────────────────────── */
.tour360-minimap-wrap {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 20;
    --mini-top: 56px;
    pointer-events: none;
}

.tour360-minimap-wrap * {
    pointer-events: auto;
}

/* ── Top bar (floor buttons + toggle) ───────────────────── */
.tour360-top-bar {
    position: absolute;
    top: 8px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10002;
}

.tour360-floorbar {
    display: flex;
    gap: 8px;
}

.tour360-floorbtn {
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #fff;
    background: #63b149;
    color: #fff;
    font: 600 13px system-ui, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

.tour360-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #fff;
    background: #63b149;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    cursor: pointer;
}

.tour360-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* ── Minimap circle ──────────────────────────────────────── */
.tour360-minimap {
    position: absolute;
    top: var(--mini-top);
    right: 20px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 9999;
    background: rgba(0, 0, 0, .5);
    border: 2px solid #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, .6);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    touch-action: none;
    cursor: grab;
}

.tour360-minimap:active {
    cursor: grabbing;
}

.tour360-minimap .mm-world {
    position: absolute;
    inset: -50%;
    transform-origin: 50% 50%;
    will-change: transform;
}

.tour360-minimap .mm-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}

.tour360-minimap .mm-markers {
    position: absolute;
    inset: 0;
    pointer-events: auto;
}

/* ── Dot markers ─────────────────────────────────────────── */
.tour360-minimap .marker {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #056133;
    border: 2px solid #ffffff;
    transform: translate(-50%, 50%);
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, .4);
    transition: background .15s;
}

.tour360-minimap .marker.active {
    background: #63b149;
    border-color: #ffffff;
    width: 24px;
    height: 24px;    
}

.tour360-minimap .marker:hover {
    background: #a3d98f;
}

/* ── Aux edit-mode row (WP admins only) ──────────────────── */
.tour360-aux-row {
    position: absolute;
    top: var(--mini-top);
    right: 330px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mini-aux {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #fff;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-aux.active {
    background: #63b149;
}

/* ── Navigation arrows (pannellum hotspots) ──────────────── */
.tour360-arrow {
    font-size: 28px;
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 0, 0, .8);
    cursor: pointer;
    user-select: none;
    transform: translate(-50%, -50%);
}

/* ── Mobile overlay ──────────────────────────────────────── */
@media (max-width: 760px) {
    .tour360-minimap-wrap.mobile-overlay {
        background: rgba(0, 0, 0, .6);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tour360-minimap {
        width: 240px;
        height: 240px;
    }
}

/* ── Pagebuilder specific ──────────────────────────────────────── */
.vc_column-inner:has(.tour-wrap),
.vc_column-inner:has(.tour-wrap) > .wpb_wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
    /* width: 100% !important; */
}

.arrow {
    font-size: 28px;
    color: #fff;
    text-shadow: 1px 1px 2px #4d715f;
    cursor: pointer;
    user-select: none;
    transform: translate(-50%, -50%);
    
    background: #61B247;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    text-align: center;
}

.tour360-arrow{
    font-size: 28px;
    color: #fff;
    text-shadow: 1px 1px 2px #4d715f;
    cursor: pointer;
    user-select: none;
    transform: translate(-50%, -50%);
    background: #61B247;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    text-align: center;
}