/* Hotspot Meta Box Frontend Styles */

.hotspot-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.hotspot-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 1000px;
}

.hotspot-main-image {
    width: 100%;
    height: auto;
    display: block;
}

.hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    background:
        /* repère haut */ linear-gradient(#E7BD70, #E7BD70) 50% 0/1px 8px no-repeat,
        /* repère droite */ linear-gradient(#E7BD70, #E7BD70) 100% 50%/8px 1px no-repeat,
        /* repère bas */ linear-gradient(#E7BD70, #E7BD70) 50% 100%/1px 8px no-repeat,
        /* repère gauche */ linear-gradient(#E7BD70, #E7BD70) 0 50%/8px 1px no-repeat;
    border: 2px solid #E7BD70;
    box-sizing: border-box;
    border-radius: 50%;
    cursor: pointer;
}

.hotspot::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    margin-top: -7px;
    border: 1px solid #E7BD70;
    border-radius: 50%;
    box-sizing: border-box;
}

/* Popup Tippy.js custom */
.tippy-box[data-theme~="light-border"],
.tippy-box[data-theme~="hotspot-popup"] {
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.10);
    border-radius: 10px;
    padding: 45px 10px 0 10px;
    text-align: center;
    min-width: 220px !important;
    max-width: 500px !important;
    color: #333333;
}

.tippy-content {
    padding-top: 15px !important;
}

.hotspot-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.hotspot-popup-content a.luminous-trigger {
    cursor: zoom-in !important;
}

.hotspot-progress-indicator {
    position: absolute;
    top: 12px;
    left: 18px;
    background: #fff;
    color: #222;
    font-weight: bold;
    font-size: 15px;
    padding: 2px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 2;
    min-width: 48px;
    text-align: center;
}

.hotspot-popup-explications {
    width: 100%;
}

.hotspot-popup-explication {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hotspot-popup-explication-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 8px;
    width: 100%;
}

.hotspot-explanation-image {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    display: block;
    margin-bottom: 2px;
}

.hotspot-explanation-text {
    font-size: 13px;
    margin-bottom: 2px;
    text-align: center;
    color: #333333;
}

.hotspot-explanation-desc {
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
    text-align: center;
}

.hotspot-popup-explication-images .hotspot-explanation-image {
    max-height: 20vh;
}

.hotspot-popup-explication-images.images-count-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.hotspot-popup-explication-images.images-count-2 .hotspot-explanation-image-container {
    width: 45%;
}

.hotspot-popup-explication-images.images-count-3 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.hotspot-popup-explication-images.images-count-3 .hotspot-explanation-image-container {
    width: 45%;
}
.hotspot-popup-explication-images.images-count-3 .hotspot-explanation-image-container:nth-child(3) {
    width: 100%;
}

.hotspot-popup-explication-images.images-count-4 {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    justify-content: center;
}
.hotspot-popup-explication-images.images-count-4 .hotspot-explanation-image-container {
    width: 45%;
}


.hotspot-explanation-image-container {
    min-width: 120px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 45%;
}

.hotspot-explanation-image-container > img {
    max-height: 20vh;
}

.drift-zoom-pane {
    z-index: 999999999999999 !important;
    pointer-events: none;
    background: #fff !important;
}

.tippy-box[data-theme~="hotspot-popup"],
.hotspot-popup-content,
.hotspot-popup-explications,
.hotspot-popup-explication,
.hotspot-popup-explication-images,
.hotspot-explanation-image-container {
    overflow: visible !important;
}

.tippy-box[data-theme~="hotspot-popup"] {
    z-index: 999999 !important;
}

/* Lightbox Luminous plein écran et centrée */
.lum-lightbox.lum-open {
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0,0,0,0.9) !important;
    z-index: 2147483647 !important;
    overflow: hidden !important;
}

.lum-lightbox-inner {
    top: -1px !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 90vw !important;
    height: 90vh !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lum-lightbox-image-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.lum-lightbox-image-wrapper img {
    max-height: 80vh !important;
}

.lum-img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    background: #fff;
    border-radius: 8px;
    object-fit: contain !important;
}

.hotspot-tippy-close {
    position: absolute !important;
    top: 0;
    right: 0;
    z-index: 10;
    background: transparent !important;
    border: none;
    font-size: 2rem !important;
    color: #333 !important;
    cursor: pointer;
    line-height: 1;
    padding: 0 8px;
    transition: color 0.2s;
    width: 100%;
    justify-content: flex-end !important;
    background: #D19527 !important;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}
.hotspot-tippy-close:hover {
    color: #f00;
}