
/* ========================================
   MODAL INTERACTIVE ZONE DE MESURE
   ======================================== */
.zone-modal-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.zone-modal-btn {
    padding: 10px 20px;
    background-color: white;
    border: 2px solid #e1e4e8;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4a5568;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.zone-modal-btn:hover {
    border-color: #E60012;
    color: #E60012;
}

.zone-modal-btn.active {
    background-color: #E60012;
    border-color: #E60012;
    color: white;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.2);
}

/* Modal content adjustment for zone interaction */
#imageModal.interactive .image-modal-content {
    max-width: 900px;
    background: white;
    padding: 24px;
    border-radius: 12px;
}

#imageModal.interactive #modalImage {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 20px;
    display: block;
    /* Prefer intrinsic image size and avoid upscaling which causes pixelation */
    width: auto;
    max-width: 92%;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    image-rendering: auto;
}

/* Slightly larger layout when showing IM or LM detail images */
#imageModal.interactive.detail .image-modal-content {
    /* Slight increase but kept modest to avoid enlarging beyond image native resolution */
    max-width: 940px;
    padding: 26px;
}

#imageModal.interactive.detail #modalImage {
    padding: 12px;
}
