:root {
    --primary: #61A3C5;
    --primary-rgb: 97, 163, 197;
    --white: #fff;
    --white-rgb: 255, 255, 255;
    --black: #000;
    --black-rgb: 0, 0, 0;
}

/* STYLE CHUNG CHO ICON HOTSPOT CLICK CHANGE SCENE START  */
.click-hotspot {
    position: relative;
    display: block;
    width: 60px;
    height: 60px;
    cursor: pointer;
    pointer-events: auto;
}

/* Chấm lõi: tự nhấn xuống rồi bật lại, kèm quầng sáng */
.ck-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), .7);
    transform: translate(-50%, -50%);
    transition: transform .25s, background .25s, border-color .25s;
    animation: ck-press 2s ease-in-out infinite;
}

/* Vòng sóng lan ra, bắt đầu ngay sau lúc "nhấn" */
.ck-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(var(--white-rgb), .85);
    box-sizing: border-box;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    animation: ck-ripple 2s ease-out infinite;
    animation-delay: .3s;
}

.ck-ring2 {
    animation-delay: .6s;
}

/* ===== Hover: dừng hiệu ứng, phóng to chấm ===== */
.click-hotspot:hover .ck-core {
    animation: none;
    transform: translate(-50%, -50%) scale(1.35);
    background: var(--white);
    border-color: var(--primary);
}

.click-hotspot:hover .ck-ring {
    animation: none;
    opacity: 0;
}

/* ===== Keyframes (cùng chu kỳ 2s để đồng bộ) ===== */
/* Chấm co lại (nhấn) -> bật lên -> về bình thường */
@keyframes ck-press {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px rgba(var(--primary-rgb), .7);
    }

    15% {
        transform: translate(-50%, -50%) scale(.75);
        box-shadow: 0 0 4px rgba(var(--primary-rgb), .5);
    }

    30% {
        transform: translate(-50%, -50%) scale(1.15);
        box-shadow: 0 0 18px rgba(var(--primary-rgb), .9);
    }

    45% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px rgba(var(--primary-rgb), .7);
    }
}

/* Sóng lan ra */
@keyframes ck-ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .9;
    }

    70% {
        opacity: .25;
    }

    100% {
        transform: translate(-50%, -50%) scale(3.2);
        opacity: 0;
    }
}

/* STYLE CHUNG CHO ICON HOTSPOT CLICK CHANGE SCENE END  */

/* STYLE CHUNG CHO ICON HOTSPOT CLICK OPEN CLOSE CABINET START  */
.dot-hotspot {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    cursor: pointer;
    pointer-events: auto;
}

/* Halo mờ ở trạng thái thường (nhấp nhô) */
.dot-hotspot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(var(--white-rgb), 0.35);
    transform: translate(-50%, -50%) scale(1);
    animation: dot-pulse 2s ease-in-out infinite;
    transition: opacity .25s;
}

/* Viền ngoài, chỉ hiện khi hover */
.dot-hotspot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid rgba(var(--white-rgb), 0.6);
    box-sizing: border-box;
    transform: translate(-50%, -50%) scale(.8);
    opacity: 0;
    transition: opacity .25s, transform .25s;
}

/* Chấm lõi */
.dot-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    transform: translate(-50%, -50%);
    transition: width .25s, height .25s, background .25s, box-shadow .25s;
}

/* Dấu + (ẩn lúc thường) */
.dot-core::before,
.dot-core::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--primary);
    border-radius: 2px;
    transform: translate(-50%, -50%) scale(0);
    transition: transform .25s;
}

.dot-core::before {
    width: 12px;
    height: 2px;
}

.dot-core::after {
    width: 2px;
    height: 12px;
}

/* ===== Hover ===== */
.dot-hotspot:hover::before {
    opacity: 0;
    animation: none;
}

.dot-hotspot:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.dot-hotspot:hover .dot-core {
    width: 26px;
    height: 26px;
    background: var(--white);
    box-shadow: 0 0 0 0 transparent;
}

.dot-hotspot:hover .dot-core::before,
.dot-hotspot:hover .dot-core::after {
    transform: translate(-50%, -50%) scale(1);
}

@keyframes dot-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .9;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.25);
        opacity: .45;
    }
}

/* STYLE CHUNG CHO ICON HOTSPOT CLICK OPEN CLOSE CABINET END  */