/* =========================================================
   UNIVERSITY MODEL TOWN
   VIRTUAL TOUR
   ========================================================= */


/* =============================
   RESET
   ============================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0b0b;
    color: #ffffff;
}


/* =============================
   MAIN TOUR
   ============================= */

.tour {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #111;
}

.tour-viewer {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #111;

    user-select: none;
    touch-action: none;
}


/* =============================
   MAIN IMAGE
   ============================= */

.tour-image {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform:
        translate(-50%, -50%)
        scale(1);

    transform-origin: center center;

    transition:
        opacity 0.35s ease;

    cursor: grab;

    will-change: transform;
}

.tour-image:active {
    cursor: grabbing;
}


/* =============================
   DARK GRADIENT
   ============================= */

.tour-shade {
    position: absolute;
    inset: 0;

    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.48) 0%,
            rgba(0, 0, 0, 0.08) 28%,
            rgba(0, 0, 0, 0.02) 55%,
            rgba(0, 0, 0, 0.58) 100%
        );
}


/* =========================================================
   HEADER
   ========================================================= */

.tour-header {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 28px 38px;

    pointer-events: none;
}


/* BRAND */

.tour-brand {
    display: flex;
    flex-direction: column;

    color: #ffffff;

    text-decoration: none;

    pointer-events: auto;
}

.tour-brand-small {
    margin-bottom: 3px;

    font-size: 9px;
    font-weight: 500;

    letter-spacing: 4px;
}

.tour-brand strong {
    font-size: 20px;
    font-weight: 600;

    letter-spacing: 2px;
}


/* RIGHT HEADER */

.tour-header-right {
    display: flex;
    align-items: center;

    gap: 20px;

    pointer-events: auto;
}

.tour-header-label {
    font-size: 10px;

    letter-spacing: 3px;

    opacity: 0.75;
}


/* EXIT */

.tour-exit {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border: 1px solid rgba(255, 255, 255, 0.45);

    border-radius: 50%;

    color: #ffffff;

    text-decoration: none;

    font-size: 25px;
    font-weight: 300;

    background:
        rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.tour-exit:hover {
    background: #ffffff;
    color: #111;

    transform: rotate(90deg);
}


/* =========================================================
   CURRENT LOCATION
   ========================================================= */

.tour-location {
    position: absolute;

    top: 125px;
    left: 40px;

    z-index: 10;

    pointer-events: none;

    text-shadow:
        0 2px 15px
        rgba(0, 0, 0, 0.4);
}

.tour-location > span {
    display: block;

    margin-bottom: 8px;

    font-size: 9px;

    letter-spacing: 3px;

    opacity: 0.75;
}

.tour-location h1 {
    margin: 0 0 8px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(
        30px,
        3vw,
        48px
    );

    font-weight: 400;
}

.tour-location p {
    font-size: 11px;

    letter-spacing: 1.5px;

    opacity: 0.7;
}


/* =========================================================
   PREVIOUS / NEXT ARROWS
   ========================================================= */

.scene-arrow {
    position: absolute;

    top: 50%;

    z-index: 15;

    width: 52px;
    height: 52px;

    border:
        1px solid
        rgba(255, 255, 255, 0.42);

    border-radius: 50%;

    color: #ffffff;

    font-family: Arial, sans-serif;

    font-size: 35px;
    font-weight: 200;

    background:
        rgba(0, 0, 0, 0.22);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    cursor: pointer;

    transform:
        translateY(-50%);

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.scene-arrow:hover {
    background: #ffffff;

    color: #111;
}

.scene-arrow-left {
    left: 30px;
}

.scene-arrow-right {
    right: 30px;
}


/* =========================================================
   BOTTOM PANEL
   ========================================================= */

.tour-panel {
    position: absolute;

    left: 50%;
    bottom: 25px;

    z-index: 30;

    width:
        min(
            1040px,
            calc(100% - 80px)
        );

    padding: 18px;

    border:
        1px solid
        rgba(255, 255, 255, 0.16);

    border-radius: 12px;

    background:
        rgba(20, 20, 18, 0.70);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.35);

    transform:
        translateX(-50%);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0.35s ease;
}


/* PANEL HIDDEN */

.tour-panel.panel-hidden {
    opacity: 0;

    visibility: hidden;

    transform:
        translateX(-50%)
        translateY(40px);
}


/* =========================================================
   PANEL HEADER
   ========================================================= */

.tour-panel-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;
}

.tour-panel-top > div {
    display: flex;

    align-items: center;

    gap: 15px;
}

.tour-panel-label {
    font-size: 9px;

    letter-spacing: 2.5px;

    opacity: 0.6;
}

.tour-panel-top strong {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 17px;

    font-weight: 400;
}


/* HIDE BUTTON */

.panel-hide-btn {
    border: 0;

    color: rgba(
        255,
        255,
        255,
        0.75
    );

    font-size: 9px;

    letter-spacing: 2px;

    background: transparent;

    cursor: pointer;
}

.panel-hide-btn span {
    margin-left: 6px;

    font-size: 15px;
}


