/* ==========================================================================
   1. KHUNG VIEWPORT (TƯỜNG CHẮN BẢO VỆ LAYOUT & GIỮ NÚT ZOOM CỐ ĐỊNH)
   ========================================================================== */
.wcph-viewport {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important; /* Xuất hiện thanh cuộn ngang khi ảnh được phóng to quá biên */
    overflow-y: hidden !important; /* Khóa chiều dọc tuyệt đối không làm nhảy khung chữ bên dưới */
    border: 1px solid #eaeaea !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    margin-bottom: 25px !important;
    clear: both !important;
}

.wcph-interactive-container {
    position: relative !important;
    display: block !important;
    width: 100%; /* ĐÃ BỎ !important ĐỂ JAVASCRIPT CÓ THỂ ĐIỀU KHIỂN CO GIÃN TỰ DO */
    max-width: none !important; /* Ngăn chặn theme Flatsome cưỡng ép max-width */
    height: auto !important;
    box-sizing: border-box !important;
    margin: 0 auto !important; /* TỰ ĐỘNG CĂN GIỮA: Giúp ảnh nằm cân đối giữa div khi thu nhỏ dưới 100% */
    transition: width 0.25s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.wcph-main-bg {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    pointer-events: none !important;
}

/* ==========================================================================
   2. BỘ ĐIỀU KHIỂN ZOOM (HÌNH VUÔNG)
   ========================================================================== */
.wcph-zoom-controls {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 101 !important;
    display: flex !important;
    gap: 6px !important;
}

.wcph-zoom-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    background: #222222 !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    transition: background 0.2s ease !important;
}

.wcph-zoom-btn:hover {
    background: #ff5722 !important;
}

/* ==========================================================================
   3. ĐIỂM CHẤM HOTSPOT (HÌNH VUÔNG KHÔNG BIẾN DẠNG + PULSE RIPPLE TỐI ƯU GPU)
   ========================================================================== */
.wcph-hotspot-point {
    position: absolute !important;
    transform: translate(-50%, -50%);
    z-index: 90;
}

.wcph-toggle-btn {
    background: #ff5722 !important;
    color: #ffffff !important;
    border: none !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    border-radius: 0px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    font-size: 16px !important;
    line-height: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    display: inline-block !important;
    position: relative !important;
    float: none !important;
    box-shadow: 0 0 6px rgba(255,87,34,0.6) !important;
}

.wcph-toggle-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #ff5722;
    box-sizing: border-box;
    border-radius: 0px !important;
    pointer-events: none;
    will-change: transform, opacity;
    animation: wcphSquarePulse 2s infinite cubic-bezier(0.24, 0, 0.38, 1);
}

/* ==========================================================================
   4. KHUNG TOOLTIP NỘI DUNG MÔ TẢ
   ========================================================================== */
.wcph-tooltip-content {
    display: none;
    position: absolute !important;
    bottom: 35px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
    color: #333333 !important;
    padding: 12px !important;
    width: 220px !important;
    border-radius: 2px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    border: 1px solid #eaeaea !important;
    z-index: 102;
}

.wcph-tooltip-content::after {
    content: "" !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-width: 6px !important;
    border-style: solid !important;
    border-color: #ffffff transparent transparent transparent !important;
}

.wcph-tooltip-content h4 {
    margin: 0 0 5px 0 !important;
    font-size: 14px !important;
    color: #111111 !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
    text-transform: none !important;
}

.wcph-tooltip-content p {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #666666 !important;
}

.wcph-hotspot-point.active .wcph-tooltip-content {
    display: block !important;
    animation: wcphFadeInUp 0.25s ease-out !important;
}

/* ==========================================================================
   5. BỘ KEYFRAMES ANIMATIONS TĂNG TỐC PHẦN CỨNG
   ========================================================================== */
@keyframes wcphSquarePulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}
@keyframes wcphFadeInUp {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}