/* =========================================
   FLOATING 360° BUTTON
========================================= */

.tol-360-button {
    position: fixed;
    left: 28px;
    right: auto;
    bottom: 28px;
    z-index: 9995;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 18px 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 100px;

    background: rgba(47, 68, 39, 0.86);
    color: #ffffff;

    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    cursor: pointer;
    transition:
        transform 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}

.tol-360-button:hover {
    transform: translateY(-4px);
    background: rgba(55, 81, 44, 0.96);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tol-360-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.tol-360-icon svg {
    width: 38px;
    height: 38px;
    overflow: visible;
}

.tol-360-icon ellipse,
.tol-360-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tol-360-icon path {
    fill: currentColor;
    stroke: none;
}

.tol-360-icon text {
    fill: currentColor;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-anchor: middle;
}

.tol-360-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.tol-360-text small {
    margin-bottom: 5px;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.2em;
    opacity: 0.68;
}

.tol-360-text strong {
    font-family: "Marcellus", serif;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
}


/* =========================================
   FULL-SCREEN MODAL
========================================= */

.tol-360-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

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

    padding: 24px;

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

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}

.tol-360-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.tol-360-overlay {
    position: absolute;
    inset: 0;

    background: rgba(12, 17, 11, 0.76);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tol-360-window {
    position: relative;
    z-index: 2;

    width: min(94vw, 1500px);
    height: min(90vh, 900px);

    display: flex;
    flex-direction: column;

    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;

    background: #172016;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.55);

    transform: translateY(30px) scale(0.97);
    transition: transform 0.5s cubic-bezier(.22, 1, .36, 1);
}

.tol-360-modal.is-open .tol-360-window {
    transform: translateY(0) scale(1);
}


/* Header */

.tol-360-header {
    min-height: 82px;
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 22px 16px 28px;

    background: #f4f0e8;
    color: #263522;
}

.tol-360-header span {
    display: block;
    margin-bottom: 5px;

    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 0.22em;
    opacity: 0.62;
}

.tol-360-header h3 {
    margin: 0;
    font-family: "Marcellus", serif;
    font-size: clamp(19px, 1.5vw, 27px);
    font-weight: 400;
}


/* Close button */

.tol-360-close {
    position: relative;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(38, 53, 34, 0.22);
    border-radius: 50%;

    background: transparent;
    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.tol-360-close:hover {
    background: rgba(38, 53, 34, 0.08);
    transform: rotate(90deg);
}

.tol-360-close span {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 18px;
    height: 1px;
    margin: 0;

    background: #263522;
}

.tol-360-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.tol-360-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}


/* Viewer */

.tol-360-viewer {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #111611;
}

.tol-360-viewer iframe {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 100%;

    display: block;
    border: 0;

    opacity: 0;
    transition: opacity 0.5s ease;
}

.tol-360-viewer iframe.is-loaded {
    opacity: 1;
}

.tol-360-loader {
    position: absolute;
    inset: 0;
    z-index: 1;

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

    color: rgba(255, 255, 255, 0.78);
}

.tol-360-loader span {
    width: 34px;
    height: 34px;

    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;

    animation: tol360Spin 0.8s linear infinite;
}

.tol-360-loader p {
    margin: 14px 0 0;
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

@keyframes tol360Spin {
    to {
        transform: rotate(360deg);
    }
}


/* Body lock */

body.tol-360-no-scroll {
    overflow: hidden !important;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {
    .tol-360-button {
        left: 16px;
        right: auto;
        bottom: 28px;
        padding: 8px 14px 8px 8px;
        gap: 9px;
    }

    .tol-360-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .tol-360-icon svg {
        width: 33px;
        height: 33px;
    }

    .tol-360-text strong {
        font-size: 13px;
    }

    .tol-360-modal {
        padding: 0;
    }

    .tol-360-window {
        width: 100%;
        height: 100%;
        max-height: none;
        border: 0;
        border-radius: 0;
    }

    .tol-360-header {
        min-height: 70px;
        padding: 12px 14px 12px 18px;
    }

    .tol-360-close {
        width: 42px;
        height: 42px;
    }
}
/* =========================================
   REMOVE ELEMENTOR PINK BUTTON STATES
========================================= */

.tol-360-button,
.tol-360-button:hover,
.tol-360-button:focus,
.tol-360-button:focus-visible,
.tol-360-button:active {
    background-color: rgba(47, 68, 39, 0.92) !important;
    background-image: none !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;

    outline: none !important;
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;

    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.tol-360-button:hover {
    background-color: rgba(55, 81, 44, 0.98) !important;
    transform: translateY(-4px);
}


/* Close button states */

.tol-360-close,
.tol-360-close:hover,
.tol-360-close:focus,
.tol-360-close:focus-visible,
.tol-360-close:active {
    background-color: transparent !important;
    background-image: none !important;
    color: #263522 !important;
    border-color: rgba(38, 53, 34, 0.22) !important;

    outline: none !important;
    box-shadow: none !important;

    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.tol-360-close:hover {
    background-color: rgba(38, 53, 34, 0.08) !important;
}


/* Keep the close icon dark green */

.tol-360-close span,
.tol-360-close:hover span,
.tol-360-close:focus span,
.tol-360-close:active span {
    background-color: #263522 !important;
}


/* Prevent inherited Elementor button styling */

button.tol-360-button::before,
button.tol-360-button::after,
button.tol-360-close::before,
button.tol-360-close::after {
    background: none !important;
    display: none !important;
}
/* Prevent popup flash while the page is loading */
#tol360Modal {
    display: none !important;
}

#tol360Modal.tol-360-ready {
    display: flex !important;
}

/* Popup remains hidden until it is intentionally opened */
#tol360Modal.tol-360-ready:not(.is-open) {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#tol360Modal.tol-360-ready.is-open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
/* =====================================================
   FORCE 360 ELEMENTS ABOVE ELEMENTOR SECTIONS
===================================================== */

html body #tol360Open,
html body > #tol360Open {
    position: fixed !important;

    left: 28px !important;
    right: auto !important;

    bottom: 28px !important;

    z-index: 2147483000 !important;

    margin: 0 !important;
    overflow: visible !important;
    isolation: isolate;

    max-width: calc(100vw - 40px);
}

html body > #tol360Modal {
    position: fixed !important;
    inset: 0 !important;

    z-index: 2147483500 !important;

    margin: 0 !important;
    isolation: isolate;
}

html.tol-360-no-scroll,
body.tol-360-no-scroll {
    overflow: hidden !important;
}

@media (max-width: 767px) {
    html body #tol360Open,
    html body > #tol360Open {
        left: 16px !important;
        right: auto !important;
        bottom: 28px !important;
        max-width: calc(100vw - 32px);
    }
}