/* =========================================================
   THUMBNAILS
   ========================================================= */

.tour-thumbnails {
    display: flex;

    gap: 10px;

    width: 100%;

    padding-bottom: 5px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(255, 255, 255, 0.3)
        transparent;
}

.tour-thumbnails::-webkit-scrollbar {
    height: 3px;
}

.tour-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.tour-thumbnails::-webkit-scrollbar-thumb {
    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.35);
}


/* THUMBNAIL BUTTON */

.tour-thumbnail {
    position: relative;

    flex:
        0 0
        135px;

    height: 82px;

    padding: 0;

    overflow: hidden;

    border:
        1px solid
        transparent;

    border-radius: 6px;

    background: #111;

    cursor: pointer;

    opacity: 0.65;

    transition:
        opacity 0.25s ease,
        border 0.25s ease,
        transform 0.25s ease;
}

.tour-thumbnail:hover {
    opacity: 1;

    transform:
        translateY(-2px);
}

.tour-thumbnail.active {
    opacity: 1;

    border:
        2px solid
        #ffffff;
}


/* THUMB IMAGE */

.tour-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    pointer-events: none;
}


/* THUMB GRADIENT */

.tour-thumbnail::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.82),
            rgba(0, 0, 0, 0.05)
        );

    pointer-events: none;
}


/* THUMB TITLE */

.tour-thumbnail span {
    position: absolute;

    left: 9px;
    right: 9px;
    bottom: 8px;

    z-index: 3;

    color: #ffffff;

    text-align: left;

    font-size: 8px;

    line-height: 1.3;

    letter-spacing: 1.1px;

    pointer-events: none;
}


/* =========================================================
   CONTROLS
   ========================================================= */

.tour-controls {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 13px;
}


/* CONTROL BUTTON */

.tour-controls button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    border-radius: 50%;

    color: #ffffff;

    font-size: 19px;

    background:
        rgba(255, 255, 255, 0.06);

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.tour-controls button:hover {
    background: #ffffff;

    color: #111;

    transform:
        translateY(-2px);
}


/* DIVIDER */

.control-divider {
    width: 1px;
    height: 22px;

    margin:
        0 6px;

    background:
        rgba(255, 255, 255, 0.18);
}


/* =========================================================
   SHOW PANEL BUTTON
   ========================================================= */

