html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: fixed;
    cursor: default;
    width: 100%;
    height: 100%;
}

#panorama {
    width: 100%;
    height: 100%;
}

.custom-hotspot {
    height: 40px;
    width: 40px;
    background: #00ff0fc4;
    border-radius: 40%;
}

div.custom-tooltip span {
    visibility: hidden;
    position: absolute;
    border-radius: 3px;
    background-color: #fff;
    color: #000;
    text-align: center;
    max-width: 200px;
    padding: 5px 10px;
    margin-left: -220px;
    cursor: default;
}

div.custom-tooltip:hover span {
    visibility: visible;
}

div.custom-tooltip:hover span:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-width: 10px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    bottom: -20px;
    left: -10px;
    margin: 0 50%;
}

#xemthamquanmenu {
    position: absolute;
    top: 94px;
    left: 3px;
    width: 38px;
    height: 38px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
}

body.panorama-intro-active #xemthamquanmenu,
body.panorama-intro-active #thamquanmenu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

#xemthamquanmenu a,
#xemthamquanmenu svg {
    width: 20px;
    height: 20px;
    display: flex;
    margin: auto;
    color: #fff;
}

#xemthamquanmenu a {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#xemthamquanmenu:hover {
    background: rgba(0, 0, 0, 0.65);
}

#thamquanmenu {
    height: 60vh;
    position: absolute;
    top: calc(15% + 30px);
    visibility: inherit;
    width: 20vw;
    min-width: 300px;
    max-width: 380px;
    z-index: 3;
    display: none;
    left: 8px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

#thamquanmenu.active {
    display: inherit;
}

#thamquanmenu .search-box {
    position: absolute;
    top: 12px;
    display: flex;
    height: 40px;
    width: calc(100% - 24px);
    gap: 8px;
}

#thamquanmenu .search-box a {
    display: flex;
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #0d6efd;
    color: #fff;
}

#thamquanmenu .search-box a:hover {
    background: #0b5ed7;
}

#thamquanmenu .search-box .input-data {
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: none;
}

#thamquanmenu .search-box .input-data::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#thamquanmenu .search-box .input-data:focus {
    border-color: rgba(13, 110, 253, 0.8);
    background: rgba(255, 255, 255, 0.18);
}

#listdiadiemthamquan {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    height: calc(60vh - 116px);
    top: 62px;
    overflow-y: auto;
    overflow-x: hidden;
    position: absolute;
    visibility: inherit;
    width: calc(100% - 42px);
    pointer-events: auto;
    opacity: 1;
    z-index: 3;
    list-style-type: none;
    padding: 8px;
    margin: 0;
    border-radius: 12px;
}

#listdiadiemthamquan li {
    height: 52px;
    width: 100%;
    margin-bottom: 6px;
}

#listdiadiemthamquan li a {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    height: 60px;
    padding-left: 15px;
    padding-right: 12px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    overflow: hidden;
    text-shadow: none;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

#listdiadiemthamquan li a:hover,
#listdiadiemthamquan li a.active {
    border-color: rgba(13, 110, 253, 0.75);
    border-left-color: #0d6efd;
    background: rgba(13, 110, 253, 0.18);
}

#diadiempreview {
    display: none;
    object-fit: contain;
    position: absolute;
    width: 50vw;
    height: 60vh;
    top: 20vh;
    left: 25vw;
    z-index: 3;
    background: white;
    border-radius: 5px;
}

#diadiempreview.active {
    display: inherit;
}

#diadiemphantrang {
    display: none;
    position: absolute;
    top: calc(60vh - 44px);
    width: calc(100% - 24px);
}

#diadiemphantrang.active {
    display: inherit;
}

#diadiemphantrang nav {
    display: flex;
}

#diadiemphantrang ul {
    margin: auto;
}

#keyword_place {
    width: 100%;
}

@media (max-width: 767px) {
    #xemthamquanmenu {
        top: 90px;
        left: 8px;
    }

    #thamquanmenu {
        top: 132px;
        left: 8px;
        width: calc(100vw - 16px);
        min-width: 0;
        max-width: none;
        height: 56vh;
    }

    #listdiadiemthamquan {
        height: calc(56vh - 116px);
    }

    #diadiemphantrang {
        top: calc(56vh - 44px);
    }
}

#logo_img {
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: 2;
    top: 5px;
    right: 5px;
}

.pnlm-load-button {
    background-color: rgb(0 136 90 / 93%);
    border-radius: 5px;
    height: 80px;
}

.pnlm-load-button:hover {
    background-color: rgb(0 122 80);
}

#loadingcontainer {
    display: none;
    position: absolute;
    width: 100vw;
    height: 100vh;
    z-index: 4;
    background: white;
}

#loadingcontainer.active {
    display: inherit;
}

#loadingcontainer img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

#loadingcontainer a {
    position: absolute;
    width: 190px;
    height: 40px;
    z-index: 5;
    background-color: rgb(0 136 90 / 93%);
    border-radius: 5px;
    top: calc(50vh - 40px);
    left: calc(50vw - 100px);
    text-align: center;
    font-size: 0.95rem;
    color: white;
    align-items: center;
    padding: 5px;
    cursor: pointer;
}

#loadingcontainer a svg {
    width: 35px;
    height: 35px;
}

#loadingcontainer a:hover {
    background-color: rgb(0 122 80);
}

.scale-shine {
    display: inline-flex;
    animation: scaleAndShine 1.2s ease-in-out infinite;
    text-shadow: none;
    background-color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #0d6efd !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
}

@keyframes scaleAndShine {
    0%, to {
        transform: scale(1);
        box-shadow: none;
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(255, 255, 255, .8);
    }
}