.show-panel-btn {
    position: absolute;

    left: 50%;
    bottom: 25px;

    z-index: 29;

    padding:
        13px 22px;

    border:
        1px solid
        rgba(255, 255, 255, 0.35);

    border-radius: 30px;

    color: #ffffff;

    font-size: 9px;

    letter-spacing: 2px;

    background:
        rgba(15, 15, 15, 0.65);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transform:
        translateX(-50%)
        translateY(15px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;
}

.show-panel-btn.visible {
    opacity: 1;

    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}

.show-panel-btn:hover {
    background: #ffffff;

    color: #111;
}

.show-panel-btn span {
    margin-left: 8px;
}


/* =========================================================
   ZOOM INDICATOR
   ========================================================= */

.zoom-indicator {
    position: absolute;

    right: 35px;
    bottom: 35px;

    z-index: 15;

    padding:
        8px 12px;

    border-radius: 20px;

    font-size: 9px;

    letter-spacing: 1px;

    background:
        rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(8px);

    opacity: 0;

    transform:
        translateY(5px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.zoom-indicator.visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   LOADER
   ========================================================= */

.tour-loader {
    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 40;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;

    border-radius: 50%;

    background:
        rgba(0, 0, 0, 0.35);

    opacity: 0;

    visibility: hidden;

    transform:
        translate(
            -50%,
            -50%
        );

    transition:
        opacity 0.2s ease;
}

.tour-loader.visible {
    opacity: 1;

    visibility: visible;
}

.tour-loader-ring {
    width: 25px;
    height: 25px;

    border:
        2px solid
        rgba(255, 255, 255, 0.3);

    border-top-color:
        #ffffff;

    border-radius: 50%;

    animation:
        tourLoaderSpin
        0.8s linear
        infinite;
}

@keyframes tourLoaderSpin {

    to {
        transform:
            rotate(360deg);
    }

}


/* =========================================================
   FULLSCREEN
   ========================================================= */

.tour-viewer:fullscreen {
    width: 100vw;
    height: 100vh;

    background: #111;
}

.tour-viewer:-webkit-full-screen {
    width: 100vw;
    height: 100vh;

    background: #111;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .tour-header {
        padding:
            22px 24px;
    }

    .tour-location {
        top: 105px;
        left: 25px;
    }

    .tour-panel {
        width:
            calc(
                100% - 40px
            );

        bottom: 20px;
    }

    .scene-arrow-left {
        left: 20px;
    }

    .scene-arrow-right {
        right: 20px;
    }

    .tour-thumbnail {
        flex-basis: 125px;

        height: 76px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .tour-header {
        padding:
            18px 16px;
    }


    /* BRAND */

    .tour-brand-small {
        font-size: 7px;

        letter-spacing: 2.5px;
    }

    .tour-brand strong {
        font-size: 15px;

        letter-spacing: 1.3px;
    }


    /* HEADER RIGHT */

    .tour-header-label {
        display: none;
    }

    .tour-exit {
        width: 38px;
        height: 38px;

        font-size: 22px;
    }


    /* LOCATION */

    .tour-location {
        top: 90px;
        left: 18px;
    }

    .tour-location h1 {
        font-size: 28px;
    }

    .tour-location p {
        font-size: 9px;
    }


    /* SIDE ARROWS */

    .scene-arrow {
        width: 42px;
        height: 42px;

        font-size: 28px;
    }

    .scene-arrow-left {
        left: 12px;
    }

    .scene-arrow-right {
        right: 12px;
    }


    /* PANEL */

    .tour-panel {
        width:
            calc(
                100% - 20px
            );

        bottom: 10px;

        padding: 12px;

        border-radius: 10px;
    }

    .tour-panel-top {
        margin-bottom: 10px;
    }

    .tour-panel-label {
        display: none;
    }

    .tour-panel-top strong {
        font-size: 15px;
    }


    /* THUMBNAILS */

    .tour-thumbnail {
        flex-basis: 105px;

        height: 67px;
    }

    .tour-thumbnail span {
        left: 6px;
        bottom: 6px;

        font-size: 7px;
    }


    /* CONTROLS */

    .tour-controls {
        margin-top: 10px;

        gap: 5px;
    }

    .tour-controls button {
        width: 34px;
        height: 34px;

        font-size: 17px;
    }

    .control-divider {
        margin:
            0 3px;
    }


    /* ZOOM INDICATOR */

    .zoom-indicator {
        right: 15px;
        bottom: 180px;
    }


    /* SHOW PANEL */

    .show-panel-btn {
        bottom: 15px;

        padding:
            11px 17px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

    .tour-location h1 {
        font-size: 24px;
    }

    .tour-thumbnail {
        flex-basis: 95px;

        height: 62px;
    }

    .tour-controls button {
        width: 32px;
        height: 32px;
    }

    .control-divider {
        margin:
            0 1px;
    }

}

/* =========================================================
   360째 PANORAMA VIEWER
   ========================================================= */

.tour-panorama {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 1;

    background: #111;
}


/* Keep our UMT interface above the panorama */

.tour-shade {
    pointer-events: none;
}

.tour-header,
.tour-location,
.tour-panel,
.show-panel-btn,
.zoom-indicator,
.scene-arrow {
    z-index: 10;
}


/* Remove Pannellum's default controls.
   We will use our own UMT controls. */

#panorama .pnlm-controls-container {
    display: none;
}

/* =========================================================
   UMT 360° LOCATION HOTSPOT
   Blue World style
   ========================================================= */

.umt-location-hotspot {
    width: 1px;
    height: 1px;

    cursor: pointer;

    background: transparent !important;
    border: none !important;
}


/* COMPLETE MARKER */

.umt-hotspot-wrapper {
    position: absolute;

    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;

    width: max-content;

    pointer-events: none;
}


/* LOCATION NAME — ALWAYS VISIBLE */

.umt-hotspot-label {
    position: relative;

    padding: 5px 11px;

    margin-bottom: 5px;

    background: rgba(0, 110, 210, 0.95);

    color: #ffffff;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.2;

    white-space: nowrap;

    border-radius: 4px;

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.35);

    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.28);
}


/* SMALL ARROW BELOW LABEL */

.umt-hotspot-label::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -5px;

    transform: translateX(-50%);

    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 110, 210, 0.95);
}


/* BLUE PIN */

.umt-hotspot-pin {
    position: relative;

    width: 30px;
    height: 30px;

    background: #078bea;

    border: 2px solid #ffffff;

    border-radius: 50% 50% 50% 0;

    transform: rotate(-45deg);

    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.35);

    pointer-events: auto;

    transition:
        transform 0.18s ease,
        filter 0.18s ease;
}


/* INNER WHITE CIRCLE */

.umt-hotspot-icon {
    position: absolute;

    width: 14px;
    height: 14px;

    left: 6px;
    top: 6px;

    background: #ffffff;

    border-radius: 50%;

    transform: rotate(45deg);
}


/* SMALL CENTER DOT */

.umt-hotspot-icon span {
    position: absolute;

    width: 5px;
    height: 5px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    background: #078bea;

    border-radius: 50%;
}


/* VERTICAL LOCATION LINE */

.umt-hotspot-line {
    width: 2px;
    height: 34px;

    margin-top: 3px;

    background: #078bea;

    box-shadow:
        0 0 4px rgba(0, 139, 234, 0.7);
}


/* GROUND POINT */

.umt-hotspot-ground {
    width: 9px;
    height: 9px;

    background: #ffffff;

    border: 2px solid #078bea;

    border-radius: 50%;

    box-shadow:
        0 0 5px rgba(0, 139, 234, 0.75);
}


/* HOVER ONLY ON CLICKABLE PIN */

.umt-location-hotspot:hover .umt-hotspot-pin {
    transform:
        rotate(-45deg)
        scale(1.12);

    filter: brightness(1.08);
}